我們可以在系統(tǒng)啟動之后,通過ifconfig命令配置網(wǎng)絡(luò)參數(shù)。
root@ELF1:~# ifconfig eth0 192.168.0.232
root@ELF1:~# ifconfig eth0 netmask 255.255.255.0 root@ELF1:~# route add default gw 192.168.0.1 root@ELF1:~# ifconfig eth0 hw ether aa:bb:cc:dd:ee:ff |
也可以通過修改/etc/network/interfaces文件,永久配置網(wǎng)絡(luò)參數(shù),例如配置eth0靜態(tài)IP參數(shù):
閱讀全文