# cat rc
hostname Tustright
/bin/expand /etc/ramfs.img /dev/ram0
mount -t proc proc /proc
mount -t ext2 /dev/ram0 /var
mkdir /var/config
mkdir /var/tmp
mkdir /var/log
mkdir /var/run
mkdir /var/lock
mkdir /var/empty
cat /etc/motd
ifconfig eth0 192.168.102.1
ifconfig eth1 192.168.103.1
ifconfig lo 127.0.0.1
route add -net 192.168.104.0 netmask 255.255.255.0 gw 192.168.102.88
route add default gw 192.168.102.3 netmask 255.255.255.0
SIOCADDRT: No such device错误是由于没指定网卡或网关IP的原因。
例子:route add 192.168.112.1 eth0
route add -net 192.168.104.0 netmask 255.255.255.0 gw 192.168.102.88
route add default gw 192.168.102.3 netmask 255.255.255.0