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

Routing interworking of layer 3 switches on vlan

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

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.

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