In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. Primary VLAN1. Networking requirements
VLAN 5 and VLAN 10 on Device B are Primary VLAN and their uplink port GigabitEthernet1/0/1
Messages from VLAN 5 and VLAN 10 need to be allowed to carry VLAN Tag through.
Device B's downlink port GigabitEthernet1/0/2 allows Secondary VLAN 2 to pass through
GigabitEthernet1/0/3 allows Secondary VLAN 3 to pass, VLAN 2 and VLAN 3 to map to Primary
VLAN 5 .
Device B's downlink port GigabitEthernet1/0/6 allows Secondary VLAN 6 to pass through
GigabitEthernet1/0/8 allows Secondary VLAN 8 to pass, VLAN 6 and VLAN 8 to map to Primary
VLAN 10 .
From the perspective of Device A, the next Device B only has VLAN 5 and VLAN 10. ***
Configuration step (1) configure Device B to configure VLAN 5 and VLAN 10 as Primary VLAN2
System-view
[DeviceB] vlan 5
[DeviceB-vlan5] private-vlan primary
[DeviceB-vlan5] quit
[DeviceB] vlan 10
[DeviceB-vlan10] private-vlan primary
[DeviceB-vlan10] quit
Create Secondary VLAN 2, 3, 6, 8.
[DeviceB] vlan 2 to 3
[DeviceB] vlan 6
[DeviceB-vlan6] quit
[DeviceB] vlan 8
[DeviceB-vlan8] quit
# configure the uplink port GigabitEthernet1/0/1 to work in trunk promiscuous mode # in VLAN 5 and VLAN 10. [DeviceB] interface gigabitethernet 1-0-1 [DeviceB- GigabitEthernet1/0/1] port private-vlan 5 10 trunk promiscuous [DeviceB- GigabitEthernet1/0/1] quit#### adds downlink ports GigabitEthernet1/0/2 to VLAN 2, GigabitEthernet1/0/3 to VLAN 3, and # configure them to work in host mode. [DeviceB] interface gigabitethernet 1-0-2 [DeviceB- GigabitEthernet1/0/2] port access vlan 2 [DeviceB- GigabitEthernet1/0/2] port private-vlan host [DeviceB- GigabitEthernet1/0/2] quit [DeviceB] interface ten-gigabitethernet 1-0-3 [DeviceB- GigabitEthernet1/0/3] port access vlan 3 [DeviceB- GigabitEthernet1/0/3] port private-vlan host [DeviceB- GigabitEthernet1/0/3] quit**#### configure the mapping relationship between Primary VLAN 5 and Secondary VLAN 2 and 3. [DeviceB] vlan5 [DeviceB-vlan5] private-vlan secondary 2 to 3 [DeviceB-vlan5] quit#### adds downlink ports GigabitEthernet1/0/6 to VLAN 6, GigabitEthernet1/0/8 to VLAN 8, and # configure them to work in host mode. [DeviceB] interface gigabitethernet 1-0-6 [DeviceB- GigabitEthernet1/0/6] port access vlan 6 [DeviceB- GigabitEthernet1/0/6] port private-vlan host [DeviceB- GigabitEthernet1/0/6] quit [DeviceB] interface gigabitethernet 1-0-8 [DeviceB- GigabitEthernet1/0/8] port access vlan 8 [DeviceB- GigabitEthernet1/0/8] port private-vlan host [DeviceB- GigabitEthernet1/0/8] quit#### configure the mapping relationship between Primary VLAN 10 and Secondary VLAN 6, 8. [DeviceB] vlan10 [DeviceB-vlan10] private-vlan secondary 6 8 [DeviceB-vlan10] quit (2) configure Device A to create VLAN 5 and VLAN 10.
[DeviceA] vlan 5
[DeviceA-vlan5] quit
[DeviceA] vlan 10
[DeviceA-vlan10] quit
Configure port GigabitEthernet1/0/1 to be a Hybrid port and allow VLAN 5 and VLAN 10 to carry Tag through.
[DeviceA] interface gigabitethernet 1-0-1
[DeviceA- GigabitEthernet1/0/1] port link-type hybrid
[DeviceA- GigabitEthernet1/0/1] port hybrid vlan 5 10 tagged
[DeviceA- GigabitEthernet1/0/1] quit
3. Display and verify to show the configuration of Primary VLAN 5 on Device B (the display result of Primary VLAN 10 is similar and is no longer listed here).
[DeviceB] display private-vlan 5
Primary VLAN ID: 5
Secondary VLAN ID: 2-
II. Super VLAN1. Networking requirements (the simulator does not support supervlan enough to display the effect correctly)
Create Super VLAN 10, and the IP address of the corresponding VLAN interface is 10.0.0.1 hand 24.
Create Sub VLAN:VLAN 2, VLAN 3, VLAN 5.
Port GigabitEthernet1/0/1 and port GigabitEthernet1/0/2 belong to VLAN 2
Port GigabitEthernet1/0/3 and port GigabitEthernet1/0/4 belong to VLAN 3
Port GigabitEthernet1/0/5 and port GigabitEthernet1/0/6 belong to VLAN 5.
The users of each Sub VLAN can satisfy layer 2 isolation and layer 3 interworking.
two。 The configuration step creates VLAN 10 and configures the IP address of the VLAN interface to 10.0.0.1 hand 24.
System-view
[Sysname] vlan 10
[Sysname-vlan10] quit
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ip address 10.0.0.1 255.255.255.0
Turn on the local ARP agent function of the device.
[Sysname-Vlan-interface10] local-proxy-arp enable
[Sysname-Vlan-interface10] quit
Create VLAN 2 and add port GigabitEthernet1/0/1 and port GigabitEthernet1/0/2.
[Sysname] vlan 2
[Sysname-vlan2] port gigabitethernet 1-0-1 gigabitethernet 1-0-2
[Sysname-vlan2] quit
Create VLAN 3 and add port GigabitEthernet1/0/3 and port GigabitEthernet1/0/4.
[Sysname] vlan 3
[Sysname-vlan3] port gigabitethernet 1-0-3 gigabitethernet 1-0-4
[Sysname-vlan3] quit
Create VLAN 5 and add port GigabitEthernet1/0/5 and port GigabitEthernet1/0/6.
[Sysname] vlan 5
[Sysname-vlan5] port gigabitethernet 1-0-5 gigabitethernet 1-0-6
[Sysname-vlan5] quit
Specify VLAN 10 as Super VLAN,VLAN 2, VLAN 3, and VLAN 5 as Sub VLAN.
[Sysname] vlan 10
[Sysname-vlan10] supervlan
[Sysname-vlan10] subvlan 2 3 5
[Sysname-vlan10] quit
[Sysname] quit
3. Display and verify the information about viewing Super VLAN to verify that the above configuration is effective.
Display supervlan
Super VLAN ID: 10
Sub-VLAN ID: 2-3 5
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.