bridge aggregation - tutorial

Post on 21-Apr-2015

503 Views

Category:

Documents

8 Downloads

Preview:

Click to see full reader

TRANSCRIPT

1

Bridge Aggregation Tutorial

2

Bridge Aggregation Overview

• Bridge Aggregation means :– Ethernet/Gigabit Ethernet link aggregation or simply link

aggregation– Combines multiple physical ethernet/gigabit ethernet

3

Bridge Aggregation Benefit

• Link aggregation deliver following benefit :– Increase bandwidth beyond the limit of any single link– Traffic distributed across the members port– Improves link reliability– Members port dynamically back up one another – When fail traffic automatically switch to another

members port

4

Bridge Aggregation Benefit

• Device A and Device B are connected by three physical Ethernet links. These physical Ethernet links are combined into an aggregate link, link aggregation 1. The bandwidth of this aggregate link is as high as the total bandwidth of these three physical Ethernet links. At the same time, the three Ethernet links back up one another.

5

Basic Concept

• Link aggregation is implemented through link aggregation groups.

• An aggregation group is a group of Ethernet interfaces combined together, which are called member ports of the aggregation group.

• For each aggregation group, a logical interface, called an aggregate interface, is created.

• A link aggregation group looks like a single logical link and data traffic is transmitted through the aggregate interface.

6

Basic Concept

• Aggregate interfaces have the following types:

- bridge-aggregation (BAGG) interfaces, also called Layer

2 aggregate interfaces .

- route-aggregation (RAGG) interfaces, also called Layer

3 aggregate interfaces. • When create Bridge Aggregation group , the router

automatically creates an aggregation group of the same type and number as the aggregate interface.

7

Contd.

• For example, when you create interface Bridge-Aggregation 1, Layer 2 aggregation group 1 is created.

• Layer 2 Ethernet interfaces only to a Layer 2 aggregation group, and Layer 3 Ethernet interfaces only to a Layer 3 aggregation group.

8

Contd.

NOTE:

• The router supports up to 240 aggregation groups.• On a Layer 3 aggregate interface, you can create

subinterfaces. • These subinterfaces are logical interfaces that operate at

the network layer. They can receive VLAN tagged packets for their Layer 3 aggregate interface.

• The rate of an aggregate interface equals the total rate of its member ports in the Selected state, and its duplex mode is the same as the selected member ports

9

Contd.

• A member port in an aggregation group can be in either of the following aggregation states:

- Selected: A Selected port can forward user traffic.

- Unselected: An Unselected port cannot forward user

traffic.

10

Contd.

• Link aggregation has the following modes. – Aggregating links in static mode . * LACP is disabled on the member ports in a static

aggregation group. You must manually maintain the aggregation state of the member ports

– Aggregating links in dynamic mode .

* LACP is automatically enabled on all member ports in a dynamic aggregation group. The protocol automatically maintains the aggregation state of ports

11

Layer 2 static aggregation configuration

• As shown in Figure 4: Device A and Device B are connected through their respective Layer 2 Ethernet interfaces GigabitEthernet 4/1/1 through GigabitEthernet 4/1/3. Configure a Layer 2 static aggregation group on Device A and Device B respectively, enable VLAN 10 at one end of the aggregate link to communicate with VLAN 10 at the other end, and VLAN 20 at one end to communicate with VLAN 20 at the other end. Enable traffic to be load-shared across aggregation group member ports based on the source and destination MAC addresses.

12

Figure 4 :Network diagram for Layer 2 static aggregation

•VLAN 10

13

Configuration procedureConfigure Device A

# Create VLAN 10, and assign port GigabitEthernet 4/1/4 to VLAN 10.<DeviceA> system-view[DeviceA] vlan 10[DeviceA-vlan10] port gigabitethernet 4/1/4[DeviceA-vlan10] quit

# Create VLAN 20, and assign port GigabitEthernet 4/1/5 to VLAN 20.[DeviceA] vlan 20[DeviceA-vlan20] port gigabitethernet 4/1/5[DeviceA-vlan20] quit

# Create Layer 2 aggregate interface Bridge-Aggregation 1.

[DeviceA] interface bridge-aggregation 1[DeviceA-Bridge-Aggregation1] quit

# Assign ports GigabitEthernet 4/1/1 through GigabitEthernet 4/1/3 to link aggregation group 1.[DeviceA] interface gigabitethernet 4/1/1[DeviceA-GigabitEthernet4/1/1] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/1] quit[DeviceA] interface gigabitethernet 4/1/2[DeviceA-GigabitEthernet4/1/2] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/2] quit[DeviceA] interface gigabitethernet 4/1/3[DeviceA-GigabitEthernet4/1/3] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/3] quit

14

Contd.

# Configure Layer 2 aggregate interface Bridge-Aggregation 1 as a trunk port and assign it to VLANs

