红联Linux门户
Linux帮助

debian中设置网络接口

发布时间:2007-03-15 01:11:21来源:红联作者:williamEXE
打开/etc/network/interfaces,输入auto eth0

1、dhcp
输入:
iface eth0 inet dhcp

2、static
输入:
iface eth0 inet static
address 192.168.0.42
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1

3、adsl
输入:
iface eth0
开机后用pon或pppoe-start连接网络,用poff或pppoe-stop断开网络
文章评论

共有 0 条评论