$ sudo vim /etc/network/interfaces
如果是 dhcp
auto eth0
iface eth0 inet dhcp
如果是指定 ip, 且走 1G
auto eth0$ sudo apt-get purge network-manager
iface eth0 inet static
address 192.168.0.7
netmask 255.255.255.0
gateway 192.168.0.254
pre-up /sbin/ethtool -s eth0 speed 1000 duplex full
dns-nameservers 192.168.0.45 192.168.8.10 8.8.8.8
dns-search foo.org bar.com
$ sudo ifup eth0
Reference
沒有留言:
張貼留言