文件系统之配置网络参数
我们可以在系统启动之后,通过ifconfig命令配置网络参数。
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文件,永久配置网络参数,例如配置eth0静态IP参数: