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

Layer 3 switch configuration routin

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Lab Topology:

The experiment uses a cisco simulator, which requires:

Realize the routing function between each pc in different vlan interworking configuration switch and pc link configuration switch between trunk link layer 3 switch, and configure ip address on SVI.

Get used to configuring devices from the bottom up

Here are the configuration steps: first configure the PC with an ip address

Pc1 ip:192.168.1.1 255.255.255.0

Pc2 ip:192.168.2.1 255.255.255.0

Pc3 ip:192.168.3.1 255.255.255.0

Pc4 ip:192.168.4.1 255.255.255.0

Pc5 ip:192.168.6.1 255.255.255.0 set up vlan on sw

Build vlan 10 vlan 20 on Sw1, build vlan 30 vlan 40 on sw2, and build vlan 10 vlan 20 vlan 30 vlan 40 on both sides of the list.

Switch > enable

Switch#configure terminal

Switch (config) # hostname sw1

Sw1 (config) # vlan 10

Sw1 sw2 sw3 sw4 configure access links between Sw1 sw2 and PC in the same way

Sw1 (config) # Interface fastethernet 0amp 1

Sw1 (config-if) # switchport mode access

Sw1 (config-if) # switchport access vlan 10

The other three links are configured in the same way

Configure trunk links between Sw:

Sw1 (config-if) # switchport mode trunk

Sw1 (config-if) # switchport trunk allowed vlan all

6 links the same way to configure the link configuration between layer 3 switch and sw3 sw4

The egress port of layer 2 switch is configured as trunk, and the ingress port of layer 3 switch does not need to be configured with trunk.

The layer 3 switch establishes valn 10 20 30 40 and enters the fastethernet 0 Universe 3 port.

Switch (config-if) # no shutdown

Switch (config-if) # no switchport close the sw port, open the routed port, and configure the ip address

Switch (config-if) # ip address 192.168.5.1 255.255.255.0

Enter SVI (virtual port) to configure the gateway:

Switch (config) # Interface vlan 10

Sw1 (config-if) # no shutdown

Sw1 (config-if) # ip address 192.168.1.254 255.255.255.0

Vlan 20 30 40 configure the gateway in the same way to configure the router 2 port ip addresses:

Router > en

Router#config

Router (config) # int gi 0amp 2

Router (config-if) # no shutdown

Router (config-if) # ip address 192.168.5.2 255.255.255.0

Router (config-if) # quit

Router (config) # int gi 0Universe 0

Router (config-if) # no shutdown

Router (config-if) # ip address 192.168.6.254 255.255.255.0

Verification Test:

Use the ip addresses of other vlan of pc1 ping to see if you can ping

The results show that the ping communication between different vlan PCs shows that the layer 3 switch realizes the routing function, and the configuration of layer 3 switch routing is successful.

Experimental questions and analysis of each switch configuration should be verified first, so that errors are not easy to occur. Ping connection is the first time there is a prompt timeout. It should take a certain amount of time for ping packet routing between the switch and layer 3 switch. No trunk link is set up between the switch and layer 3 switch. If it is set as a trunk link in the topology, it can also be ping in the topology.

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

Servers

Wechat

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

12
Report