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

Netmask reset at boot



Hi *,
it's some time now (I can't say how long) that I have a "little" problem on my
Debian (it's an unstable box). What happens is that at every boot the netmask
of my eth0 is reset, so I can't connect.

This is /etc/network/interfaces:

---8<---
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        gateway 192.168.1.1
        metric  1
        address 192.168.1.36
        netmask 255.255.255.0
        broadcast 192.168.1.255
---8<---

Here's what appears when the computer has just booted:

# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:DE:AD:DE:AD:00  
          inet addr:192.168.1.36  Bcast:192.168.1.255  Mask:255.255.255.255
          inet6 addr: fe80::211:d8ff:fec8:e1eb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          ...
#
          
I can connect only if I set the correct netmask and I fix the routing
table:

# ifconfig eth0 netmask 255.255.255.0
# route add default gw 192.168.1.1

I've already grep'ed for ifconfig into /etc/, also looked for eth0
into /etc/udev/, bot I haven't noticed anything strange.

Any idea about this?

Kindly,
David (a newcomer to debian-user :) )

-- 
 . ''`.  Debian maintainer | http://snipurl.com/qa_page/
 : :'  :  Linuxer #334216  |  http://www.hanskalabs.net/
 `. `'`    GPG: 1392B174   | http://www.debianizzati.org/
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: PGP signature


Reply to: