二、多网卡配置: cat /etc/sysconfig/network-scripts/ifcfg-eth0
& T. k8 N' N6 I9 H4 e DEVICE=eth01 W+ h9 T/ X/ U& x5 C
BOOTPROTO=static+ l9 R* }3 i& ?. _% V) k4 e
IPADDR=192.168.1.2
! _1 W( y3 ]8 Q* ?" r NETMASK=255.255.255.06 d$ N/ O/ `$ V4 Z
ONBOOT=yes& M4 h! t/ d5 t- f; }: q
cat /etc/sysconfig/network-scripts/ifcfg-eth03 B7 a+ K: T, u
DEVICE=eth17 J. f$ O# @ D i: \
BOOTPROTO=static
4 `0 s3 Q. v7 {' S- F* f& h IPADDR=222.157.4.820 t1 s! l2 a1 ]- S+ N5 B5 P
NETMASK=255.255.255.128
' F$ Q' e; o6 _, f ONBOOT=yes
' D& s& u5 b7 r$ B& i) z. s vi /etc/rc.d/rc.local6 x( U$ p4 V" g4 B: q7 z
route add -net 192.168.0.0/24 gw 192.168.0.254 dev eth0( u N/ X. t9 B, v, A
route add -net 222.157.0.0/16 gw 222.157.66.1 dev eth1 |