This article is for forwarding, simple and clear, I like.
The configuration steps for Trunk ports are as follows:
A set of network requirements:
1. SwitchA and SwitchB with trunk interconnection, the same VLAN between the PC can exchange visits, different VLANs between the PC to prohibit mutual visits;
2. Between PC1 and PC2 in different VLANs, by setting the upper layer three switch SwitchB VLAN interface 10 IP address for 10.1.1.254/24,vlan interface 20 IP address for 20.1.1.254/24 can achieve inter-VLAN visits.
Two-group Network diagram:
1. Intra-VLAN visits, inter-VLAN exclusion
2. Inter-VLAN visits via three-layer switches
Three configuration steps:
Implementation of VLAN-to-VLAN-no-visit configuration process
SwitchA Related configurations:
1. Create (Enter) VLAN10 and e0/1 Add to VLAN10 [Switcha]vlanTen[SwitchA-vlan10]port Ethernet0/1 2. Create (Enter) VLAN20 and e0/2 Add to VLAN20 [Switcha]vlan -[SwitchA-vlan20]port Ethernet0/2 3. G1/the port1 configured as Trunk port and allows VLAN10 and VLAN20 to pass [SwitchA]InterfaceGigabitethernet1/1[SwitchA-gigabitethernet1/1]port link-type trunk [SwitchA-gigabitethernet1/1]port Trunk Permit VLANTen -
SwitchB Related configurations:
1. Create (Enter) VLAN10 and e0/10 Add to VLAN10 [Switchb]vlanTen[SwitchB-vlan10]port Ethernet0/Ten 2. Create (Enter) VLAN20 and e0/20 Add to VLAN20 [Switchb]vlan -[SwitchB-vlan20]port Ethernet0/ - 3. Configure Port G1/1 as Trunk port and allow VLAN10 and VLAN20 to pass
[SwitchB]InterfaceGigabitethernet1/1[SwitchB-gigabitethernet1/1]port Link-type Trunk
[switchb-gigabitethernet1/1]port Trunk Permit VLANTen -configuration of inter-VLAN visits via three-layer switches
SwitchA Related configurations:
1. Create (Enter) VLAN10 and e0/1 Add to VLAN10 [Switcha]vlanTen[SwitchA-vlan10]port Ethernet0/1 2. Create (Enter) VLAN20 and e0/2 Add to VLAN20 [Switcha]vlan -[SwitchA-vlan20]port Ethernet0/2 3. Configure Port G1/1 as Trunk port and allow VLAN10 and VLAN20 to pass
[SwitchA]InterfaceGigabitethernet1/1[SwitchA-gigabitethernet1/1]port Link-type Trunk
[switcha-gigabitethernet1/1]port Trunk Permit VLANTen -
SwitchB Related configurations:
1. Create VLAN10 [Switchb]vlanTen 2. Set the virtual interface address of the VLAN10 [SwitchB]InterfaceVlanTen[SwitchB-int-vlan10]ip Address10.1.1.254 255.255.255.0 3. Create VLAN20 [Switchb]vlan - 4. Set the virtual interface address of the VLAN20 [SwitchB]InterfaceVlan -[SwitchB-int-vlan20]ip Address20.1.1.254 255.255.255.0 5. G1/the port1 configured as Trunk port and allows VLAN10 and VLAN20 to pass [SwitchA]InterfaceGigabitethernet1/1[SwitchA-gigabitethernet1/1]port link-type trunk [SwitchA-gigabitethernet1/1]port Trunk Permit VLANTen -
The configuration of the trunk port in the VLAN is over, I hope you have mastered it.
Switch Trunk port configuration