Your message dated Sat, 1 Jul 2006 22:06:51 -0300
with message-id <[EMAIL PROTECTED]>
and subject line ifupdown: ifup fails to set up routes leaving the server only 
reachable via a console server
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: ifupdown
Version: 0.6.7
Severity: critical
Justification: Leaves the server without any routes, can only be accessed via 


Excerpt from the boot log

Will now mount local filesystems.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
/dev/hda1 on /boot type ext3 (rw)
Done mounting local filesystems.
Will now activate swapfile swap.
Done activating swapfile swap.
Cleaning /tmp...done.
Cleaning /var/run...done.
Cleaning /var/lock...done.
Setting up resolvconf...done.
Setting up networking...done.
Setting hostname to 'skywalker'...done.
* /etc/network/options is deprecated.
Setting up IP spoofing protection...done (rp_filter).
Configuring network interfaces...SIOCADDRT: Network is unreachable
Failed to bring up eth0.
done.
Loading the saved-state of the serial devices... 
/dev/ttyS0 at 0x03f8 (irq = 4) is a 16550A
/dev/ttyS1 at 0x02f8 (irq = 3) is a 16550A
Running ntpdate to synchronize clockError : Temporary failure in name resolution
Error : Temporary failure in name resolution
Error : Temporary failure in name resolution
Error : Temporary failure in name resolution
.
Initializing random number generator...done.

Situation after booting:

eth0      Link encap:Ethernet  HWaddr 00:30:48:53:33:62  
          inet addr:81.169.168.202  Bcast:81.169.168.202  Mask:255.255.255.255
          inet6 addr: fe80::230:48ff:fe53:3362/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6927 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1051931 (1.0 MiB)  TX bytes:468 (468.0 b)
          Interrupt:11 


netstat -r
<nothing>


Adding the routes manually works just fine:

ip route add 81.169.168.1/32 dev eth0
ip route add default via 81.169.168.1 dev eth0
ip route add 127.0.0.0/8 dev lo

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
81.169.168.1    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         81.169.168.1    0.0.0.0         UG    0      0        0 eth0



------neither this--------------------------------------------------
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
        address 81.169.168.202
        netmask 255.255.255.255
        network 81.169.168.202
        broadcast 81.169.168.202
        gateway 81.169.168.1

-----------------nor this--------------------------------------------
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet dhcp 
-----------works---------------------------------------------------
both show the same effect.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages ifupdown depends on:
ii  debconf [debconf-2.0]         1.5.2      Debian configuration management sy
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  net-tools                     1.60-17    The NET-3 networking toolkit

ifupdown recommends no packages.

-- debconf information:
  ifupdown/convert-interfaces: true


--- End Message ---
--- Begin Message ---
close 375192
thanks

Hi,

it seems to me that the problem you have is perfectly normal. If you
setup a interface with netmask /32 (255.255.255.255), there are NO
reachable hosts in your LAN, so when ifupdown tries to add the route,
it falis.

Your network and broadcast addresses are wrong too! Please, read interfaces(5)!
ipconfig can add your default gateway, because you're adding a static
route  to it beforehand. I would guess that it could be a /24 network,
but you should check with your local admin.

If it were a /24 network, this is how you should configure it:

iface eth0 inet static
        address 81.169.168.202
        netmask 255.255.255.0
        network 81.169.168.0
        broadcast 81.169.168.255
        gateway 81.169.168.1

As it is not a bug in the software, I'm closing this bug now. Please
reopen if neccesary.

--
Martín Ferrari

--- End Message ---

Reply via email to