、    

 

锐捷网管交换机接口属性配置举例

一、 组网需求
两台设备互联,配置设备接口的基本属性。

二、组网图
组网图

三、 配置要点
● 将两台设备通过交换接口进行连接。
● 分别给两台设备配置一个SVI接口,并配置相同网段的IP地址。
●在两台设备上分别配置接口索引永久化。
● 在两台设备上分别启用LinkTrap功能。
●在两台设备上配置接口管理状态。

四、 配置步骤
# 在DeviceA上面创建AP3口。
DeviceA> enable
DeviceA# configure terminal
DeviceA(config)# snmp-server if-index persist
DeviceA(config)# interface vlan 1
DeviceA(config-if-VLAN 1)# ip address 192.168.1.1 255.255.255.0
DeviceA(config-if-VLAN 1)# exit
DeviceA(config)# interface gigabitethernet 0/1
DeviceA(config-if-GigabitEthernet 0/1)# snmp trap link-status
DeviceA(config-if-GigabitEthernet 0/1)# shutdown

# 在设备B上配置如下。
DeviceB# configure terminal
DeviceB(config)# snmp-server if-index persist
DeviceB(config)# interface vlan 1
DeviceB(config-if-VLAN 1)# ip address 192.168.1.2 255.255.255.0
DeviceB(config-if-VLAN 1)# exit
DeviceB(config)# interface gigabitethernet 0/1
DeviceB(config-if-GigabitEthernet 0/1)# snmp trap link-status
DeviceB(config-if-GigabitEthernet 0/1)# shutdown

五、验证配置结果
# 在A和B设备上分别进行如下检验。
● 检查设备上的GigabitEthernet 0/1和SVI 1在接口GigabitEthernet 0/1 shutdown操作后的接口状态是否正
确。
● 检查接口GigabitEthernet 0/1 shutdown操作后,是否有发出该接口Link Down的Trap信息。
● 重启设备后,接口GigabitEthernet 0/1的接口索引值是否和重启前的一致。
# DeviceA。
DeviceA # show interfaces gigabitEthernet 0/1
DeviceA

# DeviceB。
DeviceB# show interfaces gigabitEthernet 0/1
DeviceB

 

海康威视DS-3754TF 及 E 系列网管交换机【端口隔离】配置指导

1、网线连接电脑和交换机任意网口,修改电脑 IP 为 192.168.1.x 段,掩码为
255.255.255.0,如下图所示;
修改IP地址

2、打开浏览器,输入设备初始 IP 后会弹出登录界面。输入默认用户名 admin ,密码 admin,会提示修改新密码,一定要保存好设置的新密码。修改完毕后,需要使用新密码重新登录一次。
登录交换机

3、点击“物理端口配置”、“端口保护组配置”,进入端口保护组配置页面
进入端口保护组配置页面

4、点击“端口保护组列表”新建,可以新建端口保护组,如图所示;通过选中端口保护组,可以进行删除,端口保护组 0 为默认保护组,不能删除。
输入端口保护组编号,点击应用,即可新建端口保护组
新建端口保护组

5、点击“端口保护组端口配置”,可以把端口加入端口保护组中,端口保护组必须是已创建的组。
把端口加入端口保护组中
备注:加入到同一个端口保护组的端口互相之间是不通的,端口保护组内端口和非端口保护组的端口是互通的。

6、示例
例如交换机有 24 个端口,现场需要 1 号端口接互联网,2~5 号端口接 NVR,6~10 口接现场的交换机,交换机带了摄像头,现客户需要 NVR 可以上互联网,且可以访问摄像头,但是交换机带的摄像头不能访问互联网。则配置规则如下:
1) 建立端口保护组 1
建立端口保护组 1

输入保护组名称

2) 把 1 号口,6~10 号口,均加入端口保护组 1
把 1 号口,6~10 号口,均加入端口保护组 1
3) 点击保存点击保存

锐捷网管交换机【链路聚合口 LACP】配置举例

一、 组网需求
在IPv4网络上创建2台的AP互联,且配动态AP。

二、组网图
配置 LACP 组网图

三、 配置要点
●在DeviceA上设置LACP系统优先级为4096。
● 在DeviceA上的接口GigabitEthernet0/1和GigabitEthernet0/2上启用动态链路聚合协议,将其加入到LACP 3中。
● 在DeviceB上设置LACP系统优先级为61440。
● 在DeviceB上的接口GigabitEthernet0/1和GigabitEthernet0/2启用动态链路聚合协议,将其加入到LACP 3中。

四、 配置步骤
# 在DeviceA上面配置LACP。
DeviceA> enable
DeviceA# configure terminal
DeviceA(config)# lacp system-priority 4096
DeviceA(config)# interface range GigabitEthernet 0/1-2
DeviceA(config-if-range)# port-group 3 mode active
DeviceA(config-if-range)# end

