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

Re: Network problem



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.

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

Greetings,

-- 
Camaleón


Reply to: