环境
名称 |
IP |
类型 |
客户机 |
172.50.150.10 |
CIP |
客户机 |
172.25.150.254 |
网关 |
EI |
172.50.150.254 |
|
E2 |
192.168.153.254 |
|
E2 |
192.168.200.254 |
|
DR |
192.168.153.20 |
DIP |
DR |
192.168.200.20 |
VIP |
RS1 |
192.168.153.22 |
RIP |
RS1 |
192.168.200.20 |
VIP |
RS2 |
192.168.153.25 |
RIP |
RS2 |
192.168.200.20 |
VIP |
1. 在客户端配置CIP,并将网关指向E1口
[root@Client ~]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777736
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
NAME=eno16777736
DEVICE=eno16777736
ONBOOT=yes
IPADDR=172.50.150.10
NETMASK=255.255.255.0
GATEWAY=172.50.150.254
DNS=114.114.114.114
2. 配置路由器IP
E1口:
[root@route ~]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777736
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
NAME=eno16777736
DEVICE=eno16777736
ONBOOT=yes
IPADDR=172.50.150.254
NETMASK=255.255.255.0
E2口:
[root@route ~]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777736
TYPE