新手学堂 Linux下设置IP

字体大小: 中小 标准 ->行高大小: 标准

netstat -atn|grep "ES" 查看IP

局域网共享上网设置:/etc/network/interfaces,并将文件中的eth0修改成:

auto eth0
iface eth0 inet static
address 192.168.1.14
gateway 192.168.1.1
netmask 255.255.255.0

/etc/sysconfig/network-scripts/ifcfs-eth0

DEVICE=eth0
BOOTPROTO=none
onBOOT=yes
IPADDR=192.168.1.14
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/52513.html