7 帧中继和水平分割
- 格式:doc
- 大小:188.50 KB
- 文档页数:13
33 内部资料注意保存。 “卋貿科訊”—面对面的网络专家培训。 www.howtolab.cn 石家庄市新石北路,金石工业园艾琳会馆一楼
CCNA实验7 帧中继和水平分割 CCNA实验7:帧中继和rip
实验目的: 学习用静态映射配置帧中继vpc 深化学习水平分割问题 学习帧中继点对点子接口的配置
网络拓扑图
R1R3R2
Frame realyvpc
vpc
S0/0
S0/0S0/0102----201203---302
实验需求分析 R1,R2,R3为一组, R4,R5,R6为另一组。如上图所示,每组三台路由器组成以R2为中心的星型帧中继连接。 路由器及端口 Ip 地址 子网掩码 R1 s0/0 192.168.1.1 255.255.255.0 R2 s0/0 192.168.1.2 192.168.2.2 secondary 255.255.255.0 255.255.255.0 R3 s0/0 192.168.2.3 255.255.255.0 R4 s0/0 192.168.1.4 255.255.255.0 R5 s0/0 192.168.1.5 192.168.2.5 secon 255.255.255.0 255.255.255.0 R6 s0/0 192.168.2.6 255.255.255.0
第一步:配置帧中继的星型连接 34 内部资料注意保存。 “卋貿科訊”—面对面的网络专家培训。 www.howtolab.cn 石家庄市新石北路,金石工业园艾琳会馆一楼
CCNA实验7 帧中继和水平分割 Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host r1 r1(config)#no ip domain-lookup 防止因敲错命令而系统误以为是访问某个主机名称,而去找dns服务器查询的等待时间 r1(config)#line con 0 r1(config-line)#logging synchronous 防止因控制台信息冲断了输入一半的命令 r1(config-line)#end r1# *Mar 1 00:08:44.347: %SYS-5-CONFIG_I: Configured from console by console r1#conf t Enter configuration commands, one per line. End with CNTL/Z. r1(config)#int s0/0 r1(config-if)#en fr 封装帧中继 r1(config-if)#ip add 192.168.1.1 255.255.255.0 r1(config-if)#frame-relay map ip 192.168.1.2 102 broadcast 静态映射vpc。参数是对方的ip地址和本地的dlci号,b参数是要帧中继支持广播。(这里之所以要开启广播是因为rip的路由通告是广播形式传输的,如果帧中继没有广播的支持就无法学习邻居的路由表了) r1(config-if)#no sh r1(config-if)#exit r1(config)# *Mar 1 00:11:38.723: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up r1(config)#
Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host r2 r2(config)#no ip domain-lo r2(config)#line con 0 r2(config-line)#logg syn r2(config-line)#exit r2(config)#int s0/0 r2(config-if)#en fr r2(config-if)#ip add 192.168.1.2 255.255.255.0 r2(config-if)#ip add 192.168.2.2 255.255.255.0 sec 这里是在一个端口上配置的第二个地址的方法,注意不要忘记secondary参数,否则就会把主地址冲掉了。 r2(config-if)#fr map ip 192.168.1.1 201 b 支持广播的静态映射,邻居ip地址和本地的dlci号 r2(config-if)#fr map ip 192.168.2.3 203 b 支持广播的静态映射,邻居ip地址和本地的dlci号 r2(config-if)#no sh r2(config-if)#end r2# *Mar 1 00:13:46.715: %SYS-5-CONFIG_I: Configured from console by console 35 内部资料注意保存。 “卋貿科訊”—面对面的网络专家培训。 www.howtolab.cn 石家庄市新石北路,金石工业园艾琳会馆一楼
CCNA实验7 帧中继和水平分割 *Mar 1 00:13:47.511: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up r2# *Mar 1 00:13:58.515: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up r2#
Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host r3 r3(config)#no ip domain-lo r3(config)#line con 0 r3(config-line)#logg sy r3(config-line)#exit r3(config)#int s0/0 r3(config-if)#en fr r3(config-if)#ip add 192.168.2.3 255.255.255.0 r3(config-if)#fr map ip 192.168.2.2 302 b 支持广播的静态映射,邻居ip地址和本地的dlci号 r3(config-if)#no sh r3(config-if)#end r3# *Mar 1 00:15:52.635: %SYS-5-CONFIG_I: Configured from console by console r3# *Mar 1 00:15:53.511: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up r3# *Mar 1 00:16:04.515: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up r3# r3#
r2#p 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/76/136 ms
r2#p Protocol [ip]: Target IP address: 192.168.2.3 Repeat count [5]: Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: y Source address or interface: 192.168.2.2 Type of service [0]: 36 内部资料注意保存。 “卋貿科訊”—面对面的网络专家培训。 www.howtolab.cn 石家庄市新石北路,金石工业园艾琳会馆一楼
CCNA实验7 帧中继和水平分割 Set DF bit in IP header? [no]: Validate reply data? [no]: Data pattern [0xABCD]: Loose, Strict, Record, Timestamp, Verbose[none]: Sweep range of sizes [n]: Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.3, timeout is 2 seconds: Packet sent with a source address of 192.168.2.2 !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 24/59/92 ms
r2#p 192.168.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: ..... 注意帧中继自己的端口是不能ping通的,只能和邻居ping通 Success rate is 0 percent (0/5) r2#
第二步: 配置rip路由协议 在R1上操作: r1(config)#int loop0 用loop口为了路由表中条目更多一些,没有其他目的 *Mar 1 00:18:32.707: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up r1(config-if)#ip add 10.0.0.1 255.255.255.0 r1(config-if)#exit r1(config)#router rip r1(config-router)#net 10.0.0.0 rip只需通告主网络号即可 r1(config-router)#net 192.168.1.0 rip只需通告主网络号即可 r1(config-router)#exit r1(config)# 在R2上配置: r2#conf t Enter configuration commands, one per line. End with CNTL/Z. r2(config)#int l0 *Mar 1 00:20:19.883: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up r2(config-if)#ip add 20.0.0.2 255.255.255.0 r2(config-if)#ip split-horizon 启动rip的水平分割 r2(config-if)#exit r2(config)#router rip r2(config-router)#net 20.0.0.0 r2(config-router)#net 192.168.1.0 r2(config-router)#net 192.168.2.0 r2(config-router)#exit