华为交换机和存储绑定对接配置

发布时间:  2014-09-26 浏览次数:  705 下载次数:  0
问题描述
交换机上Ping不通存储绑定端口
告警信息
处理过程
根因
交换机配置错误
解决方案
1、用串口或管理网口登录交换机,之后进入系统模式
<huawei>system-view
Enter system view, return user view with Ctrl+Z.
[huawei]

2、创建eth-trunk汇聚口
[huawei]interface Eth-Trunk 3
[huawei-Eth-Trunk3]
3、设置模式为LACP静态模式,并开启bpdu
[huawei-Eth-Trunk3]mode lacp-static
[huawei-Eth-Trunk3]bpdu enable
4、进入需要聚合的端口,查看该端口的配置
[huawei]int g 0/0/22
[huawei-GigabitEthernet0/0/22]disp this
#
interface GigabitEthernet0/0/22
  port hybrid pvid vlan 4094
  undo port hybrid vlan 1
  port hybrid untagged vlan 2 to 300 4094
  ntdp enable
  ndp enable
  bpdu enable
#
return
[huawei-GigabitEthernet0/0/22]
注意:需要清除所有配置,才能加入汇聚口,否则会提示类似错误:
Error: Port has been configed bpdu enable, please clear them first !
Error: The port has other configurations. Please clear them first.
Error: Please renew the default configurations.

bpdu功能开启之后,用bpdu disable关闭;
Ntdp和ndp功能分别用undo ntdp enable和undo ndp enable关闭;
Bpdu用bpdu disable关闭;
对于hybrid口:
先执行 undo port hybrid vlan all,取消vlan配置;
之后执行port hybrid pvid vlan 1,把pvid设置为默认的vlan 1;
最后执行port hybrid untagged vlan 1,取消hybrid pvid vlan。
对于trunk口:
先执行 undo port trunk allow-pass vlan all,取消vlan配置;
之后执行port hybrid pvid vlan 1,把pvid设置为默认的vlan 1;
最后执行port trunk allow-pass vlan 1,设置允许通过vlan为1  
执行undo port link-type,就可以关闭端口类型配置了
清除之后查看配置
[huawei-GigabitEthernet0/0/21]disp this
#
interface GigabitEthernet0/0/21
  undo ntdp enable
  undo ndp enable
#
return
5、加入汇聚口
[huawei-GigabitEthernet0/0/21]eth-trunk 3
6、相同的动作,把其他需要绑定的端口加入汇聚组
7、查看汇聚口状态,selete就是协商成功active,unselect是协商失败inactive
[huawei]disp eth-trunk 3
Eth-Trunk3's state information is:
Local:
LAG ID: 3                   WorkingMode: STATIC
Preempt Delay: Disabled     Hash arithmetic: According to SA-XOR-DA
System Priority: 30000      System ID: 0046-4baf-552e
Least Active-linknumber: 1  Max Active-linknumber: 8
Operate status: down        Number Of Up Port In Trunk: 0
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/21  select 10M      32768   21     786     10100010  1
GigabitEthernet0/0/22  select 10M      32768   22     786     10100010  1
Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri    SystemID  PortPri PortNo  PortKey   PortState
GigabitEthernet0/0/21  0      0000-0000-0000  0      0     0         10100011
GigabitEthernet0/0/22  0      0000-0000-0000  0      0     0         10100011
建议与总结

END