debian原来可以上网,一次升级后,debian就不能上网了,windows正常。
DHCP方式不能上网,按windows的IP和网关填写/etc/network/interfaces,再sudo
/etc/init.d/networking restart也不行,DHCP方式重启的话显示许多行DHCPDISCOVER
in eth0 to XX port XX interval=XX,然后报不能连到网关。static方式重启显示正常
,但不能上网。windows可以上网
$ sudo route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
下面啥都不显示,说明没到达网关
$ sudo ifconfig -a
[sudo] password for linlin:
eth0 Link encap:Ethernet HWaddr aa:00:04:00:0a:04
inet addr:120.92.203.157 Bcast:120.92.223.255 Mask:255.255.224.0
inet6 addr: fe80::216:76ff:fec5:a74d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:276 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22078 (21.5 KiB) TX bytes:2528 (2.4 KiB)
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:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 B) TX bytes:100 (100.0 B)
$ sudo mii-tool
eth0: negotiated 100baseTx-FD flow-control, link ok
网线连接良好
ping自己可以ping得通
$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_req=1 ttl=64 time=0.035 ms
ping我家里另一台电脑也能ping得通
$ ping 120.92.205.139
PING 120.92.205.139 (120.92.205.139) 56(84) bytes of data.
64 bytes from 120.92.205.139: icmp_req=1 ttl=64 time=0.460 ms
ping网关ping不通
$ ping 120.92.192.1
PING 120.92.192.1 (120.92.192.1) 56(84) bytes of data.
停在那,啥都不显示
查看另一台电脑和网关的物理地址能看到:
$ sudo arp -n
Address HWtype HWaddress Flags Mask Iface
120.92.205.139 ether 00:1b:38:99:c9:9e C eth0
120.92.192.1 ether 00:13:5f:03:e4:98 C eth0
看来问题在于无法连接到网关,这是怎么回事?有什么解决方法?谢谢
紧急求助:debian 6.0又不能上网了
最大的社区版本,Ubuntu的发源地
前往
- 公告/注意事项
- ↳ 新闻和通知
- ↳ 软件推荐
- 系统安装
- ↳ 教学和常见问答
- ↳ 系统安装和升级
- ↳ 启动和引导
- ↳ 网卡无线拨号
- ↳ 硬件与内核
- ↳ 笔记本及便携设备
- ↳ Ubuntu衍生版
- ↳ 其他类Unix OS发行版
- ↳ Debian发行版
- 配置美化
- ↳ 中文显示和输入法
- ↳ 个人配置文件存放点
- ↳ 软件文档翻译
- ↳ 窗口管理器及美化
- ↳ 桌面展示
- 软件使用
- ↳ 办公、图像、机械电子设计等
- ↳ Vim和Emacs
- ↳ 开源模板库
- ↳ 互联网相关软件
- ↳ 影音多媒体
- ↳ 游戏和模拟器
- ↳ 虚拟机和虚拟化
- ↳ Wine及其分支
- ↳ 其它类软件
- 服务器管理
- ↳ 服务器运维
- ↳ 云计算和容器(K8S/KVM/Docker/WSL等)
- ↳ Ubuntu VPS
- 程序设计与开发
- ↳ Shell脚本
- ↳ 软件/网站开发
- ↳ 内核及嵌入式开发
- ↳ Ubuntu编译和打包
- ↳ 开源小工具
- ↳ 挑战任务
- 感想与交流
- ↳ 深度PK版
- ↳ Ubuntu故事和感慨
- ↳ 同城交流
- ↳ 校园社团
- ↳ 港澳台校区
- ↳ 国外校区
- 站务区
- ↳ 论坛管理
- ↳ Ubuntu中文网上商店