为什么宽带连接之后本地IP就不见了

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
sophcow
帖子: 2
注册时间: 2009-03-06 17:19

为什么宽带连接之后本地IP就不见了

#1

帖子 sophcow » 2009-03-06 17:42

我使用的是ubuntu8.10 ,
用wine装了网通的客户端后在NetworkManager里做了配置就可以上网了
上网之前用ifconfig查看的结果如下:
eth0 Link encap:Ethernet HWaddr 00:1d:60:75:64:2e
inet addr:192.168.224.102 Bcast:192.168.224.255 Mask:255.255.255.0
inet6 addr: fe80::21d:60ff:fe75:642e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1992611 errors:0 dropped:0 overruns:0 frame:0
TX packets:5817 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:154551706 (154.5 MB) TX bytes:987200 (987.2 KB)
Interrupt:222 Base address:0x8000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9722 errors:0 dropped:0 overruns:0 frame:0
TX packets:9722 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1645946 (1.6 MB) TX bytes:1645946 (1.6 MB)

上网之后用ifconfig查看的结果如下:
eth0 Link encap:Ethernet HWaddr 00:1d:60:75:64:2e
inet6 addr: fe80::21d:60ff:fe75:642e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1939997 errors:0 dropped:0 overruns:0 frame:0
TX packets:5782 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:150510622 (150.5 MB) TX bytes:983016 (983.0 KB)
Interrupt:222 Base address:0x8000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9714 errors:0 dropped:0 overruns:0 frame:0
TX packets:9714 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1645354 (1.6 MB) TX bytes:1645354 (1.6 MB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.0.1.179 P-t-P:221.11.17.130 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1
RX packets:4585 errors:0 dropped:0 overruns:0 frame:0
TX packets:5070 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2477052 (2.4 MB) TX bytes:811342 (811.3 KB)
请问局域网的eth0的ip到哪里去了?
我想用squid代理上网,但是我一拨号本地IP就不见了,其他的电脑无法上网
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

Re: 为什么宽带连接之后本地IP就不见了

#2

帖子 bones7456 » 2009-03-06 17:50

ifconfig eth0 192.168.224.102 netmask 255.255.255.0
这样自己指定一个行不?
关注我的blog: ε==3
sophcow
帖子: 2
注册时间: 2009-03-06 17:19

Re: 为什么宽带连接之后本地IP就不见了

#3

帖子 sophcow » 2009-03-08 14:24

我在/etc/network/interfaces中写上静态IP后网络就无法连接了
只有删除了才能拨上,此时本地IP又对了,但是我只是在NetManager里配置的,在interfaces里找不到任何IP
回复