Connecting Servers to Switches
Introduction
Configuration Procedure
Server NIC Mode |
Switch Networking |
Switch Configuration Requirements |
---|---|---|
Active/Standby mode |
Stack |
Configure SwitchA and SwitchB to form a stack.
[~SwitchA&SwitchB] interface 10ge 1/0/1 [*SwitchA&SwitchB-10GE1/0/1] stp edged-port enable //If the switch is connected to a server with an SFU, disable STP on the server to prevent the server from preempting the role of the root bridge. [*SwitchA&SwitchB-10GE1/0/1] quit [*SwitchA&SwitchB] interface 10ge 1/0/2 [*SwitchA&SwitchB-10GE1/0/2] stp edged-port enable [*SwitchA&SwitchB-10GE1/0/2] commit |
M-LAG |
Configure SwitchA.
[~SwitchA] interface 10ge 1/0/1 [*SwitchA-10GE1/0/1] stp edged-port enable //If the switch is connected to a server with an SFU, disable STP on the server to prevent the server from preempting the role of the root bridge. [*SwitchA-10GE1/0/1] commit Configure SwitchB.
[~SwitchB] interface 10ge 1/0/1 [*SwitchB-10GE1/0/1] stp edged-port enable [*SwitchB-10GE1/0/1] commit |
|
Standalone |
Configure SwitchA. [~SwitchA] interface 10ge 1/0/1 [*SwitchA-10GE1/0/1] stp edged-port enable //If the switch is connected to a server with an SFU, disable STP on the server to prevent the server from preempting the role of the root bridge. [*SwitchA-10GE1/0/1] commit Configure SwitchB. [~SwitchB] interface 10ge 1/0/1 [*SwitchB-10GE1/0/1] stp edged-port enable //If the switch is connected to a server with an SFU, disable STP on the server to prevent the server from preempting the role of the root bridge. [*SwitchB-10GE1/0/1] commit |
|
Load balancing |
Stack |
Configure SwitchA and SwitchB to form a stack and add 10GE1/0/1 and 10GE1/0/2 of the switch to an Eth-Trunk. [~SwitchA&SwitchB] interface eth-trunk 1 [*SwitchA&SwitchB-Eth-Trunk1] trunkport 10ge 1/0/1 [*SwitchA&SwitchB-Eth-Trunk1] trunkport 10ge 1/0/2 [*SwitchA&SwitchB-Eth-Trunk1] mode lacp-static [*SwitchA&SwitchB-Eth-Trunk1] stp edged-port enable //If the switch is connected to a server with an SFU, disable STP on the server to prevent the server from preempting the role of the root bridge. [*SwitchA&SwitchB-Eth-Trunk1] commit |
M-LAG |
Configure SwitchA and add 10GE1/0/1 to an Eth-Trunk. [~SwitchA] interface eth-trunk 1 [*SwitchA-Eth-Trunk1] trunkport 10ge 1/0/1 [*SwitchA-Eth-Trunk1] mode lacp-static [*SwitchA-Eth-Trunk1] dfs-group 1 m-lag 1 [*SwitchA-Eth-Trunk1] stp edged-port enable //If the switch is connected to a server with an SFU, disable STP on the server to prevent the server from preempting the role of the root bridge. [*SwitchA-Eth-Trunk1] commit Configure SwitchB and add 10GE1/0/1 to an Eth-Trunk. [~SwitchB] interface eth-trunk 1 [*SwitchB-Eth-Trunk1] trunkport 10ge 1/0/1 [*SwitchB-Eth-Trunk1] mode lacp-static [*SwitchB-Eth-Trunk1] dfs-group 1 m-lag 1 [*SwitchB-Eth-Trunk1] stp edged-port enable //If the switch is connected to a server with an SFU, disable STP on the server to prevent the server from preempting the role of the root bridge. [*SwitchB-Eth-Trunk1] commit |
Related Information
For more information about the interoperation between switches servers and configuration methods, see the following document: