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. |
Router 1
On Router 1, configure the Ethernet interfaces and VLAN tags:
- [edit chassis]
- aggregated-devices {
-
- ethernet {
- device-count 2; # Number of AE interfaces on router
- }
- }
- [edit]
- 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
frames
-
- unit 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 tag
-
- 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 {
- encapsulation flexible-ethernet-services;
- vlan-tagging; # Customer interface uses singly-tagged
frames
-
- unit 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;
- }
- }
- }
Router 2
On Router 2, configure the Ethernet interfaces and VLAN tags:
- [edit chassis]
- aggregated-devices {
-
- ethernet {
- device-count 2; # Number of AE interfaces on the router
- }
- }
- [edit]
- interfaces ge-2/2/2 {
- encapsulation flexible-ethernet-services;
- vlan-tagging; # Customer interface uses singly-tagged
frames
-
- unit 100 {
- encapsulation vlan-bridge;
- vlan-id 100;
- }
- }
- interfaces ge-3/3/3 {
- encapsulation flexible-ethernet-services;
- vlan-tagging; # Customer interface uses singly-tagged
frames
-
- unit 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;
- }
- }
Router 3
On Router 3, configure the Ethernet interfaces and VLAN tags:
- [edit chassis]
- aggregated-devices {
-
- ethernet {
- device-count 2; # Number of AE interfaces on router
- }
- }
- [edit]
- interfaces ge-2/2/2 {
- encapsulation flexible-etherent-services;
- vlan-tagging; # Customer interface uses singly-tagged
frames
-
- unit 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 acess;
- vlan-id 200;
- }
- }
- }
- interfaces ge-3/3/3 {
- encapsulation flexible-ethernet-services;
- vlan-tagging; # Customer interface uses singly-tagged
frames
-
- unit 200 {
- encapsulation vlan-bridge;
- vlan-id 200;
- }
- }
- [edit]
- 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;
- }
- }