cisco交換機序列號查看命令
show versionsh inv show diagshow versionshow diagbus由于工作的關(guān)系,經(jīng)常需要給客戶作一些維保的服務(wù),這樣經(jīng)常需要了解客戶設(shè)備的序列號。往往客戶又比較
show version
sh inv
show diag
show version
show diagbus
由于工作的關(guān)系,經(jīng)常需要給客戶作一些維保的服務(wù),這樣經(jīng)常需要了解客戶設(shè)備的序列號。往往客戶又比較懶,不愿意去機房里面一個個查找。
Cisco交換機命令大總結(jié)
switch(config)#interface vlan 1 進入vlan 1
switch(config-if)#ip address 設(shè)置IP地址
switch(config-if)#ip default-gateway 設(shè)置默認網(wǎng)關(guān)
switch(config)#line vty 0 4 進入虛擬終端
switch(config-line)#login 允許登錄
switch(config-line)#password xx 設(shè)置登錄口令
switch#exit 返回命令
Cisco交換機命令之控制臺口令
switch(config)#line console 0 進入控制臺口
switch(config-line)#login 允許登錄
switch(config-line)#password xx 設(shè)置登錄口令
switch#exit 返回命令
Cisco交換機命令之基本接口配置
switch(config)#interface f0/1 進入f0/1接口
switch(config-if)#duplex full 配置全雙工模式
switch(config-if)#speed 100 配置速率
switch(config-if)#description to ***** 接口描述
switch(config)#ip domain-name ***.com 設(shè)置或名服務(wù)器
switch(config)#mac-address-table aging-time 設(shè)置mac表超時時間
switch#write 保存配置信息
switch#copy running-config startup-config 保存當前配置nvram
switch#erase startup-config 清除配置文件
Cisco交換機命令之交換機VLAN設(shè)置:
switch#vlan database 進入VLAN設(shè)置
switch(vlan)#vlan 2 建VLAN 2
switch(vlan)#name 名字 建VLAN 2的名稱
switch(vlan)#no vlan 2 刪vlan 2
注:刪除vlan時原屬于此vlan的端口處于非激活狀態(tài),直到重新分配為止。
switch(config)#int f0/1 進入端口1
switch(config-if)#switchport mode access 當前端口工作莫試
switch(config-if)#switchport access vlan 2 當前端口加入vlan 2
switch(config-if)#switchport mode trunk 設(shè)置為干線
switch(config-if)#switchport trunk encapsulation dot1q 設(shè)置vlan 中繼協(xié)議
switch(config-if)#no switchport mode 或 ( switchport mode access) 禁用干線
switch(config-if)#switchport trunk allowed vlan add 1,2 ; 從Trunk中添加vlans
switch(config-if)#switchport trunk allowed vlan remove 1,2 ;從Trunk中刪除vlans
switch(config-if)#switchport trunk pruning vlan remove 1,2 ;從Trunk中關(guān)閉局部修剪
Cisco交換機命令之以太網(wǎng)通道配置
switch(config)#interface range fasternet0/1 - 2 將fasternet0/1和0/2 口捆綁
switch(config-if)#channel-group 1 mode on 配置以太通道模式
switch(config-if)#port-channel load-balance {dst-mac | src-mac}在鏈路間實現(xiàn)負載均衡
switch#show etherchannel 1 summary 查看通道信息
switch#show etherchannel load-balance 查看通道信息
Cisco交換機命令之vtp配置
switch(config)#vtp domain 設(shè)置vtp域名
switch(config)#vtp password 設(shè)置vtp密碼
switch(config)#vtp mode server 設(shè)置vtp服務(wù)器模式
switch(config)#vtp mode client 設(shè)置vtp客戶機模式
switch(config)#vtp mode transparent 設(shè)置vtp 透明模式