项目二 任务三 训练5 交换机的HSRP技术
迪丽瓦拉
2025-05-31 23:11:16
0次

在“项目二 任务三 训练4 交换机的DHCP技术”基础上继续完成下列操作:

1、二层交换机50-2的配置

50-2>en

50-2#conf t

Enter configuration commands, one per line. End with CNTL/Z.

50-2(config)#int

50-2(config)#interface g

50-2(config)#interface gigabitEthernet 0/2

50-2(config-if)#switchport mode trunk

50-2(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to up

50-2(config-if)#

2、三层交换机50-3的配置

Switch>en

Switch#

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hostname 50-3

50-3(config)#vtp domain wgj

Changing VTP domain name from NULL to wgj

50-3(config)#vtp mode client

Setting device to VTP CLIENT mode.

50-3(config)#


50-3(config)#ip routing

50-3(config)#interface vlan 50

50-3(config-if)#

%LINK-5-CHANGED: Interface Vlan50, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan50, changed state to up

50-3(config-if)#ip address 192.168.50.253 255.255.255.0

50-3(config-if)#interface vlan 60

50-3(config-if)#

%LINK-5-CHANGED: Interface Vlan60, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan60, changed state to up

50-3(config-if)#ip address 192.168.60.253 255.255.255.0

50-3(config)#

3、三层交换机50-1的配置

50-1>

50-1>en

50-1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

50-1(config)#int

50-1(config)#interface vlan 50

50-1(config-if)#standby 50 priority 110

50-1(config-if)#standby 50 ip 192.168.50.252

50-1(config-if)#standby 50 preempt

%HSRP-6-STATECHANGE: Vlan50 Grp 50 state Speak -> Standby

%HSRP-6-STATECHANGE: Vlan50 Grp 50 state Standby -> Active

50-1(config-if)#standby 50 track gigabitEthernet 0/2

50-1(config-if)#exit


50-1(config)#interface vlan 60

50-1(config-if)#standby 60 priority 100

50-1(config-if)#standby 60 ip 192.168.60.252

50-1(config-if)#exit

50-1(config)#

%HSRP-6-STATECHANGE: Vlan60 Grp 60 state Speak -> Standby

%HSRP-6-STATECHANGE: Vlan60 Grp 60 state Standby -> Active

50-1(config)#

4、三层交换机50-3配置

50-3>

50-3>en

50-3#conf t

Enter configuration commands, one per line. End with CNTL/Z.

50-3(config)#interface vlan 50

50-3(config-if)#st

50-3(config-if)#standby 50 ip 192.168.50.252

50-3(config-if)#exit

50-3(config)#interface vlan 60

%HSRP-6-STATECHANGE: Vlan50 Grp 50 state Speak -> Standby

50-3(config-if)#standby 60 priority 110

50-3(config-if)#standby 60 ip 192.168.60.252

50-3(config-if)#standby 60 preempt

50-3(config-if)#

%HSRP-6-STATECHANGE: Vlan60 Grp 60 state Standby -> Active

50-3(config-if)#standby 60 track gigabitEthernet 0/2

50-3(config-if)#exit

50-3(config)#

 5、查看交换机50-1的HSRP服务

 6、未断开50-1交换机测试

 7、断开50-1交换机测试

 发现不通,思考什么原因。

检测PC配置发现为获取正确的IP地址,问题找到。

 8、配置50-3的DHCP服务

50-3(config)#ip dhcp pool vlan50

50-3(dhcp-config)#network 192.168.50.0 255.255.255.0

50-3(dhcp-config)#dns-server 114.114.114.114

50-3(dhcp-config)#default-router 192.168.50.253

50-3(dhcp-config)#exit

50-3(config)#ip dhcp pool vlan60

50-3(dhcp-config)#network 192.168.60.0 255.255.255.0

50-3(dhcp-config)#dns-server 114.114.114.114

50-3(dhcp-config)#default-router 192.168.60.253

50-3(dhcp-config)#

9、PC重新获取IP地址,发现网关发生变化

10、ping测试连通性

相关内容

热门资讯

AI做攻略、“双向奔赴”……国... 本文转自:人民网人民网记者 许维娜今年国庆假期,AI(人工智能)成了不少年轻人的“旅行搭子”。行前做...
合肥的这个“梗”, 翻篇了 社交平台的评论区,曾长期流传一句专属于合肥的黑色幽默。有人问合肥哪里好玩,本地网友半开玩笑地回复:合...
7万+旅游中高层都在的群,今天... 做旅游这行,资源卡位、渠道互通、项目落地——往往就差一个“对的机会”。我们的行业社群已聚集70,00...
一场帐篷音乐节,如何让井研从“... 帐篷音乐节现场封面新闻记者 周洪攀10月的研溪湿地,晚风里裹着柑橘的清甜与民谣的回响。夜幕降临,10...
白鹤翩翩落星愿,上海迪士尼度假... 10月9日,世界候鸟日前夕,上海迪士尼度假区星愿公园的湖风里多了一分白鹤的灵动。三座白鹤雕塑正式揭幕...
成都锦江边赏初秋枫叶飘飘 目前,成都锦江边国华街枫叶树红了。近年来,国华街附近的几条街都栽种了红枫树,是城区较集中看枫叶的点位...
GBTA:商务旅行正在复苏,但... 亚太正在成为全球商务旅行增长的重要引擎。在经历疫情后的快速反弹之后,全球商务旅行正在进入一个新的增长...
从景区焕新到节赛引流 邹城双节... 齐鲁网·闪电新闻10月9日讯 中秋、国庆“双节”假期,邹城市文化和旅游局提前谋划、周密部署,立足自身...
江山如此多娇 且看石楼今朝 金秋十月,黄河岸畔秋意盎然,丰收盛会喜迎国庆。本次石楼国庆文旅活动以“江山如此多娇,且看石楼今朝”为...
海南国庆假期接待游客475.4... 2026年国庆假期,海南接待游客475.40万人次,较2025年增长13.1%,较2024年增长15...