jerry007
技术员
帖子
299
精华
0
无忧币 23
积分 361
阅读权限 30
|
发表于:2007-10-12 15:52
标题:路由器连通问题
<上一帖 |
下一帖>
两个Router直接相连,R1——R2,R1直接连pc1,R2之间连接pc2,经过如下配置:
R1:Router>
Router>en
Router#config t
Router(config)#hostname R1
R1(config)#ena se 1234
R1(config)#line vty 0 4
R1(config-line)#pass 1234
R1(config-line)#int eth 0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
R1(config-if)#int se 0
R1(config-if)#ip add 10.0.0.1 255.0.0.0
R1(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
R1(config-if)#end
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
R1#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
配置测试静态路由
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 192.168.2.0 255.255.255.0 10.0.0.2
R1(config)#end
R1#copy run start
R2类似,pc正确配置
但R1和R2的serial0都是down,然后从192.168.1.2 ping 192.168.2.2不通
从10.0.0.1ping 10.0.0.2不通
|
 论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币) |
|