博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
思科HSRP和Port-channel配置
阅读量:7239 次
发布时间:2019-06-29

本文共 2559 字,大约阅读时间需要 8 分钟。

如下图示: 

实验目标:建立核心交换机vlan 39,并且执行HSRP,两交换机用聚合接口连线。PC1能与PC2互通。

Coresw1:vlan database   vlan 39   exitconfig thostname coresw1 port-channel load-balance dst-macint vlan39  ip add 10.39.39.251 255.255.255.0  ip helper-address 10.39.39.39  //指定DHCP服务器  standby 39 ip 10.39.39.254  //VLAN39网关  standby 39 priority 150   //优先级越高越抢占为主网关  standby 39 preempt   //抢占  exitint f1/0   //接PC1接口  switchport access vlan 39  duplex full  speed 100  no sh  exitinterface Port-channel1  switchport mode trunk  no sh  exitint range f0/14 - 15  //两核心交换机连接聚合口  switchport mode trunk   duplex full   speed 100  channnel-group 1 mode on  no sh  exit

 

Coresw2:vlan database   vlan 39   exitconfig thostname coresw2 port-channel load-balance dst-macint vlan39  ip add 10.39.39.252 255.255.255.0  ip helper-address 10.39.39.39  //指定DHCP服务器  standby 39 ip 10.39.39.254  //VLAN39网关  standby 39 priority 130   //优先级越高越抢占为主网关  standby 39 preempt   //抢占  exitint f1/0   //接PC2接口  switchport access vlan 39  duplex full  speed 100  no sh  exitinterface Port-channel1  switchport mode trunk  no sh  exitint range f0/14 - 15  //两核心交换机连接聚合口  switchport mode trunk   duplex full   speed 100  channnel-group 1 mode on  no sh  exit

coresw1#show standby bricoresw1#show standby brief                      P indicates configured to preempt.                     |Interface   Grp Prio P State    Active          Standby         Virtual IP     Vl39        39  150  P Active   local           10.39.39.252    10.39.39.254coresw2#show standby brief                      P indicates configured to preempt.                     |Interface   Grp Prio P State    Active          Standby         Virtual IP     Vl39        39  130  P Standby  10.39.39.251    local           10.39.39.254 Checking for duplicate address...PC1 : 10.39.39.1 255.255.255.0 gateway 10.39.39.254PC1> ping 10.39.39.284 bytes from 10.39.39.2 icmp_seq=1 ttl=64 time=0.235 ms84 bytes from 10.39.39.2 icmp_seq=2 ttl=64 time=0.302 ms84 bytes from 10.39.39.2 icmp_seq=3 ttl=64 time=0.330 ms84 bytes from 10.39.39.2 icmp_seq=4 ttl=64 time=0.332 ms84 bytes from 10.39.39.2 icmp_seq=5 ttl=64 time=0.328 msChecking for duplicate address...PC2 : 10.39.39.2 255.255.255.0 gateway 10.39.39.254PC2> ping 10.39.39.184 bytes from 10.39.39.1 icmp_seq=1 ttl=64 time=0.312 ms84 bytes from 10.39.39.1 icmp_seq=2 ttl=64 time=0.406 ms84 bytes from 10.39.39.1 icmp_seq=3 ttl=64 time=0.281 ms84 bytes from 10.39.39.1 icmp_seq=4 ttl=64 time=0.318 ms84 bytes from 10.39.39.1 icmp_seq=5 ttl=64 time=0.201 ms

转载于:https://www.cnblogs.com/vincent-liang/p/6417658.html

你可能感兴趣的文章
SAP后台配置中“公司”与“公司代码”概念的不同
查看>>
JSP application对象
查看>>
使用消息系统进行微服务间通讯时,如何保证数据一致性
查看>>
Java---俄罗斯方块小游戏
查看>>
spring boot 调试 - 热部署
查看>>
Python installation
查看>>
管理数据中心需要瞻前顾后
查看>>
Ubuntu 搜狗输入法 双拼输入法
查看>>
小麦铺首推“无边界”门店 ,再融资 1.2 亿,刘泽轩要打造怎样的便利店?
查看>>
英特尔发布量子计算测试芯片,挑战IBM
查看>>
ONF解决方案与合作伙伴副主席Aseem Parikh:CORD的社区增长概况及全球发展趋势
查看>>
嵇少峰:互联网金融草根时代终结
查看>>
最小生成树之Prim算法和Kruskal算法
查看>>
航企如何利用大数据向零售商转型?
查看>>
透视Facebook算法帝国 ,我们只是工程思维的螺丝钉
查看>>
IPv4的消逝之路将漫长而缓慢
查看>>
论数据库运维的全流程管控技术
查看>>
打造"数据供应链"百分点发布大数据战略
查看>>
Relay2携边缘计算产品参加中国移动盛会
查看>>
Linux 64位操作系统安装配置java
查看>>