導航:首頁 > 程序命令 > 交換機命令showrun

交換機命令showrun

發布時間:2022-08-27 01:21:10

1. 思科2960交換機配置命令都有哪些

思科2960交換機配置命令如下:

1、access: 主要用來接入終端設備,如PC機、伺服器、列印伺服器等。

2、trunk: 主要用在連接其它交換機,以便在線路上承載多個vlan。

3、multi: 在一個線路中承載多個vlan,但不像trunk,它不對承載的數據打標簽。主要用於接入支持多vlan的伺服器或者一些網路分析設備。現在基本不使用此類介面,在cisco的網路設備中,也基本不支持此類介面了。


(1)交換機命令showrun擴展閱讀:

交換機口令設置:

1、switch>enable;進入特權模式、switch#configterminal;進入全局配置模式、switch(config)#hostname;設置交換機的主機名。

2、switch(config)#enablesecretxxx;設置特權加密口令、switch(config)#enablepasswordxxa;設置特權非密口令。

3、switch(config)#lineconsole0;進入控制台口、switch(config-line)#linevty04;進入虛擬終端。

4、switch(config-line)#login;允許登錄、switch(config-line)#passwordxx;設置登錄口令xx、switch#exit;返回命令。

2. cisco 交換機設置溫度閾值

cisco 交換機設置溫度閾值保持在30-33度左右。
cisco 設備的溫度 報警閥值 是 寫入系統內部的,調不了。 一般機房的溫度都是 保持在 18-23度左右
【Cisco交換機配置流量限制策略】
1、teInet遠程登錄到交換機
2、執行en命令並輸入密碼進入特權模式
3、執行show run命令查看交換機現網配置
4、確認伺服器網卡插入的交換機埠(從伺服器後方看標簽)
5、輸入conft進入配置模式

3. ZXR10交換機 show run show arp show fdb de show ipp show port show re 這些命令是什麼意思

當前運行配置 show run
查看MAC show fdb de

4. 如何配置Cisco交換機的IP地址

大家知道如何配置Cisco交換機的IP地址的方法么?接下來是我為大家收集的如何配置Cisco交換機的IP地址方法,希望能幫到大家。
如何配置Cisco交換機的IP地址的方法
1. 計算機命令:

PCA login: root ;使用root用戶

password: linux ;口令是linux

# shutdown -h now ;同init 0 關機

# logout

# login

# ifconfig ;顯示IP地址

# ifconfig eth0 netmask ;設置IP地址

# ifconfig eht0 netmask down ; 刪除IP地址

# route add 0.0.0.0 gw

# route del 0.0.0.0 gw

# route add default gw ;設置網關

# route del default gw ;刪除網關

# route ;顯示網關

# ping

# telnet

2. 交換機支持的命令:

交換機基本狀態:

switch: ;交換機的ROM狀態

rommon> ;路由器的ROM狀態

hostname> ;用戶模式

hostname# ;特權模式

hostname(config)# ;全局配置模式

hostname(config-if)# ;介面狀態

交換機口令設置:

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 4 ;進入虛擬終端

switch(config-line)#login ;允許登錄

switch(config-line)#password xx ;設置登錄口令xx

switch#exit ;返回命令

交換機VLAN設置:

switch#vlan database ;進入VLAN設置

switch(vlan)#vlan 2 ;建VLAN 2

switch(vlan)#no vlan 2 ;刪vlan 2

switch(config)#int f0/1 ;進入埠1

switch(config-if)#switchport access vlan 2 ;當前埠加入vlan 2

switch(config-if)#switchport mode trunk ;設置為干線

switch(config-if)#switchport trunk allowed vlan 1,2 ;設置允許的vlan

switch(config-if)#switchport trunk encap dot1q ;設置vlan 中繼

switch(config)#vtp domain ;設置發vtp域名

switch(config)#vtp password ;設置發vtp密碼

switch(config)#vtp mode server ;設置發vtp模式

switch(config)#vtp mode client ;設置發vtp模式

交換機設置IP地址:

switch(config)#interface vlan 1 ;進入vlan 1

switch(config-if)#ip address ;設置IP地址

switch(config)#ip default-gateway ;設置默認網關

switch(config)#no shutdown

switch#dir flash: ;查看快閃記憶體

交換機顯示命令:

switch#write ;保存配置信息

switch#show vtp ;查看vtp配置信息

switch#show run ;查看當前配置信息

switch#show vlan ;查看vlan配置信息

switch#show interface ;查看埠信息

switch#show int f0/0 ;查看指定埠信息

3. 路由器支持的命令:

路由器顯示命令:

router#show run ;顯示配置信息

router#show interface ;顯示介面信息

router#show ip route ;顯示路由信息

router#show cdp nei ;顯示鄰居信息

router#reload ;重新起動

路由器口令設置:

