1 查看网卡 ifconfig
2 修改DNS sudo gedit /etc/resolv.conf
文件内容如下:
# Generated by NetworkManager
domain priwate
search priwate有异议或是private
nameserver 202.118.176.2
nameserver 202.97.224.69
nameserver 202.97.224.68
3 修改IP及Mac地址 sudo gedit /etc/network/interfaces
文件内容如下:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
hwaddress ether 5C:AC:4C:BF:0B:4A
address 202.118.181.131
netmask 255.255.255.0
gateway 202.118.181.1