4
VLAN Encapsulation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100
VLAN Remarking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101
CoS Remarking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101
Packet Forwarding Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101
UNI to NNI or UNI to UNI Forwarding. . . . . . . . . . . . . . . . . . . . . . . . . . .102
NNI to UNI or NNI to NNI Forwarding. . . . . . . . . . . . . . . . . . . . . . . . . . .104
VLAN Tunneling Configuration Commands. . . . . . . . . . . . . . . . . . . . . . . . . . .107
Configuration Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
QinQ Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
List of Constants and Default Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116
Chapter 12-GARP VLAN Registration Protocol (GVRP) Configuration. . . . . . . . . . . . . .117
Chapter Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
An Introduction to GARP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
GARP Configuration Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
List of Constants and Default Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123
Chapter 13-MAC Address Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124
Chapter Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124
An Introduction to Mac Address Tables . . . . . . . . . . . . . . . . . . . . . . . . . . .124
Mac Address Configuration Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124
Relations with Other Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127
List of Constants and Default Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127
Chapter 14-Spanning Tree Protocol (STP) Configuration . . . . . . . . . . . . . . . . . . . . . . . .128
Chapter Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .128
An Introduction to Spanning Tree Protocol . . . . . . . . . . . . . . . . . . . . . . . . .128
Spanning Tree Protocol (STP) Concepts . . . . . . . . . . . . . . . . . . . . . . . .128
Rapid Spanning Tree Protocol (RSTP) Concepts. . . . . . . . . . . . . . . . . .132
Multiple Spanning Tree Protocol Concepts. . . . . . . . . . . . . . . . . . . . . . .133
STP Configuration Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134
Configuring a Single Spanning Tree Instance. . . . . . . . . . . . . . . . . . . . . . .139
Configuring Multiple Spanning Tree Instances . . . . . . . . . . . . . . . . . . . . . .142
Configuring Optional Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
Configuration Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .149
RSTP Configuration example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .149
MSTP Configuration Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152
List of Constants and Default Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157
Chapter 15-Link Aggregation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .158
Chapter Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .158
An Introduction to Port Channel Groups and LACP . . . . . . . . . . . . . . . . . .158
Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
Load Balance Hash Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
Port and System Priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160
Link Aggregation Configuration Commands . . . . . . . . . . . . . . . . . . . . . . . . . .160
Configuration Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .163
Link Aggregation Configuration Example. . . . . . . . . . . . . . . . . . . . . . . . . .163
Relations with Other Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .165
List of Constants and Default Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .165
Chapter 16-Proxy ARP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166