2.在学校宿舍,通过交换机上网,应该是局域网用户.
3.我的网络资料(XP下查得)见附件.
4.我按照论坛上的静态IP配置方法,修改了我的资料,如下
代码: 全选
auto lo
iface lo inet loopback
DHCP
# The primary network interface - use DHCP to find our address
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 172.21.161.208
netmask 255.255.255.0
gateway 172.21.161.1
代码: 全选
nameserver 172.23.1.8
nameserver 61.147.37.1
然后按照教程:sudo ifdown eth0 ,sudp ifup etho 重新启动后仍然不能上网。
ifconfig信息如下:
代码: 全选
haiyang416@haiyang416-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:11:19:ab:81
inet6 addr: fe80::21b:11ff:fe19:ab81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:685 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:78750 (76.9 KB) TX bytes:468 (468.0 B)
Interrupt:18 Base address:0x4c00
代码: 全选
haiyang416@haiyang416-desktop:~$ sudo ifdown etho
/etc/network/interfaces:3: option with empty value
ifdown: couldn't read interfaces file "/etc/network/interfaces"
haiyang416@haiyang416-desktop:~$ sudo ifup etho
/etc/network/interfaces:3: option with empty value
ifup: couldn't read interfaces file "/etc/network/interfaces"
haiyang416@haiyang416-desktop:~$