Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Mar 2005
    Location
    de_dust
    Posts
    115

    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 192.168.2.0 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?

    /etc/dhcpd.conf:
    Code:
    ddns-update-style ad-hoc;
    subnet 192.168.2.0 netmask 255.255.255.0 {
         range 192.168.2.0 192.168.2.255;
             option routers 192.168.1.1;
         }
    $ ifconfig:
    Code:
    eth0      Link encap:Ethernet  HWaddr 00:02:2D:74:0B:E2
              inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
              UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
              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:192.168.2.0  Bcast:192.168.2.255  Mask:255.255.255.0
              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:127.0.0.1  Mask:255.0.0.0
              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
    Code:
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
    0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
    [/code]

  2. #2
    Linux Newbie
    Join Date
    Mar 2005
    Location
    de_dust
    Posts
    115
    bump.

    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
  •