ebenze at hotmail.com
Sun Mar 24 08:57:57 PST 2002
Am I missing something? I've already gone thru the bootscripts
(rc.d/init.d/network), and basically, it looks for a config file where
ONBOOT is set to yes, and if so, then extracts the IP address, and Netmask
from it. But if you have multiple static routes that must be set, then I
would need to create a separate config file for each route. But then the
problem is that init.d/network calls ifup using the extension of
ifconfig.eth0 as its argument. So I can't create multiple ifconfig.eth0
ie: if I want to add let's say
route add -net 192.168.1.15 netmask 255.255.255.255 eth1
route add -net 126.96.36.199 netmask 255.255.0.0 eth1
route add -net 192.168.5.0 netmask 255.255.255.0 eth2
route add -net 192.168.0.0 netmask 255.255.0.0 eth0
There don't seem to be any scripts that exist in LFS to automate this for
you. I don't have a problem writing my own script, I just think it is an
oversight.... Am I wrong?
"Don Smith" <midio at att.net> wrote in message
news:a7ku9s$h32$1 at shadowfax.linuxfromscratch.org...
> "Eric" <ebenze at hotmail.com> wrote in message
> news:a7ktns$g9b$1 at shadowfax.linuxfromscratch.org...
> > I'm worndering if there is something pre-existant in LFS 3.2 to add
> > routes automatically to the system through the config files. I've
> > looking at the ifup scripts and the ifconfig.XXX setup files, but
> > really find anything specific there. In my older Redhat system, there
> is a
> > static.routes file which is read by ifup-routes, but there doesn't
> > seem to be anything in LFS to do this.
> > Is this an oversight? Or am I missing the obvious again?
> > Thanks!
> > Eric
> It is in the bootscripts, specifically rc.d/init.d/network
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message
More information about the lfs-support