Use Access mode for interoperability with VLANs
Display MAC address VLAN 10
View VLAN10 MAC Address Table
Display MAC Address Aging Time
View MAC address Survival time
Display VLAN
View VLAN and port correspondence above the switch
Display Port VLAN
View the mode of the port on the switch and the VLAN correspondence
<sw1>undo Terminal Monitor
Undo the log on the terminal display
Interoperability with VLANs
SW1 settings
<sw1>system-view
Enter system view to join VLAN 10
[Sw1]vlan 10
Enter interface
[Sw1]interface GIG0/0/1
Port connection type is access mode
[Sw1-gig0/0/1]port link-type Access
Port joins default VLAN 10
[Sw1-gig0/0/1]port Default VLAN 10
[Sw1]interface GIG0/0/2
[Sw1-gig0/0/2]port link-type Access
[Sw1-gig0/0/2]port Default VLAN 10
PC Settings
pc1:192.168.1.1 255.255.255.0
pc2:192.168.1.2 255.255.255.0
Results: Realizing PC1 and PC2 interoperability
SW1 settings
[Sw1]vlan 30
[Sw1]interface GIG0/0/3
[Sw1-gig0/0/3]port link-type Access
[Sw1-gig0/0/3]port Default VLAN 30
[Sw1]interface GIG0/0/4
[Sw1-gig0/0/4]port link-type Access
[Sw1-gig0/0/4]port Default VLAN 30
SW2 settings
[Sw2]vlan 30
[Sw2]interface GIG0/0/1
[Sw2-gig0/0/1]port link-type Access
[Sw2-gig0/0/1]port Default VLAN 30
[Sw2]vlan 30
[Sw2]interface GIG0/0/2
[Sw2-gig0/0/2]port link-type Access
[Sw2-gig0/0/2]port Default Vlan30
Pc settings
pc5:192.168.3.1 255.255.255.0
pc3:192.168.3.2 255.255.255.0
Results: Realizing PC5 and PC3 interoperability
Use Access mode for interoperability with VLANs