oray
  • Products
  • Solutions
  • Downloads
  • Pricing
  • Resources
  • Become a partner
  • Products
  • Solutions
  • Downloads
  • Pricing
  • Resources
  • Become a partner
More
Products
  • AweSun Remote Desktop Control
  • AweSeed Intelligente Networking
  • AweShell NAT Traversal Expert
Solutions
  • IT Operations & Support
  • Remote Work
  • Technical Support
  • Industrial IoT
  • Video Surveillance
  • Remote Data Access
  • Industrial manufacturing
  • Chain retail
Downloads
  • AweSun Personal Edition
  • AweSeed Client
  • AweShell Client
Pricing
  • AweSun Personal Plan
  • AweSeed Business Plan
  • AweShell Personal Plan
  • AweShell Business Plan
Resources
  • Resources
Become a partner
  • Become a partner
More
i18n
arrow
AI-translated page. Original content available in English.
Contact Us
Smart Hardware

AweSun

  • AweSun
  • AweSeed
  • AweShell
  • Account
Search for this product
Search all.
  • Search all documents

Quick Start

Individual user

How do I initiate Remote Assistance with an identification code?

Unattended access your computer

What is a channel connection

Awesun Safety Remote Control Tutorial

Operation Help

Software application

Desktop application

How to Remote Files on Computer

登录向日葵需要开放哪些端口

Privacy screen

Multi-screen control Multi-screen

Handle Mapping

Intelligent hardware

Power-on hardware

Power-on socket/patch panel FAQ

Remote control without network

Resolution and refresh frequency supported by intelligent remote control devices

How to use intelligent remote control equipment remote boot

Common problems of intelligent remote control equipment

Software Manual

Windows

Windows personal edition manual

Android & iOS

Control terminal Android version manual

Control terminal iOS version manual

User Manual of AweSun Host for Android

Intelligent hardware

Other

Intelligent remote control mouse (Bluetooth version) manual

Power on socket C2 manual

Case Center

Scenario Case

Telecommuting

Awesun Helps Huawei Improve Collaboration Efficiency

Industry Cases

IT Internet

How do well-known game manufacturers build internal remote assistance systems with the help of Aweray Awesun?

Smart Transportation

Soft and hard integrated solution to build intranet operation and maintenance, Aweray Awesun privatization deployment empowers Zhejiang Zhongche.

Intelligent Manufacturing

How to build an efficient cross-border remote technical support system when the manufacturing industry is out to sea?

Solution

IT Operation and Maintenance

Support ZTE's new fulcrum server operating system to Aweray the localization of Awesun empowerment.

How can enterprises quickly build a remote IT operation and maintenance system to deal with holiday business?

How does the first-line commercial equipment operate efficiently? Starting from these four aspects

Tips for remote IT management: How to group a large number of IT equipment? How to set up fast grouping?

To deal with the four major problems of chain operation and maintenance, Aweray Awesun IT operation and maintenance solutions to empower the chain retail industry.

Telecommuting

The Dragon Boat Festival holiday business is not interrupted, and the enterprise telecommuting plan is deployed in three steps.

Deal with these three pain points, 'painless' to build enterprise telecommuting system

After the telecommuting system is set up, how to manage IT assets in an enterprise in a unified way?

Technical Support

No longer piecemeal, how do enterprises build platform-based technical support services?

Efficient assistance, professional image, customer-oriented! Three aspects to build enterprise technical support professional reputation

How to ensure the security of remote control business? Analysis of the "whole process safety closed loop" system of Aweray Awesun

 


Cancel

Back to Home Page

Quick Start

 

Individual user

 

How do I initiate Remote Assistance with an identification code?

 

Unattended access your computer

 

What is a channel connection

 

Awesun Safety Remote Control Tutorial

 

Operation Help

 

Software application

 

Desktop application

 

How to Remote Files on Computer

 

登录向日葵需要开放哪些端口

 

Privacy screen

 

Multi-screen control Multi-screen

 

Handle Mapping

 

Intelligent hardware

 

Power-on hardware

 

Power-on socket/patch panel FAQ

 

Remote control without network

 

Resolution and refresh frequency supported by intelligent remote control devices

 

How to use intelligent remote control equipment remote boot

 

Common problems of intelligent remote control equipment

 

Software Manual

 

Windows

 

Windows personal edition manual

 

Android & iOS

 

Control terminal Android version manual

 

Control terminal iOS version manual

 

User Manual of AweSun Host for Android

 

Intelligent hardware

 

Other

 

Intelligent remote control mouse (Bluetooth version) manual

 

Power on socket C2 manual

 

Case Center

 

Scenario Case

 

Telecommuting

 

Awesun Helps Huawei Improve Collaboration Efficiency

 

Industry Cases

 

IT Internet

 

How do well-known game manufacturers build internal remote assistance systems with the help of Aweray Awesun?

 

Smart Transportation

 

