版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、网关冗余和负载均衡 VRRPR1R316-11利实验2拓扌卜圈、交换机SW1 (R6 )交换机 SW2 (R4)配置R6>e nableR6#co nf tR6(co nfig)#host name SW1SW1 (con fig)#i nt faO/OSW1 (con fig-if)# no shutdow nSW1 (con fig-if)#exitSW1 (con fig)#i nt faO/1SW1 (con fig-if)# no shutdow nSW1 (con fig-if)#exitSW1 (con fig)#i nt fa0/2SW1 (con fig-if)# no
2、 shutdow nSW1 (con fig-if)#exitSW1#vla n databaseSW1 (vla n) #vla n 2VLAN 2 added:Name: VLAN0002SW1 (vlan )#exitSW1#co nf tSW1 (con fig)#i nt range faO/O - 2SW1 (config-if-range)#switchport access vlan 2SW1 (con fig-if-ra nge)#exitSW1 (con fig-if-ra nge)#exitSW1(config)#int vlan 2SW1(config-if)#no s
3、hutdownSW1(co nfig-if)#exitSW1#R4venab-eR4#conf fR4(COMg)#hosf SW2Sw2(config)#in二aoMSw2(confign#no shutdownSw2(confign#e><.fSw2(config)#inffo、oSw2(confign#no shutdownSw2(confign#e><.fSw2(config)#exifSw2#v-an databaseSw2(v_an)#v_an 2VLAN 2 added-Name VLAN0002Sw2(v_an)#exifSW2#conf fSw2(co
4、nfig)#inf range fao.o -1 sw2(configfAange)#swiohport access v-an 2Sw2(configfrange)#endSW2#M>”H>配置 PC1 ( R7 ) PC2 ( R5 )R7>e nableR7#co nf tR7(co nfig)#host PC1PC1(con fig)# no ip routi ngPC1(co nfig)#i nt e0/0PC1(config-if)#no shutdownPC1(co nfig-if)#exitPC1(co nfig)#exitPC1#R5>e nableR
5、5#co nf tR5(co nfig)#host PC2PC2 (config)#no ip routingPC2 (con fig)#i nt e0/0PC2 (con fig-if)# no shutdow nPC2 (con fig-if)#exit三、对路由器进行基本配置R1#co nf tR1(co nfig)#i nt eO/OR1(c on fig-if)# no shutdow nR1(co nfig-if)#exitR1(co nfig)#i nt s1/0R1(c on fig-if)# no shutdow nR1(co nfig-if)#exitR1(co nfig)
6、#R2>e nableR2#co nf tR2(co nfig)#i nt s1/0R2(co nfig-if)#clock rate 128000R2(c on fig-if)# no shutdow nR2(co nfig-if)#exitR2(co nfig)# int s1/1R2(co nfig-if)#clock rate 128000R2(c on fig-if)# no shutdow nR2(co nfig-if)#exitR2(co nfig)#i nt e0/0R2(c on fig-if)# no shutdow nR2(co nfig-if)#exitR2(co
7、 nfig)#exitR2#R3>e nableR3#co nf tR3(co nfig)#i nt s1/0R3(c on fig-if)# no shutdow nR3(co nfig)#i nt e0/0R3(c on fig-if)# no shutdow nR3(co nfig-if)#exitR3(co nfig)#四、配置路由协议R1#co nf tR1(config)#router ripR1(c on fig-router)#passive-i nterface e0/0/把e0/0接口设为被接口,为了防止从该接口发送RIP信息给R3R1(c on fig-router
8、)#exitR1(co nfig)#exitR1#R2#co nf tR2(c on fig)#router ripR2(c on fig-router)#passive-i nterface e0/0R2(c on fig-router)#exitR2(co nfig)#exitR2#R3#co nf tR3(c on fig)#router ripR3(c on fig-router)#passive-i nterface e0/0R3(c on fig-router)#exitR3(co nfig)#exitR3#五、查看路由表R1#sh ip routeCodes: C - conn
9、ected, S - static, R - RIP , M - mobile, B - BGPD - EIGRP , EX - EIGRP external, O - OSPF, IA - OSPF in ter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia
10、 - IS-IS in ter area, * - can didate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not setC192.168.12.0/24 is directly conn ected, Serial1/0C192.168.13.0/24 is directly conn ected, Ethernet0/0R192.168.20.0/24 120/1 via 192.168.12.2, 00:00:2
11、8,Serial1/0R192.168.23.0/24 120/1 via 192.168.13.3, 00:01:12,Ethernet0/0120/1 via 192.168.12.2, 00:00:06, Serial1/0R1#前后对比R1#sh ip routeCodes: C - conn ected, S - static, R - RIP , M - mobile, B - BGPD - EIGRP , EX - EIGRP external, O - OSPF, IA - OSPF in ter area N1 - OSPF NSSA external type 1, N2
12、- OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS in ter area, * - can didate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not s
13、etC 192.168.12.0/24 is directly conn ected, Serial1/0C 192.168.13.0/24 is directly conn ected, Ethernet0/0R 192.168.20.0/24 120/1 via 192.168.12.2, 00:00:28, Serial1/0R 192.168.23.0/24 120/1 via 192.168.12.2, 00:00:02, Serial1/0R1#R2#sh ip route,M - mobile, B - BGPCodes: C - conn ected, S - static,
14、R - RIP D - EIGRP , EX - EIGRP external, O - OSPF, IA - OSPF in ter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS in ter area, * - can didate def
15、ault, U - per-user static route o - ODR, P - periodic dow nl oaded static routeGateway of last resort is not setC 192.168.12.0/24 is directly conn ected, Serial1/0R 192.168.13.0/24 120/1 via 192.168.23.3, 00:00:17, Serial1/1120/1 via 192.168.12.1,00:00:14, Serial1/0C192.168.20.0/24 is directly conn
16、ected, Ethernet0/0C192.168.23.0/24 is directly conn ected, Serial1/1R2#R3#sh ip routeCodes: C - conn ected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP , EX - EIGRP external, O - OSPF, IA - OSPF in ter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1,
17、 E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS in ter area, * - can didate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not setR 192.168.12.0/24 120/1 via 192.168.23.2, 00:00:16,
18、Serial1/0C 192.168.13.0/24 is directly conn ected, Ethernet。/。R 192.168.20.0/24 120/1 via 192.168.23.2, 00:00:12, Serial1/0C 192.168.23.0/24 is directly conn ected, Serial1/0R3#五、测试Type escape seque nee to abort.Se nding 5, 100-byte ICMP Echos to 192.168.20.100, timeout is 2 seco nds:!Success rate i
19、s 100 perce nt (5/5), roun d-trip min/avg/max = 60/80/120 msR1#六、配置多个VRRP组R1#co nf tR1(config)#track 100 int s1/0 line-protocol/ 定义跟踪目标R1(co nfig-track)#exitR1(co nfig)#i nt e0/0R1(co nfig-if)#vrrp 1 priority 120R1(c on fig-if)#vrrp 1 preempt/命令不存在R1(config-if)#vrrp 1 authentication md5 key-string c
20、iscoR1(co nfig-if)#vrrp 1 track 100 decreme nt 30R1(c on fig-if)#vrrp 2 preemptR1(config-if)#vrrp 2 authentication md5 key-string ciscoR1(co nfig-if)#R3#co nf tR3(co nfig)#track 100 int s1/0 lin e-protocolR3(co nfig-track)#exitR3(co nfig)#i nt e0/0R3(c on fig-if)#vrrp 1 preemptR3(c on fig-if)#vrrp 1
21、 authe nticati on md5 key-stri ng ciscoR3(co nfig-if)#vrrp 2 R3(co nfig-if)#vrrp 2 priority 120R3(c on fig-if)#vrrp 2 preemptR3(c on fig-if)#vrrp 2 authe nticati on md5 key-stri ng ciscoR3(co nfig-if)#vrrp 3 track 100 decreme nt 30R3(co nfig-if)#exitR3(co nfig)#exitR3#七、查看VRRPR1#sh vrrp briefIn terfaceGrp Pri TimeOwn Pre StateMaster addrGroup addrEtO/O11203531Y MasterEt0/021003609Y BackupR1#R3#sh vrrp briefIn terfaceGrp Pri TimeOwn Pre StateMaster addrGroup addrEt0/011003609Y BackupEtO/OR
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025-2030智慧消防关键平台技术架构研究
- 2025-2030智慧楼宇行业市场分析行业竞争发展科技方案
- 2025-2030智慧旅游休闲度假产业发展计划与区域经济效益刺激方案研究
- 2025-2030智慧教育设备技术发展现状及商业前景分析报告
- 2026春季安徽合肥热电集团招聘25人备考题库及答案详解【历年真题】
- 2026武警贵州省总队医院社会招聘7人备考题库及答案详解【考点梳理】
- 2026云南昆明华航技工学校蒙自校区招聘12人备考题库带答案详解(满分必刷)
- 风电产业集群集聚效应-洞察与解读
- 2025-2030智慧建筑系统行业市场供应需求分析及发展策略规划分析研究报告
- 2025-2030智慧工厂行业市场现状分析及技术创新方向规划
- 12《古诗三首》课件-2025-2026学年统编版语文三年级下册
- 团队精神与忠诚度培训讲义
- 2026河南新乡南太行旅游有限公司招聘16岗49人考试参考试题及答案解析
- 2026年辽宁点石联考高三年级3月学情调研语文试卷及答案
- 短剧网络播出要求与规范手册
- 2026年春季西师大版(2024)小学数学三年级下册教学计划含进度表
- 江苏苏锡常镇四市2026届高三下学期教学情况调研(一)数学试题(含答案)
- 2026年3月15日九江市五类人员面试真题及答案解析
- 高二物理下学期期中考试试卷含答案
- 医药药店保健品销售技巧与关联销售保健品完整版
- 2023年02月上海市嘉定区马陆镇公开招考14名农村储备干部笔试参考题库含答案解析
评论
0/150
提交评论