跳到主要内容

验证 BMC 交换机功能

更新 BMC 交换机之后,请确保该交换机可以按照解决方案配置全功能运行。

除了将正在运行的交换机配置与更新交换机固件之前保存的备份配置文件进行比较之外,还可以通过建议的以下验证过程来帮助确定:

  • 已更新并设置为引导到交换机 NOS

  • 已打开所有链路并分配了 IP 地址

  • 已打开 BGP 连接并建立了会话

  • ACL 已准备就绪且计数器正在递增

执行以下各任务以确保更新后的 BMC 交换机正常工作,再继续操作。

验证 BMC 交换机更新

要验证是否已应用交换机 NOS 更新且交换机是否设置为引导到更新后的映像,请登录 BMC 交换机并运行以下命令:

show boot
示例
Lenovo-BMC#show boot
Current running image version: 8.4.11
Currently set to boot software image1, active config block.
NetBoot: disabled, NetBoot tftp server: , NetBoot cfgfile:
Current boot Openflow protocol version: 1.0
USB Boot: disabled
Currently profile is default, set to boot with default profile next time.
Current FLASH software:
image1: version 8.4.11, downloaded 12:52:04 Mon Jan 14, 2019
NormalPanel, Mode Stand-alone
image2: version 8.4.8, downloaded 10:26:19 Mon Jan 14, 2019
NormalPanel, Mode Stand-alone
boot kernel: version 8.4.11
NormalPanel
bootloader : version 8.4.11
Currently scheduled reboot time: none

验证链路

要验证是否已打开所有链路且是否分配了 IP 地址,请运行以下命令:

show interface link state up
示例
Lenovo-BMC#show interface link state up
-----------------------------------------------------------------------
Alias Port Speed Duplex Flow Ctrl Link Description
------- ---- ------ -------- --TX-----RX-- ------ -------------
1 1 1000 full no no up BMCMgmt Ports
2 2 1000 full no no up BMCMgmt Ports
3 3 1000 full no no up BMCMgmt Ports
4 4 1000 full no no up BMCMgmt Ports
8 8 1000 full no no up BMCMgmt Ports
46 8 1000 full no no up BMCMgmt Ports
47 47 1000 full no no up SwitchMgmt Ports
48 48 1000 full no no up SwitchMgmt Ports
XGE1 49 10000 full no no up BMCMgmt Ports
XGE2 50 10000 full no no up BMCMgmt Ports
XGE3 51 10000 full no no up P2P_Rack1/TOR1_To_Rack1/BMC TOR Port 46
XGE4 52 10000 full no no up P2P_Rack1/TOR2_To_Rack1/BMC TOR Port 46

端口 1 到 16 的状态取决于解决方案中的节点数量。以上示例采自一个 4 节点解决方案。

另一个可用于验证 IP 配置和状态的命令:

show interface ip
示例
Lenovo-BMC#show interface ip                 
Interface information:
5: IP4 10.30.8.169 255.255.255.248 10.30.8.175, vlan 5, up
6: IP4 10.30.1.1 255.255.255.128 10.30.8.151, vlan 6, up

Routed Port Interface Information:
XGE3: IP4 10.30.8.146 255.255.255.252 10.30.8.147 , routed , up
XGE4: IP4 10.30.8.150 255.255.255.252 10.30.8.151 , routed , up

Loopback interface information:
lo1: 10.30.30.26 255.255.255.255 10.30.30.26, up

验证 BGP 是否可正常运行

要验证是否已打开 BGP 连接且是否建立了会话,请运行以下命令:

show ip bgp neighbor summary
示例
Lenovo-BMC#show ip bgp neighbor summary
BGP ON
BGP router identifier 10.30.8.154, local AS number 64675
BGP thid 21, allocs 1168, frees 301, current 147124, largest 5784
BGP Neighbor Summary Information:
Peer V AS MsgRcvd MsgSent Up/Down State
--------------- - -------- -------- -------- -------- ---------------
1: 10.30.8.145 4 64675 106 104 01:41:23 established
2: 10.30.8.149 4 64675 106 104 01:41:23 established

验证 ACL 是否存在且可正常运行

要验证 ACL 是否已准备就绪且计数器正在递增,请运行以下命令:

show access-control
show access-control group
show access-control counters

示例
Lenovo-BMC#show access-control 
Current access control configuration:

Filter 200 profile:
IPv4
- SRC IP : 10.20.3.0/255.255.255.192
- DST IP : 10.20.3.0/255.255.255.192
Meter
- Set to disabled
- Set committed rate : 64
- Set max burst size : 32
Re-Mark
- Set use of TOS precedence to disabled
Actions : Permit
Statistics : enabled
Installed on vlan 125 in
ACL remark note
- "Permit R01-bmc (10.20.3.0/26)_TO_R01-bmc (10.20.3.0/26)"

Filter 202 profile:
IPv4
- SRC IP : 10.20.3.0/255.255.255.192
- DST IP : 10.20.30.40/255.255.255.248
Meter
- Set to disabled
- Set committed rate : 64
- Set max burst size : 32
Re-Mark
- Set use of TOS precedence to disabled
Actions : Permit
Statistics : enabled
Installed on vlan 125 in
ACL remark note
- "Permit R01-bmc (10.20.3.0/26)_TO_R01-SwitchMgmt (10.20.30.40/29)"

Filter 204 profile:
IPv4
- SRC IP : 10.20.3.61/255.255.255.255
- DST IP : 0.0.0.0/0.0.0.0
...

