二、多网卡配置: cat /etc/sysconfig/network-scripts/ifcfg-eth0" A7 k: S& I- s. W! s4 z% n% C
DEVICE=eth0, B; X" C# x- x, ^8 L
BOOTPROTO=static3 n3 Q/ x& Z; \+ J( V3 R2 x4 I
IPADDR=192.168.1.2
" |6 h8 L! l, l4 \" Z NETMASK=255.255.255.04 b/ x( z0 J9 C) D) }
ONBOOT=yes$ r2 p- g/ P0 Z/ ?1 B* J! r
cat /etc/sysconfig/network-scripts/ifcfg-eth0, h( M' b3 m/ f+ n; k' }& w
DEVICE=eth1
f* f/ Y+ R. u" p3 O BOOTPROTO=static- N, M/ V$ Y- l6 F0 L" h
IPADDR=222.157.4.82
4 w: f3 Y" N* x9 V2 h4 @ Y NETMASK=255.255.255.128
) a, g' [6 p7 ~2 @ ONBOOT=yes
( O2 A) L. _3 N: t vi /etc/rc.d/rc.local
2 m3 |$ \2 d9 M% G& r' k: U6 x route add -net 192.168.0.0/24 gw 192.168.0.254 dev eth0
( I3 \( h2 h8 N route add -net 222.157.0.0/16 gw 222.157.66.1 dev eth1 |