温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

神州数码交换机的基本配置

发布时间:2020-07-05 01:35:13 来源:网络 阅读:2557 作者:bithash 栏目:网络安全

1,Telnet的配置

Switch>

Switch>enable                              //进入特权模式

Switch#config                               //进入全局配置模式

Switch(config)#interface vlan 1         //进入接口配置模式,VLAN1代表整个交换机的端口,三层交换机可以指定多个VLAN IP,并且都可以用Telnet

Switch(config-if-vlan 1)#ip address 10.1.1.1 255.255.255.0              //配置VLAN1IP地址

Switch(config-if-vlan 1)#no shutdown                //激活VLAN1

Switch(config-fi-vlan 1)#exit

Switch(config)#telnet-server enable                  //开启Telnet服务

Switch(config)#username admin privilege 15 password 0 admin              //创建用户名和密码,15代表权值,0代表密码为明文

Switch(config)#authentication line vty login local              //认证方式为本地用户认证

 

2 端口配置

(1)      配置端口速率和双工模式

Switch#config

Switch(config)#interfaceEthernet 1/0/1

Switch(config-if-ethernet1/0/1)#speed-duplex auto  //端口速率为自动协商(默认选项)

                                                                                            force10-full                //10全双工

                                                                                            force10-half               //10半双工

                                                                                            force100-full              //100兆全双工

                                                                                            force100-fx                //100光双工

                                                                                            force100-half            //100兆半双工

                                                                                            force10g-full              //10G全双工

                                                                                            force1g-full                //1000兆双工

                                                                                            force1g-half               //1000半双工

switch(config-if-ethernet1/0/1)#exit

(2)      设置端口收,发数据占用的宽带

switch(config)#interface ethernet1/0/2

switch(config-if-ethernet1/0/2)#bandwidthcontrol 10000 both              //收发数据带宽10M

                                                                                                1000 receive           //接收数据带宽1M

                                                                                                1000 transmit        //发送数据带宽1M

                                                                                                KB为单位

(3)      端口镜像

Switch(config)#monitor session1 sourec interface ethent 1/0/1-10 both       //将镜像组11-10端口收,发的数据进行镜像

Switch(config)monitor session1 destination internet 1/0/24  //镜像组1 的收,发的数据镜像到24号端口

(4)      端口环路检测

Switch(config)#loopback-detectioninterval-time 30 15           //配置单端口环路检测报文的发送间隔,有环路30秒发1没环路时15发一次

Switch(config)#interface Ethernet 1/0/1-24  

Switch(config-if-port-range)#loopback-detection special-vlan 1   //整个交换机的端口都开启端口环路检测

Switch(config-if-port-range)#loopback-detectioncontrol shutdown        //如发现端口有环路就关闭该端口

Switch(config-if-port-range)#exit

Switch(config)#loopback-detectioncontrol-recovery time 360       //配置端口环路检测的默认时间

 

(5)      端口聚合

Switch(config)#port-group 1              //创建端口组1端口组号不能与其他交换机组号相同

Switch(config)#interface Ethernet 1/0/1-2

Switch(config-if –port-range)#port-group1 mode no      //1-2端口加入到1端口组,模式为手动。

                                                                               mode passive     //主动模式

                                                                               mode active       //被动模式

注:如果第一台交换机端口配置了手动模式,那么另一台交换机的端口也要是手动模式。如果一台交换机为主动,那另一台就是被动。


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI