1 / 15
文档名称:

锐捷交换机的配置.doc

格式:doc   大小:57KB   页数:15页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

锐捷交换机的配置.doc

上传人:luyinyzhi 2017/2/23 文件大小:57 KB

下载得到文件列表

锐捷交换机的配置.doc

文档介绍

文档介绍:1 锐捷交换机、路由器常用命令集| 20 10- 12 -11 12:26:00 交换机配置命令模式 EXEC 模式: 用户模式 switch> 交换机信息的查看,简单测试命令特权模式 switch# 查看、管理交换机配置信息,测试、调试配置模式: 全局配置模式 switch(config)# 配置交换机的整体参数接口配置模式 switch(config-if)# 配置交换机的接口参数进入全局配置模式 Switch #c onfigure terminal Switch(config)#exit Switch# 进入接口配置模式 Switch(config)#interface 0/1 Switch(config-if)#exit Switch(config)# 从子模式下直接返回特权模式 Switch(config-if)#end Switch# 命令行其他功能获得帮助 switch#? switch#show ?命令简写全写: switch# configure terminal 简写: Switch# config 使用历史命令 Switch# (向上键) Switch# (向下键)配置交换机 功能配置远程登陆密码 Switch(config)#enable secret level 10 ruijie 2 配置进入特权模式密码 Switch (config)#enable secret level 150 ruijie 为交换机配置管理 IP Switch (config)#interface vlan 1 Switch (config-if)#no shutdown Switch (config-if)#ip address Switch (config-if)#end 配置文件的管理保存配置将当前运行的参数保存到 flash 中用于系统初始化时初始化参数 Switch#copy running-config startup-config Switch#write memory Switch#write 删除配置永久性的删除 flash 中不需要的文件使用命令 delete flash: 删除当前的配置: 在配置命令前加 no 例: switch(config-if)# no ip address 查看配置文件内容 Switch#show configure 查看保存在 FLASH 里的配置信息 Switch#show running-config 查看 RAM 里当前生效的配置配置 Port VLAN 创建 VLAN10 ,将它命名为 test 的例子 Switch# configure terminal Switch(config)# vlan 10 Switch(config-vlan)# name test Switch(config-vlan)# end 把接口 0/10 加入 VLAN10 Switch# configure terminal Switch(config)# interface 0/10 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 10 Switch(config-if)# end 将一组接口加入某一个 VLAN Switch(config)#interface range 0/1-8 , 0/15 , 0/20 Switch(config-if-range)# switchport access vlan 203 注:连续接口 0/1-8 ,不连续接口用逗号隔开,但一定要写明模块编号配置 Tag VLAN-Trunk 把 Fa0/1 配成 Trunk 口 Switch# configure terminal Switch(config)# interface 0/1 Switch(config-if)# switchport mode trunk 把端口 Fa0/20 配置为 Trunk 端口,但是不包含 VLAN 2: Switch(config)# interface 0/20 Switch(config-if)# switchport trunk allowed vlan remove 2 Switch(config-if)# end Native VLAN 配置命令: Switch(config-if)# switchport trunk native vlan 20 Switch(config-if)# end 注意: 每个 Trunk 口的缺省 native VLAN 是