思科基礎(chǔ)知識(shí):第二層交換(5)
第二層交換—配置接口描述
配置描述信息,在接口配置模式下使用description命令,1900下的描述信息不能使用空格鍵,如下:
- 1900(config)#int e0/1
- 1900(config-if)#description Cisco_VLAN
- 1900(config-if)#int f0/26
- 1900(config-if)#description trunk_to_building_4
- 1900(config-if)#
2950下的描述就可以使用空格鍵,如下:
- 2950(config)#int fa 0/1
- 2950(config-if)#description Sales Printer
- 2950(config-if)#^Z
可以使用show interface和show running-config命令來查看這些描述信息
第二層交換—擦除交換機(jī)的配置
1900和2950的配置文件是存儲(chǔ)在NVRAM里的,但是1900里你不能查看NVRAM或startup-config的內(nèi)容,只能查看running-config的內(nèi)容,在1900里,你對(duì)配置所進(jìn)行的修改自動(dòng)被復(fù)制到NVRAM里,所以沒有copy run start這樣的命令。
但是2950就有startup-config和running-config,使用copy run start來保存配置到NVRAM里,擦除2950里startup-config文件使用erase startup-config命令;擦除1900里的使用delete命令.如下:
- 1900#delete ?
- nvram NVRAM configuration
- vtp Reset VTP configuration to defaults
- 1900#delete nvram
2950如下:
- 2950#erase startup-config
【編輯推薦】