Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Routing interworking of layer 3 switches on vlan

Shulou Source: shulou.com Published: 2022-06-01 06:58:00 10月01日 Update

Routing interworking of layer 3 switches on vlan

Introduction:

vlan is a concept only available in switch networking, created according to department or management requirements

A local area network, rather than segmented by location, is more flexible and secure.

I. Experimental topology:

II. Objective:

Layer 3 switching on vlan to realize routing interworking

III. Experimental environment:

router

IP address

Pc 0

192.168.0.2

Pc 1

192.168.1.2

Pc 2

192.168.0.3

Pc 3

192.168.1.3

Vlan 1

192.168.0.1

Vlan 2

192.168.1.1

IV. Experiment code:

switch 1

switch#config t

switch#vlan 1 Create vlan 1

switch#interface range fastEthernet 0/13 -24 13-24 interface belongs to vlan 1

switch#switchport mode access

switch#switchport access vlan 1

switch#interface gigabitEthernet 1/1

configured trunk link

switch#switchport mode trunk

switch#show vlan

View vlan

switch 2

switch#config t

switch(config)#vlan 2 Create vlan 2

switch(config)#interface range fastEthernet 0/13 -24

Interface 13 to 24 belongs to vlan 2

switch(config-if-range)#switchport mode access

switch(config-if-range)#switchport access vlan 2

switch(config)#interface gigabitEthernet 1/1

switch(config)#switchport mode trunk

switch 0

switch#config t

switch(config)#interface gigabitEthernet 1/1

switch(config)#switchport mode trunk

switch(config)#switchport trunk encapsulation dotlq

trunk link package format

switch(config)#switchport mode trunk

switch(config)#interface gigabitEthernet 0/2 configure trunk link

switch(config)#interface gigabitEthernet 0/1

switch(config)#switchport mode trunk

switch(config)#vlan 2

switch(config)#interface vlan 1

switch(config)#no shut

switch(config)#ip routing Start routing

switch(config)#interface vlan 1

switch(config)#ip add 192.168.0.1 255.255.255.0

switch(config)#int vlan 2

switch(config)#ip add 192.168.1.1 255.255.255.0

switch(config)#show interface vlan 1

show vlan :

ping 192.168.0.3

ping 192.168.1.3

ping 192.168.1.1

v. Experimental Summary:

1. Layer 3 switches have the ability to forward faster. Solve the problem of increasing internal flow visits between enterprises.

2. Because the use of router functions to achieve different vlan visits to meet the needs of enterprise users.

3. Portable cross-regional resource call and management.

Tags: Routing lab switch trunk road link top three enterprise function interface router mutual visit management different security code location address local area local area network topology Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL macOS Huawei NVidia Linux