10 and 20.[DeviceA] interface bridge-aggregation 1[DeviceA-Bridge-Aggregation1] port link-type trunk[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20Please wait... Done.Configuring GigabitEthernet4/1/1... Done.Configuring GigabitEthernet4/1/2... Done.Configuring GigabitEthernet4/1/3... Done.[DeviceA-Bridge-Aggregation1] quit

# Configure Device A to use the source and destination MAC addresses of packets as the globallink-aggregation load sharing criteria.[DeviceA] link-aggregation load-sharing mode source-mac destination-mac

Configure Device B

Configure Device B using the same instructions that you used to configure Device A.

15

Layer 2 dynamic aggregation configuration example

16

Configuration procedure

# Create VLAN 10, and assign the port GigabitEthernet 4/1/4 to VLAN 10.

<DeviceA> system-view[DeviceA] vlan 10[DeviceA-vlan10] port gigabitethernet 4/1/4[DeviceA-vlan10] quit

# Create VLAN 20, and assign the port GigabitEthernet 4/1/5 to VLAN 20.[DeviceA] vlan 20[DeviceA-vlan20] port gigabitethernet 4/1/5[DeviceA-vlan20] quit

# Create Layer 2 aggregate interface Bridge-Aggregation 1, and configure the link aggregation modeas dynamic.[DeviceA] interface bridge-aggregation 1[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic

# Assign ports GigabitEthernet 4/1/1 through GigabitEthernet 4/1/3 to link aggregation group 1 oneat a time.[DeviceA] interface gigabitethernet 4/1/1[DeviceA-GigabitEthernet4/1/1] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/1] quit[DeviceA] interface gigabitethernet 4/1/2[DeviceA-GigabitEthernet4/1/2] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/2] quit[DeviceA] interface gigabitethernet 4/1/3[DeviceA-GigabitEthernet4/1/3] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/3] quit

17

Contd.

# Configure Layer 2 aggregate interface Bridge-Aggregation 1 as a trunk port and assign it to VLANs

10 and 20.[DeviceA] interface bridge-aggregation 1[DeviceA-Bridge-Aggregation1] port link-type trunk[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20Please wait... Done.Configuring GigabitEthernet4/1/1... Done.Configuring GigabitEthernet4/1/2... Done.Configuring GigabitEthernet4/1/3... Done.[DeviceA-Bridge-Aggregation1] quit

# Configure the device to use the source and destination MAC addresses of packets as the globallink-aggregation load sharing criteria.[DeviceA] link-aggregation load-sharing mode source-mac destination-mac

Configure Device B

Configure Device B using the same instructions that you used to configure Device A.

18

Layer 3 static aggregation configuration exampleAs shown in Figure 6:

• Device A and Device B are connected by their Layer 3 Ethernet interfaces GigabitEthernet 4/1/1 through GigabitEthernet 4/1/3.

• Configure a Layer 3 static aggregation group on Device A and Device B respectively and configure IP addresses and subnet masks for the corresponding Layer 3 aggregate interfaces.

• Enable traffic to be load-shared across aggregation group member ports based on source and destination IP addresses.

Figure 6

20

Configure Device A

# Create Layer 3 aggregate interface Route-Aggregation 1, and configure an IP address and subnetmask for the aggregate interface.<DeviceA> system-view[DeviceA] interface route-aggregation 1[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24[DeviceA-Route-Aggregation1] quit

# Assign Layer 3 GigabitEthernet 4/interfaces GigabitEthernet 4/1/1 through GigabitEthernet 4/1/3to aggregation group 1.[DeviceA] interface gigabitethernet 4/1/1[DeviceA-GigabitEthernet4/1/1] port link-aggregation group 1

[DeviceA-GigabitEthernet4/1/1] quit

[DeviceA] interface gigabitethernet 4/1/2[DeviceA-GigabitEthernet4/1/2] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/2] quit[DeviceA] interface gigabitethernet 4/1/3[DeviceA-GigabitEthernet4/1/3] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/3] quit# Configure the global link-aggregation load sharing criteria as the source and destination IP addressesof packets.[DeviceA] link-aggregation load-sharing mode source-ip destination-ip

Configure Device B

Configure Device B using the same instructions that you used to configure Device A.

Configuration

21

Layer 3 dynamic aggregation configuration example

22

Configuration

Configure Device A

# Create Layer 3 aggregate interface Route-Aggregation 1, configure the link aggregation mode asdynamic, and configure an IP address and subnet mask for the aggregate interface.<DeviceA> system-view[DeviceA] interface route-aggregation 1[DeviceA-Route-Aggregation1] link-aggregation mode dynamic[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24[DeviceA-Route-Aggregation1] quit# Assign Layer 3 Ethernet interfaces GigabitEthernet 4/1/1 through GigabitEthernet 4/1/3 toaggregation group 1.[DeviceA] interface gigabitethernet 4/1/1[DeviceA-GigabitEthernet4/1/1] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/1] quit[DeviceA] interface gigabitethernet 4/1/2[DeviceA-GigabitEthernet4/1/2] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/2] quit[DeviceA] interface gigabitethernet 4/1/3[DeviceA-GigabitEthernet4/1/3] port link-aggregation group 1[DeviceA-GigabitEthernet4/1/3] quit# Configure Device A to use the source and destination IP addresses of packets as the globallink-aggregation load sharing criteria.[DeviceA] link-aggregation load-sharing mode source-ip destination-ip

Configure Device B

Configure Device B using the same instructions that you used to as you configure Device A.

23

top related