|
楼主 |
发表于 2009-6-17 17:04:44
|
显示全部楼层
具体配置
ifcfg-eth0.on.Exercise
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.10.255
HWADDR=00:0C:29:A3:7E:6B
IPADDR=192.168.10.99
NETMASK=255.255.255.0
NETWORK=192.168.10.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
########################################################
ifcfg-eth1.on.Exercise
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth1
BOOTPROTO=none
BROADCAST=192.168.25.255
HWADDR=00:0C:29:A3:7E:75
IPADDR=192.168.25.99
NETMASK=255.255.255.0
NETWORK=192.168.25.0
ONBOOT=yes
GATEWAY=192.168.25.2
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
#########################################################
ifcfg-eth2.on.Exercise
DEVICE=eth2
BOOTPROTO=none
BROADCAST=192.168.1.255
HWADDR=00:0C:29:A3:7E:7F
IPADDR=192.168.1.99
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
################
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.25.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
0.0.0.0 192.168.25.2 0.0.0.0 UG 0 0 0 eth1 |
|