分类目录

Linux gateway configuration (Fedora 10)

Transfered from my journal.

http://www.laxjyj.com/www/web/4718544.html

http://bbs.linuxpk.com/thread-4016-2-1.html

/etc/sysconfig/network ->
/etc/sysconfig/networking/devices/ifcfg-eth0 ->
/etc/sysconfig/networking/devices/ifcfg-eth1 ->
/etc/sysconfig/network-scripts/ifcfg-eth0 ->
/etc/sysconfig/network-scripts/ifcfg-eth1

cat network
NETWORKING=yes
HOSTNAME=frontend
GATEWAY=10.4.3.1

cat /etc/rc.d/rc.local
route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.100.254 eth1
route add default gw 10.4.3.1 eth0

#>ip r
#>route -n

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>