示例
Lenovo-BMC#show access-control group 
Current ACL group Information:
------------------------
ACL group 1 (14 filter level consumed):

- ACL 200
- ACL 202
- ACL 204
- ACL 206
- ACL 208
- ACL 210
- ACL 212
- ACL 214
- ACL 216
- ACL 218
- ACL 220
- ACL 222
- ACL 224
- ACL 226
ACL group 2 (50 filter level consumed):

- ACL 228
- ACL 230
- ACL 232

...

示例
Lenovo-BMC#show access-control counters 
ACL stats:
Hits for ACL 200 vlan 125 in 1357392
Hits for ACL 202 vlan 125 in 60229537
Hits for ACL 204 vlan 125 in 237099377
Hits for ACL 206 vlan 125 in 0
Hits for ACL 208 vlan 125 in 0
Hits for ACL 210 vlan 125 in 0
Hits for ACL 212 vlan 125 in 0
Hits for ACL 214 vlan 125 in 24
Hits for ACL 216 vlan 125 in 0
Hits for ACL 218 vlan 125 in 573818
Hits for ACL 220 vlan 125 in 800950
Hits for ACL 222 vlan 125 in 0
Hits for ACL 224 vlan 125 in 0
Hits for ACL 226 vlan 125 in 447369
Hits for ACL 228 vlan 125 in 1389622
Hits for ACL 230 vlan 125 in 59570795
Hits for ACL 232 vlan 125 in 174516137

...

验证解决方案网络连接

在更新后的 BMC 交换机中验证了基本系统融合之后,请测试以下对象的连接:

  • 从 BMC 交换机 ping 连接的 TOR 交换机接口

    示例
    Lenovo-BMC#ping 10.30.8.130
    [host 10.30.8.130, max tries 4, delay 1000 msec, length 0, ping source N/S, ttl 255, tos 0]
    10.30.8.130: #1 ok, RTT 7 msec.
    10.30.8.130: #2 ok, RTT 0 msec.
    10.30.8.130: #3 ok, RTT 0 msec.
    10.30.8.130: #4 ok, RTT 0 msec.
    Ping finished.
    Lenovo-BMC#ping 10.30.8.134
    [host 10.30.8.134, max tries 4, delay 1000 msec, length 0, ping source N/S, ttl 255, tos 0]
    10.30.8.134: #1 ok, RTT 0 msec.
    10.30.8.134: #2 ok, RTT 0 msec.
    10.30.8.134: #3 ok, RTT 0 msec.
    10.30.8.134: #4 ok, RTT 0 msec.
    Ping finished.
  • 从 BMC 交换机 ping TOR 管理 IP 地址
    示例
    Lenovo-BMC#ping 10.30.8.170
    [host 10.30.8.170, max tries 4, delay 1000 msec, length 0, ping source N/S, ttl 255, tos 0]
    10.30.8.170: #1 ok, RTT 1 msec.
    10.30.8.170: #2 ok, RTT 0 msec.
    10.30.8.170: #3 ok, RTT 0 msec.
    10.30.8.170: #4 ok, RTT 0 msec.
    Ping finished.
    Lenovo-BMC#ping 10.30.8.171
    [host 10.30.8.171, max tries 4, delay 1000 msec, length 0, ping source N/S, ttl 255, tos 0]
    10.30.8.171: #1 ok, RTT 0 msec.
    10.30.8.171: #2 ok, RTT 0 msec.
    10.30.8.171: #3 ok, RTT 0 msec.
    10.30.8.171: #4 ok, RTT 0 msec.
    Ping finished.
  • 从 BMC 交换机 ping 节点 IMM/XCC

    示例
    Lenovo-BMC#ping 10.30.8.3
    [host 10.30.8.3, max tries 4, delay 1000 msec, length 0, ping source N/S, ttl 255, tos 0]
    10.30.8.3: #1 ok, RTT 1 msec.
    10.30.8.3: #2 ok, RTT 0 msec.
    10.30.8.3: #3 ok, RTT 0 msec.
    10.30.8.3: #4 ok, RTT 0 msec.
    Ping finished.
    Lenovo-BMC#ping 10.30.8.4
    [host 10.30.8.4, max tries 4, delay 1000 msec, length 0, ping source N/S, ttl 255, tos 0]
    10.30.8.4: #1 ok, RTT 0 msec.
    10.30.8.4: #2 ok, RTT 1 msec.
    10.30.8.4: #3 ok, RTT 1 msec.
    10.30.8.4: #4 ok, RTT 1 msec.
    Ping finished.
    Lenovo-BMC#ping 10.30.8.5
    [host 10.30.8.5, max tries 4, delay 1000 msec, length 0, ping source N/S, ttl 255, tos 0]
    10.30.8.5: #1 ok, RTT 0 msec.
    10.30.8.5: #2 ok, RTT 1 msec.
    10.30.8.5: #3 ok, RTT 0 msec.
    10.30.8.5: #4 ok, RTT 1 msec.
    Ping finished.
    Lenovo-BMC#ping 10.30.8.6
    [host 10.30.8.6, max tries 4, delay 1000 msec, length 0, ping source N/S, ttl 255, tos 0]
    10.30.8.6: #1 ok, RTT 1 msec.
    10.30.8.6: #2 ok, RTT 1 msec.
    10.30.8.6: #3 ok, RTT 1 msec.
    10.30.8.6: #4 ok, RTT 1 msec.
    Ping finished.