类别:Weakcurrent / 日期:2022-06-15 / 浏览:928 / 评论:0

    S2700系列企业交换机(以下简称S2700)是华为公司推出的新一代绿色节能的以太智能百兆接入交换机。

    大概的情况是,手头上有好几台S2700的交换机需要设置端口隔离,都是出厂默认配置。因此需要简单配置一下。

华为S2700系列交换机配置端口隔离  console huawei crt rstp stp 隔离 调试 华为 交换机 串口 第1张

    首先通过SecureCRT接入Console口连接路由器(执行步骤时,请保持串口用户在线,防止串口用户中途退出。)然后设置两遍初始密码。

sys
stp mode rstp

    先将模式转换成RSTP缺省模式,当然你们按照默认的STP模式。接下来设置端口隔离。

interface Ethernet0/0/1
port-isolate enable group 1	
interface Ethernet0/0/2
port-isolate enable group 1	
interface Ethernet0/0/3
port-isolate enable group 1	
interface Ethernet0/0/4
port-isolate enable group 1	
interface Ethernet0/0/5
port-isolate enable group 1	
interface Ethernet0/0/6
port-isolate enable group 1	
interface Ethernet0/0/7
port-isolate enable group 1	
interface Ethernet0/0/8
port-isolate enable group 1	
interface Ethernet0/0/9
port-isolate enable group 1	
interface Ethernet0/0/10
port-isolate enable group 1	
interface Ethernet0/0/11
port-isolate enable group 1	
interface Ethernet0/0/12
port-isolate enable group 1	
interface Ethernet0/0/13
port-isolate enable group 1	
interface Ethernet0/0/14
port-isolate enable group 1	
interface Ethernet0/0/15
port-isolate enable group 1	
interface Ethernet0/0/16
port-isolate enable group 1	
interface Ethernet0/0/17
port-isolate enable group 1	
interface Ethernet0/0/18
port-isolate enable group 1	
interface Ethernet0/0/19
port-isolate enable group 1	
interface Ethernet0/0/20
port-isolate enable group 1	
interface Ethernet0/0/21
port-isolate enable group 1	
interface Ethernet0/0/22
port-isolate enable group 1	
interface Ethernet0/0/23
port-isolate enable group 1	
interface Ethernet0/0/24
port-isolate enable group 1	

    通过 port-isolate 命令把除上下联端口之外的所有端口加入同一个组实现隔离。如果需要额外端口互通的话,设置为 group 2 即可。通过以下命令可查询到当前组员。

display port-isolate group all

    最后,CTRL+Z 退出视图,然后输入 SAVE 保存即可。

赞助

感谢您的打赏~

打开支付宝扫一扫,即可进行扫码打赏哦~

版权声明 : 本文使用「署名-相同方式共享 4.0 国际」创作共享协议,转载或使用请遵守署名协议 / Article Use Creative Commons Attribution-ShareAlike 4.0 International License「CC BY 4.0」

 可能感兴趣的文章

伤心叹戈

评论区

发表评论 / 取消回复

必填

选填

选填

◎欢迎讨论,请在这里发表您的看法及观点。