Find the answer to your Linux question:
Results 1 to 3 of 3
I have an internet connection through DHCP, and it works fine on windows vista. However, I'm having a problem using it on Debian. I've gone to Desktop<<Administration<<Networking, and set eth1 ...
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    3

    Problem using dhcp

    I have an internet connection through DHCP, and it works fine on windows vista. However, I'm having a problem using it on Debian. I've gone to Desktop<<Administration<<Networking, and set eth1 to DHCP from there. eth1 is also the default gateway device. I'm able to ping the default gateway. However, when ever I use IceWeasel or Epiphany, I'm unable to reach any website. Could someone help me out. I've checked the ip address in linux and windows(through ipconfig), and they match fine.

    This is what my /etc/network/interface looks like:

    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    iface eth1 inet dhcp
    
    
    iface eth0 inet dhcp
    
    auto eth0
    
    
    
    
    
    auto eth1
    I've used this tutorial to tweak the setting(only used the beginning portion of it really, as I'm using DHCP, so I dont think I'll be required to specify anything)


    Debian Networking for Basic and Advanced Users -- Debian Admin

  2. #2
    Just Joined!
    Join Date
    May 2005
    Posts
    13
    try these:

    1)
    auto eth0
    iface eth0 inet dhcp

    auto eth1
    iface eth0 inet dhcp

    save it;

    2)
    /etc/init.d/networking force-reload

    3) ifconfig

    4) then maybe success if there are no other issues.

    Good Luck

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Posts
    3
    Quote Originally Posted by shikheey View Post
    try these:

    1)
    auto eth0
    iface eth0 inet dhcp

    auto eth1
    iface eth0 inet dhcp

    save it;

    2)
    /etc/init.d/networking force-reload

    3) ifconfig

    4) then maybe success if there are no other issues.

    Good Luck
    Hey, thanks for the reply!

    1)Done-I assume you meant to type iface eth1, not eth0 on the last line

    2)Done-the last line was
    bound to 192.168.1.3 -- renewal in 1516 seconds.
    but then the done statement came quickly enough, so I assume it was done all right

    3)This is the result of ifconfig:
    Code:
    eth0      Link encap:UNSPEC  HWaddr 07-E4-0A-00-2B-93-50-23-00-00-00-00-00-00-00-00
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:11 dropped:11 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    
    eth1      Link encap:Ethernet  HWaddr 00:16:D3:A1:3D:7A
              inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::216:d3ff:fea1:3d7a/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:6 errors:0 dropped:0 overruns:0 frame:0
              TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:2504 (2.4 KiB)  TX bytes:6680 (6.5 KiB)
              Interrupt:169
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:122 errors:0 dropped:0 overruns:0 frame:0
              TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:26789 (26.1 KiB)  TX bytes:26789 (26.1 KiB)
    The eth1 IP addr. are fine

    4)Nope, still not working .

    I even changed my /etc/resolv.conf to give it the same primary DNS as the one I see in windows, but still no luck.

Posting Permissions

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