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

Re: Network config problem



On Sun, 2001-12-09 at 12:50, Daniel Toffetti wrote:
> On Sunday 09 December 2001 02:53, Michael Heldebrant wrote:
> > You want:
> > auto ethWHATEVER
> > iface inet dhcp ethWHATEVER
> > instead of "static dhcp" which, I'm not even sure how it would be
> > parsed by ifup.  ifconfig should tell you if your interface iseven
> > being brought up.
> 
> My fault here, sorry, it is if fact configured that way:
> 
> iface eth1 inet dhcp
> 	hostname pump
> 
> I read 'static' form the interface eth0 and wrote things down wrong.
> 
> > Assuming it's coming up and has an ip address, check your
> 
> As far as I can tell from ifconfig's output, it's up and has the 
> correct IP, broadcast and netmask.
> 
> > /var/dhcp/dhclient.leases file for a routers entry.  If you have no
> 
> My system is now Potato 2.2r0 and this file doesn't even exist. Note 
> that I'm using pump as dhcp client, I don't know if this is relevant. 
> Querying pump for the status of the interface (pump -i eth1 --status) 
> shows that eth1 is fully configured. 
> 
> > route add default ethWHATEVER
> 
> This is a good clue !!  My old one-diskette system has a routing 
> table like this:
> 
> Destination     Gateway     Netmask            Iface
> 10.7.2.1           *        255.255.255.255    eth1
> 192.168.0.0        *        255.255.255.0      eth0
> 200.70.32.0        *        255.255.255.0      eth1
> default        10.7.2.1     0.0.0.0            eth1
> 
> The recently installed Potato system's table has:
> 
> Destination     Gateway     Netmask            Iface
> localnet           *        255.255.255.0      eth0
> 200.70.32.0        *        255.255.255.0      eth1
> 
> It's strange to me that 'pump -i eth1 --status' shows correctly the 
> gateway (10.7.2.1), nameservers, etc. So I tried to add the two missing 
> entries, and it failed.
> 
> root:> route add default gw 10.7.2.1 dev eth1
> SIOCADDRT: Network is unreachable
> 
> and:
> 
> root:> route add 10.7.2.1 netmask 255.255.255.255 dev eth1
> dboostrap_settings: Unknown host
> 
> I guess perhaps the initialization scripts also tried to set up the 
> correct routing entries and failed.
                         
Firstly, are you supposed to be sending pump as your hostname to request
to your dhcp server?  hostname pump in your eth1 stanza does exactly
that.

Have you tried route add -host 10.7.2.1 netmask 255.255.255.255 dev eth1
                         ^^^^^

then adding the default gateway?  If pump continually doesn't work I'd
consider trying dhclient.  Pump always screwed up on my multiple iface
machine.  It would never rebind for me.  Dhclient is much nicer in that
respect.

--mike



Reply to: