cisco路由器常用命令
cisco路由器常用命令有哪些?下面內容由小編為大家介紹cisco路由器常用命令,供大家參考!
1、Switch> 用户模式
2、Switch>enable 進入特權模式
Switch#
3、Switch#config terminal 進入全局模式
Switch(config)#
4、Switch(config)#interface f0/1 進入接口模式
Switch(config-if)#
5、Switch(config)#line console 0 進入line模式
Switch(config-line)#
exit 退回上層
end 結束所有操作
6、Switch(config)#hostname aaa 配置主機名
7、switch#show running-config 查看配置情況
8、Switch(config)#enable password 111 設置使能密碼(明文)
9、Switch(config)#enable secret 111 設置使能密碼(密文)
Switch(config)#line console 0 設置console密碼
Switch(config-line)#password 333
Switch(config-line)#login
10、Switch(config)#interface vlan1
Switch(config-if)#ip address 設置IP地址
Switch(config-if)#no shutdown
11、Switch(config)#ip default-gateway 設置網關
12、Switch#show mac-address-table 查看MAC地址表
13、Switch#show cdp cdp全局配置信息
14、Switch#show cdp interface f0/1 cdp接口配置信息
15、Switch#show cdp traffic cdp包的配置信息
16、Switch#show cdp neighbors cdp鄰居基本信息
17、Switch#show cdp neighbors detail cdp鄰居詳細信息
Switch#show cdp neighbors entry
18、Switch#copy running-config startup-config
19、Switch#erase startup-config 恢復出廠信息
Switch#reload 重新加載
20、交換機密碼恢復
*斷開電源
*按住MODE鍵,加電(等待數秒)
*switch:出現此符號
*switch:flash_init 初始化flash
*switch:dir flash: (查看文件,可省去)
*switch:rename 改名
*switch:boot 重啟
*switch>enable 進入特權
*switch#dir flash: (查看文件,可省去)
*switch#rename 改名
*switch#copy flash: running-config 複製到系統內
*switch#confit terminal 進入全局模式
*switch(config)#enable password 222 設置新密碼
21、switch#show vlan-sw brief 查看vlan
22、switch#vlan database 進入vlan模式
switch(vlan)#vlan 20 name bbb 創建vlan並命名
23、switch(vlan)#no vlan 20 刪除vlan
24、添加端口到vlan(單個)
switch(config)#interface f0/1 進入接口模式
switch(config-if)#switchport access vlan 10 添加至vlan10
switch(config-if)#end 退出
switch#show vlan brief (id) 驗證vlan
switch(config)#show running-config interface f0/1(查看某接口)
25、添加端口到vlan(批量)
switch(config)#interface range f0/1 - 5
switch(config-if-range)#switchport access vlan 10
26、switch(config)#interface f0/1 進入接口
switch(config-if)#switchport mode trunk 設置為trunk(永久)
switch(config-if)#switchport mode dynamic desirable/auto(其它trunk)
switch(config-if)#switchport trunk allowed vlan remove 10 移除vlan10)
switch(config-if)#switchport trunk allowed vlan add 20 添加vlan20
27、switch#show interface f0/1 switchport 查看接口模式
show ip interface brief
Switch#write 保存交換機配置信息
-
交換機層數詳細介紹
交換機並非一個層次的設備,它可以分為二層交換機,三層交換機及四層交換機,交換機的層數您分的清楚嗎?以下的內容是比較基本和詳細的,對於交換機的初識者應該可以很容易就理解了。二層交換機二層交換技術的發展比較成熟,二層交換機屬數據鏈路層設備,可以識別數據包中...
-
思科生成樹協議STP
STP(生成樹協議)是一個二層鏈路管理協議。它的主要功能是在保證網絡中沒有迴路的基礎上,允許在第二層鏈路中提供宂餘路徑,以保證網絡可靠、穩定地運行。下面小編整理了一位思科網絡工程師關於STP筆記,現分享給大家!STP定義(生成樹協議)是一個二層鏈路管理協議。它...
-
解析動態NAT配置
個局域網只需使用少量IP地址(甚至是1個)即可實現私有地址網絡內所有計算機與Internet的通信需求。下面是小編帶來的動態NAT配置如下:1.定義內部訪問列表2.定義合法IP地址池(合法地址池的名為ABC,合法範圍為:到)3.設置複用動態IP地址轉換。4.在端口上啟用NAT5.驗證...
-
淺析網絡管理與網管軟件
在計算機網絡的質量體系中,網絡管理是其中一個關鍵環節,正如一個管家對於大家庭生活的重要,網絡管理的質量也會直接影響網絡的運行質量。那麼,怎樣給自己的網絡選擇合適的網絡管理系統和網絡管理軟件呢?網絡管理當前計算機網絡的發展特點是規模不斷擴大,複雜性不斷...