中文名稱 | 交換機命令 | 外文名稱 | Switchboard Command |
---|
請問你是什么牌?H3C Switch命令:
一、模式命令:
1. 用戶模式:Switch>
2. 特權模式:Switch>enable
Switch#
3. 全局配置模式:Switch#config terminal
Switch(config)#
4. 接口配置模式:Switch(config)#interface fastethernet0/1
Switch(config-if)#
5. Line模式:Switch(config)#line console 0
Switch(config-line)#
二、特權模式下的命令:
1. 查看機MAC地址:Switch#show mac-address-table
2. 發(fā)現(xiàn)(CDP):
Switch#show cdp
Switch#show cdp interface fastethernet0/1
Switch#show cdp neighbors
Switch#show cdp neighbors detail
Switch#show cdp entry
3. 保存機配置:
Switch#copy running-config startup-config或者Switch#write
4. 恢復交換機出廠值:
Switch#erase startup-config
Switch#reload
三、全局配置模式下的命令:
1. 配置主機名:Switch(config)#hostname Sw1
Sw1(config)#
2、 設置登陸臺密碼:Switch(config)#line console 0
Switch(config-line)#password 密碼
Switch(config-line)#login
3. 使能口令:Switch(config)#enable Password 密碼
4. 加密保存的使能口令:Switch(config)#enable secret 密碼
5. 配置IP地址:
Switch(config)#interface vlan 1
Switch(config-if)#ip address IP地址 網關
Switch(config-if)#no shutdown
6. 配置交換機網關:Switch(config)#ip default-gateway 網關
四、VLAN配置命令:
1. 創(chuàng)建vlan命令:
a) 全局配置模式下:
Switch(config)#vlan 2
Switch(config)#name v2
Switch(config)#mtu 數(shù)值
Switch(config)#end
b) Vlan數(shù)據(jù)庫下:
Switch#vlan database
Switch#vlan 2 name v2
Switch#vlan 2 mut 數(shù)值
Switch#exit
2. 刪除vlan命令:
a) 全局配置模式下:
Switch(config)#no vlan 2
Switch(config)#end
b) Vlan數(shù)據(jù)庫下:
Switch#no vlan 2 name v2
Switch#exit
3. 在vlan中添加端口:
Switch#config terminal
Switch(config)#interface f0/1(端口)
Switch(config-if)#Switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#end
一次將多個端口添加到vlan中:
Switch#config terminal
Switch(config)#interface range f0/1 - 5(端口)
Switch(config-if)#switchport access vlan 2
Switch(config-if)#end
注:switch#show vlan biref(查看vlan信息)
4. 配置vlan trunk:
1. 配置接口為trunk命令:
Switch(config)# interface f0/1(端口)
Switch(config-if)#Switchport mode trunk
2. 配置接口為動態(tài)協(xié)商模式的命令:
Switch(config)# interface f0/1(端口)
Switch(config-if)#switchport mode dynamic desirable/auto
3. 從trunk中刪除vlan:
Switch(config)# interface f0/1(端口)
Switch(config-if)#Switchport trunk allowed vlan remove 2
4. 在trunk中添加vlan:
Switch(config)# interface f0/1(端口)
Switch(config-if)#Switchport trunk allowed vlan add 2
-----------------------------------------------------------
Catalyst 2950交換機密碼恢復
(1)拔下交換機的電源。
(2)用手按再交換機的MODE按鍵上,插上電源線。
(3)看到控制臺出現(xiàn)如下提示,松開MODE建。
switch:
(4)再switch:后執(zhí)行flash_init命令。
(5)查看Flash中的文件。
(6)把config.text文件改名為config.old文件。
(7)執(zhí)行boot命令,啟動交換機。
(8)進入特權模式查看flash里的文件。
(9)把文件config.old改為config.text文件。
(10)把config.text復制為系統(tǒng)的running-config.
(11)進入配置模式重新設置密碼并存盤,密碼恢復完成。
交換機(Switch)意為“開關”是一種用于電(光)信號轉發(fā)的網絡設備。它可以為接入交換機的任意兩個網絡節(jié)點提供獨享的電信號通路。最常見的交換機是以太網交換機。其他常見的還有電話語音交換機、光纖交換機...
格式:pdf
大?。?span id="hxkdqhy" class="single-tag-height">11KB
頁數(shù): 7頁
評分: 4.4
【第一部分】交換機支持的命令: 1.交換機基本狀態(tài): switch: ;ROM 狀態(tài), 路由器是 rommon> hostname> ;用戶模式 hostname# ;特權模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口狀態(tài) 2.交換機口令設置: switch>enable ;進入特權模式 switch#config terminal ;進入全局配置模式 switch(config)#hostname ;設置交換機的主機名 switch(config)#enable secret xxx ;設置特權加密口令 switch(config)#enable password xxa ;設置特權非密口令 switch(config)#line console 0 ;進入控制臺口 switch(config-line)#line vty 0
格式:pdf
大?。?span id="bh9tixq" class="single-tag-height">11KB
頁數(shù): 7頁
評分: 4.7
華為交換機基本配置命令詳解 1、配置文件相關命令 [Quidway]display current-configuration 顯示當前生效的配置 [Quidway]display saved-configuration 顯示 flash中配置文件,即下次上電啟動時所用 的配置文件 reset saved-configuration 檫除舊的配置文件 reboot 交換機重啟 display version 顯示系統(tǒng)版本信息 2、基本配置 [Quidway]super password 修改特權用戶密碼 [Quidway]sysname