如何配置服务器接入交换机
简介
配置过程
服务器网卡模式 |
交换机组网 |
交换机配置要求 |
---|---|---|
主备模式 |
堆叠 |
配置堆叠系统SwitchA&SwitchB。
[~SwitchA&SwitchB] interface 10ge 1/0/1 [*SwitchA&SwitchB-10GE1/0/1] stp edged-port enable //如果交换机接带交换板的服务器,需要在服务器上去使能STP,防止发生抢根现象。 [*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 |
配置SwitchA。
[~SwitchA] interface 10ge 1/0/1 [*SwitchA-10GE1/0/1] stp edged-port enable //如果交换机接带交换板的服务器,需要在服务器上去使能STP,防止发生抢根现象。 [*SwitchA-10GE1/0/1] commit 配置SwitchB。
[~SwitchB] interface 10ge 1/0/1 [*SwitchB-10GE1/0/1] stp edged-port enable [*SwitchB-10GE1/0/1] commit |
|
单机 |
配置SwitchA。 [~SwitchA] interface 10ge 1/0/1 [*SwitchA-10GE1/0/1] stp edged-port enable //如果交换机接带交换板的服务器,需要在服务器上去使能STP,防止发生抢根现象。 [*SwitchA-10GE1/0/1] commit 配置SwitchB。 [~SwitchB] interface 10ge 1/0/1 [*SwitchB-10GE1/0/1] stp edged-port enable //如果交换机接带交换板的服务器,需要在服务器上去使能STP,防止发生抢根现象。 [*SwitchB-10GE1/0/1] commit |
|
负载均衡模式 |
堆叠 |
配置堆叠系统SwitchA&SwitchB,将交换机接口10GE1/0/1和10GE1/0/2加入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 //如果交换机接带交换板的服务器,需要在服务器上去使能STP,防止发生抢根现象。 [*SwitchA&SwitchB-Eth-Trunk1] commit |
M-LAG |
配置SwitchA,将交换机接口10GE1/0/1加入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 //如果交换机接带交换板的服务器,需要在服务器上去使能STP,防止发生抢根现象。 [*SwitchA-Eth-Trunk1] commit 配置SwitchB,将交换机接口10GE1/0/1加入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 //如果交换机接带交换板的服务器,需要在服务器上去使能STP,防止发生抢根现象。 [*SwitchB-Eth-Trunk1] commit |
相关信息
如果您想了解交换机对接服务器的更多信息及配置办法,请参考以下产品文档: