锐捷交换机如何查看每一个端口的配置状态,如何查看每一个端口?

发布网友

我来回答

3个回答

热心网友

1、确认电脑与交换机网络通畅(也可采用Console接口直连配置)。

2、在电脑端打开仿真程序(secuerCRT)。

3、在secuerCRT 程序上选择“快速链接”选择TELNET方式访问要连接交换机。

4、登陆到交换机。

5、输入登陆名与密码后在当前界面输入"dis brief interface "命令后显示当前设备端口上线状态。根据端口列表信息UP代表在线,DOWN代表不在线,通过拔插设备线路刷新端口信息列表,就能快速判断哪台设备线路在交换机哪个接口上线

热心网友

show run int gi0/1 查看该接口的配置
show int gi0/1 查看该接口的状态信息

热心网友

show run int gi0/1 查看该接口的配置 show int gi0/1 查看该接口的状态信息。

S21系列交换机常用配置的命令

1、 交换机命名

示例1:

switch#config

switch(config)#hostname S2126G 

2、 配置管理密码

示例2:

S2126G(config)#enable secret level 1 0 rg  

//配置telnet管理密码为rg

S2126G(config)#enable secret level 15 0 rg

//配置特权模式下的管理密码rg

3、 给交换机(堆叠组)配置管理IP

示例3:

S2126G(config)#interface vlan 1

//假设管理VLAN为VLAN 1

S2126G(config-if)#ip address 192.168.1.1 255.255.255.0 

//给管理VLAN配置管理IP地址

S2126G(config-if)#no shutdown

//激活管理IP

S2126G(config-if)#shutdown

//关闭管理IP

4、 给交换机(堆叠组)配置网关

示例4:

S2126G(config)#ip default-gateway 192.168.1.254

//假设网关地址为192.168.1.254

5、 给交换机划分VLAN

示例5:

S2126G(config)#vlan 100 

//建立VLAN 100

S2126G(config)#name Student_A_4

//该VLAN是学生宿舍A栋4楼的用户VLAN

6、 将交换机接口划入VLAN 100中

示例6:

S2126G(config)#interface range f 1/0/1-48,2/0/1-48

S2126G(config-if-range)#switchport access vlan 100

S2126G(config-if-range)#no switchport access vlan

//将接口划到默认VLAN 1中

7、 建立安全访问控制列表(ACL)

示例7:S2126G(config)#ip access-list extended myAcl

//给ACL命名为myAcl

S2126G(config-ext-nacl)#deny tcp any  any eq 445

S2126G(config-ext-nacl)#deny udp any  any eq 445

S2126G(config-ext-nacl)#permit ip any  any

S2126G(config)#no ip access-list extended myAcl

//去除myAcl的定义

8、 将ACL应用到具体的接口上

示例8:

S2126G(config)#interface range f 1/0/1-48,2/0/1-48

S2126G(config-if-range)#ip access-group myAcl in

S2126G(config-if-range)#no ip access-group myAcl in 

//从接口去除ACL

9、 将接口工作模式定义为Trunk

示例9:

S2126G(config) #interface gigabitEthernet 1/0/1

//假设堆叠组的上联光纤口为1/0/1

S2126G(config-if)#switchport mode trunk

//将该接口工作模式定义为Trunk

S2126G(config-if)#no switchport mode

//将该接口工作模式定义为Access

10、在S21上启动STP/RSTP/MSTP协议 

示例10:

S2126G(config)#spanning-tree

S2126G(config)#spanning-tree mode RSTP

//以RSTP为例

11、S21系列交换机直连PC或者HUB时,将该接口设置为portfast

示例11:

S2126G(config)#interface range f 1/0/1-48

S2126G(config-if-range)#spanning-tree portfast

12、将上联光纤口启动过滤Bp报文功能,提高网络的稳定性

示例12:

S2126G(config)#interface gigabitEthernet 1/0/1

S2126G(config-if) #spanning-tree bpfilter enabled

S2126G(config-if)#spanning-tree bpfilter disabled 

//禁用Bp过滤功能

13、给交换机启动SNMP协议,便于StarView网管工具发现

示例13:

S2126G(config) #snmp-server community public ro

14、开启SSH服务

示例14:

S2126G(config)#enable services ssh-server  //开启ssh 

S2126G(config)#ip ssh version 2            //定义ssh的版本2

S2126G(config)#username ruijie password 0 ruijie    //定义一个ssh登入用的用户名&密码

S2126G(config)#line vty

S2126G(config-line)#no login local      //如果show run有该命令,就删除,没有就不用配置了

S2126G(config-line)#exi

15、端口镜像(SPAN)

示例15:

S2126G(config)# monitor session 1 source interface fastethernet 4/10 

S2126G(config)# monitor session 1 filter vlan 57 

S2126G(config)# monitor session 1 destination interface fastethernet 4/15

//监控端口FastEtheraet4/10上的双向数据流(在该端口上承载着VLANl~ VLANl005的数据流),只监控其中VLAN57中的数据流,端口FastEthernet4/15为目的端口。

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com