Soft and hard integrated solution to build intranet operation and maintenance, Aweray Awesun privatization deployment empowers Zhejiang Zhongche.

 

Intelligent Manufacturing

 

How to build an efficient cross-border remote technical support system when the manufacturing industry is out to sea?

 

Solution

 

IT Operation and Maintenance

 

Support ZTE's new fulcrum server operating system to Aweray the localization of Awesun empowerment.

 

How can enterprises quickly build a remote IT operation and maintenance system to deal with holiday business?

 

How does the first-line commercial equipment operate efficiently? Starting from these four aspects

 

Tips for remote IT management: How to group a large number of IT equipment? How to set up fast grouping?

 

To deal with the four major problems of chain operation and maintenance, Aweray Awesun IT operation and maintenance solutions to empower the chain retail industry.

 

Telecommuting

 

The Dragon Boat Festival holiday business is not interrupted, and the enterprise telecommuting plan is deployed in three steps.

 

Deal with these three pain points, 'painless' to build enterprise telecommuting system

 

After the telecommuting system is set up, how to manage IT assets in an enterprise in a unified way?

 

Technical Support

 

No longer piecemeal, how do enterprises build platform-based technical support services?

 

Efficient assistance, professional image, customer-oriented! Three aspects to build enterprise technical support professional reputation

 

How to ensure the security of remote control business? Analysis of the "whole process safety closed loop" system of Aweray Awesun

 

Search for this product

Search all.

Home Page AweSun Port Mapping Understanding Switchport Private VLAN Mapping

Understanding Switchport Private VLAN Mapping

Update Date:2026-01-04 13:04:38

In the realm of network security and management, the concept of Private VLANs (PVLANs) has gained significant traction. PVLANs offer a robust mechanism to segment network traffic and enhance security by preventing direct communication between devices within the same VLAN. One of the key commands used to configure PVLANs is the switchport private vlan mapping command, which allows for precise control over the communication within a private VLAN environment.

##What is a Private VLAN (PVLAN)?

A Private VLAN (PVLAN) is a feature that extends the functionality of standard VLANs by providing additional security and isolation. In a traditional VLAN, all devices within the same VLAN can communicate with each other freely. However, in a PVLAN, this communication is restricted to ensure that only certain devices can interact, thereby enhancing security and reducing the attack surface. PVLANs are particularly useful in data centers, cloud environments, and any network where strict traffic segmentation is required. ##The Role of the switchport private vlan mapping Command

The switchport private vlan mapping command is a crucial element in configuring PVLANs. It allows network administrators to define the relationships between primary and secondary VLANs, ensuring that traffic is routed correctly and securely. The syntax of the command is as follows:

switchport private-vlan mapping add primary_vlan secondary_vlan

This command maps a secondary VLAN to a primary VLAN, enabling devices in the secondary VLAN to communicate with devices in the primary VLAN while maintaining isolation from other secondary VLANs. This setup is essential for managing complex network environments where multiple devices need controlled access to resources.

##Configuring Private VLANs with switchport private vlan mapping

To effectively configure a PVLAN, you need to follow a series of steps. These steps ensure that the network is segmented correctly and that security policies are enforced.

  1. Define the Primary and Secondary VLANs: First, you need to create the primary VLAN. This VLAN will act as the hub for communication. Next, create the secondary VLANs. These VLANs will be mapped to the primary VLAN.

  2. Configure the Primary VLAN Port: On the switch, configure the port that will serve as the primary VLAN port using the following command:

    switchport private-vlan primary
    switchport private-vlan association add primary_vlan secondary_vlan
    
  3. Map the Secondary VLANs: Use the switchport private vlan mapping command to map the secondary VLANs to the primary VLAN. For example:

    switchport private-vlan mapping add 10 20
    

    This command maps secondary VLAN 20 to primary VLAN 10.

  4. Verify the Configuration: After configuring the PVLAN, it is essential to verify the settings using the following command:

    show private-vlan mapping
    

    This command displays the PVLAN mappings and confirms that the configuration is correct.

##Benefits of Using Private VLANs

The use of PVLANs, particularly when configured with the switchport private vlan mapping command, offers several benefits:

Enhanced Security: By isolating devices within a VLAN, PVLANs reduce the risk of lateral movement by malicious actors. Improved Traffic Management: PVLANs allow for precise control over traffic flow, ensuring that only authorized devices can communicate. Simplified Network Design: PVLANs can help simplify complex network designs by providing a clear and manageable way to segment traffic.

##Case Study: Implementing PVLANs in a Data Center

Consider a data center environment where multiple servers need to access a common resource, but direct communication between the servers must be prevented. By using PVLANs and the switchport private vlan mapping command, the network can be configured as follows:

Primary VLAN (VLAN 10): This VLAN is configured as the primary VLAN and serves as the hub for communication. Secondary VLANs (VLANs 20, 30, 40): These VLANs are created for each server group. Each secondary VLAN is mapped to the primary VLAN using the switchport private vlan mapping command.

