查看POE状态3026G:1.show power inlineS3026G#show power inlinePower Inline Status: OnPower Available: 185 WPower Used: 0 WPower Remaining: 185 WMin V oltage: 44 VMax V oltage: 57 VPolice: OffLegacy: OffDisconnect: AcMode: SignalHW Version: 30SW Version: 05.0.52. show power inline interface [ethernet <interface-number> | <interface-name>]Switch#show power inline interface ethernet1/1-6Interface Status Oper Power(mW) Max(mW) Current(mA) V olt(V)Priority Class------------ ------- ------ --------- ------- -----------Ethernet1/1 enable off 0 15400 0 0 high 0Ethernet1/2 enable off 0 15400 0 0 low 0Ethernet1/3 enable off 0 15400 0 0 low 0Ethernet1/4 enable off 0 15400 0 0 low 0Ethernet1/5 enable off 0 15400 0 0 low 0Ethernet1/6 enable off 0 15400 0 0 low 03、switch# show power fact-power显示结果描述与分析System Total Power : 150.0 W 系统总功率Total Power Allocated : 0.1 W 当前已使用的功率Available power : 149.9 W 剩余可用的功率2. switch# show power pd-status 0/3Power-Over-Ethernet port 0/3 status information:显示结果描述与分析Powered device current : 4.0mA PD的电流Powered device voltage : 46.8V PD的电压Powered device power : 0.1W PD的功率Powered device temperature :45℃POE端口的温度switch>?enable -- Enable Privileged modeexit -- Exit telnet sessionhelp -- helpshow -- Show running system informationswitch>1. 对特权用户配置命令“show interface ethernet 1”,只要输入“sh in e 1”即可。
配置enable密码:在特权用户配置模式的一般配置模式下,配置:Switch(Config)#enable password ?3026G:enable password level admin 密码配置相关用户:在特权用户配置模式的一般配置模式下,配置:Switch(Config)#user maipu password 0 maipuSwitch(Config)#telnet-user maipu password 0 maipuSwitch(Config)#hostname HNZZ--HHYBG10#--3026G--1HNZZ--HHYBG10#--3026G—1(Config)#switchport mode {trunk|access}功能:设置交换机的端口为access 模式或者trunk 模式。
参数:trunk 表示端口允许通过多个VLAN 的流量;access 为端口只能属于一个VLAN。
命令模式:端口配置模式缺省情况:端口缺省为Access 模式。
使用指南:工作在trunk mode 下的端口称为Trunk 端口,Trunk 端口可以通过多个VLAN 的流量,通过Trunk 端口之间的互联,可以实现不同交换机上的相同VLAN 的互通;工作在access mode 下的端口称为Access 端口,Access 端口可以分配给一个VLAN,并且同时只能分配给一个VLAN。
设置trunk 端口举例:将端口5 设置为trunk 模式,端口8 设置为access 模式。
Switch(Config)#interface ethernet 1/5Switch(Config-ethernet1/5)#switchport mode trunkswitchport trunk allowed vlan {<vlan-list>|all}no switchport trunk allowed vlan功能:设置Trunk 端口允许通过VLAN;本命令的no 操作为恢复缺省情况。
参数:<vlan-list>为允许在该Trunk 端口上通过的VLAN 列表;all 关键字表示允许该Trunk端口通过所有VLAN 的流量。
命令模式:端口配置模式缺省情况:Trunk 端口缺省允许通过所有VLAN。
使用指南:用户可以通过本命令设置哪些VLAN 的流量通过Trunk 端口,没有包含的VLAN流量则被禁止。
举例:设置Trunk 端口允许通过VLAN1,3,5-20 的流量。
Switch(Config)#interface ethernet 1/5Switch(Config-ethernet1/5)#switchport mode trunkSwitch(Config-ethernet1/5)#switchport trunk allowed vlan 1;3;5-20设置access端口witchport access vlan <vlan-id>no switchport access vlan功能:将当前Access 端口加入到指定VLAN;本命令no 操作为将当前端口从VLAN 里删除。
参数:<vlan-id>为当前端口要加入的vlan VID,取值范围为1~4094。
命令模式:端口配置模式缺省情况:所有端口默认属于VLAN1。
使用指南:只有属于Access mode 的端口才能加入到指定的VLAN 中,并且Access 端口同时只能加入到一个VLAN 里去。
举例:设置某Access 端口加入VLAN100。
Switch(Config)#interface ethernet 1/8Switch(Config-ethernet1/8)#switchport mode accessSwitch(Config-ethernet1/8)#switchport access vlan 100vlan接口配置命令interface vlan命令:interface vlan <vlan-id>no interface vlan <vlan-id>功能:进入VLAN接口配置模式;本命令的no操作为删除已存在的VLAN接口。
参数:<vlan-id> 是已建立的VLAN的VLAN ID,取值范围:1~4094。
命令模式:全局配置模式使用指南:要配置一个VLAN接口前,应确认此VLAN存在。
使用命令exit可以从VLAN 接口配置模式退回到全局配置模式。
举例:进入VLAN 1接口配置模式。
switch(Config)#interface vlan 1switch(Config-If-Vlan1)#配置实例配置项目配置说明VLAN2 A地、B地交换机2~4端口VLAN100 A地、B地交换机5~7端口VLAN200 A地、B地交换机8~10端口Trunk port A地、B地交换机的11端口A交换机:Switch (Config)#vlan 2Switch (Config-Vlan2)#exitSwitch (Config)#vlan 100Switch (Config-Vlan100)#exitSwitch (Config)#vlan 200Switch (Config-Vlan200)#exitSwitch (Config)#interface ethernet 0/11Switch (Config-Ethernet0/11)#switchport mode trunk Switch (Config-Ethernet0/11)#exitSwitch (Config)#interface ethernet 0/2-4Switch (Config-Range-ethernet)#switchport access vlan 2 Switch (Config-Range-ethernet)#exitB交换机:Switch (Config)#vlan 2Switch (Config-Vlan2)#exitSwitch (Config)#vlan 100Switch (Config-Vlan100)#exitSwitch (Config)#vlan 200Switch (Config-Vlan200)#exitSwitch (Config)#interface ethernet 0/11Switch (Config-Ethernet0/11)#switchport mode trunk Switch (Config-Ethernet0/11)#exitSwitch (Config)#interface ethernet 0/2-4Switch (Config-Range-ethernet)#switchport access vlan 2 Switch (Config-Range-ethernet)#exit。