1、端口属性相关功能介绍,进入特权模式: S2800#configure 进入端口配置: S2800(config)# interface fastethernet /gigaethernet 1/1 打开端口: S2800(config-fe1/1)#no shutdown 关闭端口: S2800(config-fe1/1)#no shutdown 使能或不使能自协商: S2800(config-fe1/1)# negotiation auto enable/ disable 配置接口速率: S2800(config-fe1/1)# speed 10/100 配置接口双工模式: S2800(co
2、nfig-fe1/1)# duplex full/ half,查看运行时间:show clock 查看版本号:show version 查看设备CPU:show cpu statistic 查看设备内存:show memory pool 查看当前配置:show running-config 查看历史配置:show history 查看端口信息:show interface 查看单个端口:show interface fastethernet 1/1 查看VLAN信息:show vlan 查看详细VLAN信息:show vlan verbose 查看编译时间和MAC信息:show system
3、查看IPV4接口信息:show ip interface 查看ARP配置信息:show arp config 查看接收trap的主机信息:show snmp trap-server,常用查看配置介绍,常用VLAN配置介绍,创建删除VLAN S2800(config)#vlan 2 4094 S2800(config)#no vlan 1000 1100 进入VLAN接口: S2800(config)#int vlan The ID of VLAN S2800(config)#int vlan 10 接口描述: S2800(vlan-1)#description vlanfiberhome Vl
4、an端口模式设置 default模式( hybrid模式)、trunk模式、 hybrid模式、 access模式 S2800(config)#int fastethernet 1/1 S2800(config-fe1/1)#port link-type default|trunk| hybrid,常用VLAN配置介绍,Vlan端口添加 hybrid 模式 S2800(config-fe1/1) port hybrid vlan 2 tagged|untagged trunk模式 S2800(config-fe1/1) port trunk allow-pass | pvid vlan acc
5、ess模式 S2800(config-fe1/1) port default vlan 2查看交换机vlan配置 S2800(config)#show vlanThe total number of vlans is :2-=None, M=Member,U=UntaggedVID fe-1/1-fe-1/16, ge-1/17-ge-1/181 UUUU UUU- UUUU UUUU UU2 M- -U - - -,交换机管理地址配置,交换机VLAN地址配置S2800(config)#interface vlan 2 S2800(config-vlan-2)#ip address 192.1
6、68.100.1/24查看交换机vlan接口地址S2800(config)#show ip interfaceThe total number of ip address is 3Ip-Address Interface IPIndex State(a/o) Role Type127.0.0.1/8 loopback0 2 up/up loopback auto192.168.0.1/24 Outband 1 up/up - static192.168.100.1/24 Vlan2 3 up/down primary static,SNMP配置,使能SNMP S2800(config)#snm
7、p enableSNMP团体名命名 S2800(config)#snmp community fenghuo ro|rwsnmp trap服务器配置 S2800(config)#snmp trap-server 2.2.2.2 fenghuo v2,链路聚合配置,创建链路聚合 S2800(config)#interface eth-trunk 1添加端口 S2800(config-eth-trunk 1)#add fastethernet 1/1 S2800(config-eth-trunk 1)#add fastethernet 1/2查看eth-trunk配置 S2800(config)#
8、show interface eth-trunk 1,路由配置,交换机默认路由配置 S2800(config)#ip route-static 0.0.0.0 0.0.0.0 192.168.100.254 查看交换机路由配置 S2800(config)#show ip route ROUTE NET TABLETotal Num: 5 Destination Gateway AD/Metric Interface Proto 0.0.0.0/0 192.168.100.254 0/0 Vlan-2 static 127.0.0.0/8 127.0.0.1 0/0 Loopback0 loca
9、l 127.0.0.1/32 127.0.0.1 0/0 Loopback0 local 192.168.0.0/24 192.168.0.1 0/0 Outband local 192.168.100.0/24 192.168.100.1 0/0 Vlan-2 localS2800(config)#,端口限速,端口限速命令S2800(config-fe1/1)#rate-limit in 100 S2800(config-fe1/1)#rate-limit out 100注:限速单位为64kbps,实际速率=N*64,in为入方向,out为出方向。,常用上传下载配置介绍,下载配置文件和升级:
10、 S2800-C (config)#ftp get 192.168.1.200 123 123 s2016mfb.bin v1.1.bin 完成后配置S2800-C (config)# up os是升级 完成后配置S2800-C (config)# up config是写配置上传配置文件: S2800-C (config)#ftp put 192.168.1.200 123 123 S2810 config,注意事项,1.VLAN 1不可删除。端口可以离开VLAN 1。 2.端口限速和风暴抑制互有影响,在同一端口上不能同时配置这两个功能。 3.删除指定MAC地址或指定动态MAC地址,需要等待一
11、分钟。 4.在端口加入聚合组之前,建议首先使用shutdown命令关闭端口。在两端的端口都加入聚合组后,使用no shutdown命令开启端口,否则可能会出现流量中断或短暂广播风暴的现象。 5.端口配置不同的DHCP Snoop版本,端口trust状态会变成untrust状态。 6.静态路由配置到最大数目后,无法进行其他配置。 7.Dhcp snoop功能和802.1x功能共用时,需要先配置Dhcp snoop功能,再配置802.1x功能。,注意事项,8.灵活QINQ功能。下行端口以Untag方式加入,条目数支持512条。下行端口以Tag方式加入,条目数支持1000条。 9.双向镜像同一种数据流,只有一份镜像流。 10.show interface statistic in命令行中Total统计不包含Error统计。 11.Web不支持ODM功能应用。 12.静态路由功能由软件实现,如果转发流量过大,则会出现CPU利用率100%,从而导致无法网管。 13.该版本通用于8口、16口、24口共3款设备,所有相关文档也是通用的;,