# 在DeviceB上面配置LACP。
DevicB> enable
DeviceB# configure terminal
DeviceB(config)# lacp system-priority 61440
DeviceB(config)# interface range GigabitEthernet 0/1-2
DeviceB(config-if-range)# port-group 3 mode active

五、验证配置结果
# 通过show lacp summary 3查看LACP和成员接口的对应关系是否正确。
DeviceA# show LACP summary
验证配置结果

六、配置文件
●Device A的配置文件
!
lacp system-priority 4096
!
interface GigabitEthernet 0/1
port-group 3 mode active
!
interface GigabitEthernet 0/2
port-group 3 mode active
!
interface AggregatePort 3
!
● Device B的配置文件
!
lacp system-priority 61440
!
interface GigabitEthernet 0/1
port-group 3 mode active
!
interface GigabitEthernet 0/2
port-group 3 mode active
!
interface AggregatePort 3
!

 

锐捷网管交换机【链路聚合口静态 AP】配置举例

一、 组网需求
在IPv4网络上创建2台的AP互联,且配置静态AP。

二、组网图
组网图

三、 配置要点
● 将DeviceA上的接口GigabitEthernet 0/1和GigabitEthernet 0/2加入到静态AP 3中。
● 将DeviceB上的接口GigabitEthernet 0/1和GigabitEthernet 0/2加入到静态AP 3中。

四、 配置步骤
# 在DeviceA上面创建AP3口。
DeviceA> enable
DeviceA# configure terminal
DeviceA(config)# interface range GigabitEthernet 0/1-2
DeviceA(config-if-range)# port-group 3

# 在DeviceB上面创建AP3口。
DeviceB> enable
DeviceB# configure terminal
DeviceB(config)# interface range GigabitEthernet 0/1-2
DeviceB(config-if-range)# port-group 3

五、验证配置结果
# 通过show aggregateport summary查看聚合接口和成员接口的对应关系是否正确。
DeviceA# show aggregateport summary
验证配置结果

六、配置文件
●Device A的配置文件
!
interface GigabitEthernet 0/1
port-group 3
!
interface GigabitEthernet 0/2
port-group 3
!
interface AggregatePort 3
!
● Device B的配置文件
!
interface GigabitEthernet 0/1
port-group 3
!
interface GigabitEthernet 0/2
port-group 3
!
interface AggregatePort 3
!

 

锐捷网管交换机【配置AP 的 LinkTrap 功能】配置举例

一、 组网需求
在IPv4网络上创建2台的AP互联,且配置静态AP,启动LinkTrap功能。

二、组网图
组网图

三、 配置要点
● 将DeviceA上的接口GigabitEthernet 0/1和GigabitEthernet 0/2加入到静态AP 3中。
● 将DeviceB上的接口GigabitEthernet 0/1和GigabitEthernet 0/2加入到静态AP 3中。
●在DeviceA上配置关闭AP 3的LinkTrap功能,同时打开成员接口的LinkTrap功能。
● 在DeviceB上配置关闭AP 3的LinkTrap功能,同时打开成员接口的LinkTrap功能。

四、 配置步骤
# 在DeviceA上配置。
DeviceA# configure terminal
DeviceA(config)# interface range GigabitEthernet 0/1-2
DeviceA(config-if-range)# port-group 3
DeviceA(config-if-range)# exit
DeviceA(config)# aggregateport member linktrap
DeviceA(config)# interface Aggregateport 3
DeviceA(config-if-AggregatePort 3)# no snmp trap link-status

# 在DeviceB上配置。
DeviceB# configure terminal
DeviceB(config)# interface range GigabitEthernet 0/1-2
DeviceB(config-if-range)# port-group 3
DeviceB(config-if-range)# exit
DeviceB(config)# aggregateport member linktrap
DeviceB(config)# interface Aggregateport 3
DeviceB(config-if-AggregatePort 3)# no snmp trap link-status

五、验证配置结果
# 通过show running查看AP的流量均衡算法配置是否正确。
DeviceA# show run | include AggregatePort 3
通过show running查看AP的流量均衡算法配置是否正确

DeviceB# show run | include AggregatePort 3
通过show running查看AP的流量均衡算法配置是否正确
六、配置文件
●Device A的配置文件
!
interface GigabitEthernet 0/1
port-group 3
!
interface GigabitEthernet 0/2
port-group 3
!
interface AggregatePort 3
no snmp trap link-status
!
aggregateport member linktrap
!
●Device B的配置文件
!
interface GigabitEthernet 0/1
port-group 3 mode active
!
interface GigabitEthernet 0/2
port-group 3 mode active
!
interface AggregatePort 3
no snmp trap link-status
!
aggregateport member linktrap
!

 

锐捷网管交换机【配置流量平衡模式】配置举例

