[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Network problem



On 07/05/11 16:39, Camaleón wrote:
On Sat, 07 May 2011 16:06:30 +0100, AG wrote:

On 07/05/11 15:49, Camaleón wrote:
(...)

Copy/paste what does your "/etc/network/interfaces" look like
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
#iface eth0 inet dhcp
      address 192.168.1.40    # I have manually specified this
      netmask 255.255.255.0
      network 192.168.1.0
      broadcast 192.168.1.255
      gateway 192.168.1.254
      # dns-* options are implemented by the resolvconf package, if
      installed dns-nameservers 158.43.240.4
      dns-search org
The above looks okay.

and also
post the results of "/sbin/ifconfig",
$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:90:47:05:a3:07
            inet addr:192.168.1.64  Bcast:192.168.1.255
            Mask:255.255.255.0 inet6 addr: fe80::290:47ff:fe05:a307/64
            Scope:Link UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:1936 errors:0 dropped:0 overruns:0 frame:0 TX
            packets:1864 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:1018372 (994.5 KiB)  TX bytes:237018 (231.4 KiB)
            Interrupt:18 Base address:0xec00
(...)

Here there's a problem. Your IP address does not match with the one you
defined in the "interfaces" file.

Let's see... on a running system, once you edit the "/etc/network/
interfaces" file you also have to:

1/ Restart the network service: /etc/init.d/networking restart
2/ Up the network interface: ifup eth0
3/ Check that all is fine: /sbin/ifconfig

(this is not needed after you restart the machine)

Try it and send the results. The rest of the files look normal so let's
focus on this.

Here are the results of those three commands:

$ sudo /etc/init.d/networking restart
sudo: unable to resolve host valhalla
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...Stopping the Firestarter firewall....
Starting the Firestarter firewall....
done.

$ sudo ifup eth0
sudo: unable to resolve host valhalla
Stopping the Firestarter firewall....
Starting the Firestarter firewall....

$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:90:47:05:a3:07
          inet addr:192.168.1.40  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::290:47ff:fe05:a307/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10700 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10113 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8424815 (8.0 MiB)  TX bytes:1223781 (1.1 MiB)
          Interrupt:18 Base address:0xec00

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:983 errors:0 dropped:0 overruns:0 frame:0
          TX packets:983 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:79512 (77.6 KiB)  TX bytes:79512 (77.6 KiB)


The IP address is now consistent.

Now is this likely to hold when I reboot so that I can access the Net?

Also, after running the above 3 commands, review the syslog ("grep -i
eth0 /var/log/syslog")

I did, and here is the output (I trimmed it to the last lines consistent with the current time):

May 7 16:43:13 valhalla NetworkManager[1550]: <info> (eth0): carrier now OFF (device state 1) May 7 16:43:13 valhalla dhclient: receive_packet failed on eth0: Network is down May 7 16:43:29 valhalla NetworkManager[1550]: <info> (eth0): carrier now ON (device state 1) May 7 16:43:29 valhalla kernel: [ 5878.118829] eth0: link up, 100Mbps, full-duplex, lpa 0x41E1 May 7 16:43:40 valhalla kernel: [ 5888.800028] eth0: no IPv6 routers present

Thanks (as always!)

AG


Reply to: