Skip to content
Ask AI

Port Isolation Configuration

Port isolation allows the isolation of ports within the same VLAN. By adding ports to an isolation group, isolation between Layer 2 data packets and multicast packets can be achieved for the ports within the isolation group. Traffic between ports within the isolation group and ports not added to the isolation group is not affected by the isolation group and can flow bidirectionally.

OperationCommandDescription
Enter the system configuration viewconfigure
Create and enter isolation group viewport-isolate-group ID
Enter interface viewinterface ethernet ID
Add interface to isolation groupport-isolate ID

Network requirements

A cell has multiple users, and now requires that the users cannot interoperate with each other’s Layer 2 messages, but all can access the external network.

Procedure

  1. Create a VLAN and add the interface to the VLAN
sonic(config)# vlan 100
sonic(config)# port-group ethernet 1-4
sonic(config-port-group-1-4)# switchport access vlan 100
  1. Create port isolation group
sonic(config)# port-isolate-group 1
sonic(config-port-isolate-group-1)# interface 1,2,3

Verify configuration

  1. View the port ioslation group configuration
sonic# show port-isolate-group
+------------+-------------+--------+
| Group ID | Interface | Mode |
+============+=============+========+
| 1 | Ethernet1 | L2 |
| | Ethernet2 | |
| | Ethernet3 | |
+------------+-------------+--------+
  1. No interoperability between PCs, all PCs can access the external network