免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2856 | 回复: 2
打印 上一主题 下一主题

[网络管理] eth0设置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-25 13:51 |显示全部楼层 |倒序浏览
[MiniBoard]# ifconfig
eth0      Link encap:Ethernet  HWaddr 70:64:66:75:66:6C
          inet addr:192.168.0.66  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:730 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:66285 (64.7 KiB)  TX bytes:0 (0.0 B)
          Interrupt:181 Base address:0x4000

以太网没工作起来,请问如何修改?

论坛徽章:
0
2 [报告]
发表于 2010-03-25 14:13 |显示全部楼层
回复 2# chenyx


   能ping通内网,再ifconfig 有收有发。
[MiniBoard]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: seq=0 ttl=64 time=2.899 ms
64 bytes from 192.168.0.1: seq=1 ttl=64 time=2.411 ms
64 bytes from 192.168.0.1: seq=2 ttl=64 time=6.500 ms


[MiniBoard]# ifconfig
eth0      Link encap:Ethernet  HWaddr 70:64:66:75:66:6C
          inet addr:192.168.0.66  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2732 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:233661 (228.1 KiB)  TX bytes:476 (476.0 B)
          RX bytes:233661 (228.1 KiB)  TX bytes:476 (476.0 B)
可是设置默认网关时
[MiniBoard]# route add default gw 10.10.105.20 eth0
route: SIOCADDRT: Network is unreachable
[MiniBoard]# nameserver 202.119.230.8
-/bin/sh: nameserver: not found
[MiniBoard]# ping www.baidu.com
ping: bad address 'www.baidu.com'

论坛徽章:
0
3 [报告]
发表于 2010-03-25 14:28 |显示全部楼层
回复 4# chenyx


    恩 好了。谢谢~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP