才子佳人博客

我的故事我讲述

锐捷交换机常用配置命令
 
来源:xjh  编辑:xjh  2016-09-09

锐捷交换机基本操作

1.进入特权模式

Switch>enable

Switch#

2.返回用户模式

Switch#exit

Press RETURN to get started!

Switch>

锐捷交换机配置模式:

全局配置模式[主机名(config)#]:配置交换机的整体参数

锐捷交换机子模式:

1.线路配置模式[主机名(config-line)#]:配置交换机的线路参数

2.接口配置模式[主机名(config-if)#]:配置交换机的接口参数

1.进入全局配置模式下

Switch#configure terminal

Switch(config)#exit

Switch#

2.进入线路配置模式

Switch(config)#line console 0

Switch(config-line)#exit

Switch(config)#

3.进入接口配置模式

Switch(config)#interface fastEthernet 0/1

Switch(config-if)#exit

Switch(config)#

从子模式下直接返回特权模式

Switch(config-if)#end

Switch#

锐捷交换机显示命令:

显示交换机硬件及软件的信息 Switch#show version

显示当前运行的配置参数 Switch#show running-config

显示保存的配置参数 Switch#show configure

常用锐捷交换机EXEC命令

将当前运行的配置参数复制到flash:Switch#write memory

Building configuration...

[OK]

Switch#

清空flash中的配置参数:Switch#delete flash:config.text

Switch#

交换机重新启动:Switch#reload

System configuration has been modified. Save? [yes/no]:n

Proceed with reload? [confirm]

配置交换机主机名:Switch(config)#hostname S2126G

S2126G(config)#

配置锐捷交换机口令:

1、 配置交换机的登陆密码

S2126G(config)#enable secret level 1 0 star

“0”表示输入的是明文形式的口令

2、 配置交换机的特权密码

S2126G(config)#enable secret level 15 0 Star

“0”表示输入的是明文形式的口令

常用锐捷交换机配置命令:

1、为交换机分配管理IP地址

S2126G(config)#interface vlan 1

S2126G(config-if)#ip address {IP address} {IP subnetmask}[secondary]

2、将接口启用

S2126G(config-if)#no shutdown

3、将接口关闭

S2126G(config-if)#shutdown

4、配置接口速率

S2126G(config-if)#speed [10|100|auto]

5、配置接口双工模式

S2126G(config-if)#duplex [auto|full|half

显示接口状态:S2126G#show interfaces

测定目的端的可达性:S2126G>ping {IP address}

锐捷交换机VLAN的配置:

1.添加一个VLAN

S2126G(config)#vlan <1-4094>

S2126G(config-vlan)#

2.为VLAN命名(可选)

S2126G(config-vlan)#name

将锐捷交换机端口分配到VLAN

1.配置Port VLAN

Switch(config-if)#switchport access vlan <1-4094>

2.配置Tag VLAN

Switch(config-if)#switchport mode trunk

1).配置本地(native)VLAN

Switch(config-if)#switchport trunk native vlan <1-4094>

2).从主干链路中清除VLAN

Switch(config-if)#switchport trunk allowed vlan except

注:VLAN1不可被清除

锐捷交换机VLAN的验证:

1.显示全部的VLAN:Switch#show vlan

2.显示单独的VLAN :Switch#show vlan id <1-4094>

将VLAN信息保存到flash中:Switch#write memory

从flash中清除VLAN信息:Switch#delete flash:vlan.dat

锐捷交换机RSTP的配置:

1.启用生成树:S2126G(config)#spanning-tree

2.配置锐捷交换机优先级:S2126G(config)#spanning-tree priority <0-61440>

“0”或“4096”的倍数(RSTP BPDU该值后12bit全0)

3.配置交换机端口优先级:S2126G(config-if)#spanning-tree port-priority <0-240>

“0”或“16”的倍数(RSTP BPDU该值后4bit全0)

4、生成树hello时间的配置(由Root决定):S2126G(config)#spanning-tree hello-time <1-10>

5、生成树的验证:Switch#show spanning-tree

Switch#show spanning-tree interface <接口名称> <接口编号>



分类:网络日志| 查看评论
相关文章
文章点击排行
本年度文章点击排行
发表评论:
  • 昵称: *
  • 邮箱: *
  • 网址:
  • 评论:(最多100字)
  • 验证码: