Re: ipconfig eth0:1 down doesnt do what i think it would
well basically the eth0 ip is 10.0.0.1. the static ip is normally on ppp0
when connected to the isp. however i want the static ip available to the
local network even when the connection to the isp and hence ppp0 goes
down. this is already working find with ip-down or rc.local starting up
eth0:1 with the static ip.
/sbin/ifconfig -i eth0:1 184.108.40.206
/sbin/route add 220.127.116.11 dev eth0:1
however if i attempt to remove eth0:1 at any point in time later eth0 is
also removed. whether or not ppp0 is up or down.
should ifconfig eth0:1 down only remove eth0:1 and not eth0? if so i guess
the problem is most likely somehting to do with my kernel?
if there is another way round this id like to hear it. basically i want
the ip that is assigned by my isp to be available to my local network
wether or not my connection to the isp is up. this "works" as it is but i
want to only have the static ip sitting on the ppp0 interface and not also
available directly on the eth0 interface when the isp connection is up.
the forwarding to ppp0 works fine if eth0:1 is never added, but if it is
added when ppp0 goes down, i can never renmove it without also removing
eth0 which is my problem.
thanks for any help :)
all that busts well ends loosely.
On Tue, 24 Aug 1999, Jens B. Jorgensen wrote:
> It sounds like the real solution is to not add your static IP to eth0. Does it really
> need to be? What network is on eth0? What's the regular IP on eth0? What IP are you
> trying to add? I'm guessing there's a better way to accomplish whatever it is you're
> trying to accomplish by settings this static IP address to eth0:1.
> meridian wrote:
> > Hi,
> > i have added eth0:1 with the ip of my static ip assigned by my isp, which
> > is only supposed to be up on the local network when my connection to my
> > isp goes down. however when my connection comes back up i get ip-up to run
> > ifconfig eth0:1 down
> > to remove it except this also removes eth0 which is obviously a bit of a
> > problem. I would prefer to be forcing any localnetwork connects through
> > forwarding rules rather than leave the ip up on the local network
> > interface as eth0:1.
> > what is the command to just remove eth0:1 without removing eth0
> > btw if i try ipconfig eth0 up after eth0:1 down removes it, then eth0:1
> > comes back.
> > i am just guessing (about to try) tacking eth0 down and adding eth0 again
> > rather than bringing it up.
> > whats the correct command to remove eth0:1 without removing eth0
> > thanks
> > meridian
> > me@NOSPAM.tha.net
> > all that busts well ends loosely.
> > --
> > Unsubscribe? mail -s unsubscribe firstname.lastname@example.org < /dev/null
> Jens B. Jorgensen