Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: DHCPD Server

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Mar 2005

    DHCPD Server

    I want my Desktop PC to connect to my Laptop and use it's connection to my router, so that it will have have internet access. Basically, I want my Laptop to act as a Router. for shits & giggles just assume that I don't want to plug my PC directly into my router.

    Heres my set up:

    Desktop PC: Windows 2000 (and slackware), with a normal LAN card.

    Laptop: Slackware, with a wireless PCMCIA card connected to the wireless router, connected to a modem.
    eth0 = wireless connection.
    eth1 = wired connection (via "ifconfig eth1 up")

    Currently, I've got my dhcpf.conf file configured, I've got eth1 up, and dhcpd running on eth1. I've got a LAN Cable connecting the PC and the Laptop, which seems kind of silly (I'll probably need a cross-over cable), and windows 2000 on the Desktop PC says the cable is unplugged.

    Could I accomplish this by using a Crossover cable, or would I need an a switch or hub?

    ddns-update-style ad-hoc;
    subnet netmask {
             option routers;
    $ ifconfig:
    eth0      Link encap:Ethernet  HWaddr 00:02:2D:74:0B:E2
              inet addr:  Bcast:  Mask:
              RX packets:2216 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1609 errors:3 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:2190811 (2.0 Mb)  TX bytes:318815 (311.3 Kb)
              Interrupt:9 Base address:0x100
    eth1      Link encap:Ethernet  HWaddr 00:50:8B:9D:61:25
              inet addr:  Bcast:  Mask:
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:8 errors:0 dropped:0 overruns:8 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 b)  TX bytes:4720 (4.6 Kb)
              Interrupt:11 Base address:0xe000
    lo        Link encap:Local Loopback
              inet addr:  Mask:
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:117 errors:0 dropped:0 overruns:0 frame:0
              TX packets:117 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:8628 (8.4 Kb)  TX bytes:8628 (8.4 Kb)
    $ route -n
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth1   U     0      0        0 eth0       U     0      0        0 lo         UG    0      0        0 eth0

  2. #2
    Linux Newbie
    Join Date
    Mar 2005

    this was a thread of mine that wasn't getting any attention so I deleted it and replaced it with another question that I have (I've also changed the title.).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts