Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring a Set of VLANs to Act as a Switch for a Layer 2 Trunk Port

    You can configure a set of VLANs that are associated with a Layer 2 trunk port. The set of VLANs function as a switch. Packets received on a trunk interface are forwarded within a VLAN that has the same VLAN identifier. A trunk interface also provides support for IRB, which provides support for Layer 2 bridging and Layer 3 IP routing on the same interface.

    To configure a Layer 2 trunk port and set of VLANs, include the following statements:

    [edit interfaces]
    interface-name {unit number {family ethernet-switching {interface-mode access;vlan-members (vlan-name | vlan-tag);}}}
    interface-name {native-vlan-id number;unit number {family ethernet-switching {interface-mode trunk;vlan-members (vlan-name | vlan-tag);}}}
    [edit vlans ]
    vlan-name {vlan-id number;vlan-id-list [ vlan-id-numbers ];. . . .}

    You must configure a VLAN and VLAN identifier for each VLAN associated with the trunk interface. You can configure one or more trunk or access interfaces at the [edit interfaces] hierarchy level. An access interface enables you to accept packets with no VLAN identifier.

    Published: 2013-04-03