CentOS系统如何绑定多IP

Gateway 98.126.16.129
Broadcast Address 98.126.16.135
Usable Address 98.126.16.130 – 98.126.16.134
Subnet Mask 255.255.255.248

CentOS的话,单网卡绑定多IP,其实比较简单了。

vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0

以上面提供的IP信息为例,里面写上内容:

IPADDR_START=98.126.16.131
IPADDR_END=98.126.16.134
CLONENUM_START=0
GATEWAY=98.126.16.129
NETMASK=255.255.255.248

保存好,然后重启网络服务service network restart就可以了。

[root@AT18-438 network-scripts]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]

发表评论

邮箱地址不会被公开。 必填项已用*标注