In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "how to realize the interworking of different vlan". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Interworking between different vlan
Description:
Left VLAN10, right VLAN20, left switch6 trunk port, right switch7 access port.
Therefore, the ge0/0/1 port of the left router3 receives the packet to vlan tag. In order to process it, it needs to set up a subinterface and encapsulate it as dot1Q 10, so that the tag packet of this vlan10 can be processed and will not be discarded.
Exit the access on the right, and the one to router4 is the untag packet, so just set a gateway address.
Although the right switch7 can not see the package with vlan tag upstream and downstream, it still passes through a tag with vlan 20 when it passes through switch7, and dismantles the tag of vlan 20 when it goes out.
Configuration
Router3
# and the interconnection address of router4 interface GigabitEthernet0/0/0 ip address 10.0.1.1 255.255.255.252 duplex auto speed autoconnect interface GigabitEthernet0/0/1 no ip address duplex auto speed autoconnect # connect the logic port of switch6, here we dot1Q package, vlan 10interface GigabitEthernet0/0/1.10 encapsulation dot1Q 10 ip address 192.168.1.254 255.255.255.255.0 static route ip route 192.168.2.0 255.255.255.0 10.0.1.2
Route4
# and router3's interconnection address interface GigabitEthernet0/0/0 ip address 10.0.1.2 255.255.255.252 duplex auto speed autoconnect # is connected to the port of switch8. Here only the gateway address interface GigabitEthernet0/0/1 ip address 192.168.254 255.255.255.0 duplex auto speed autoconnect # is set to the static route ip route 192.168.1.0 255.255.255.0 10.0.1.1 to router3
Switch6
# connect to the interface of router3, where trunk mode allows all vlan to connect to the port of PC7 through interface FastEthernet0/1 switchport mode trunks # and the untag packet will be marked with 10 interface FastEthernet0/2 switchport access vlan 10!
Switch7
# the port connected to router4 is mainly compared with the right side. Here is access mode and vlan20, so you can allow the data from the following vlan20 to pass through, and when you go out through this port to router4, you have already removed the vlan taginterface FastEthernet0/1 switchport access vlan20! # after receiving the PC8,untag package, you will hit the taginterface FastEthernet0/2 switchport access vlan20 of vlan20!
PC7
PC8
This is the end of the content of "how to achieve different vlan interworking". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.