实验12 冗余网关技术实现_第1页
实验12 冗余网关技术实现_第2页
实验12 冗余网关技术实现_第3页
实验12 冗余网关技术实现_第4页
实验12 冗余网关技术实现_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 实验十二 冗余网关 hsrp 实验十二实验十二 冗余网关冗余网关 hsrp 实验目的 实验目的 学习冗余网关配置 学习 hsrp 学习 vrrp R3 R5 R2R1 R4 R6 S0 S0S0 S0S0 172 20 34 0 24 172 20 56 0 24 192 168 23 0 24 E0 172 20 12 0 24 S0 E0E0 E0 E0E0 Ospf area 0 Loopback0 10 1 x 1 24 x the number of router F R 第一组第一组 第二组第二组 第三组第三组 CCNP 实验 2 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 上图是实际拓扑图 其中上下分为 2 组 1 数据链路层设置 交换机配置提示 conf t config hostname sw1 sw1 config vlan data sw1 vlan vlan 10 name vlan10 sw1 vlan vlan 20 name vlan20 sw1 vlan vlan 30 name vlan30 sw1 vlan exit sw1 config int f0 1 sw1 config if switchport mode access sw1 config if switchport access vlan 10 sw1 config if int f0 2 sw1 config if switchport mode access sw1 config if switchport access vlan 10 R1 配置 3 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 实验十二 冗余网关 hsrp Router en Router conf t Enter configuration commands one per line End with CNTL Z Router config host r1 r1 config int s0 0 r1 config if ip add 192 168 23 1 255 255 255 0 r1 config if en fr r1 config if fr map ip 192 168 23 2 102 b r1 config if no sh r1 config if Mar 1 00 04 56 703 LINK 3 UPDOWN Interface Serial0 0 changed state to up Mar 1 00 05 07 707 LINEPROTO 5 UPDOWN Line protocol on Interface Serial0 0 changed state to up r1 config if int e1 0 r1 config if ip add 172 20 12 1 255 255 255 0 r1 config if no sh r1 config if Mar 1 00 05 39 383 LINK 3 UPDOWN Interface Ethernet1 0 changed state to up Mar 1 00 05 40 383 LINEPROTO 5 UPDOWN Line protocol on Interface Ethernet1 0 changed state to up r1 config if end r1 Mar 1 00 05 46 111 SYS 5 CONFIG I Configured from console by console r1 R2 配置 Router en Router conf t Enter configuration commands one per line End with CNTL Z Router config host r2 r2 config int s0 0 r2 config if ip add 192 168 23 2 255 255 255 0 r2 config if en fr r2 config if fr map ip 192 168 23 1 201 b r2 config if no sh r2 config if Mar 1 00 09 08 779 LINK 3 UPDOWN Interface Serial0 0 changed state to up Mar 1 00 09 19 783 LINEPROTO 5 UPDOWN Line protocol on Interface Serial0 0 changed state to up r2 config if int e1 0 r2 config if ip add 172 20 12 2 255 255 255 0 r2 config if no sh r2 config if Mar 1 00 09 47 615 LINK 3 UPDOWN Interface Ethernet1 0 changed state to up Mar 1 00 09 48 615 LINEPROTO 5 UPDOWN Line protocol on Interface Ethernet1 0 changed state to up r2 config if end r2 CCNP 实验 4 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 Mar 1 00 09 53 083 SYS 5 CONFIG I Configured from console by console r2 p 192 168 23 1 Type escape sequence to abort Sending 5 100 byte ICMP Echos to 192 168 23 1 timeout is 2 seconds Success rate is 100 percent 5 5 round trip min avg max 32 53 64 ms r2 ping 172 20 12 1 Type escape sequence to abort Sending 5 100 byte ICMP Echos to 172 20 12 1 timeout is 2 seconds Success rate is 80 percent 4 5 round trip min avg max 12 43 64 ms r2 2 Loop 地址配置 r1 r1 conf t Enter configuration commands one per line End with CNTL Z r1 config int loop0 r1 config if Mar 1 00 13 28 759 LINEPROTO 5 UPDOWN Line protocol on Interface Loopback0 changed state to up r1 config if ip add 10 1 1 1 255 255 255 0 r1 config if end r1 r2 conf t Enter configuration commands one per line End with CNTL Z r2 config int loop0 Mar 1 00 14 21 303 LINEPROTO 5 UPDOWN Line protocol on Interface Loopback0 changed state to up r2 config if ip add 10 2 2 2 255 255 255 0 r2 config if end r2 3 Hsrp 配置 r1 conf t Enter configuration commands one per line End with CNTL Z r1 config int e1 0 r1 config if standby 1 ip 172 20 12 100 r1 config if standby 1 priority 120 r1 config if standby 1 preempt Mar 1 00 19 56 507 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Speak Standby 5 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 实验十二 冗余网关 hsrp Mar 1 00 19 56 515 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Standby Activer r1 config if standby 1 track s0 0 50 r1 config if end r1 r2 r2 conf t Enter configuration commands one per line End with CNTL Z r2 config int e1 0 r2 config if standby 1 ip 172 20 12 100 r2 config if stan 1 prio 90 r2 config if stan 1 pree Mar 1 00 22 08 935 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Speak Standby r2 config if stan 1 tra s0 0 50 r2 config if end r2 4 路由协议配置 ospf 在本实验中不起作用 仅仅做回顾性练习 r1 conf t Enter configuration commands one per line End with CNTL Z r1 config router os 1 r1 config router net 192 168 23 1 0 0 0 0 a 0 r1 config router net 172 20 12 1 0 0 0 0 a 0 r1 config router net 10 1 1 1 0 0 0 0 a 0 r1 config router end r1 r2 config router os 1 r2 config router net 192 168 23 2 0 0 0 0 a 0 r2 config router net 172 20 12 2 0 0 0 0 a 0 r2 config router net 10 2 2 2 0 0 0 0 a 0 r2 config router Mar 1 00 25 47 555 OSPF 5 ADJCHG Process 1 Nbr 10 1 1 1 on Ethernet1 0 from LOADING to FULL Loading Done r2 config router end r1 ping 10 2 2 2 Type escape sequence to abort Sending 5 100 byte ICMP Echos to 10 2 2 2 timeout is 2 seconds Success rate is 100 percent 5 5 round trip min avg max 28 84 156 ms CCNP 实验 6 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 r1 5 验证 hsrp r1 sh standby Ethernet1 0 Group 1 State is Active 2 state changes last state change 00 06 45 Virtual IP address is 172 20 12 100 Active virtual MAC address is 0000 0c07 ac01 Local virtual MAC address is 0000 0c07 ac01 v1 default Hello time 3 sec hold time 10 sec Next hello sent in 2 892 secs Preemption enabled Active router is local Standby router is 172 20 12 2 priority 90 expires in 7 704 sec Priority 120 configured 120 Track interface Serial0 0 state Up decrement 50 IP redundancy name is hsrp Et1 0 1 default r1 r2 sh stan Ethernet1 0 Group 1 State is Standby 1 state change last state change 00 04 39 Virtual IP address is 172 20 12 100 Active virtual MAC address is 0000 0c07 ac01 Local virtual MAC address is 0000 0c07 ac01 v1 default Hello time 3 sec hold time 10 sec Next hello sent in 2 328 secs Preemption enabled Active router is 172 20 12 1 priority 120 expires in 8 496 sec Standby router is local Priority 90 configured 90 Track interface Serial0 0 state Up decrement 50 IP redundancy name is hsrp Et1 0 1 default r2 r1 sh stan brief P indicates configured to preempt Interface Grp Prio P State Active Standby Virtual IP Et1 0 1 120 P Active local 172 20 12 2 172 20 12 100 7 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 实验十二 冗余网关 hsrp r1 r2 sh stan bri P indicates configured to preempt Interface Grp Prio P State Active Standby Virtual IP Et1 0 1 90 P Standby 172 20 12 1 local 172 20 12 100 r2 6 关闭 r1 的 s0 0 端口 测试网关转换 r1 conf t Enter configuration commands one per line End with CNTL Z r1 config int s0 0 r1 config if sh Mar 1 00 31 03 747 LINK 5 CHANGED Interface Serial0 0 changed state to administratively down Mar 1 00 31 04 747 LINEPROTO 5 UPDOWN Line protocol on Interface Serial0 0 changed state to down Mar 1 00 31 02 587 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Active Speak Mar 1 00 31 12 587 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Speak S r1 config if end r1 sh stan brief P indicates configured to preempt Interface Grp Prio P State Active Standby Virtual IP Et1 0 1 70 P Standby 172 20 12 2 local 172 20 12 100 r1 r2 Mar 1 00 31 02 147 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Standby Active r2 r2 sh stan bri P indicates configured to preempt Interface Grp Prio P State Active Standby Virtual IP Et1 0 1 90 P Active local 172 20 12 1 172 20 12 100 r2 7 重新打开端口 观察抢占模式的工作 r1 conf t Enter configuration commands one per line End with CNTL Z r1 config int s0 0 r1 config if no sh r1 config if Z r1 r1 CCNP 实验 8 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 Mar 1 00 35 14 503 SYS 5 CONFIG I Configured from console by console Mar 1 00 35 14 743 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Standby Active r1 Mar 1 00 35 16 075 LINK 3 UPDOWN Interface Serial0 0 changed state to up Mar 1 00 35 17 075 LINEPROTO 5 UPDOWN Line protocol on Interface Serial0 0 changed state to up r1 sh stan brief P indicates configured to preempt Interface Grp Prio P State Active Standby Virtual IP Et1 0 1 120 P Active local 172 20 12 2 172 20 12 100 r1 r2 Mar 1 00 35 14 383 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Active Speak Mar 1 00 35 24 383 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Speak Standby r2 r2 sh stan bri P indicates configured to preempt Interface Grp Prio P State Active Standby Virtual IP Et1 0 1 90 P Standby 172 20 12 1 local 172 20 12 100 r2 8 思考题 如果 R1 和 R2 的 s0 0 口都关闭情况如何 r1 config int s0 0 r1 config if sh r1 config if end r1 Mar 1 00 36 35 775 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Active Speak Mar 1 00 36 36 203 SYS 5 CONFIG I Configured from console by console Mar 1 00 36 37 387 LINK 5 CHANGED Interface Serial0 0 changed state to administratively down Mar 1 00 36 38 387 LINEPROTO 5 UPDOWN Line protocol on Interface Serial0 0 changed state to down r1 r1 Mar 1 00 36 45 775 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Speak Standby Mar 1 00 36 56 835 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Standby Active r2 config int s0 0 r2 config if sh r2 config if Z r2 r2 Mar 1 00 36 54 391 SYS 5 CONFIG I Configured from console by console Mar 1 00 36 56 127 LINK 5 CHANGED Interface Serial0 0 changed state to administratively down Mar 1 00 36 56 511 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Active Speak Mar 1 00 36 57 127 LINEPROTO 5 UPDOWN Line protocol on Interface Serial0 0 changed state to down Mar 1 00 37 06 511 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Speak Standby 9 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 实验十二 冗余网关 hsrp r1 r1 r1 sh stan bri P indicates configured to preempt Interface Grp Prio P State Active Standby Virtual IP Et1 0 1 70 P Active local 172 20 12 2 172 20 12 100 r1 r2 sh stan bri P indicates configured to preempt Interface Grp Prio P State Active Standby Virtual IP Et1 0 1 40 P Standby 172 20 12 1 local 172 20 12 100 r2 9 用 debug 跟踪转换过程 r1 debug standby errors HSRP errors events HSRP events packets HSRP packets terse Display limited range of HSRP errors events and packets r1 debug standby events HSRP Events debugging is on r1 r1 config int s0 0 r1 config if sh Mar 1 00 41 24 499 LINK 5 CHANGED Interface Serial0 0 changed state to administratively down Mar 1 00 41 25 499 LINEPROTO 5 UPDOWN Line protocol on Interface Serial0 0 changed state to down r1 config if Z r1 Mar 1 00 41 22 903 SYS 5 CONFIG I Configured from console by console Mar 1 00 41 22 527 HSRP Et1 0 Grp 1 Track 1 object changed state Up Down Mar 1 00 41 22 527 HSRP Et1 0 Grp 1 Priority 120 70 Mar 1 00 41 24 023 HSRP Et1 0 Grp 1 Active j Coup rcvd from higher pri router 90 172 20 12 2 Mar 1 00 41 24 027 HSRP Et1 0 Grp 1 Active router is 172 20 12 2 was local Mar 1 00 41 24 027 HSRP Et1 0 Grp 1 Standby router is unknown was 172 20 12 2 Mar 1 00 41 24 031 HSRP Et1 0 Grp 1 Active Speak Mar 1 00 41 24 031 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Active Speak CCNP 实验 10 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 Mar 1 00 41 24 035 HSRP Et1 0 Grp 1 Redundancy hsrp Et1 0 1 state Active Speak Mar 1 00 41 24 047 HSRP Et1 0 API MAC address update Mar 1 00 41 34 023 HSRP Et1 0 Grp 1 Speak d Standby timer expired unknown Mar 1 00 41 34 023 HSRP Et1 0 Grp 1 Standby router is local Mar 1 00 41 34 027 HSRP Et1 0 Grp 1 Speak Standby Mar 1 00 41 34 027 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Speak Standby Mar 1 00 41 34 031 HSRP Et1 0 Grp 1 Redundancy hsrp Et1 0 1 state Speak Standby r1 conf t Enter configuration commands one per line End with CNTL Z r1 config int s0 0 r1 config if no sh Mar 1 00 44 21 147 LINK 3 UPDOWN Interface Serial0 0 changed state to up Mar 1 00 44 22 147 LINEPROTO 5 UPDOWN Line protocol on Interface Serial0 0 changed state to up r1 config if Z Mar 1 00 44 19 471 SYS 5 CONFIG I Configured from console by console r1 r1 Mar 1 00 44 19 147 HSRP Se0 0 API 192 168 23 1 is not an HSRP address Mar 1 00 44 19 151 HSRP Et1 0 Grp 1 Track 1 object changed state Down Up Mar 1 00 44 19 151 HSRP Et1 0 Grp 1 Priority 70 120 Mar 1 00 44 20 991 HSRP Et1 0 Grp 1 Standby h Hello rcvd from lower pri Active router 90 172 20 12 2 Mar 1 00 44 20 995 HSRP Et1 0 Grp 1 Active router is local was 172 20 12 2 Mar 1 00 44 20 995 HSRP Et1 0 Grp 1 Standby router is unknown was local Mar 1 00 44 20 999 HSRP Et1 0 Grp 1 Standby Active Mar 1 00 44 21 003 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Standby Active Mar 1 00 44 21 003 HSRP Et1 0 Grp 1 Redundancy hsrp Et1 0 1 state Standby Active Mar 1 00 44 24 011 HSRP Et1 0 Grp 1 Redundancy group hsrp Et1 0 1 state Active Active Mar 1 00 44 27 011 HSRP Et1 0 Grp 1 Redundancy group hsrp Et1 0 1 state Active Active Mar 1 00 44 31 075 HSRP Et1 0 Grp 1 Standby router is 172 20 12 2 r1 11 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 实验十二 冗余网关 hsrp 第二部分 vrrp 实现 有可能某些 ios 版本不支持 1 关闭 hsrp r1 config int e1 0 r1 config if no stan 1 r1 config if Mar 1 01 05 50 215 HSRP Et1 0 Grp 1 Active b HSRP disabled Mar 1 01 05 50 219 HSRP Et1 0 Grp 1 Active router is unknown was local Mar 1 01 05 50 223 HSRP Et1 0 Grp 1 Standby router is unknown was 172 20 12 2 Mar 1 01 05 50 227 HSRP Et1 0 Grp 1 Active Disabled Mar 1 01 05 50 227 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Active Disabled Mar 1 01 05 50 231 HSRP Et1 0 Grp 1 Redundancy hsrp Et1 0 1 state Active Disabled Mar 1 01 05 50 243 HSRP Et1 0 API MAC address update Mar 1 01 05 50 247 HSRP Et1 0 Grp 1 Priority 120 100 Mar 1 01 05 50 247 HSRP Et1 0 Grp 1 Track 1 delete Mar 1 01 05 50 251 HSRP Et1 0 Grp 1 Track 1 Stop tracking Mar 1 01 05 50 251 HSRP Et1 0 Grp 1 Track 1 unlink id 1 Mar 1 01 05 50 263 HSRP Et1 0 API MAC address update r2 conf t Enter configuration commands one per line End with CNTL Z r2 config int e1 0 r2 config if no stan 1 r2 config if Mar 1 01 06 48 799 HSRP 6 STATECHANGE Ethernet1 0 Grp 1 state Active Disabled r2 config if 2 启动 vrrp r1 conf t Enter configuration commands one per line End with CNTL Z r1 config track 10 int s0 0 line protocol r1 config track exit r1 config int e1 0 r1 config if vrrp 1 ip 172 20 12 100 r1 config if Mar 1 01 08 44 491 HSRP Et1 0 API 172 20 12 100 is not an HSRP address Mar 1 01 08 44 495 VRRP 6 STATECHANGE Et1 0 Grp 1 state Init Backup Mar 1 01 08 48 107 VRRP 6 STATECHANGE Et1 0 Grp 1 state Backup Master r1 config if vrrp 1 priority 150 r1 config if vrrp 1 preempt r1 config if vrrp 1 track 10 decrement 70 r1 config if exit r1 config CCNP 实验 12 内部资料注意保存 卋貿科訊 面对面的网络专家培训 石家庄市新石北路 金石工业园艾琳 会馆一楼 r2 conf t Enter configuration commands one per line End with CNTL Z r2 config r2 config track 10 int s0 0 line protocol r2 config track exit r2 config int e1 0 r2 config if vrrp 1 ip 172 20 12 100 Mar 1 01 18 52 071 VRRP 6 STATECHANGE Et1 0 Grp 1 state Init Backup r2 config if vrrp 1 preempt r2 config if vrrp 1 priority 90 r2 config if vrrp 1 track 10 decrement 40 r2 config if exit r2 config 3 验证 r1 sh vrrp Ethernet1 0 Group 1 State is Master Virtual IP address is 172 20 12 100 Virtual MAC address is 0000 5e00 0101 Advertisement

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论