[K12OSN] eth alias help
Steve Wright
paua at quicksilver.net.nz
Thu Feb 26 17:09:13 UTC 2004
On Fri, 2004-02-27 at 09:37, Caleb Wagnon wrote:
> Steve Wright said:
>
> > off the top of my head ;
> >
> > You will need an additional startup script. iproute2 is not implemented
> > well in userspace just yet - the tools are there, but not the supporting
> > scripting. Add a script in /etc/init.d and ln -s to it from somewhere
> > as early as possible, but after your main networking has started.
> >
> > Take care that swapping runlevels back and forth will not load and
> > re-load this script repeatedly, or bad things will happen.. baaad
> > things, man.
> >
> > /etc/init.d/iproute2
> >
> > #!/bin/bash
> > # chkconfig:
> > # description: load our iproute2 stuff
> >
> > ip address add 192.168.n.254/24 dev eth0
> >
> > # done
> >
> >
> > I expect at this point you may simply hand-run /etc/init.d/iproute2
> > and restart your services and you should on-the-air! ;-)
>
> Ok. So if this doesn't work can I get my money back? =)
ahhh, we can do a deal, yes. ;;-)
just test it - do the `ip address add ...` command.. results in 10
seconds.. if happy - script it.. see.. easy. 8-)
/steve
More information about the K12OSN
mailing list