三元达POE交换机配置脚本
- 格式:doc
- 大小:33.00 KB
- 文档页数:3
POE交换机开通配置confhost xxxxxxxx *交换机名称*snmp comm GS#POE rw *snmp读写集合*snmp trap xx xx xx xx GS#POE v2 *trap服务器地址*inter vlan 4071mem xx*xx是上联口与级联口,多个端口不连续的使用“,”分隔;连续则使用“-”相连:如1,3,5或1-5*quitpse trap enab(pse告警使能)port 1-10 link-trap enable(对8口供电交换机,在各端口使能up /down告警;16口则是1-18,24口是1-26)systip add xx xx xx xx *新地址与掩码*gate xx xx xx xx *新管理网关*man vlan 4071 *新的管理vlan*quitquitwri fileVLAN配置举例S2200ME-PAF#confS2200ME-PAF(config)#inter vlan 100 *建立vlan 100并进入该vlan*S2200ME-PAF(config-vlan100)#member 9-10 tag *将1号端口加入vlan100并将该口定义为透传模式*S2200ME-PAF(config-vlan100)#member 1-8 untag *将2-7号端口加入vlan100并将该口定义为非透传即访问模式*S2200ME-PAF(config-vlan100)#app 1-8 *将2-7号端口默认的vlan号定义为100* S2200ME-PAF(config-vlan100)#quit *退出vlan模式返回全局模式*S2200ME-PAF(config)# inter vlan 1000 *建立vlan 1000并进入该vlan*S2200ME-PAF(config-vlan1000)#member 9-10 tag *将1号端口加入vlan1000并将该口定义为透传模式*S2200ME-PAF(config-vlan1000)#quit *退出vlan模式返回全局模式*S2200ME-PAF(config)#system *进入系统模式* S2200ME-PAF(config-system)#ip add 10.0.0.2/24 *定义带内管理地址*S2200ME-PAF(config-system)#gate 10.0.0.1 *定义网关*S2200ME-PAF(config-system)#man vlan 1000 *定义管理vlan*S2200ME-PAF(config-system)#quit *退出系统模式返回全局模式*S2200ME-PAF(config)#inter vlan 1 *进入vlan1*S2200ME-PAF(config-vlan1)#no member 1-10 *将1-10号端口清除出vlan 1------这是出厂默认值*S2200ME-PAF(config-vlan1)#quitS2200ME-PAF(config)#quitS2200ME-PAF#wri file。
交换机配置命令大全交换机是网络中非常重要的设备,它可以实现局域网内计算机之间的数据传输和通信。
在进行交换机的配置时,我们需要掌握一些基本的配置命令,以确保交换机能够正常运行并满足网络的需求。
下面将介绍一些常用的交换机配置命令,希望对大家有所帮助。
1. 设置交换机的主机名。
在配置交换机之前,我们首先需要设置交换机的主机名,以便在网络中进行识别和管理。
我们可以通过以下命令来设置交换机的主机名:```。
Switch(config)#hostname S1。
```。
这条命令将交换机的主机名设置为S1,您也可以根据实际情况进行修改。
2. 配置交换机的管理IP地址。
为了实现对交换机的远程管理,我们需要为交换机配置一个IP地址。
我们可以通过以下命令来配置交换机的管理IP地址:```。
Switch(config)#interface vlan 1。
Switch(config-if)#ip address 192.168.1.1 255.255.255.0。
Switch(config-if)#no shutdown。
```。
这条命令将VLAN 1接口的IP地址设置为192.168.1.1,子网掩码为255.255.255.0,并启用该接口。
3. 配置交换机端口。
在实际网络中,我们需要对交换机的端口进行配置,以满足不同设备的连接需求。
以下是一些常用的端口配置命令:```。
Switch(config)#interface fastethernet 0/1。
Switch(config-if)#switchport mode access。
Switch(config-if)#switchport access vlan 10。
```。
这条命令将FastEthernet 0/1端口设置为接入模式,并将该端口划分到VLAN 10中。
4. 配置交换机的VLAN。
VLAN是虚拟局域网的缩写,它可以将一个物理局域网划分成多个逻辑上的局域网。
raisecom 账号raisecom 密码Switch>ena 进入特权模式Switch#show running-config 查看初始信息Ambiguous Command - It may be one of the following :resource rmon running-configSwitch#show running-configBuilding configuration...Current configuration:!!version 2.0.1Nservice timestamps log dateservice timestamps debug date!spanning-tree mode rstpinterface FastEthernet0/1!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface GigaEthernet1/1!vlan 1Switch#config 进入配置模式Switch_config#interface gigaEthernet 1/1 进入千兆口Switch_config#switchport mode trunk 配置为trunk模式,并允许所有VLAN通过Switch_config#interface range fastEthernet 0/1 - 8 进入百兆1~8电口Switch_config_if_range#switchport mode trunk配置为trunk模式,并允许所有VLAN通过Switch_config_if_range#exitSwitch_config#vlan 10,20,100 如:激活AP终端VLAN ID 10,20,及POE 交换机本身管理VLAN100Switch_config#interface vLAN 100 进入管理VLAN100Switch_config_v100#no shutdown 激活VLAN100端口Switch_config_v100#ip address 192.168.1.1 255.255.255.0 配置POE交换管理IP 地址如IP地址:192.168.1.1Switch_config_v100#exitSwitch_config#ip default-gateway 192.168.1.100 配置网关地址,如网关地址:192.168.1.100Switch_config#show running-config正在收集配置...当前配置:!!version 2.0.1Nservice timestamps log dateservice timestamps debug dateip default-gateway 192.168.1.100spanning-tree mode rstpinterface FastEthernet0/1switchport mode trunk!interface FastEthernet0/2switchport mode trunk!interface FastEthernet0/3switchport mode trunk!interface FastEthernet0/4switchport mode trunk!interface FastEthernet0/5switchport mode trunk!interface FastEthernet0/6switchport mode trunk!interface FastEthernet0/7switchport mode trunk!interface FastEthernet0/8switchport mode trunk!interface GigaEthernet1/1switchport mode trunkinterface VLAN100ip address 192.168.1.1 255.255.255.0!vlan 1,10,20,100Switch_config# wr 最后保存配置正在保存当前配置...查看远程供电状态,如下所示:Switch_config#show poe allf0/1 power status: enabled, searching, signal,f0/2 power status: enabled, delivering-power, signal, 接2口f0/3 power status: enabled, searching, signal,f0/4 power status: enabled, searching, signal,f0/5 power status: enabled, searching, signal,f0/6 power status: enabled, searching, signal,f0/7 power status: enabled, searching, signal,f0/8 power status: enabled, searching, signal,。
大唐电信POE 交换机技术培训资料POE原理及常规配置命令1应用场合2POE:Power Over Ethernet ,顾名思义是以太网供电,也可以被称为基于局域网的供电系统(POL, Power over LAN )或有源以太网( Active Ethernet),它保持了与现存以太网系统和用户的兼容性。
这也是第一个关于电源分配的国际标准。
POE POE原理原理在一些特殊的应用场合,如果使用传统的带有电源线或者变压器的设备是会十分的不方便。
比如无线接入设备(如AP或者是无线路由器)通常要安置在天花板上,但在这个地方很难找到一个合适的交流电输出接口。
802.3af标准制订的规范就是为这些设备不再需要电源线接口而诞生。
同时人们发现这样在开支上面能够节省很大一部分,因此POE技术迅速的发展了起来。
POEPOE原理原理IEEE 802.3af标准是通过以太网数据线对或备用线对来实现以太网设备供电,从而摆脱了采用交流适配器所带来的麻烦。
以太网供电不仅去除了讨厌的壁式变压器,还有助于推出一整套新的设备,这些设备结合了数据和电源接口,并可对现有的10、100或1000Mbps以太网设备后向兼容。
802.3af突破了以太网的应用,它主要是一个电源传输协议,而不是数据协议。
同时POE出现也节省了布线的工作量。
POE POE原理原理以太网网线供电已经在市场上广泛应用了,特别是在IP电话、无线局域网和IP安全市场。
由于不用安装另外的电源线和电源插座,这项技术可以节省很大一部分的安装费用同时也方便管理者进行管理。
POE POE原理原理同时它还可在部署本地交流电源较为困难的场所安装网络连接设备,从而提供了更大的灵活性。
如果采用传统的交流供电方式,会产生电磁干扰,而双绞线容易受到磁场的干扰。
POE也避免了这个问题。
POEPOE原理原理一个完整的POE系统至少包括供电端设备(PSE, Power Sourcing Equipment)和受电端设备(PD, Power Device)两部分。
三层交换机的配置实例1、交换机配置模版〔以迈普4152E 交换机为例〕hostname HEBSJZZXCG5_WN_AS02service password-encryptno service new-encryptservice login-secureenable password maipuuser admin password 0 adminip access-list standard 110 permit 10.59.16.0 0.0.0.25520 permit 10.59.18.0 0.0.0.255exitip access-list standard telnet_acl10 permit 10.59.16.0 0.0.0.25520 permit 100.255.1.0 0.0.0.25530 permit 100.255.0.0 0.0.0.255exitaaa new-modelaaa authentication login default tacacs localaaa authentication enable default tacacs enableaaa authorization exec default tacacs localaaa authorization commands 1 default tacacs localaaa authorization commands 15 default tacacs localaaa accounting exec default start-stop tacacsaaa accounting commands 1 default start-stop tacacsaaa accounting commands 15 default start-stop tacacsip ctrl-protocol unicastip ctrl-protocol multicastip load-sharing per-destinationvlan 1exitvlan 2021description TO-HEBSJZZX3_WN_AS01 exitvlan 2051description TO-2600C-ABISexitvlan 2052description TO-2600C-OAexitvlan 2053description TO-2600C-TESTexit!slot_0_S4152E!slot 0/0port 0/0/0port-type nniport access vlan 2021exitport 0/0/1port-type nniport access vlan 2021exitport 0/0/2port-type nniport access vlan 2021exitport 0/0/3port-type nniport access vlan 2021exitport 0/0/4port-type nniport access vlan 2021exitport 0/0/5port-type nniexitport 0/0/6port-type nniport access vlan 2021 exitport 0/0/7port-type nniport access vlan 2021 exitport 0/0/8port-type nniport access vlan 2021 exitport 0/0/9port-type nniport access vlan 2021 exitport 0/0/10port-type nniport access vlan 2021 exitport 0/0/11port-type nniport access vlan 2021 exitport 0/0/12port-type nniport access vlan 2021 exitport 0/0/13port-type nniport access vlan 2021 exitport 0/0/14port-type nniport access vlan 2021 exitport 0/0/15port-type nniport access vlan 2021 exitport 0/0/16port-type nniexitport 0/0/17port-type nniport access vlan 2021 exitport 0/0/18port-type nniport access vlan 2021 exitport 0/0/19port-type nniport access vlan 2021 exitport 0/0/20port-type nniport access vlan 2021 exitport 0/0/21port-type nniport access vlan 2021 exitport 0/0/22port-type nniport access vlan 2021 exitport 0/0/23port-type nniport access vlan 2021 exitport 0/0/24port-type nniport access vlan 2021 exitport 0/0/25port-type nniport access vlan 2021 exitport 0/0/26port-type nniport access vlan 2021 exitport 0/0/27port-type nniexitport 0/0/28port-type nniport access vlan 2021 exitport 0/0/29port-type nniport access vlan 2021 exitport 0/0/30port-type nniport access vlan 2021 exitport 0/0/31port-type nniport access vlan 2021 exitport 0/0/32port-type nniport access vlan 2051 exitport 0/0/33port-type nniport access vlan 2051 exitport 0/0/34port-type nniport access vlan 2051 exitport 0/0/35port-type nniport access vlan 2051 exitport 0/0/36port-type nniport access vlan 2051 exitport 0/0/37port-type nniport access vlan 2051 exitport 0/0/38port-type nniexitport 0/0/39port-type nniport access vlan 2051exitport 0/0/40port-type nniport access vlan 2051exitport 0/0/41port-type nniport access vlan 2051exitport 0/0/42port-type nniport access vlan 2052exitport 0/0/43port-type nniport access vlan 2052exitport 0/0/44port-type nniport access vlan 2052exitport 0/0/45port-type nniport access vlan 2052exitport 0/0/46description TO-HEBSJZZX2_WN_AS03 port-type nniport mode trunkport trunk allowed vlan allport trunk pvid vlan 1traffic-shape 10240 12288exitport 0/0/47description TO-2600Cport-type nniport mode trunkport trunk allowed vlan allport trunk pvid vlan 1!end!slot_1_SM41-4GE!slot 0/1port 0/1/0port-type nniport access vlan 2053exitport 0/1/1port-type nniport access vlan 2053exitport 0/1/2port-type nniexitport 0/1/3port-type nniexitinterface vlan 1description TO-9512E-GUANLIip address 100.255.1.131 255.255.255.0exitip route 0.0.0.0 0.0.0.0 100.255.1.254logging 10.59.18.1 0 6line vty 0 15exec-timeout 0 300login localexitsnmp-server startsnmp-server view default 1.3.6.1 includesnmp-server community public view default ro 1snmp-server host 130.25.2.103 traps community public version 2 snmp-server trap-source 10.6.24.222snmp-server enable traps snmp authenticationsnmp-server enable traps snmp linkdownsnmp-server enable traps snmp linkup2、配置操作3、网点迈普4152E交换机配置模版enaconf tvlan 2051description ABISexitvlan 2052description OAexitvlan 2053description TESTexitvlan 2054description waiwangexitport 0/0/0-0/0/47port-type nniport 0/0/0-0/0/29port access vlan 2051exitport 0/0/30-0/0/39port access vlan 2052exitport 0/0/40-0/0/44port access vlan 2054exitport 0/0/45-0/0/47port access vlan 2053 exitexitwr。
基本配置S> enable 进入特权模式S# configure terminal 进入全局配置模式S(config)# hostname name 改变交换机名称S(config)# enable password level level_# password 设置用户口令(level_#=1)或特权口令(level_#=15)S(config)# line console 0 进入控制台接口S(config-line)# password console_password 接上一条命令,设置控制台口令S(config)# line vty 0 15 进入虚拟终端S(config-line)# password telnet_password 接上一条命令,设置Telnet口令S(config-line)# login 允许Telnet登录S(config)# enable password|secret privilege_password 配置特权口令(加密或不加密)S(config)# interface ethernet|fastethernet|gigabitethernet slot_#/port_# 进入接口子配置模式S(config-if)# [no] shutdown 关闭或启用该接口(默认启用)S(config)# ip address IP_address sunbet_mask 指定IP地址S(config)# ip default-gateway router's_IP_address 指定哪台路由器地址为默认网关S# show running-config 查看当前的配置S# copy running-config startup-config 将RAM中的当前配置保存到NVRAM中S> show interface [type slot_#/port_#] 查看所有或指定接口的信息S> show ip 显示交换机的IP配置(只在1900系列上可用)S> show version 查看设备信息S# show ip interface brief 验证IP配置S(config-if)# speed 10|100|auto 设置接口速率S(config-if)# duplex auto|full|half 设置接口双工模式S> show mac-address-table 查看CAM表S# clear mac-address-table 清除CAM表中的动态条目1900(config)# mac-address-table permanent MAC_address type [slot_#/]port_# 在CAM 表中创建静态条目2950(config)# mac-address-table static MAC_address vlan VLAN_# interface type [slot_#/] port_# 在CAM表中创建静态条目1900(config)# mac-address-table restricted static MAC_address source_port list_of_allowed_interface 设置静态端口安全措施1900(config-if)# port secure 启用粘性学习1900(config-if)# port secure max-mac-count value 设置粘性学习特性能够学到的地址数量(默认132,取值范围是1-132)1900(config)# address-violation suspend|ignore|disable 改变安全选项1900> show mac-address-table security 验证端口安全措施2950(config)# switchport mode access 定义接口为主机端口而不是中继端口2950(config)# switchport port-security 启用端口安全措施2950(config)# switchport port-security maximum value 指定可与此接口相关的设备的最大数量2950(config)# switchport port-security violation protect|restrict|shutdown 指定出现安全违规时应该发生的事2950(config)# switchport port-security mac-address MAC_address 指定允许与此接口相关的确切的MAC地址2950(config)# switchport port-security mac-address sticky 启用粘性学习特性2950(config)# show port interface type [slot_#/] port_# 验证接口配置2950(config-if) description name 设置接口描述信息2950# show buffers 查看系统缓存的大小1900# copy nvram tftp:// IP_address_of_TFTP_server/ file_name 将配置文件备份到TFTP 服务器上1900# copy tftp:// IP_address_of_TFTP_server/ file_name nvram 从TFTP服务器上恢复配置到NVRAM1900# delete nvram 删除配置文件2950# erase startup-config 删除配置文件3550# show tcam qos TCAM_ID statistics 查看TCAM剩余容量4000> enable 进入特权模式4000>(enable) set password 设置用户模式密码4000>(enable) set enablepass 设置授权密码4000>(enable) set interface sc0 IP_address mask 配置IP地址4000>(enable) set port enable|disable slot_#/port_# 启用/禁用接口4000>(enable) show port [slot_#/port_#] 显示接口信息4000>(enable) set port name slot_#/port_# name 设置交换机接口描述信息4000>(enable) set port speed slot_#/port_# 4|10|16|100|auto 设置交换机接口速率4000>(enable) set port duplex slot_#/port_# full|half 设置交换机接口双工模式4000>(enable) clear config all 删除NVRAM中的配置信息4000>(enable) erase all 删除FLASH中的内容4000>(enable) show flash 显示FLASH中的内容4000>(enable) show cam [count] dynamic|static|permanent|system [vlan_#] 显示CAM 表VLAN 1900(config)# vtp domain VTP_domain_name 定义交换机域名1900(config)# vtp server|client|transparent 定义交换机VTP模式(默认服务器)1900(config)# vtp password VTP_password 配置VTP口令1900(config)# vtp pruning enable|disable 启用/禁用修剪(默认启用)1900(config)# vtp trap enable 启用SNMP陷阱(默认启用)1900# show vtp 验证VTP配置2950# vtp database 访问VLAN和VTP配置(以下均是在IOS12.1前用,12.1后全是在全局配置模式下)2950(vlan)# vtp domain VTP_domain_name 定义交换机域名2950(vlan)# vtp server|client|transparent 定义交换机VTP模式(默认服务器)2950(vlan)# vtp password VTP_password 配置VTP口令2950(vlan)# vtp pruning 启用/禁用修剪(默认启用)2950(config)# snmp-server enable traps vtp 启用SNMP陷阱(默认启用)2950# show vtp status 检查VTP配置2950# show vtp counters 显示与VTP消息发送与接收相关的VTP统计信息1900(config-if)# trunk on|off|desirable|auto 指定中继类型1900# show trunk A|B 验证接口中继(A是fa0/26,B是fa0/27)2950(config-if)# switchport mode trunk|dynamic desirable|dynamic auto|nonegotiate 指定中继类型(默认自动协商)2950(config-if)# switchport trunk native|allowed|pruning vlan VLAN_# 配置中继2950(config-if)# switchport trunk pruning vlan remove VLAN_# 清除不希望消减的VLAN 2950# show interfaces [type 0/port_#] switchport|trunk 验证接口中继1900(config)# vlan VLAN_# [name VLAN_name] 创建VLAN1900(config-if)# vlan-membership static VLAN_# 将该接口静态地分配给一个VLAN 1900# show vlan 验证VLAN1900# show vlan-membership 查看VLAN成员关系1900# show spantree [VLAN_#] 查看VLAN的STP信息2950# vlan database 进入VLAN数据库(ISO12.1前用)2950(vlan)# vlan VLAN_# [name VLAN_name] 创建VLAN2950(config)# vlan VLAN_# 进入VLAN数据库(ISO12.1后用)2950(config-vlan)# name VLAN_name 创建VLAN2950(config-if)# switchport mode access 指定连接是接入链路连接2950(config-if)# switchport access vlan VLAN_# 指定VLAN是接入链路连接4000>(enable) set vlan VLAN_# name VLAN_name 配置VLAN4000>(enable) set vlan VLAN_# slot_#/port_#-port_# 为VLAN分配端口4000>(enable) set trunk slot_#/port_# [on|off|desirable|auto|nonegotiate] [VLAN_#] [isl|dot1q|dot10|lane|negotiate] 配置中继4000>(enable) clear trunk slot_#/port_# VLAN_# 删除VLAN4000>(enable) show trunk slot_#/port_# 验证中继端口4000>(enable) set vtp v2 enable 配置VTPv24000>(enable) set vtp [domain name] [mode client|server|transparent] [passwd password] [pruning enable|disable] [v2 enable|disable] 设置VTP4000>(enable) show vtp domain 验证VTP域的信息4000>(enable) show vtp statistics 显示发出或收到的VTP通告信息的摘要内容4000>(enable) set vtp pruneeligible VLAN_# 设置VTP消减4000>(enable) clear vtp pruneeligible VLAN_# 清除不希望消减的VLANSTP 4000>(enable) set spantree enable|disable VLAN_# 启用/禁用STP(默认启用)2950(config)# [no] spanning-tree vlan VLAN_# 启用/禁用STP(默认启用)4000>(enable) show spantree [VLAN_#] 验证STP状态2950# show spanning-tree 验证STP状态4000>(enable) set spantree root [secondary] VLAN_# [dia network_diameter] [hello hello_time] 设置主根节点桥、备份节点桥、最大桥数量(2-7)、持续时间(1-10,默认2)4000>(enable) set spantree portcost slot_#/port_# cost_# 设置端口开销2950(config-if)# spanning-tree cost cost_# 设置端口开销4000>(enable) set spantree portpri slot_#/port_# priority_# 设置端口优先级4000>(enable) set spantree portvlanpri slot_#/port_# priority_# [VLAN_#] 改变VLAN 的优先级设置2950(config-if)# spanning-tree vlan VLAN_# port-priority priority_# 设置端口优先级4000>(enable) set spantree fwddelay delay_# [VLAN_#] 设置从侦听状态到学习状态再到转发状态的时间间隔(默认15秒,取值范围是4-30秒)4000>(enable) set spantree hello interval_time [VLAN_#] 设置根节点交换机发送BPDU 的时间间隔(默认2秒,取值范围是1-10秒)4000>(enable) set spantree maxage agingtime [VLAN_#] 设置交换机持有BPDU的时间(默认20秒,取值范围是6-40秒)2950(config)# spanning-tree vlan VLAN_# forward-time forward_time 设置从侦听状态到学习状态再到转发状态的时间间隔(默认15秒,取值范围是4-30秒)2950(config)# spanning-tree vlan VLAN_# hello-time hello_time 设置根节点交换机发送BPDU的时间间隔(默认2秒,取值范围是1-10秒)2950(config)# spanning-tree vlan VLAN_# max-age maxage 设置交换机持有BPDU的时间(默认20秒,取值范围是6-40秒)4000>(enable) set port channel slot_#/port_# on 建立以太通道集合4000>(enable) show port capabilities slot_#/port_# 查看端口的配置4000>(enable) show port channel 验证以太通道集合的配置2950(config-if)# channel-group group_number mode auto|desirable|on 建立以太通道集合2950# show etherchannel group_number|brief|detail|load-balance|port|port-channel|summary 验证以太通道集合的配置4000>(enable) set spantree portfast slot_#/port_# enable 配置PortFast2950(config-if)# spanning-tree portfast 配置PortFast4000>(enable) set spantree uplinkfast enable|disable [rate station_update_rate] [all-protocols off|on] 启用/禁用UplinkFast4000>(enable) show spantree uplinkfast 验证UplinkFast配置2950(config)# spanning-tree uplinkfast [max_update_rate] 启用/禁用UplinkFast 2950# show spanning-tree uplinkfast 验证UplinkFast配置4000>(enable) set spantree backbonefast enable|disable 启用/禁用BackboneFast 4000>(enable) show spantree backbonefast 验证BackboneFast配置2950(config)# spanning-tree backbonefast 启用BackboneFast虚拟网间路由2600(config)# interface type slot_#/port_#.subint_number 配置子接口2600(config-subif)# encapsulation dot1q|isl|sde|tr-isl VLAN_# 配置封装类型4000>(enable) show module 查看交换机的硬件配置4000>(enable) session module_# 访问L3SML3SM(config-if)# mac-address mac_address 分配MAC地址MLS 2600(config)# mls rp ip 启动MLS2600(config-if)# mls rp vtp-domain domain_name 分配路由器接口到VTP域中2600(config-if)# mls rp vlan-id VLAN_# 向接口分配VLAN2600(config-if)# mls rp management-interface 指定该接口为管理接口2600# show mls rp 提供全局MLS信息2600# show mls rp interface type slot_#/port_# 提供指定接口的MLS信息2600# show mls rp vtp-domain domain_name 提供VTP域的MLS信息6500>(enable) set mls enable 在MLS-SE上启动MLS6500>(enable) set mls include rp_ip_address 告诉交换机哪一个IP地址是正确的6500>(enable) show mls include 显示外部路由处理器的IP地址列表6500>(enable) set mls flow [destination|destination-source|full] 告诉MLS交换机要缓存候选数据包的哪些信息6500>(enable) show mls entry 显示第三层缓存表6500>(enable) set mls agingtime aging_time 改变缓存的衰老时间(默认256秒,取值范围是8-2032秒中的8的倍数值)6500>(enable) set mls agingtime fast fast_aging_time pkt_threshold 改变快速衰老周期和数据包门限值6500>(enable) show mls ip 验证MLS-SE的配置6500>(enable) clear mls entry [destination IP_address] [source IP_address] [flow protocol] [source_port] [destination_port] [all] 删除所有或指定MLS缓存记录3550(config)# ip routing 启动IP路由3550(config)# ip cef 启动CEF3550(config-if)# no switchport 将第二层接口转换为第三层接口3550(config-if)# ip route-cache cef 在接口上启动CEF3550# show ip cef 验证CEF组播3640(config)# ip multicast-routing 启动路由器上的组播服务3640(config-if)# ip pim dense-mode 将接口设置为PIM密集模式3640(config-if)# ip pim sparse-mode 将接口设置为PIM稀疏模式3640(config-if)# ip pim sparsed-dense-mode 将接口设置为PIM稀疏-密集模式3640(config)# ip pim rp-address IP_address group_ACL_# [override] 手工配置RP 3640(config)# ip pim send-rp-announce type slot_#/port_# scope ttl_value group-list ACL_# 通告RP组的分配3640(config)# ip pim send-rp-discovery scope ttl_value 配置RP映射代理3640(config-if)# ip multicast ttl-threshold ttl_value 设置TTL门限值3640(config-if)# ip igmp join-group group_address 加入组播组3640# show ip mroute 查看组播信息3640# ping 验证RP之间或其他组播路由器之间的连接3640# mtrace source_IP_address [destination_IP_address] [group] 组播traceroute 3640(config-if)# ip cgmp 配置CGMP路由器4000>(enable) set cgmp enable 启动CGMP4000>(enable) show cgmp statistics 查看CGMP统计信息4000>(enable) show multicast group cgmp 查看交换机了解到的组播组信息4000>(enable) set cgmp leave enable 检查由客户端产生的IGMPv2的离开信息4000>(enable) set igmp enable 启动IGMP4000>(enable) ip igmp snooping 启动IGMP探听4000>(enable) set igmp fastleave enable 启动快速离开过程4000>(enable) show igmp statistics 显示交换机上IGMP探听的状态信息QoS 2950(config)# wrr-queue cos-map queue_ID cos_value 建立队列2950(config)# wrr-queue bandwidth bandwidth_value 设置队列门限2950(config)# class-maps name 定义对信息传输分类时的匹配标准2950(config-cmap)# match access-group ACL_# 识别被分类的信息传输2950(config)# policy-map name 确定为接入信息传输所设置的分类标准2950(config-pmap)# class name2950(config-pmap-c)# set ip dscp number2950(config-if)# service-policy input name 对该接口应用策略3550(config)# mls qos 启动QoS3550(config-if)# auto qos voip 在接口上启动自动服务质量3550(config)# priority-list priority_queue_# protocol protocol high|medium|normal|low [list ACL_#] 为优先级队列定义信息流3550(config)# priority-list priority_queue_# queue-limit limit_# 定义特定优先级队列的最大队列空间3550(config-if)# priority-group priority_queue_# 向特定输出接口分配优先级队列3550(config)# queue-list queue_list_# interface type slot_#/port_# queue_number 为一个特定的定制队列定义信息流3550(config)# queue-list queue_list_# queue queue_number byte-count size_in_bytes [limit number_of_queue] 为特定的定制队列定义队列的最大空间3550(config-if)# custom-queue-list custom_queue_number 为特定的输出接口分配优先级队列4840(config)# ip slb serverfarm serverfarm_name 配置SLB冗余4840(config-slb-sfarm)# real IP_address [port_#] 指定虚拟IP地址4840(config-slb-sfarm)# inservice 启动服务器4840(config)# virtual IP_address [network_mask] tcp|udp [port_number|wsp|wsp-wtp|wsp-wtls|wsp-wtp-wtls] [service service_name] 建立虚拟服务器IP地址。
1 配置POE1.1 POE功能简介PoE (Power over Ethernet,以太网供电,又称远程供电)是指在现有的以太网Cat.5布线基础架构不作任何改动的情况下,在为一些基于IP的终端(如IP电话机、无线局域网接入点AP、网络摄像机等)传输数据信号的同时,还能为此类设备提供直流供电的技术。
1.2 POE的优点1、可靠:电源集中供电,备份方便;2、连接简捷:网络终端不需外接电源,只需要一根网线;3 、标准:符合IEEE 802.3af 、IEEE 802.3at标准,使用全球统一的电源接口;4 、应用前景广泛:可以用于IP 电话、无线AP(Access Point ,接入点)、便携设备充电器、刷卡机、网络摄像头、数据采集等。
1.3 POE系统组成PoE 系统包括PoE 电源、PSE和PD。
1、PoE 电源PoE 电源为整个PoE 系统供电,分为外置电源和内置电源两种类型。
2、PSEPSE(Power Sourcing Equipment ,供电设备)是单板(子卡)。
每个PSE对单板(子卡)内的PoE 接口进行独立管理。
PSE在PoE 接口的线路上寻找、检测PD,对PD分类,并向其供电。
当检测到PD拔出后,PSE停止供电。
具备PoE 供电能力的以太网接口称为PoE 接口,包括FE和GE。
3、PDPD是接受PSE供电的设备。
分为标准PD和非标准PD,标准PD是指符合IEEE 802.3af、IEEE 802.3at标准的PD设备。
PD设备在接受PoE 电源供电的同时,允许连接其他电源供电,进行电源冗余备份。
1.4 POE端口优先级设定1、manual模式电源管理在manual模式下,相关优先级设定不会生效。
当PSE功率过载时不会对新接入的PD设备供电2、auto模式电源管理在auto模式下,当PSE功率过载时,会通过软件评判优先级并决定是否对新接入的PD设备供电:1)软件优先级有low、high、critical三个等级,优先级顺序递增。
24口交换机配置脚本:
ena
conf
hostname YNQJ-GM-QLGYJSX-PEO1-SYD aaa authentication login default enable aaa authentication enable default enable enable password 0 sunnada
vlan 21
exit
vlan 2020
exit
int range FastEthernet 0/1 - 24 switchport mode access
switchport pvid 2020
exit
int GigaEthernet 0/1
switchport mode trunk
switchport trunk vlan-allowed 2020,21 speed 100
duplex full
exit
int GigaEthernet 0/2
switchport mode trunk
switchport trunk vlan-allowed 2020,21 speed 100
duplex full
exit
4
int GigaEthernet 0/3
switchport mode trunk
switchport trunk vlan-allowed 2020,21 exit
int GigaEthernet 0/4
switchport mode trunk
switchport trunk vlan-allowed 2020,21 exit
interface vlan 21
ip add 10.227.5.35 255.255.0.0
exit
ip default-gateway 10.227.3.1
wr
8口交换机配置脚本:
ena
conf
hostname YNQJ-GM-LPYXX-PEO1-SYD aaa authentication login default enable aaa authentication enable default enable enable password 0 sunnada
vlan 21
exit
vlan 2027
exit
int range FastEthernet 0/1 - 8 switchport mode access
switchport pvid 2027
exit
int GigaEthernet 0/1
switchport mode trunk
switchport trunk vlan-allowed 2027,21 speed 100
duplex full
exit
int GigaEthernet 0/2
switchport mode trunk
switchport trunk vlan-allowed 2027,21 exit
interface vlan 21
ip add 10.227.3.7 255.255.0.0
exit
ip default-gateway 10.227.3.1
wr
aaa:交换机命名。
[YNKM-HGDS-POE01-SYD 云南昆明-站点名称-交换机编号-三元达] 200:站点VLAN(业务VLAN)每个站点规划1个
30:交换机管理VLAN 每个地市规划1个
192.168.10.100:交换机管理IP地址每台交换机规划1个
192.168.10.1:交换机管理地址网关每个地市规划1个
注意事项:
24口交换机:G1,G2插百兆光模块,G3,G4插千兆光模块
8口交换机:G1插百兆光模块,G2插千兆光模块
show mac address-table dynamic | exclude G0/1。