由于工作需要,现在要把centos的单网卡配置双ip,解决方法:
#ifconfig eth0:1 192.168.10.100 netmask 255.255.255.0 broadcast 192.168.10.255 up
#route add -host 192.168.10.100 dev eth0:1
两句命令搞定。
转载于:https://blog.51cto.com/wjn219/1196410
由于工作需要,现在要把centos的单网卡配置双ip,解决方法:
#ifconfig eth0:1 192.168.10.100 netmask 255.255.255.0 broadcast 192.168.10.255 up
#route add -host 192.168.10.100 dev eth0:1
两句命令搞定。
转载于:https://blog.51cto.com/wjn219/1196410