最簡(jiǎn)單的方法是使用命令行:
ifconfig add eth0 192.168.0.2 netmask 255.255.255.0
ifconfig add eth0:1 192.168.0.2 netmask 255.255.255.0
ifconfig add eth0:2 192.168.0.2 netmask 255.255.255.0
其中eth0:1和eth0:2是添加上的兩個(gè)IP.
在添加后必需加入啟動(dòng)項(xiàng),否則重啟后,虛擬添加的IP將會(huì)失去.
將以上命令加入到:
/etc/rc.d/rc.local
即可.
新聞熱點(diǎn)
疑難解答
圖片精選