?????.??????????
??????????????Linux·????????????????A????????????????????192.168.1.0/24??10.0.0.0/8??172.16.0.0/16.
????A?????????????????????????????????????????

???????裺
????eth0??172.16.0.0??????
????eth1??10.0.0.0??????
????eth2??192.168.1.0??????
??????.????????????
????2.1????eth0
??????????????eth0.????????????????172.16.1.1??????????????
????# ifconfig eth0 172.16.1.1 netmask 255.255.0.0
??????????????????????????????????????/etc/sysconfig/network-scripts/ifcfg-eth0?????????????????

 

DEVICE = eth0
ONBOOT = yes
BROADCAST = 172.16.255.255
NETWORK = 172.16.0.0
NETMASK = 255.255.0.0
IPADDR = 172.16.1.1

 

??????????????·???
????# route add -net 172.16.0.0 netmask 255.255.0.0
????????????????????????·???
????# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface
????172.16.0.0 * 255.255.0.0 U 0 0 0 eth0
????2.2????eth1
????????????????eth1??eth1??10.0.0.0???????????????????????10.254.254.254?????ifconfig??????????ò?????
????# ifconfig eth1 10.254.254.254 netmask 255.0.0.0
?????????/etc/sysconfig/network-scripts???μ?ifcfg-eth1????????????£?

 

DEVICE = eth1
ONBOOT = yes
BROADCAST = 10.255.255.255
NETWORK = 10.0.0.0
NETMASK = 255.0.0.0
IPADDR = 10.254.254.254

????????????????·???
????# route add -net 10.0.0.0 netmask 255.0.0.0
?????????е????·????

 

# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.0.0 * 255.255.0.0 U 0 0 0 eth0
10.0.0.0 * 255.0.0.0 U 0 0 0 eth1