一、 组网需求
在IPv4网络上创建2台的AP互联,且配置静态AP,启用流量均衡功能。

二、组网图
组网图

三、 配置要点
● 将DeviceA上的接口GigabitEthernet 0/1和GigabitEthernet 0/2加入到静态AP 3中。
● 将DeviceB上的接口GigabitEthernet 0/1和GigabitEthernet 0/2加入到静态AP 3中。
● 在DeviceA上配置全局的AP流量均衡模式为基于源MAC地址的流量均衡方式。
● 在DeviceB上配置全局的AP流量均衡模式为基于目的MAC地址的流量均衡方式。

四、 配置步骤
# DeviceA配置。
DeviceA# configure terminal
DeviceA(config)# interface range GigabitEthernet 0/1-2
DeviceA(config-if-range)# port-group 3
DeviceA(config-if-range)# exit
DeviceA(config)# aggregateport load-balance src-mac

# DeviceB配置。
DeviceB# configure terminal
DeviceB(config)# interface range GigabitEthernet 0/1-2
DeviceB(config-if-range)# port-group 3
DeviceB(config-if-range)# exit
DeviceB(config)# aggregateport load-balance dst-mac

五、验证配置结果
# 通过show aggregateport load-balance查看AP的流量均衡算法配置是否正确。
DeviceA# show aggregatePort load-balance
Load-balance : Source MAC
DeviceB# show aggregatePort load-balance
Load-balance : Destination MAC

六、配置文件
●Device A的配置文件
!
interface GigabitEthernet 0/1
port-group 3
!
interface GigabitEthernet 0/2
port-group 3
!
interface AggregatePort 3
!
aggregateport load-balance src-mac
!
●Device B的配置文件
!
interface GigabitEthernet 0/1
port-group 3
!
interface GigabitEthernet 0/2
port-group 3
!
interface AggregatePort 3
!
aggregateport load-balance dst-mac
!

七、常见错误
用户配置了对称哈希因子后,show running发现没有显示配置,原因是某些产品对称哈希功能默认开启,关闭功
能时显示。

锐捷网管交换机【链路聚合口哈希流量均衡控制】配置举例

一、 组网需求
在IPv4网络上创建2台的AP互联。

二、组网图
组网图

三、 配置要点
● 将DeviceA上的接口GigabitEthernet 0/1和GigabitEthernet 0/2加入到静态AP 3中。
● 将DeviceB上的接口GigabitEthernet 0/1和GigabitEthernet 0/2加入到静态AP 3中。
● 在DeviceA上取消对称哈希因子FCOE。
● 在DeviceB上取消对称哈希因子FCOE。
● 在DeviceA上配置哈希扰动因子A。
● 在DeviceB上配置哈希扰动因子B。

四、 配置步骤
# 在DeviceA配置如下。
DeviceA# configure terminal
DeviceA(config)# interface range GigabitEthernet 0/1-2
DeviceA(config-if-range)# port-group 3
DeviceA(config-if-range)# exit
DeviceA(config)# load-balance-profile default
DeviceA(config-load-balance-profile)# no hash-symmetrical fcoe
DeviceA(config-load-balance-profile)# hash-disturb A
DeviceA(config-load-balance-profile)# exit

# 在DeviceB上配置如下。
DeviceB# configure terminal
DeviceB(config)# interface range GigabitEthernet 0/1-2
DeviceB(config-if-range)# port-group 3
DeviceB(config-if-range)# exit
DeviceB(config)# load-balance-profile default
DeviceB(config-load-balance-profile)# no hash-symmetrical fcoe
DeviceA(config-load-balance-profile)# hash-disturb B
DeviceB(config-load-balance-profile)# exit

五、验证配置结果
# 通过show running查看是否正确。

六、配置文件
●Device A的配置文件
!
load-balance-profile default
no hash-symmetrical fcoe
hash-disturb A
!
interface GigabitEthernet 0/1
port-group 3
!
interface GigabitEthernet 0/2
port-group 3
!
●Device B的配置文件
!
load-balance-profile default
no hash-symmetrical fcoe
hash-disturb B
!
interface GigabitEthernet 0/1
port-group 3
!
interface GigabitEthernet 0/2
port-group 3
!

七、常见错误
用户配置了对称哈希因子后,show running发现没有显示配置,原因是某些产品对称哈希功能默认开启,关闭功能时显示。

锐捷网管交换机【 链路聚合口AP 的容量模式】配置举例

一、 组网需求
在IPv4网络上创建2台的AP互联。

二、组网图
组网图

三、 配置要点
● 将DeviceA上的接口GigabitEthernet 0/1和GigabitEthernet 0/2加入到静态AP 3中。
● 将DeviceB上的接口GigabitEthernet 0/1和GigabitEthernet 0/2加入到静态AP 3中。
● 将DeviceA上的AP容量模式配置为128*8模式。
● 将DeviceB上的AP容量模式配置为16*64模式。

