cisco Catalyst 9300 — Private VLAN Port Configuration

For more information about using the ip sticky-arp global configuration and the ip sticky-arp interface configuration commands, see the command reference for this release. • You can configure VLAN maps on primary and secondary VLANs. However, we recommend that you configure the same VLAN maps on private-VLAN primary and secondary VLANs. • PVLANs are bidirectional. They can be applied at both the ingress and egress sides. When a frame inLayer-2 is forwarded within a private VLAN, the VLAN map is applied at the ingress side and at the egress side. When a frame is routed from inside a private VLAN to an external port, the private-VLAN map is applied at the ingress side.

Similarly, when the frame is routed from an external port to a Private VLAN, the private-VLAN is applied at the egress side. Bridging • For upstream traffic from secondary VLAN to primary VLAN, the MAP of the secondary VLAN is applied on the ingress side and the MAP of the primary VLAN is applied on the egress side. • For downstream traffic from primary VLAN to secondary VLAN, the MAP of the primary VLAN is applied in the ingress direction and the MAP of the secondary VLAN is applied in the egress direction. Routing If we have two private VLAN domains - PV1 (sec1, prim1) and PV2 (sec2, prim2). For frames routed from PV1 to PV2:

• The MAP of sec1 and L3 ACL of prim1 is applied in the ingress port . • The MAP of sec1 and L3 ACL of prim2 is applied in the egress port. • For packets going upstream or downstream from isolated host port to promiscuous port, the isolated VLAN’s VACL is applied in the ingress direction and primary VLAN’S VACL is applied in the egress direction. This allows user to configure different VACL for different secondary VLAN in a same primary VLAN domain. To filter out specific IP traffic for a private VLAN, you should apply the VLAN map to both the primary and secondary VLANs. • You can apply router ACLs only on the primary-VLAN SVIs.

The ACL is applied to both primary and secondary VLAN Layer 3 traffic. • Although private VLANs provide host isolation at Layer 2, hosts can communicate with each other at Layer 3. • Private VLANs support these Switched Port Analyzer (SPAN) features: • You can configure a private-VLAN port as a SPAN source port. • You can use VLAN-based SPAN (VSPAN) on primary, isolated, and community VLANs or use SPAN on only one VLAN to separately monitor egress or ingress traffic. Private VLAN Port Configuration Follow these guidelines when configuring private VLAN ports: Configuring Private VLANs Private VLAN Port Configuration VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 74