卖逼视频免费看片|狼人就干网中文字慕|成人av影院导航|人妻少妇精品无码专区二区妖婧|亚洲丝袜视频玖玖|一区二区免费中文|日本高清无码一区|国产91无码小说|国产黄片子视频91sese日韩|免费高清无码成人网站入口

<rt id="6ej8t"></rt>
  • <li id="6ej8t"></li>

      Cisco命令大全。

      Cisco 清除配置使用:erase startup-config(刪除NVRAM 中的內(nèi)容),然后重啟路由器 reload ; 華為清除配置使用:reset saved-configuration

      Cisco 清除配置使用:erase startup-config(刪除NVRAM 中的內(nèi)容),然后重啟路由器 reload ; 華為清除配置使用:reset saved-configuration,重啟路由器 reboot ;

      ctrl b(backward) 光標左移一個字符

      ctrl f(foreward) 光標右移一個字符

      ctrl a(a是?????) 光標移到命令開頭

      ctrl e(end) 光標移到命令末端

      esc b (backward) 光標左移一個詞

      esc f (foreward) 光標右移一個詞

      ctrl z 一次性退出特權(quán)模式 Router#關(guān)于模式:用戶模式(user execution mode), 特權(quán)模式(privilege execution mode), 全局配置模式(global configuration mode), 以及在全局配置模式下的具體配置模式(如路由接口配置模式, 路由子接口配置模式, 路由協(xié)議配置模式,line 配置模式等) 模式的轉(zhuǎn)換:連 接路由后首先進入的是用戶模式, 特征是有符號">",用戶模式只能查找路由的配置和狀態(tài), 不能配置路由, 需要配置路由必須進入特權(quán)模式, 進入特權(quán)模 式的命令是:enable 若有密碼, 需要正確密碼才能進入, 進入特權(quán)模式, 其特征是有符號"#".從特權(quán)模式進入路由全局配置模式命令 是:configure terminal 從全局配置模式進入各個具體配置模式的命令如下:

      特權(quán)模式--->路由接口配置模式

      interface serial??(串口)

      interface ethernet??(以太網(wǎng)口)

      特權(quán)模式--->路由子接口配置模式

      subinterface

      特權(quán)模式--->路由協(xié)議配置模式

      route rip

      特權(quán)模式--->line配置模式

      line vty ? ?

      以下是各個模式下的命令以及用法:

      用戶模式:Router>

      show ping telnet connect的用法和特權(quán)模式一樣

      特權(quán)模式:Router#

      show users 查看連接到路由器的所有用戶

      show hosts 查看ip 和名字的映射表

      show arp 查看ip 地址解釋

      show protocol 查看路由器的協(xié)議

      show version 查看ISO 的版本, 內(nèi)存

      show flash 查看flash 使用狀況

      show clock 查看路由器的時間

      show history 查看最近輸入的十個命令

      show ip interface brief 查看接口的ip 設(shè)置和狀態(tài)

      show interfaces 查看路由器所有端口的狀態(tài)

      show interfaces 具體端口 查看路由器特定端口的狀態(tài)

      show running-config 查看在RAM 中的配置文件

      show startup-config 查看在NVRAM 中的配置文件

      show cdp 查看cdp 的信息

      ,

      show cdp entry ??(router) 查看特定的鄰近連接的路由器

      show cdp neighbors 查看所有鄰近連接的路由器

      show cdp neighbors detail 查看所有鄰近連接的路由器詳細信息

      show cdp traffic 查看cdp 數(shù)據(jù)包的信息

      show cdp ??(端口號) 查看特定端口的cdp 信息

      show session 遠程登陸下查看原路由器的狀態(tài)

      clear cdp counters 清除CDP 計數(shù)器

      clear cdp table 清除CDP 信息

      copy running-config startup-config 把在RAM 中的配置文件復(fù)制到NVRAM 中 copy startup-config running-config 把在NVRAM 中的配置文件復(fù)制到RAM 中 copy tftp running-config 把tftp 服務(wù)器的配置文件傳到RAM 中 copy running-config tftp 把RAM 中的配置文件傳到tftp 服務(wù)器 ping ??(名字或ip) 檢查路由器與遠端路由器的連通性

      telnet ??(名字或ip) 遠程登陸路由器(需要登陸密碼)

      connect ??(名字或ip) 和telnet 一樣

      traceroute ??(名字或ip) 查看經(jīng)過的路由

      全局配置模式:Router(config)#

      hostname ???(名字) 更改路由名字

      enable password ?? 修改進入特權(quán)模式的password 密碼

      enable secret ?? 修改進入特權(quán)模式的secret 密碼

      clock set hour:miniute:second day month year 修改路由器的時間

      ip host ??(名字) ??(ip地址) 添加ip 與名字的映射

      service password-encryption 將各種密碼加密(secret已經(jīng)加密)

      cdp run 打開所有接口的cdp

      cdp timer 設(shè)置cdp 的time

      cdp holdtime 設(shè)置cdp 的holdtime

      end 從全局配置模式退出到用戶模式

      exit 一步一步的退出,即逐層地推出,輸入一個exit 則推出一層

      接口配置模式:Router(config-if)#

      ip address ??(ip地址) 修改接口的ip 地址 no shutdown 打開接口

      shutdowm 關(guān)閉端口

      clock rate ?? 設(shè)置DCE 的同步時間(DTE不需要)

      cdp enable 打開端口的cdp

      line 配置模式:Router(config-line)#

      line vty 0 4

      password ??

      login 設(shè)置最大用戶登陸數(shù)并且設(shè)置登陸密碼

      收錄最常用的Cisco 命令分類如下:

      1. switch配置命令

      (1)模式轉(zhuǎn)換命令

      用戶模式----特權(quán)模式, 使用命令"enable"

      ,

      特權(quán)模式----全局配置模式, 使用命令"config t"

      全局配置模式----接口模式, 使用命令"interface 接口類型 接口號"

      全局配置模式----線控模式, 使用命令"line 接口類型 接口號"

      注:

      用戶模式:查看初始化的信息.

      特權(quán)模式:查看所有信息、調(diào)試、保存配置信息

      全局模式:配置所有信息、針對整個路由器或交換機的所有接口

      接口模式:針對某一個接口的配置

      線控模式:對路由器進行控制的接口配置

      (2)配置命令

      show running config 顯示所有的配置

      show versin 顯示版本號和寄存器值

      shut down 關(guān)閉接口

      no shutdown 打開接口

      ip add ip地址 配置IP 地址

      secondary IP地址 為接口配置第二個IP 地址

      show interface 接口類型 接口號 查看接口管理性

      show controllers interface 查看接口是否有DCE 電纜

      show history 查看歷史記錄

      show terminal 查看終端記錄大小

      hostname 主機名 配置路由器或交換機的標識

      config memory 修改保存在NVRAM 中的啟動配置

      exec timeout 0 0 設(shè)置控制臺會話超時為0

      service password-encryptin 手工加密所有密碼

      enable password 密碼 配置明文密碼

      ena sec 密碼 配置密文密碼

      line vty 0 4/15 進入telnet 接口

      password 密碼 配置telnet 密碼

      line aux 0 進入AUX 接口

      password 密碼 配置密碼

      line con 0 進入CON 接口

      password 密碼 配置密碼

      bandwidth 數(shù)字 配置帶寬 no ip address 刪除已配置的IP 地址

      show startup-config 查看NVRAM 中的配置信息,即查看啟動配置文件

      show running-config 查看現(xiàn)行配置文件

      copy running-config startup-config 將現(xiàn)行配置好的信息保存到啟動配置文件里,這樣下次路由器啟動的時候就是這次配置的結(jié)果

      write 保存信息到NVRAM ,即保存到啟動配置文件里

      erase startup-config 清除NVRAM 中的配置信息,即清除啟動配置文件

      show ip interface brief 查看接口的謫要信息

      banner motd # 信息 # 配置路由器或交換機的描素信息

      description 信息 配置接口聽描素信息

      vlan database 進入VLAN 數(shù)據(jù)庫模式

      ,

      vlan vlan號 名稱 創(chuàng)建VLAN

      switchport access vlan vlan號 為VLAN 為配接口

      interface vlan vlan號 進入VLAN 接口模式

      ip add ip地址 為VLAN 配置管理IP 地址

      vtp service/tracsparent/client 配置SW 的VTP 工作模式

      vtp domain 域名 配置SW 的VTP 域名

      vtp password 密碼 配置SW 的密碼

      switchport mode trunk 啟用中繼

      no vlan vlan號 刪除VLAN

      show spamming-tree vlan vlan號 查看VLA 怕生成樹議

      2. 路由器配置命令

      ip route 非直連網(wǎng)段 子網(wǎng)掩碼 下一跳地址 配置靜態(tài)/默認路由

      show ip route 查看路由表

      show protocols 顯示出所有的被動路由協(xié)議和接口上哪些協(xié)議被設(shè)置

      show ip protocols 顯示了被配置在路由器上的路由選擇協(xié)議, 同時給出了在路由選擇協(xié)議中使用的定時器等信息

      router rip 激活RIP 協(xié)議

      network 直連網(wǎng)段 發(fā)布直連網(wǎng)段

      interface lookback 0 激活邏輯接口

      passive-interface 接口類型 接口號 配置接口為被動模式

      debug ip 協(xié)議 動態(tài)查看路由更新信息

      undebug all 關(guān)閉所有DEBUG 信息

      router eigrp as號 激活EIGRP 路由協(xié)議

      network 網(wǎng)段 子網(wǎng)掩碼 發(fā)布直連網(wǎng)段

      show ip eigrp neighbors 查看鄰居表

      show ip eigrp topology 查看拓撲表

      show ip eigrp traffic 查看發(fā)送包數(shù)量

      router ospf process-ID 激活OSPF 協(xié)議

      network 直連網(wǎng)段 area 區(qū)域號 發(fā)布直連網(wǎng)段

      show ip ospf 顯示OSPF 的進程號和ROUTER-ID

      encapsulation 封裝格式 更改封裝格式

      no ip admain-lookup 關(guān)閉路由器的域名查找

      ip routing 在三層交換機上啟用路由功能

      show user 查看SW 的在線用戶

      clear line 線路號 清除線路

      3. 三層交換機配置命令

      配置一組二層端口

      configure terminal 進入配置狀態(tài)

      nterface range {port-range} 進入組配置狀態(tài)

      配置三層端口

      configure terminal 進入配置狀態(tài)

      interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} | {port-channel port-channel-number} 進入端口配置狀態(tài)

      no switchport 把物理端口變成三層口

      ,

      ip address ip_address subnet_mask 配置IP 地址和掩碼

      no shutdown 激活端口

      例:

      Switch(config)# interface gigabitethernet0/2

      Switch(config-if)# no switchport

      Switch(config-if)# ip address 192.20.135.21 255.255.255.0

      Switch(config-if)# no shutdown

      配置VLAN

      configure terminal 進入配置狀態(tài)

      vlan vlan-id 輸入一個VLAN 號, 然后進入vlan 配態(tài),可以輸入一個新的VLAN 號或舊的來進行修改。

      name vlan-name 可選) 輸入一個VLAN 名,如果沒有配置VLAN 名,缺省的名字是VLAN 號前面用0填滿的4位數(shù),如VLAN0004是VLAN4的缺省名字

      mtu mtu-size (可選) 改變MTU 大小

      Switch# configure terminal

      Switch(config)# vlan 20

      Switch(config-vlan)# name test20

      Switch(config-vlan)# end

      Switch# vlan database

      Switch(vlan)# vlan 20 name test20

      Switch(vlan)# exit

      將端口分配給一個VLAN

      configure terminal 進入配置狀態(tài)

      interface interface-id 進入要分配的端口

      switchport mode access 定義二層口

      switchport access vlan vlan-id 把端口分配給某一VLAN

      Switch# configure terminal

      Enter configuration commands, one per line. End with CNTL/Z.

      Switch(config)# interface fastethernet0/1

      Switch(config-if)# switchport mode access

      Switch(config-if)# switchport access vlan 2

      Switch(config-if)# end

      Switch#

      配置VLAN trunk

      configure terminal 進入配置狀態(tài)

      interface interface-Id 進入端口配置狀態(tài)

      switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk 封裝ISL 或 802.1Q 或自動協(xié)商

      switchport mode {dynamic {auto | desirable} | trunk} 配置二層trunk 模式。 dynamic auto—自動協(xié)商是否成為trunk

      dynamic desirable —把端口設(shè)置為trunk 如果對方端口是trunk, desirable, 配置Native

      ,

      VLAN (802.1q )

      或自動模式,trunk —設(shè)置端口為強制的trunk 方式,而不理會對方端口是否為trunk switchport access vlan vlan-id 可選) 指定一個缺省VLAN, 如果此端口不再是trunk switchport trunk native vlan vlan-id 指定802.1Q native VLAN號

      例:

      Switch# configure terminal

      Enter configuration commands, one per line. End with CNTL/Z.

      Switch(config)# interface fastethernet0/4

      Switch(config-if)# switchport mode trunk

      Switch(config-if)# switchport trunk encapsulation dot1q

      Switch(config-if)# end

      定義TRUNK 允許的VLAN

      configure terminal子進入配置狀態(tài)

      interface interface-id 進入端口配置

      switchport mode trunk 配置二層口為trunk

      switchport trunk allowed vlan {add | all | except | remove} vlan-list可選) 配置trunk 允許的VLAN. 使用add, all, except, remove關(guān)健字

      no switchport trunk allowed vlan 允許所有VLAN 通過

      Switch(config)# interface fastethernet0/1

      Switch(config-if)# switchport trunk allowed vlan remove 2

      Switch(config-if)# end

      配置Native VLAN(802.1q )

      configure terminal 進入配置狀態(tài)

      interface interface-id 進入配置成802.1qtrunk 的端口

      switchport trunk native vlan vlan-Id 配置native VLAN號

      no switchport trunk native vlan 端口配置命令回到缺省的狀態(tài)

      配置基于端口權(quán)值的負載均衡

      configure terminal 進入Switch 1配置狀態(tài)

      vtp domain domain-name 配置VTP 域

      vtp mode server 將Switch 1配置成VTP server.

      show vtp status 驗證VTP 的配置

      show vlan 驗證VLAN

      configure terminal 進入配置狀態(tài)

      interface fastethernet 0/1 進入F0/1端口

      switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk 封裝 switchport mode trunk 配置成trunk

      show interfaces fastethernet0/1 switchport 驗證VLAN 配置

      按以上步驟對想要負載均衡的接口進行配置

      在另一個交換機上進行此配置

      show vlan 當trunk 已經(jīng)起來,在switch2上驗證已經(jīng)學(xué)到相的vlan 配置

      configure terminal 在Switch 1上進入配置狀態(tài)

      interface fastethernet0/1 進入要配置的端口

      spanning-tree vlan 8 port-priority 10 將端口權(quán)值10賦與VLAN 8.

      ,

      spanning-tree vlan 9 port-priority 10 將端口權(quán)值10賦與VLAN 9.

      spanning-tree vlan 10 port-priority 10 將端口權(quán)值10賦與VLAN 10.

      interface fastethernet0/2 進入F0/2

      spanning-tree vlan 3 port-priority 10 將端口權(quán)值10賦與VLAN 3.

      spanning-tree vlan 4 port-priority 10 將端口權(quán)值10賦與VLAN 4

      spanning-tree vlan 5 port-priority 10 將端口權(quán)值10賦與VLAN 5

      spanning-tree vlan 6 port-priority 10 將端口權(quán)值10賦與VLAN 10

      end 退出

      show running-config 驗證配置

      copy running-config startup-config 保存配置

      配置STP 路徑值的負載均衡

      Trunk1走VLAN8-10,Trunk2走VLAN2-4

      configure terminal 進入 Switch 1配置狀態(tài)

      interface fastethernet 0/1 進入F0/1

      switchport trunk encapsulation {isl | dot1q | negotiate}配置封裝

      switchport mode trunk 配置Trunk, 缺省是ISL 封裝

      exit 退回

      在F0/2口上重復(fù)2-4步驟

      exit 退回

      show running-config 驗證配置

      show vlan驗證switch1 已經(jīng)學(xué)到Vlan

      configure terminal 進入配置狀態(tài)

      interface fastethernet 0/1 進入F0/1

      spanning-tree vlan 2 cost 30 設(shè)置Vlan2生成樹路徑值為30

      spanning-tree vlan 3 cost 30 設(shè)置Vlan3生成樹路徑值為30

      spanning-tree vlan 4 cost 30 設(shè)置Vlan4生成樹路徑值為30

      end 退出

      在switch1的F0/2上重復(fù)9-11步驟設(shè)置VLAN8,9,10生成樹路徑值為30

      end 退出

      show running-config 驗證配置

      copy running-config startup-config 保存配置

      補充:CISCO命令集——路由選擇協(xié)議及排障

      *ip route命令

      Router(config)# ip route <目錄網(wǎng)絡(luò)或子網(wǎng)號> [子網(wǎng)掩碼] <下一路由器IP 地址 | 從本地出口的地址> [管理距離0~255,默認為1]

      (注:靜態(tài)地址配置)

      *ip default-network命令

      Router(config)# ip default-network <目標網(wǎng)絡(luò)號>

      (注:配合路由協(xié)使用,用其中的一個動態(tài)路由號作默認路由配置)

      Router(config)# ip route 0.0.0.0 0.0.0.0 <下一路由器IP 地址 | 從本地出口的地址> (注:只有一個公網(wǎng)地址時,在出口路由器上的配置)

      *內(nèi)部路由選擇協(xié)議

      *使用router 和network 命令

      ,

      Router(config)# router <路由協(xié)議rip | igrp | eigrp | ospf | is-is等> [自主系統(tǒng)號]

      Router(config-router)# network <直接相連的要用此路由協(xié)議的網(wǎng)絡(luò)號>

      Router(config-router)# network <直接相連的要用此路由協(xié)議的網(wǎng)絡(luò)號>

      *路由信息協(xié)議RIP

      Router(config)# router rip

      Router(config-router)# network <直接相連的要用rip 協(xié)議的有類別網(wǎng)絡(luò)號> Router# show ip protocols

      Router# show ip route

      Router# debug ip rip

      *內(nèi)部網(wǎng)關(guān)路由協(xié)議IGRP

      Router(config)# router igrp <自主系統(tǒng)號>

      Router(config-router)# network <直接相連的要用igrp 協(xié)議的有類別網(wǎng)絡(luò)號> Router# show ip interface

      Router# show ip protocols

      Router# show ip route

      Router# debug ip rip

      *排除網(wǎng)絡(luò)故障

      排除網(wǎng)絡(luò)故障的一個總體模型

      Router# ping <有故障的主機 | 有故障的IP 地址>

      Router# show ip route

      Router# show interface <有故障的接口>

      Router# show run

      *IP的故故障排除

      檢查可用的路由

      Router# show ip route <有故障的IP 地址>

      27.4.4 跟蹤路由(Tracing the Route)

      SUN-A> traceroute <有故障的主機 | 有故障的IP 地址>

      C:windows> winipcfg

      C:windows> ipconfig

      C:windows> ipconfig / all

      C:windows> tracert <有故障的主機 | 有故障的IP 地址>

      使用擴展的ping 來跟蹤連接性

      Router# ping

      *其它可能的故障

      一個地址解析(ARP )的故障

      Router# show arp

      Router# show interface <有故障的接口>

      C:windows> arp -a

      SUN-A> arp –a

      驗證終端系統(tǒng)的路由表

      C:windows> netstat –rn

      C:windows> route –f add 0.0.0.0 mask 0.0.0.0 <需要添加入的網(wǎng)關(guān)地址>

      C:windows> route [–f ] [[print | add | delete | change] [destination] [mask

      ,

      netmask] [gateway]]

      C:windows> route add mask <網(wǎng)絡(luò)掩碼> <網(wǎng)關(guān)ip 地址>

      C:windows> route delete mask <網(wǎng)絡(luò)掩碼> <網(wǎng)關(guān)ip 地址>

      C:windows> nbtstat <相應(yīng)的參數(shù)>

      SUN-A> netstat -rn路由器

      ====================================================================== Router1>enable --路由器特權(quán)用戶enable

      ====================================================================== 路由器幫助的使用

      Router1#delete ?

      Router1#erase ?

      ====================================================================== Router1#erase startup-config --刪除路由器以前的所有配置

      Router1#erase nvram

      Router1#reload --重啟路由器

      ====================================================================== 路由器的模式

      Router>enable --用戶模式

      Router#config terminal --特權(quán)模式

      Router(config)#interface ethernet 0 --全局配置模式

      Router(config-if)#exit --接口模式

      Router(config)#line vty 0 4 --終端配置模式

      Router(config-line)#exit --exit退出當前模式

      Router(config)#exit

      Router#disable

      Router>logout

      ====================================================================== 路由器時鐘的設(shè)置

      Router#show clock --顯示路由器時鐘

      *00:10:30.291 UTC Mon Mar 1 1993

      Router#clock ?

      Router#clock set ?

      Router#clock set 11:50:40 21 august 2004 --配置路由器時鐘

      Router#show clock

      11:50:49.435 UTC Sat Aug 21 2004

      Router#write --保存路由器的配置

      或者

      Router#copy running-config startup-config

      ====================================================================== 路由器常見命令

      Router#show running-config --顯示路由器的當前配置

      Router#show startup-config --顯示路由器的啟動配置

      Router#show flash --顯示路由器的*作系統(tǒng)信息

      Router#show version --顯示路由器的軟硬件配置

      ,

      Router#copy running-config startup-config --保存配置

      Router#copy startup-config running-config --將NVRAM 中的啟動配置拷到DRAM 中 Router#show interface --顯示接口信息

      Router#show interface Ethenet 0

      Router#show interface Serial 0

      Router#config terminal

      Router(config)#hostname Router2 --為路由器取名字

      ====================================================================== 為路由器的以太口配置IP 地址

      Router2>en

      Router2#config t

      Router2(config)#interface ethernet 0

      Router2(config-if)#ip address 192.168.0.101 255.255.255.0 --配置IP 地址

      Router2(config-if)#no shutdown --啟用以太口

      Router2(config-if)#exit

      Router2(config)#exit

      Router2#ping 192.168.0.101

      Router2#ping 192.168.0.199 Router2#config t

      Router2(config)#int e0 --路由器一個接口可同時配置多個IP ,其他IP 必須加secondary Router2(config-if)#ip address 131.107.0.101 255.255.0.0 secondary

      Router2(config-if)#ip address 200.100.100.101 255.255.255.0 secondary

      Router2(config-if)#exit

      Router2(config)#exit

      Router2#ping 131.107.0.101

      Router2#ping 200.100.100.101

      Router2#show running-configure

      Router2#config t

      Router2(config)#int e0

      Router2(config-if)#ip address 192.168.0.101 255.255.255.0

      Router2(config-if)#no shutdown

      Router2(config-if)#exit

      Router2(config)#exit

      Router2#write

      ====================================================================== DCE 端的配置

      RA#show controller serial 1 --顯示接口為DCE 還是DTE

      RA#config t

      RA(config)#interface serial 1

      RA(config-if)#ip address 10.0.0.1 255.0.0.0 --為串口配置IP 地址

      RA(config-if)#clock rate 64000 --在DCE 端需要指定時鐘頻率,DTE 端無需指定

      RA(config-if)#no shut

      RA(config-if)#exit

      DTE 端的配置

      標簽: