xinglp schrieb:
> I use "route add -net 192.168.3.0/24 gw 192.168.0.3" to add it. After
> reboot, it lost.
> Add it to "/etc/rc.d/xxxxx" or some where else?

Create a file in /etc/sysconfig/network-devices/ifconfig.XXX where XXX
is your network interface
The name of this file should be alphabetically after the network startup
file (in LFS ipv4), so let name it "route" with the following contents

ONBOOT=yes

SERVICE=ipv4-static-route

TYPE=network

GATEWAY=192.168.3.0

IP=192.168.0.3

PREFIX=24

This should add your route to the network interface.

Regards
Benjamin



-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to