实现主机之间跨路由跨网段通讯
作者:互联网
实现主机之间跨路由跨网段通讯。写下配置步骤
一,IP地址配置
A
[root@localhost network-scripts]# cat ifcfg-eth0 NAME=eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=172.16.0.10 PREFIX=24
R1
[root@localhost network-scripts]# cat ifcfg-eth0 NAME=eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=172.16.0.254 PREFIX=24 [root@localhost network-scripts]# cat ifcfg-eth1 NAME=eth1 DEVICE=eth1 ONBOOT=yes BOOTPROTO=static IPADDR=10.0.0.252 PREFIX=24
R2
[root@localhost network-scripts]# cat ifcfg-eth1 NAME=eth1 DEVICE=eth1 ONBOOT=yes BOOTPROTO=static IPADDR=10.0.0.253 PREFIX=24 [root@localhost network-scripts]# cat ifcfg-eth0 NAME=eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.0.254 PREFIX=24
B
[root@localhost network-scripts]# cat ifcfg-eth0 NAME=eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.0.10 PREFIX=24
二,路由配置
标签:24,网段,主机,PREFIX,static,eth1,yes,路由,eth0 来源: https://www.cnblogs.com/gxc888/p/16220736.html