CCNAオンHSRP _09実験

1、実験目的

HSRPの操作をマスター

2、トポロジーと需要

トポロジ:
ここに画像を挿入説明
需要:

  1. SW1の線は4との間には、トランク、802.1Qカプセル化プロトコルで配置され、SW1が分割VLAN 10、SW4意志にVLAN 10,20 2、IPアドレスの設定、SW3インターフェイスE0 / 0インターフェースプレストポロジーSVIを作成しますインターフェイスE0 /分割VLAN 0~20。
  2. SW1とSW2 SVI 10は共通の仮想HSRPグループ10、仮想IPが192.168.10.254で、SW1優先度が最大に設定され、デフォルトの優先度SW2はプリエンプションオンします。
  3. SW1とSW2 SVI 20共通の仮想HSRPグループ20、仮想IPは192.168.20.254、SW1のデフォルトの優先度、SW2の優先度が最大に設定され、オープンプリエンプションあります。

図3に示すように、構成および実装

  1. SW1の線は4との間には、トランク、802.1Qカプセル化プロトコルで配置され、SW1が分割VLAN 10、SW4意志にVLAN 10,20 2、IPアドレスの設定、SW3インターフェイスE0 / 0インターフェースプレストポロジーSVIを作成しますインターフェイスE0 /分割VLAN 0~20。

SW1

SW1(config)#interface range ethernet 0/0-2
SW1(config-if-range)#switchport trunk encapsulation dot1q
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#vlan 10,20
SW1(config-vlan)#interface vlan 10
SW1(config-if)#ip address 192.168.10.252 255.255.255.0
SW1(config-if)#no shutdown
SW1(config-if)#interface vlan 20
SW1(config-if)#ip address 192.168.20.252 255.255.255.0
SW1(config-if)#no shutdown

SW2

SW2(config)#interface range ethernet 0/0-2
SW2(config-if-range)#switchport trunk encapsulation dot1q
SW2(config-if-range)#switchport mode trunk
SW2(config-if-range)#vlan 10,20
SW2(config-vlan)#interface vlan 10
SW2(config-if)#ip address 192.168.10.253 255.255.255.0
SW2(config-if)#no shutdown
SW2(config-if)#interface vlan 20
SW2(config-if)#ip address 192.168.20.253 255.255.255.0
SW2(config-if)#no shutdown

SW3

SW3(config)#interface range ethernet 0/1-2
SW3(config-if-range)#switchport trunk encapsulation dot1q
SW3(config-if-range)#switchport mode trunk
SW3(config)#interface ethernet 0/0
SW3(config-if)#switchport mode access
SW3(config-if)#switchport access vlan 10
% Access VLAN does not exist. Creating vlan 10

SW4

SW4(config)#interface range ethernet 0/1-2
SW4(config-if-range)#switchport trunk encapsulation dot1q
SW4(config-if-range)#switchport mode trunk
SW4(config)#interface ethernet 0/0
SW4(config-if)#switchport mode access
SW4(config-if)#switchport access vlan 20
% Access VLAN does not exist. Creating vlan 20
  1. SW1とSW2 SVI 10は共通の仮想HSRPグループ10、仮想IPが192.168.10.254で、SW1優先度が最大に設定され、デフォルトの優先度SW2はプリエンプションオンします。

SW1

SW1(config-if)#interface vlan 10
SW1(config-if)#standby 10 ip 192.168.10.254
SW1(config-if)#standby 10 priority 255
SW1(config-if)#standby 10 preempt 

SW2

SW2(config-if)#interface vlan 10
SW2(config-if)#standby 10 ip 192.168.10.254
SW2(config-if)#standby 10 preempt 

ここに画像を挿入説明
3. SW1及びSW2 SVI 20共通の仮想HSRPグループ20、仮想IPが192.168.20.254で、SW1のデフォルトの優先度、SW2の優先度が最大に設定されている、オープンプリエンプションあり、
SW1

SW1(config-if)#interface vlan 20
SW1(config-if)#standby 20 ip 192.168.20.254
SW1(config-if)#standby 20 preempt 

SW2

SW2(config-if)#interface vlan 20
SW2(config-if)#standby 20 ip 192.168.20.254
SW2(config-if)#standby 20 priority 255
SW2(config-if)#standby 20 preempt 

ここに画像を挿入説明
ここに画像を挿入説明

公開された56元の記事 ウォン称賛50 ビュー20000 +

おすすめ

転載: blog.csdn.net/weixin_43883625/article/details/104574324