|
|

楼主 |
发表于 2008-2-28 13:51:13
|
显示全部楼层
Post by yuzheng;1820833
zy@debian:~$ cat /etc/network/interfaces
#This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp <==局域网共享的设置
#iface eth0 inet static
# address 10.2.6.6
# netmask 255.255.255.0
# gateway 10.2.6.254
#iface eth0 inet static
# address 219.237.206.110
# netmask 255.255.255.224
# gateway 219.237.206.97
#iface eth0 inet static
# address 10.2.17.202
# netmask 255.255.255.0
# gateway 10.2.17.254
#iface eth0 inet static
# address 10.2.7.206
# netmask 255.255.255.0
# gateway 10.2.7.254
#iface eth0 inet static
# address 10.2.100.202
# netmask 255.255.255.0
# gateway 10.2.100.254
呵呵,谢谢呀
昨天捣腾了一下,发现之前我已经配置好了,是网线的问题导致没法上网,
我贴下我自己的吧:
auto lo
iface lo inet loopback
mapping eth0
script grep
map eth0
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.0.22
netmask 255.255.255.0
gateway 192.168.0.1
大家看上头这几行如果有无用多余的,还请指正呀 |
|