Debian系統(tǒng)網(wǎng)卡配置多ip
時間:2024/5/24 11:30:27 來源:米安網(wǎng)絡(luò) 作者:云主機配置專家 點擊:291次
1.進入網(wǎng)卡配置文件輸入“vi /etc/network/interfaces”。
2.修改網(wǎng)卡配置文件如下圖增加并修改對應(yīng)的紅色框框部分,ip有幾個就依次增加下去。
auto eth0:0 iface eth0:0 inet static address x.x.x.x netmask x.x.x.x gateway x.x.x.x auto eth0:1 iface eth0:1 inet static address x.x.x.x netmask x.x.x.x gateway x.x.x.x
3.增加好后按鍵盤的“Esc”鍵然后輸入“wq”進行保存。
4.然后輸入“service networking reload”跟“service networking restart”重啟機器網(wǎng)卡。
5.重啟后輸入“ip a”就可以查看機器網(wǎng)卡信息。
版權(quán)保護: 本文「Debian系統(tǒng)網(wǎng)卡配置多ip」由 云主機配置專家 原創(chuàng),轉(zhuǎn)載請保留鏈接: http://www.iqcg.cn/docs/system/1012.html