EasyManua.ls Logo

Ruijie RG-S2900G-E Series - Page 208

Ruijie RG-S2900G-E Series
943 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Configuration Guide Private VLAN Configuration
The following example configures Secondary VLAN routing:
Ruijie# configure terminal
Ruijie(config)# interface vlan 202
Ruijie(config-if)# private-vlan mapping add 303-307,309,440
Ruijie(config-if)# end
Ruijie#
Note
The primary VLAN and the secondary VLANs in this process are associated.
Configuring a Layer 2 Interface as the Host Port of a Private VLAN
To configure a layer 2 interface as the Host Port of a private VLAN, execute the
following commands:
Command
Description
configure terminal
Enter the global configuration mode.
interface <interface>
Enter the interface configuration mode.
Three kinds of interfaces are available: fastethernet,
GE and 10GE.
switchport mode private-vlan host
Configure the interface as the host interface of the
private VLAN.
no switchport mode
Remove the configuration.
End
Exit the interface mode.
switchport private-vlan
host-association p_vid s_vid
Associate the layer 2 interface with the private VLAN.
no switchport private-vlan
host-association
Remove the association.
For example:
Ruijie# configure terminal
Ruijie(config)# interface gigabitEthernet 0/2
Ruijie(config-if)# switchport mode private-vlan host
Ruijie(config-if)# switchport private-vlan host-association
202 203
Ruijie(config-if)# end
Note
The primary VLAN and the secondary VLANs in this process are associated.

Table of Contents

Related product manuals