Switch Trunk port configuration

Source: Internet
Author: User

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. 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. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.