Example Step: Configuring Interfaces and VLAN Tags
Configure the Ethernet interfaces and VLAN tags on all three
routers.
 | Note:
The configurations in this chapter are only
partial examples of complete and functional router configurations.
Do not copy these configurations and use them directly on an actual
system. |
To configure the Ethernet interfaces and VLAN tags on
all three routers:
Configure the Ethernet interfaces and VLAN tags on Router 1:
[edit]chassis {aggregated-devices {ethernet {device-count 2; # Number of AE interfaces on router}}}interfaces ge-2/1/0 {gigether-options {802.3ad ae2;}}interfaces ge-2/1/1 {gigether-options {802.3ad ae2;}}interfaces ge-2/1/2 {gigether-options {802.3ad ae2;}}interfaces ge-2/1/3 {gigether-options {802.3ad ae1;}}interfaces ge-2/1/4 {gigether-options {802.3ad ae1;}}interfaces ge-2/1/5 {gigether-options {802.3ad ae1;}}interfaces ge-2/2/1 {encapsulation flexible-ethernet-services;vlan-tagging; # Customer interface uses singly-tagged
framesunit 100 {encapsulation vlan-bridge;vlan-id 100;}unit 200 {encapsulation vlan-bridge;vlan-id 200;}}interfaces ge-2/2/2 {unit 0 {family bridge {interface-mode access;vlan-id 205;}}}interfaces ge-2/2/4 {native-vlan-id 200; # Untagged packets get vlan 200 tagunit 0 {family bridge {interface-mode trunk;vlan-id-list 200-205; # This trunk port is part of VLAN
range 200–205}}}interfaces ge-2/2/6 {encapsulation flexible-ethernet-services;vlan-tagging; # Customer interface uses singly-tagged
framesunit 200 {encapsulation vlan-bridge;vlan-id 200;}}interfaces ae1 {encapsulation extended-vlan-bridge;vlan-tagging;unit 100 {vlan-id 100;}unit 200 {vlan-id 200;}}interfaces ae2 {unit 0 {family bridge {interface-mode trunk;vlan-id-list 100, 200–205;}}}
Configure the Ethernet interfaces and VLAN tags on Router 2:
[edit]chassis {aggregated-devices {ethernet {device-count 2; # Number of AE interfaces on the router}}}interfaces ge-2/2/2 {encapsulation flexible-ethernet-services;vlan-tagging; # Customer interface uses singly-tagged
framesunit 100 {encapsulation vlan-bridge;vlan-id 100;}}interfaces ge-3/3/3 {encapsulation flexible-ethernet-services;vlan-tagging; # Customer interface uses singly-tagged
framesunit 200 {encapsulation vlan-bridge;vlan-id 200;}}interfaces ge-5/1/0 {gigether-options {802.3ad ae3;}}interfaces ge-5/1/1 {gigether-options {802.3ad ae3;}}interfaces ge-5/1/2 {gigether-options {802.3ad ae3;}}interfaces ge-5/1/3 {gigether-options {802.3ad ae1;}}interfaces ge-5/1/4 {gigether-options {802.3ad ae1;}}interfaces ge-5/1/5 {gigether-options {802.3ad ae1;}}interfaces ae1 {encapsulation extended-vlan-bridge;vlan-tagging;unit 100 {vlan-id 100;}unit 200 {vlan-id 200;}}interfaces ae3 {encapsulation extended-vlan-bridge;vlan-tagging;unit 100 {vlan-id 100;}unit 200 {vlan-id 200;}}
Configure the Ethernet interfaces and VLAN tags on Router 3:
[edit]chassis {aggregated-devices {ethernet {device-count 2; # Number of AE interfaces on router}}}interfaces ge-2/2/2 {encapsulation flexible-ethernet-services;vlan-tagging; # Customer interface uses singly-tagged
framesunit 100 {encapsulation vlan-bridge;vlan-id 100;}}interfaces ge-2/2/4 {unit 0 {family bridge {interface-mode trunk;vlan-id-list 200-205; # This trunk port is part of VLAN
range 200–205}}}interfaces ge-2/2/6 {unit 0 {family bridge {interface-mode access;vlan-id 200;}}}interfaces ge-3/3/3 {encapsulation flexible-ethernet-services;vlan-tagging; # Customer interface uses singly-tagged
framesunit 200 {encapsulation vlan-bridge;vlan-id 200;}}interfaces ge-11/1/0 {gigether-options {802.3ad ae3;}}interfaces ge-11/1/1 {gigether-options {802.3ad ae3;}}interfaces ge-11/1/2 {gigether-options {802.3ad ae3;}}interfaces ge-11/1/3 {gigether-options {802.3ad ae2;}}interfaces ge-11/1/4 {gigether-options {802.3ad ae2;}}interfaces ge-11/1/5 {gigether-options {802.3ad ae2;}}interfaces ae2 {unit 0 {family bridge {interface-mode trunk;vlan-id-list 100, 200–205;}}}interfaces ae3 {encapsulation extended-vlan-bridge;vlan-tagging;unit 100 {vlan-id 100;}unit 200 {vlan-id 200;}}
Published: 2011-11-01