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

Re: eth0 & ppp0 revisited



John Hasler wrote:
> 
> David Wright writes:
> > Not being up-to-date with the new network scripts, I would suggest you up
> > your eth0 before poffing your ppp.
> 
> > Perhaps your poff scripts would reestablish the routes automatically but
> > for the fact that eth0 is still down.
> 
> poff just kills pppd, which should put everything back as it was when it
> was started by pon.  What happens if you 'ifdown eth0' and then 'ifup eth0'
> without running ppp in between?
> --
zork:/sbin# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.1.0     *               255.255.255.0   U     0      0        0
eth1
localnet        *               255.255.252.0   U     0      0        0
eth0
default         bb1-fe0-0-0.pot 0.0.0.0         UG    0      0        0
eth0

zork:/sbin# ifdown eth0
zork:/sbin# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.1.0     *               255.255.255.0   U     0      0        0
eth1

zork:/sbin# ifup eth0
zork:/sbin# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.1.0     *               255.255.255.0   U     0      0        0
eth1
localnet        *               255.255.252.0   U     0      0        0
eth0
default         bb1-fe0-0-0.pot 0.0.0.0         UG    0      0        0
eth0


So, no change.

I did what David  & Chris hinted at.  I added "ifdown eth0" to the
beginning of the pon script & added "ifup eth0" to the beginning of the
poff script which works, but only as root.  As user I get:

sh: ifconfig: command not found 

 when running pon/poff.  This is ok with me since losing eth0 connection
to the internet is a rare (knock on woody) occurance.

So, it does look like eth0 has to be up and running before stopping ppp.

John B

ps:  I'm using potato


Reply to: