交換機基本狀態:
switch路由器名稱
switch >使用者模式
switch特權模式
switch (config全域性配置模式
switch (config-if介面狀態
交換機口令設定:
switch>enable進入特權模式
switch#config terminal進入全域性配置模式
switch(config)#hostname 設定交換機的主機名
switch(config)#enable secret ***設定特權加密口令為 ***
switch(config)#enable password ***設定特權非密口令為 ***
switch(config)#line console 0進控制台口(rs232)初始化
switch(config-line)#line vty 0 4進入虛擬終端virtual tty
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當前埠1加入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
switch(config)#vtp mode server
switch(config)#vtp mode client
交換機設定ip位址:
switch(config)#inte***ce vlan 1進入vlan 1
switch(config-if)#ip address 新增遠端登入ip
switch(config)#ip default-gateway 新增預設閘道器
switch#dir flash檢視記憶體
交換機顯示命令:
switch#write寫入儲存
switch#show vtp
switch#show run檢視當前配置資訊
switch#show vlan看vlan
switch#show inte***ce顯示所有埠資訊
switch#show int f0/0顯示埠0的資訊
路由器顯示命令:
router#show run顯示介面
router#show inte***ce顯示介面
router#show ip route顯示路由
router#show cdp nei看鄰居
router#reload重新起動
設定口令:
router>enable進入特權模式
router#config terminal進入全域性配置模式
router(config)#hostname 設定交換機的主機名
router(config)#enable secret ***設定特權加密口令為 ***
router(config)#enable password ***設定特權非密口令為 ***
router(config)#line console 0進控制台口(rs232)初始化
router(config-line)#line vty 0 4進入虛擬終端virtual tty
router(config-line)#login允許登入
router(config-line)#password xx設定登入口令xx
router(config)# (ctrl+z返回特權模式
router#exit返回命令
配置ip位址:
router(config)#int s0/0進行串serail介面
router(config-if)#no shutdown起動介面
router(config-if)#clock rate 64000設定時鐘
router(config-if)#ip address 10.1.1.1 255.255.0.0 ;設定ip位址和子網掩碼
router(config-if)#ip add 10.1.1.2 255.255.0.0 second;
router(config-if)#int f0/0.1進入子介面
router(config-subif.1)#ip address ;
router(config-subif.1)#encapsulation dot1q ;
router(config)#config-register 0x2142跳過配置檔案
router(config)#config-register 0x2102正常使用配置檔案
router#reload重新引導
複製操作:
router#copy running-config startup-config存配置
router#copy running-config tftp上載
router#copy startup-config tftp
router#copy tftp flash特權模式下公升級ios
router#copy tftp startup-config**配置檔案到nvram
rom狀態:
ctrl+break進入rom監控狀態
華為路由器交換機配置命令大全
一 計算機命令 pcalogin root 使用root使用者 password linux 口令是linux shutdown hnow 關機 init0 關機 logout 使用者登出 login 使用者登入 ifconfig 顯示ip位址 ifconfigeth0 mask 設定ip位址 if...
路由器和交換機的區別
瀏覽次數 24341次懸賞分 0 解決時間 2011 2 24 00 42 提問者 周da維 adsl 路由器 連線我的電腦 鄰居的電腦。鄰居離我家近 10公尺 但是還有乙個方法,adsl 交換機 連線我的電腦 鄰居電腦。我現在不知道這兩個方法是不是都行得通?這兩個方法如是行得通,它們之間有什麼區別...
路由器當交換機用設定
裝置 四孔路由器 2個,電腦 4臺 問題 有兩個四孔路由器 a和b 但室內有4臺電腦,這樣a四孔路由器除了乙個wan口之外只剩下三個lan介面,全部接好之後還有一台電腦無法接入網路,怎麼把?解決方案 發揮b路由器的作用!原理 將b路由器看作一台電腦也就是把b路由器做交換機來用 步驟 首先 通過a路由...