四、 配置步骤
# 在DeviceA上配置如下。
DeviceA# configure terminal
DeviceA(config)# interface range GigabitEthernet 0/1-2
DeviceA(config-if-range)# port-group 3
DeviceA(config-if-range)# exit
DeviceA(config)# aggregateport capacity mode 128*8

# 在DeviceB上配置如下。
DeviceB# configure terminal
DeviceB(config)# interface range GigabitEthernet 0/1-2
DeviceB(config-if-range)# port-group 3
DeviceB(config-if-range)# exit
DeviceB(config)# aggregateport capacity mode 16*64

五、验证配置结果
# 通过show aggregateport capacity查看AP的容量模式是否正确。
DeviceA# show aggregatePort capacity
通过show aggregateport capacity查看AP的容量模式是否正确

六、配置文件
●Device A的配置文件
!
aggregateport capacity mode 128*8
!
interface GigabitEthernet 0/1
port-group 3
!
interface GigabitEthernet 0/2
port-group 3
!
● Device B的配置文件
!
aggregateport capacity mode 16*64
!
interface GigabitEthernet 0/1
port-group 3
!
interface GigabitEthernet 0/2
port-group 3
!
interface AggregatePort 3
!

锐捷网管交换机【 配置成员接口开启 BFD 检测】配置举例

一、 组网需求
在IPv4网络上创建2台的AP互联。

二、组网图
组网图

三、 配置要点
● 将DeviceA上的接口GigabitEthernet 0/1和GigabitEthernet 0/2开启LACP,加入到LACP AP 3中。
● 将DeviceB上的接口GigabitEthernet 0/1和GigabitEthernet 0/2开启LACP,加入到LACP AP 3中。
● 将DeviceA上的AP 3配置IP地址1.0.0.1,并开启IPv4 BFD检测。
● 将DeviceB上的AP 3配置IP地址1.0.0.2,并开启IPv4 BFD检测。

四、 配置步骤
# DeviceA配置。
DeviceA# configure terminal
DeviceA(config)# interface range GigabitEthernet 0/1-2
DeviceA(config-if-range)# no switchport
DeviceA(config-if-range)# port-group 3 mode active
DeviceA(config-if-range)# exit
DeviceA(config)# interface aggregateport 3
DeviceA(config-if-Aggregateport 3)# ip address 1.0.0.1 255.255.255.0
DeviceA(config-if-Aggregateport 3)# aggregate bfd-detect ipv4 1.0.0.1 1.0.0.2
DeviceA(config-if-Aggregateport 3)# bfd interval 50 min_rx 50 multiplier 3

# DeviceB配置。
DeviceB# configure terminal
DeviceB(config)# interface range GigabitEthernet 0/1-2
DeviceB(config-if-range)# no switchport
DeviceB(config-if-range)# port-group 3 mode active
DeviceB(config-if-range)# exit
DeviceB(config)# interface aggregateport 3
DeviceB(config-if-Aggregateport 3)# ip address 1.0.0.2 255.255.255.0
DeviceB(config-if-Aggregateport 3)# aggregate bfd-detect ipv4 1.0.0.2 1.0.0.1
DeviceB(config-if-Aggregateport 3)# bfd interval 50 min_rx 50 multiplier 3

五、验证配置结果
# 通过show run查看配置是否正确。
# 通过show interface aggregateport 命令查看聚合接口下的优选口。
DeviceA# show run | include AggregatePort 3
验证配置结果

DeviceB# show run | include AggregatePort 3
验证配置结果

六、配置文件
●Device A的配置文件
!
interface GigabitEthernet 0/1
no switchport
port-group 3 mode active
!
interface GigabitEthernet 0/2
no switchport
port-group 3 mode active
!
interface AggregatePort 3
no switchport
aggregate bfd-detect ipv4 1.0.0.1 1.0.0.2
ip address 1.0.0.1 255.255.255.0
bfd interval 50 min_rx 50 multiplier 3
!
●Device B的配置文件
!
interface GigabitEthernet 0/1
no switchport
port-group 3 mode active
!
interface GigabitEthernet 0/2
no switchport
port-group 3 mode active
!
interface AggregatePort 3
no switchport
aggregate bfd-detect ipv4 1.0.0.2 1.0.0.1
ip address 1.0.0.2 255.255.255.0
bfd interval 50 min_rx 50 multiplier 3
!

七、常见错误
● 配置了聚合接口开启BFD检测,但没有配置BFD检测参数,这时候BFD没有真正生效。
● 聚合接口上开启BFD检测,BFD检测邻居必须是直连的对端AP,中间不能跨设备,且对端也需要开启BFD检测。

 

ICP备案号:晋ICP备18007549号-1