一、配置场景:由于机器老化,考虑到机器的可靠性,决定更换服务器,由于老服务器是3网的(电信、联通、移动),因此在新机器上需要配置3网卡3网关
二、配置步骤
1、在三块网卡上配置IP地址
说明:这里使用192.168.1.x 192.168.2.x 192.168.3.x分别代替3个公网[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
#HWADDR=6C:92:BF:99:DF
BOOTPROTO=none
TYPE=Ethernet
ONBOOT=yes
IPADDR=192.168.1.2
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ARPCHECK=no
[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
#HWADDR=6C:93:BF:99:DF
BOOTPROTO=none
TYPE=Ethernet
ONBOOT=yes
IPADDR=192.168.2.2
NETMASK=255.255.255.0
GATEWAY=192.168.2.1
ARPCHECK=no
[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth3
DEVICE=eth3
#HWADDR=6C:82:BF:99:EF
BOOTPROTO=none
TYPE=Ethernet
ONBOOT=yes
IPADDR=192.168.3.2
NETMASK=255.255.255.0
GATEWAY=192.168.3.1
ARPCHECK=no