midio at att.net
Mon Mar 25 07:53:50 PST 2002
Sorry, I was looking at the old (LFS 3.1) bootscripts.
Yes you will have to modify init.d/network to fit your needs.
"Eric" <ebenze at hotmail.com> wrote in message
news:a7l0o6$jrl$1 at shadowfax.linuxfromscratch.org...
> 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
> from it. But if you have multiple static routes that must be set,
> would need to create a separate config file for each route. But then
> problem is that init.d/network calls ifup using the extension of
> ifconfig.eth0 as its argument. So I can't create multiple
> Any ideas?
> 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
> you. I don't have a problem writing my own script, I just think it is
> 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
> > static
> > > routes automatically to the system through the config files. I've
> > been
> > > looking at the ifup scripts and the ifconfig.XXX setup files, but
> > can't
> > > really find anything specific there. In my older Redhat system,
> > is a
> > > static.routes file which is read by ifup-routes, but there doesn't
> > really
> > > 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
> > Don
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