CentOS7越来越流行了,用CentOS7的朋友越来越多,可能有的朋友还不会在centos7系统里面,单网卡绑定多IP,今天老易以KT服务器,默认5IP的机器,来绑定一下多IP。
[root@localhost ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 38:60:77:bd:5c:1a brd ff:ff:ff:ff:ff:ff
inet 98.126.16.130/29 brd 98.126.16.135 scope global enp1s0
valid_lft forever preferred_lft forever
inet6 fe80::3a60:77ff:febd:5c1a/64 scope link
valid_lft forever preferred_lft forever
上面查看了下,网卡是ifcfg-enp1s0,这个可以进cd /etc/sysconfig/network-scripts里面查看机器的网卡情况。 继续阅读CentOS7单网卡绑定多IP