
11
[RouterA-ospf-1-area-0.0.0.0] network 172.24.40.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] network 172.24.2.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] quit
Configuring Router B
In this example, the egress router configuration only includes the connection to the IRF fabric.
1.
Configure link aggregations:
# Create Bridge-Aggregation 1. Assign the downlink ports that connect to the IRF fabric to
Bridge-Aggregation 1.
<RouterB> system-view
[RouterB] interface bridge-aggregation 1
[RouterB-Bridge-Aggregation1] quit
[RouterB] interface ten-gigabitethernet 4/0/1
[RouterB-Ten-GigabitEthernet4/0/1] port link-mode bridge
[RouterB-Ten-GigabitEthernet4/0/1] port link-aggregation group 1
[RouterB-Ten-GigabitEthernet4/0/1] quit
[RouterB] interface ten-gigabitethernet 2/0/1
[RouterB-Ten-GigabitEthernet2/0/1] port link-mode bridge
[RouterB-Ten-GigabitEthernet2/0/1] port link-aggregation group 1
[RouterB-Ten-GigabitEthernet2/0/1] quit
# Create Bridge-Aggregation 2. Assign the ports that connect to Router A to
Bridge-Aggregation 2.
[RouterB] interface bridge-aggregation 2
[RouterB-Bridge-Aggregation2] quit
[RouterB] interface ten-gigabitethernet 4/0/2
[RouterB-Ten-GigabitEthernet4/0/2] port link-mode bridge
[RouterB-Ten-GigabitEthernet4/0/2] port link-aggregation group 2
[RouterB-Ten-GigabitEthernet4/0/2] quit
[RouterB] interface ten-gigabitethernet 2/0/2
[RouterB-Ten-GigabitEthernet2/0/2] port link-mode bridge
[RouterB-Ten-GigabitEthernet2/0/2] port link-aggregation group 2
[RouterB-Ten-GigabitEthernet2/0/2] quit
2.
Configure VLANs, ports, and IP addresses:
# Create VLAN 41, assign an IP address to VLAN-interface 41, and assign Bridge-Aggregation
1 to VLAN 41.
[RouterB] vlan 41
[RouterB-vlan41] quit
[RouterB] interface vlan-interface 41
[RouterB-vlan-interface41] ip address 172.24.41.3 24
[RouterB-vlan-interface41] quit
[RouterB] interface bridge-aggregation 1
[RouterB-Bridge-Aggregation1] port access vlan 41
[RouterB-Bridge-Aggregation1] quit
# Create VLAN 30, assign an IP address to VLAN-interface 30, and assign Bridge-Aggregation
2 to VLAN 30.
[RouterB] vlan 30
[RouterB-vlan30] quit
[RouterB] interface vlan-interface 30