迅维网

标题: 交换机配置命令连载(三) [打印本页]

作者: lijianwei652    时间: 2013-1-22 15:53
标题: 交换机配置命令连载(三)
3、定义、删除(恢复初始)设备名称
Switch(config)# hostname test-2950
test-2950(config)# no hostname
4、配置snmp网管串
Switch(config)# snmp-server community xxxxxx ro  (只读)
Switch(config)# snmp-server community xxxxxx rw (读写)
5、新建、修改、删除某个VLAN,以及对VLAN命名
Switch# vlan database
Switch(vlan)# vlan 100
Switch(vlan)# vlan 100 name XX     (名字一般定义为客户名称或者共享网段标识)
Switch(vlan)# no vlan 100
或者
Switch# conf t
Switch(config)#vlan 100
Switch (config-vlan)#name XX     (名字一般定义为客户名称或者共享网段标识)
Switch (config)#no vlan 100
6、将某个端口或者一组端口,划分到VLAN
Switch(config)# interface f0/13          (进入单个端口配置模式)
Switch(config)# interface range f0/1-5    (进入一组端口配置模式)
Switch(config)# interface range f0/1-5, f0/8-10 (进入一组端口配置模式)
Switch(config-if)#                         (端口描述)
Description 客户名称拼音的全拼(首字母大写) ip=地址 带宽 操作日期
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 100
Switch(config-if)# no shutdown
Switch(config-if)# no switchport              (删除端口相关配置)






欢迎光临 迅维网 (https://www.chinafix.com/) Powered by Discuz! X3.4