The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Network Connectivity Problems

    Discussion in 'Linux Compatibility and Software' started by mattireland, Mar 25, 2008.

  1. mattireland

    mattireland It used to be the iLand..

    Reputations:
    261
    Messages:
    1,162
    Likes Received:
    0
    Trophy Points:
    55
    Hi,

    When typing route -n, I get an IP routing table with only two addresses in it, and I cannot connect to the internet. So in trying to set up the third, so that I can access the internet, I'm having serious problems.

    My DNS suffix is: gateway.2wire.net
    My IP is: 192.168.1.74
    My Subnet Mask is: 255.255.255.0
    and my gateway is: 192.168.1.254

    so why when typing route add default gw 192.168.1.254 why do I just get and error: SIOCADDRT: no such process?

    I'm really, really stuck with this so I'd really appreciate help!

    Thanks,

    Matt. I

    EDIT: Clarification: It's a wired network. Thanks!
     
  2. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    Wow, I don't imagine that many people start up their networks manually these days.

    Have you brought up the Ethernet interface? (ifconfig)
     
  3. mattireland

    mattireland It used to be the iLand..

    Reputations:
    261
    Messages:
    1,162
    Likes Received:
    0
    Trophy Points:
    55
    Thanks for the reply!

    I tried tying in ifconfig and then accessing the internet: that didn't work.

    I also tried typing in ifconfig address. I got the and error fetching interface information: device not found.

    Has it not found my networking device? I have an Asus Maximus Formula mobo.

    The output of lspci is:

    Code:
    00:00.0 Host bridge: Intel Corporation DRAM Controller (rev 01)
    00:01.0 PCI bridge: Intel Corporation Host-Primary PCI Express Bridge (rev 01)
    00:1a.0 USB Controller: Intel Corporation USB UHCI Controller #4 (rev 02)
    00:1a.1 USB Controller: Intel Corporation USB UHCI Controller #5 (rev 02)
    00:1a.2 USB Controller: Intel Corporation USB UHCI Controller #6 (rev 02)
    00:1a.7 USB Controller: Intel Corporation USB2 EHCI Controller #2 (rev 02)
    00:1b.0 Audio device: Intel Corporation HD Audio Controller (rev 02)
    00:1c.0 PCI bridge: Intel Corporation PCI Express Port 1 (rev 02)
    00:1c.2 PCI bridge: Intel Corporation PCI Express Port 3 (rev 02)
    00:1c.4 PCI bridge: Intel Corporation PCI Express Port 5 (rev 02)
    00:1c.5 PCI bridge: Intel Corporation PCI Express Port 6 (rev 02)
    00:1d.0 USB Controller: Intel Corporation USB UHCI Controller #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation USB UHCI Controller #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation USB UHCI Controller #3 (rev 02)
    00:1d.7 USB Controller: Intel Corporation USB2 EHCI Controller #1 (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
    00:1f.0 ISA bridge: Intel Corporation LPC Interface Controller (rev 02)
    00:1f.2 IDE interface: Intel Corporation 4 port SATA IDE Controller (rev 02)
    00:1f.3 SMBus: Intel Corporation SMBus Controller (rev 02)
    00:1f.5 IDE interface: Intel Corporation 2 port SATA IDE Controller (rev 02)
    01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0402 (rev a1)
    02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
    03:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller
    04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
    06:01.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46)
    06:02.0 Multimedia audio controller: Creative Labs SB X-Fi
    06:03.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev c0)
    
    The output of ifconfig -a –v is

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:1D:60:AC:E4:DB 
              inet addr:86.152.65.181  Bcast:86.152.65.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:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
              Interrupt:19
    
    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:29 errors:0 dropped:0 overruns:0 frame:0
              TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:1569 (1.5 KiB)  TX bytes:1569 (1.5 KiB)
    
    And the output of ls -l /etc/rc.d/rc.inet* is

    -rwxr-xr-x 1 root root 9237 2007-07-01 03:04 /etc/rc.d/rc.inet1*
    -rw-r--r-- 1 root root 3577 2008-02-12 12:41 /etc/rc.d/rc.inet1.conf
    -rwxr-xr-x 1 root root 4477 2006-09-21 03:44 /etc/rc.d/rc.inet2*
    -rwxr-xr-x 1 root root 497 2003-09-12 04:27 /etc/rc.d/rc.inetd*



    I’ve tried

    ping -c 4 localhost

    and I get

    PING localhost (127.0.0.1) 56(84) bytes of data.
    64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.018 ms
    64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.012 ms
    64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.012 ms
    64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.011 ms

    --- localhost ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3003ms
    rtt min/avg/max/mdev = 0.011/0.013/0.018/0.003 ms


    and when
    Code:
    
    ping -c 4 www.google.com
    
    doing that I get

    it says that there is no connection. I have also tried pinging google’s IP but that says it doesn’t work so I’m assuming it’s not something up with the nameserver.

    I’ve also tried
    Code:

    ping -c 4 -I eth0 www.google.com

    and

    Code:
    /etc/rc.d/rc.inetd restart
    /etc/rc.d/rc.inet1 restart
    
    To no effect.

    Thanks again very much,

    Matt. I
     
  4. jas

    jas Notebook Evangelist

    Reputations:
    697
    Messages:
    622
    Likes Received:
    5
    Trophy Points:
    31
    I think that you have a problem between the device that connects you to the internet, and your computer. I'm going to assume some things, so if I'm wrong, please feel free to correct. I'm guessing that you have some kind of router that connects your location to the internet. You mentioned in your first post that the router/gateway is called gateway.2wire.net and its IP address is 192.168.1.254. You also post that your IP address is 192.168.1.74, but by your ifconfig output you can clearly see that it isn't.

    The problem is that this is a class A non-private IP address, (which is typically the kind of address you see "out on the internet"). The 192 range of class C IP addresses, are private IP addresses, that are typically used behind a router and translated into a public IP address that your ISP provides you with. Since each IP address usually costs money, many find it economical to have multiple devices, each with their own private IP address, behind a router, which then does Network Address Translation between the multiple private internal IP addresses and make them all use a single external public IP address. You don't have that configured correctly, because if you did, and you have the router device I think you do, then the router would "serve" your computer a private IP address in the same range as the router, (192.xxx), and your computer could communicate to the internet through the router. So one thing you can do to test this situation is simply issue the following command;
    Code:
    ifconfig eth0 192.168.1.74
    and then make sure it's configured correctly by doing another ifconfig -a and seeing if the inet addr: is now 192.168.1.74. If it is, see if you can access an internet site. If you can, then your problem is that you aren't having your IP address set correctly under Linux on your computer. You can fix this by making sure that you have a DHCP client configured to get an IP address from your router, which I will again assume has a DHCP server function running. If your router doesn't have a DHCP server function running, then you may need to see if either there is a way of enabling this on the router, or you may just want to permanently configure that network port (eth0) with that IP address, and not use DHCP services for obtaining an IP address.

    Good Luck..
     
  5. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    You are most likely showing an IP address allocated to you by your ISP in the ifconfig -a -v output - it is probably best from a security point of view not to disclose your IP address in a public forum. replace most of the address with Xs.

    The gateway address that you are trying to set with route isn't on the same LAN (address wise) as can be reached from eth0.

    Could you describe your LAN connections, routers, ADSL or cable, etc?
     
  6. mattireland

    mattireland It used to be the iLand..

    Reputations:
    261
    Messages:
    1,162
    Likes Received:
    0
    Trophy Points:
    55
    Thanks very much for the replies guys!

    I tried ifconfig eth0 192.168.1.74 and it did change my IP but I cannot access a web page for some reason? I've posted the output of ifconfig -a following having done the previous below. Also now instead of the prompt saying root@MATT-DESKTOP-SLACKWARE it says root@gateway. Is this relevant? Sorry for being a noob.

    and then the output of ifconfig -a is:

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:1D:60:AC:E4:DB  
              inet addr:192.168.1.74  Bcast:192.168.1.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:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
              Interrupt:19 
    
    eth1      Link encap:Ethernet  HWaddr 00:1D:60:AC:EF:FB  
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
              Interrupt:16 
    
    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:20 errors:0 dropped:0 overruns:0 frame:0
              TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:1380 (1.3 KiB)  TX bytes:1380 (1.3 KiB)
    
    Thanks very, very much for your help guys!

    Matt. I

    EDIT: I was just looking at the BCAST: from what I have found from Windows, the IP of my router is 192.168.1.254 NOT 192.168.1.255 - could this be relevant? Thanks again! Matt. I
     
  7. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    I vaguely recall that Slackware has a network setup utility, but I don't remember what it is called. Maybe try 'man -k setup | grep net' to search for the utility?

    Linux, unlike other Unix operating systems, does not setup a default route when you bring up an Ethernet interface with ifconfig. So you need to add a default route that basically says if the address is not on the local LAN send the IP data packet out of a particular Ethernet interface to a gateway on the local LAN.

    WRT your prompt - at a guess, you probably mis-configured you network at install time??, and therefore you probably have incorrect entries in your /etc/hosts file.

    There used to be a good Slackware administration book - has that been kept up to date with Slackware releases?
     
  8. mattireland

    mattireland It used to be the iLand..

    Reputations:
    261
    Messages:
    1,162
    Likes Received:
    0
    Trophy Points:
    55
    Hi,

    Thanks for the reply. I tried googling the setup utility to no look but I'll give that code a go just to see.... thanks.

    Being a noob, I probably mis-configured it. Does that mean a reinstall? Is this the book? http://www.slackbook.org/html/book.html

    Thanks very much,

    Matt. I
     
  9. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    Not sure if it is the same book, but it wouldn't hurt to read the Network chapter. I'm going to skim through it - ready in case you have any more questions :)

    That chapter mentions 'netconfig' so searching for man pages with the word setup pmay not turn up anything useful.
     
  10. mattireland

    mattireland It used to be the iLand..

    Reputations:
    261
    Messages:
    1,162
    Likes Received:
    0
    Trophy Points:
    55
    Yes, I've tried the netconfig program and it isn't very helpful for some reason. Thanks for going to such time and effort.

    I enter all the (hopefully) correct settings into netconfig and it doesn't seem to do anything lol.
     
  11. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    When you setup Microsoft Windows did you use DHCP or Static IP?

    Are using DHCP or Static IP?
     
  12. mattireland

    mattireland It used to be the iLand..

    Reputations:
    261
    Messages:
    1,162
    Likes Received:
    0
    Trophy Points:
    55
    I think I'm using a static IP because my IP is always the same whenever I go on the internet.

    Whether this is becuase:
    Server: Hello
    Client: May I connect to the internet. Last time we spoke I had IP XXX.XXX.X.X Can I have it again?
    Server: Yes, you can have XXX.XXX.XXX.X for x seconds.


    or
    Server: Hello
    Client: May I connect to the internet?
    Server: Yes. Your IP will be the same as usual.

    I'm not entirely sure but I'm pretty sure it's static. Sorry for not being more precise. I don't think my router has DHCP so yes, it must be static.

    Thanks,

    Matt. I
     
  13. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    Ah, sorry that in itself is not proof that you are using Static IP addresses.

    How did you setup your M$ Windows side of the computer to connect to the internet?
    You should be able to go into the M$ Windows setup and see whether you are using DHCP or Static IP addresses.

    (By the way - that Slackware book isn't as good as I remember it being!)
     
  14. mattireland

    mattireland It used to be the iLand..

    Reputations:
    261
    Messages:
    1,162
    Likes Received:
    0
    Trophy Points:
    55
    Hi,

    I've just been having a little play with my router management page and found that on the broadband connection type it said PPPoA. I have the option to change this to direct IP (DHCP or static). Shall I change it to this? Would that help?

    Thanks very much,

    Matt. I
     
  15. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    I really wouldn't. Anyway, why would you want to change the settings for the broadband (WAN) side of the router?
     
  16. mattireland

    mattireland It used to be the iLand..

    Reputations:
    261
    Messages:
    1,162
    Likes Received:
    0
    Trophy Points:
    55
    Thanks for all the help!

    I fixed the problem by directly editing the network config files and inputting my IP, router, netmask, nameserver in manually.

    Thanks again!

    Matt. I
     
  17. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    I am impressed with your tenacity(?) to fix it, and I think you probably solved that one by yourself.