router>enable ;進入特權模式

router#config terminal ;進入全局配置模式

router(config)#hostname ;設置交換機的主機名

router(config)#enable secret xxx ;設置特權加密口令

router(config)#enable password xxb ;設置特權非密口令

router(config)#line console 0 ;進入控制台口

router(config-line)#line vty 0 4 ;進入虛擬終端

router(config-line)#login ;要求口令驗證

router(config-line)#password xx ;設置登錄口令xx

router(config)#(Ctrl+z) ; 返回特權模式

router#exit ;返回命令

路由器配置:

router(config)#int s0/0 ;進入Serail介面

router(config-if)#no shutdown ;激活當前介面

router(config-if)#clock rate 64000 ;設置同步時鍾

router(config-if)#ip address ;設置IP地址

router(config-if)#ip address second ;設置第二個IP

router(config-if)#int f0/0.1 ;進入子介面

router(config-***if.1)#ip address ;設置子介面IP

router(config-***if.1)#encapsulation dot1q ;綁定vlan中繼協議

router(config)#config-register 0x2142 ;跳過配置文件

router(config)#config-register 0x2102 ;正常使用配置文件

router#reload ;重新引導

路由器文件操作:

router# running-config startup-config ;保存配置

router# running-config tftp ;保存配置到tftp

router# startup-config tftp ;開機配置存到tftp

router# tftp flash: ;下傳文件到flash

router# tftp startup-config ;下載配置文件

ROM狀態:

Ctrl+Break ;進入ROM監控狀態

rommon>confreg 0x2142 ;跳過配置文件

rommon>confreg 0x2102 ;恢復配置文件

rommon>reset ;重新引導

rommon> xmodem: flash: ;從console傳輸文件

看了“如何配置Cisco交換機的IP地址”還想看:

1. 思科cisco怎麼配置WEB網管

2. cisco交換機設置

3. 思科IP-MAC地址綁定怎麼配置

4. 交換機如何配置telnet

5. cisco交換機怎麼配置vlan

5. 交換機 show run 什麼意識

意思是查看當前運行的配置信息。完整的命令是:show runing-config

6. 華為交換機關閉stp命令

摘要 使用console口進入交換機 輸入命令show run 查看,是否存在如下顯示 no file verify auto spanning-tree mode pvst spanning-tree extend system-id 若有,說明此交換機開啟STP協議,需要進行關閉操作。 輸入命令config ter 再輸入no sp vlan 1 再次輸入show run,驗證是否已關閉 如顯示 no file verify auto spanning-tree mode pvst spanning-tree extend system-id no spanning-tree vlan 1 則,已關閉成功。 spanning-tree mode pvst no spanning-tree optimize bp transmission spanning-tree extend system-id ! ! ! spanning-tree mode pvst no spanning-tree optimize bp transmission spanning-tree extend system-id no spanning-tree vlan 1

7. Cisco交換機,用戶模式下,能不能用show run

不能,必須是特權模式才可以,如果在全局模式下,可用do show run

8. python paramiko通過SSH登錄交換機不執行ssh.exec_command("show run")命令

ssh = paramiko.SSHClient()

ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())

ssh.connect('10.111.43.18',22,'root','12345',timeout=5)

stdin, stdout, stderr = ssh.exec_command('cd /root/epoll/')
stdin, stdout, stderr = ssh.exec_command('pwd')

上邊的代碼輸出應該是 /root/epoll/,但結果卻是 /root ,即使用root登陸的預設目錄

原因是exec_command為單個會話,執行完成之後會回到登錄時的預設目錄

修改為這樣執行結果則為預期的 /root/epoll 目錄
stdin, stdout, stderr = ssh.exec_command('cd /root/epoll/;pwd')

閱讀全文

與交換機命令showrun相關的資料

熱點內容
pdftoemf 瀏覽:886
java介面可以實現介面嗎 瀏覽:59
vb編程10個隨機函數 瀏覽:21
程序員個人簡介100 瀏覽:772
土木工程師演算法工程師 瀏覽:92
javaexcel導入oracle 瀏覽:880
如何設置異地伺服器 瀏覽:882
為什麼安卓手機藍牙耳機不會彈窗 瀏覽:546
linuxf77編譯器安裝教程 瀏覽:949
android本地錄音許可權 瀏覽:446
加密u盤內容怎麼拷貝 瀏覽:283
安卓手機為什麼看不到iso文件 瀏覽:582
用圖片做文件夾圖標 瀏覽:693
java正則表達式語法 瀏覽:865
美圖秀在線壓縮圖片 瀏覽:184
蘋果自帶控制app是什麼 瀏覽:908
孩子學編程怎麼樣 瀏覽:590
網路編程經典書籍 瀏覽:614
曲靖創建網站java程序員 瀏覽:690
256位加密中是什麼意思 瀏覽:98