Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[network knowledge points] Advanced switching technology

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Advanced switching technology

This paper will show the key knowledge points in advanced switching technology through experiments, mainly focusing on the actual configuration & key points of attention, and its basic concepts will not be explained.

Experimental environment:

GNS3, layer 3 switch uses C3640 + switching interface simulation, layer 2 switch uses C3640 + switching interface + off routing function simulation, host uses C7200 + turn off routing function simulation

Contains technology:

Basic switching technology

Advanced switching Defense Ring: MSTP

Advanced switching redundancy: gateway redundancy Technology-HSRP

Basic routing technology, OSPF basic configuration

The final realization:

The VLAN can communicate with each other; the VLAN10 traffic takes the R4-R2-R1 main route, the backup route R4murR3MurR1VLAN20 traffic takes the R4/R5-R3-R1 main route, and the backup route R4/R5-R2-R1, which can automatically switch the backup route when the link fails; the link redundancy between R2 and R3 is done, and the active and standby gateways are made, R2 is the main gateway of vlan10, the standby gateway of vlan20, R3 is the opposite.

VLAN10 segment is 192.168.10.X gateway is 10.254 VLAN20 segment is 192.168.20.X gateway is 20.254 VLAN30 segment is 192.168.30.X, vlan30 is isolated, only internal communication.

Related key configurations:

The configuration of basic switching technology is ignored. Refer to the previous blog article "basic switching Technology".

MSTP configuration

Configured on all switches

Config# spanning-tree-enable STP function. CISCO is enabled by default.

Config# spanning-tree mode mst-defines the STP schema as MSTP

Config#spanning-tree mst configuration

Config-mst# name CISCO-define the MSTP name

Config-mst# instance 1 vlan 10 definition instance 1

Config-mst# instance 2 vlan 20pl 30 definition instance 2

R2config# spanning-tree mst 1 root primary-instance 1 primarily

R2config# spanning-tree mst 2 root secondary-instance 2 for backup

R3config# spanning-tree mst 2 root primary-instance 2 is the main

R3config# spanning-tree mst 1 root secondary-instance 1 for backup

Show spanning-tree mst / / View

Routing configuration

R1 (config) # int f0bin0

R1 (config-if) # no switchport / / switch port to routed port

R1 (config-if) # ip add 10.1.12.1 255.255.255.0

R1 (config-if) # no shut

R1 (config-if) # exit

R1 (config) # int f0bin1

R1 (config-if) # no switchport

R1 (config-if) # ip address 10.1.13.1 255.255.255.0

R1 (config-if) # no shut

R1 (config-if) # exit

R1 (config) # int 10 / / configure loopback to simulate the public network

R1 (config-if) # ip add 1.1.1.1 255.255.255.255

R1 (config-if) # no shu

R1 (config-if) # exit

R2 (config) # int f0and0

# no switchport

R2 (config-if) # ip add 10.1.12.2 255.255.255.0

R2 (config-if) # no shu

R2 (config-if) # exit

R3 (config) # int f0Let0

# no switchport

R3 (config-if) # ip address 10.1.13.3 255.255.255.0

R3 (config-if) # no shu

R3 (config-if) # exit

R1 (config) # router ospf 1

R1 (config-router) # router-id 1.1.1.1

R1 (config-router) # network 10.1.12.0 0.0.255 area 0

R1 (config-router) # network 10.1.13.0 0.0.0.255 area 0

R1 (config-router) # network 1.1.1.1 0.0.0.0 area 0

R1 (config-router) # exit

R1 (config) #

R2 (config-router) # rou

R2 (config-router) # router-id 2.2.2.2

R2 (config-router) # network 10.1.12.0 0.0.255 area 0

R2 (config-router) # network 192.168.10.0 0.0.0.255 area 0

R2 (config-router) # exit

R3 configuration reference R2

HSRP configuration

R2 (config) # int vlan 10

R2 (config-if) # ip address 192.168.10.253 255.255.255.0

R2 (config-if) # standby 10 ip 192.168.10.254

R2 (config-if) # standby 10 priority 150

R2 (config-if) # standby 10 preempt

R2 (config-if) # exit

R2 (config) # int vlan 20

R2 (config-if) # ip address 192.168.20.252 255.255.255.0

R2 (config-if) # standby 20 ip 192.168.20.254

R2 (config-if) # standby 20 priority 100

R2 (config-if) # standby 20 preempt

R3 (config) # int vlan 10

R3 (config-if) # ip address 192.168.10.252 255.255.255.0

R3 (config-if) # standby 10 ip 192.168.10.254

R3 (config-if) # standby 10 priority 100

R3 (config-if) # standby 10 preempt

R3 (config-if) # exit

R3 (config) # int vlan 20

R3 (config-if) # ip address 192.168.20.253 255.255.255.0

R3 (config-if) # standby 20 ip 192.168.20.254

R3 (config-if) # standby 20 priority 150

R3 (config-if) # standby 20 preempt

Monitor remote faults for fast handover

R2 (config) # track 10 interface f0 ip routing

R2 (config-track) # exit

R2 (config) # int vlan 10

R2 (config-if) # standby 10 track 10 decrement 100

R2 (config-if) # exit

Test:

Originally:

R6#traceroute 192.168.20.2

Type escape sequence to abort.

Tracing the route to 192.168.20.2

1 192.168.10.253 32 msec 32 msec 44 msec

2 192.168.20.253 44 msec

192.168.20.2 40 msec 20 msec

Close:

R2 (config) # int f0and0

R2 (config-if) # shut

* Mar 1 01 Vlan10 Grp 47 state Active 48.447:% HSRP-5-STATECHANGE: Vlan10 Grp 10 state Active-> Speak

R6#traceroute 192.168.20.2

Type escape sequence to abort.

Tracing the route to 192.168.20.2

1 192.168.10.252 40 msec 44 msec 28 msec

2 192.168.20.2 32 msec 20 msec 48 msec

Restore:

* Mar 1 01 state Standby 4815 33. 547:% HSRP-5-STATECHANGE: Vlan10 Grp 10 state Standby-> Active

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report