This configuration ensures that each server group can access the common resource in VLAN 10 but cannot communicate directly with other server groups, thus enhancing security and managing traffic effectively.

##Conclusion

Private VLANs (PVLANs) are a powerful tool for network administrators looking to enhance security and manage traffic more effectively. The switchport private vlan mapping command is a key component in configuring PVLANs, allowing for precise control over the communication within a private VLAN environment. By understanding and implementing PVLANs, network administrators can create a more secure and efficient network infrastructure.

For more detailed information and practical examples of configuring PVLANs, you can refer to the AweShell documentation, which provides comprehensive guidance and best practices for network management. ##FAQ

Q: What is the primary purpose of the switchport private vlan mapping command? A: The primary purpose of the switchport private vlan mapping command is to define the relationships between primary and secondary VLANs in a Private VLAN (PVLAN) environment. This command ensures that traffic is routed correctly and securely, allowing devices in secondary VLANs to communicate with devices in the primary VLAN while maintaining isolation from other secondary VLANs.

Q: How do I configure a primary VLAN port using the switchport private vlan mapping command? A: To configure a primary VLAN port, you need to use the following commands on the switch:

switchport private-vlan primary
switchport private-vlan association add primary_vlan secondary_vlan

These commands set the port as a primary VLAN port and associate the secondary VLANs with the primary VLAN.

Q: Can I map multiple secondary VLANs to a single primary VLAN using the switchport private vlan mapping command? A: Yes, you can map multiple secondary VLANs to a single primary VLAN. You can use the switchport private vlan mapping add command multiple times to map different secondary VLANs to the same primary VLAN. For example:

switchport private-vlan mapping add 10 20
switchport private-vlan mapping add 10 30

This configuration allows multiple secondary VLANs to communicate with the primary VLAN while maintaining isolation from each other .

Q: How can I verify the PVLAN mappings after configuration? A: To verify the PVLAN mappings, you can use the following command:

show private-vlan mapping

This command displays the PVLAN mappings and confirms that the configuration is correct, ensuring that the primary and secondary VLANs are set up as intended.

Previous article:

Understanding S...

Next:

Understanding S...

Did the content of the document help you?

Yes
No

If you encounter product-related problems, you can consult Online customer service Ask for help.

Document Feedback

Mouse selected content, quick feedback problem

If you have doubts in the selected document, you can quickly feedback the problem and we will follow up.

Example:

Dandelion Router

In the router management interface,In the router management interface,

①DHCP:ON;

② IP address range: fill in the start and end address segments;

Document Feedback  Document Feedback

Okay, I got it

Related issues

· Understanding Port Mapping: Internal and External Ports· Understanding Port Forwarding Mapping· How to Map Ports on the Router: A Comprehensive Guide· Understanding Switchport VLAN Mapping: Enhancing Network Flexibility and Security· Simplifying Port Forwarding: A Key to Seamless Network Connections· Intranet Mapping to Public Network: Simplifying Network Connectivity

Other issues

· Dynamic DNS (DDNS): Simplifying Connectivity for a Connected World· Understanding DDNS and DNS: Simplifying Network Management· How to Access Internal Network IP from External Network· Understanding Terminal Server Gateway· The Rise of Zero Trust Internal Networks· Understanding DNS and DDNS: A Comprehensive Guide
Document Feedback
Product Purchase
  • AweSun
  • AweSeed
  • AweShell
  • Smart Hardware
Downloads
  • AweSun Client
  • AweSeed Client
  • AweShell Client
Solutions
  • IT Operations & Support
  • Remote Work
  • Technical Support
  • Industrial IoT
  • Video Surveillance
  • Remote Data Access
Buy Now
  • AweSun Personal Plan
  • AweSeed Business Plan
  • AweShell Personal Plan
  • AweShell Business Plan
  • Redeem Code
Support
  • Contact customer service
  • Resources
  • Blog
Company
  • About us
  • Become a partner
  • Privacy Policy
  • Terms of Use
  • Cookies Policy
Copyright ©2026 AweRay PTE All Rights Reserved.
Product Purchase
  • AweSun
  • AweSeed
  • AweShell
  • Smart Hardware
Downloads
  • AweSun Client
  • AweSeed Client
  • AweShell Client
Solutions
  • IT Operations & Support
  • Remote Work
  • Technical Support
  • Industrial IoT
  • Video Surveillance
  • Remote Data Access
Buy Now
  • AweSun Personal Plan
  • AweSeed Business Plan
  • AweShell Personal Plan
  • AweShell Business Plan
  • Redeem Code
Support
  • Contact customer service
  • Resources
  • Blog
Company
  • About us
  • Become a partner
  • Privacy Policy
  • Terms of Use
  • Cookies Policy
Copyright ©2026 AweRay PTE All Rights Reserved.