瑞斯康达配置脚本说明 (1)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1、初始化配置
login:raisecom
password:raisecom
Raisecom>enable
Password:raisecom
Raisecom#hostname iscom2126-ea-ma-pwr
iscom2126-ea-ma-pwr#user name raisecom password raisecom
iscom2126-ea-ma-pwr#clock set 01 36 11 2012 06 08
iscom2126-ea-ma-pwr#config

2、交换机保护配置
iscom2126-ea-ma-pwr(config)#spanning-tree disable 关闭生成树协议
iscom2126-ea-ma-pwr(config)#loopback-detection enable port-list 1-24 开启环路检查功能
iscom2126-ea-ma-pwr(config)#storm-control broadcast enable port 1-24 开启广播风暴抑制
iscom2126-ea-ma-pwr(config)#ip igmp snooping vlan-list 4000 immediate-leave 开启IGMP SNOOPING

3、交换机端口配置
iscom2126-ea-ma-pwr(config)#create vlan 5,4000 active 创建VLAN并激活
iscom2126-ea-ma-pwr(config)#interface range 1-24 进入批量端口配置模式
iscom2126-ea-ma-pwr(config-range)#switchport mode access 将端口设置为ACCESS模式
iscom2126-ea-ma-pwr(config-range)#switchport access vlan 4000 为端口打VLAN标记
iscom2126-ea-ma-pwr(config-range)#switchport protect 开启端口保护
iscom2126-ea-ma-pwr(config-range)#quit
iscom2126-ea-ma-pwr(config)#interface range 25-26 进入上联端口
iscom2126-ea-ma-pwr(config-range)#description iscom2126ea-ma-pwr-25 创建端口描述信息
iscom2126-ea-ma-pwr(config-range)#switchport mode trunk 配置端口为TRUNK模式
iscom2126-ea-ma-pwr(config-range)#switchport trunk allowed vlan 5,4000 confirm 允许透传VLAN5,4000
iscom2126-ea-ma-pwr(config-range)#switchport trunk untagged vlan remove 1 不透传VLAN 1
iscom2126-ea-ma-pwr(config-range)#quit

4、交换机管理配置switchport trunk allowed vlan 5

iscom2126-ea-ma-pwr(config)#interface ip 0
iscom2126-ea-ma-pwr(config-ip)#ip address 172.22.103.14 255.255.248.0 5 配置交换机管理IP地址及对应的VLAN
iscom2126-ea-ma-pwr(config-ip)#quit
iscom2126-ea-ma-pwr(config)#ip default-gateway 172.22.103.254 配置默认网关
iscom2126-ea-ma-pwr(config)#quit

iscom2126-ea-ma-pwr(config)#snmp-server enable traps 开启SNMP功能
iscom2126-ea-ma-pwr(config)#snmp-server community private view raisecomview rw 设置团体名、其对应的视图和访问权
iscom2126-ea-ma-pwr(config)#snmp-server community public view raisecomview ro
iscom2126-ea-ma-pwr(config)#snmp-server host 172.16.27.243 version 2c public 设置目标主机地址
iscom2126-ea-ma-pwr(config)#snmp-server host 172.16.27.243 version 2c private

iscom2126-ea-ma-pwr(config)#logging on 设置SYSLOG功能
iscom2126-ea-ma-pwr(config)#logging host 172.16.27.243 local0 alerts


5、保存配置并检查
iscom2126-ea-ma-pwr#write
iscom2126-ea-ma-pwr#show running-config
iscom2126-ea-ma-pwr#show startup-config



6、查看状态

iscom2126-ea-ma-pwr(config)#show mac-address-table l2-address vlan 4000 | ex 25 查看MAC地址
iscom2126-ea-ma-pwr(config)#show mac-address-table l2-address port 26

iscom2126-ea-ma-pwr(config)#show interface ip 查看IP接口信息
iscom2126-ea-ma-pwr(config)#show interface port 查看端口信息

iscom2126-ea-ma-pwr(config)#show poe port-list 1-24 detail 查看POE供电情况
iscom2126-ea-ma-pwr(config)#interface port 1
iscom2126-ea-ma-pwr(config-port)#poe disable 关闭POE供电
iscom2126-ea-ma-pwr(config-port)#poe enable 开启POE供电
iscom2126-ea-ma-pwr(config-port)#shutdown
iscom2126-ea-ma-pwr(config-port)#no shutdown
iscom2126-ea-ma-pwr(config-port)#quit

7、重启交换机
iscom2126-ea-ma-pwr#reboot now

8、删除配置
iscom2126-ea-ma-pwr#erase





相关文档
最新文档