@nrailgun
2016-05-19T13:29:17.000000Z
字数 371
阅读 1401
强力软件
(1)配置 IP 地址与子网掩码:
sudo ifconfig eth0 '222.200.185.12' netmask '255.255.255.0'
(2)设置网关:
sudo route add default gw 222.200.185.254
(3)设置 DNS:
# /etc/resolv.conf
nameserver 10.8.8.8
(4)新建用户和删除用户:
adduser $YOURNAME
userdel $YOURNAME
(5)在配置文件永久设置:
# /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx