欧美色欧美亚洲高清在线观看,国产特黄特色a级在线视频,国产一区视频一区欧美,亚洲成a 人在线观看中文

  1. <ul id="fwlom"></ul>

    <object id="fwlom"></object>

    <span id="fwlom"></span><dfn id="fwlom"></dfn>

      <object id="fwlom"></object>

      思科命令詳解及總結(jié)(共5篇)

      時(shí)間:2019-05-12 03:15:13下載本文作者:會(huì)員上傳
      簡(jiǎn)介:寫(xiě)寫(xiě)幫文庫(kù)小編為你整理了多篇相關(guān)的《思科命令詳解及總結(jié)》,但愿對(duì)你工作學(xué)習(xí)有幫助,當(dāng)然你在寫(xiě)寫(xiě)幫文庫(kù)還可以找到更多《思科命令詳解及總結(jié)》。

      第一篇:思科命令詳解及總結(jié)

      查看當(dāng)前運(yùn)行配置(密碼)保存配置

      Switch# show running-config Switch# write 對(duì)路由設(shè)置密碼(明文)

      sw1(config)#line console 0 sw1(config-line)#password 密碼

      sw1(config-line)#login 配置明文特權(quán)模式密碼

      配置密文特權(quán)模式密碼

      加密明文密碼

      sw1(config)# enable password 密碼 sw1(config)# enable secret 密碼

      sw1(config)# service password-encryption 路由器密碼恢復(fù)的思路

      路由器啟動(dòng)過(guò)程中不加載配置文件

      修改配置寄存器的值為0x2142,啟動(dòng)不加載配置文件 路由器密碼恢復(fù)步驟

      啟動(dòng)過(guò)程中按Ctrl+Breack中斷IOS加載 修改配置寄存器的值

      rommon1>confreg 0x2142 rommon2>reset 正常啟動(dòng)后,startup-config覆蓋running-config Router#copy startup-config running-config 修改密碼,并修改配置寄存器的值

      Router(config)#enable secret cisco Router(config)#config-register 0x2102 交換機(jī)密碼恢復(fù)步驟

      1.拔掉交換機(jī)的插頭,插上電源同時(shí)按住MODE鍵 2.出現(xiàn)“switch:” 初始化Flash 3.config.text改成config.old 4.重啟交換機(jī)

      switch:flash_init

      switch:rename flash:config.text flash:config.old switch:boot

      switch# rename flash:config.old flash:config.text

      5.把配置文件的名字改回來(lái)

      配置管理IP地址

      sw1(config)# interface vlan 1

      sw1(config-if)# ip address 192.168.1.10 255.255.255.0 sw1(config-if)# no shutdown 配置VTY密碼

      sw1(config)# line vty 0 4 sw1(config-line)# password 密碼

      sw1(config-line)# login 默認(rèn)網(wǎng)關(guān)的配置命令

      Switch(config)# ip default-gateway ip-address 路由器上配置登錄FTP用戶名、密碼

      Router(config)# ip ftp username benet Router(config)# ip ftp password cisco 備份路由器IOS 重啟交換機(jī)

      主機(jī)綁定ARP

      C:>arp-s 10.0.0.200 00-1a-64-a1-52-f0 C:>arp-a 交換機(jī)綁定ARP

      Switch(conf ig)#arp 10.0.0.6 0019.2101.9211 arpa f0/2 Switch(conf ig)#arp 10.0.0.200 001a.64a1.52f0 arpa f0/1 Switch(conf ig)#arp 10.0.0.7 0013.240a.b219 arpa f0/3 Switch#show ip arp

      VLAN配置 Switch#vlan database

      全局模式

      Switch(vlan)#vlan 名稱(chēng)

      Switch(vlan)#exit

      Router# copy ftp flash Router# Boot

      Switch(config)#vlan 編號(hào) Switch(config-vlan)#name 名稱(chēng)

      Switch(vlan)#vlan 編號(hào) name 名字 Switch(vlan)# no vlan 編號(hào)

      Switch(config)# no vlan 編號(hào) VLAN配置 Switch#vlan database 刪除VLAN Switch# vlan database 全局模式下刪除VLAN 將端口加入VLAN

      Switch(config)# interface 配置端口

      Switch# configure terminal

      Switch(config-if)# switchport mode access

      Switch(config-if)# switchport access vlan 編號(hào)(加入命令)Switch(config-if)# no switchport access vlan 編號(hào)(刪除命令)還原接口為默認(rèn)配置狀態(tài) Switch(config)# default interface 端口 所有VLAN的摘要信息 Trunk的配置 進(jìn)入接口配置

      選擇封裝類(lèi)型

      Switch# show vlan brief Switch(config)#interface 端口

      Switch(config-if)#switchport trunk encapsulation {isl|dot1q| negotiate } 接口配置Trunk

      Switch(config-if)#switchport mode {dynamic {desirable | auto} | trunk | access} 禁止Trunk傳送某個(gè)VLAN的數(shù)據(jù),刪除這個(gè)VLAN Switch(config-if)#switchport trunk allowed vlan remove 編號(hào) 允許Trunk傳送某個(gè)VLAN的數(shù)據(jù),添加這個(gè)VLAN Switch(config-if)#switchport trunk allowed vlan add 編號(hào)(默認(rèn)允許全部VLAN的數(shù)據(jù)通過(guò))配置接口為以太通道模式

      Switch(config)# interface range f0/1 – 2(0/1-2捆綁的范圍端口)Switch(config-if-range)#channel-group 1 mode on(1以太網(wǎng)通道組號(hào))

      查看以太通道的配置 Switch# show etherchannel 1 summary(1是以太網(wǎng)通道組號(hào))

      單臂路由的配置 配置鏈路類(lèi)型

      SW1(config)#inter f0/1 SW1(config-if)#switchport access vlan 10 SW1(config)#inter f0/2 SW1(config-if)#switchport access vlan 20 SW1(config)#inter f0/24 SW1(config-if)#switchport mode trunk

      子接口對(duì)應(yīng)的VLAN 路由器配置

      R1(config)#inter f0/0.1 R1(config-subif)#encapsulation dot1Q 10 R1(config)#inter f0/0.2 R1(config-subif)#encapsulation dot1Q 20 配置子接口地址

      R1(config)#inter f0/0.1 R1(config-subif)#ip add 10.0.0.1 255.255.255.0 R1(config)#inter f0/0.2 R1(config-subif)#ip add 20.0.0.1 255.255.255.0

      子接口對(duì)應(yīng)VLAN的網(wǎng)關(guān)地址 子接口對(duì)應(yīng)VLAN的網(wǎng)關(guān)地址

      定義IP地址池 Router(config)#ip dhcp pool 地址池名稱(chēng)

      Router(dhcp-config)#network 網(wǎng)段 子網(wǎng)掩碼192.168.0.0 24 Router(dhcp-config)#default-router 網(wǎng)關(guān) Router(dhcp-config)#dns-server DNS Router(dhcp-config)#lease days

      Router(config)#ip dhcp excluded-address 預(yù)留ip 動(dòng)態(tài)分配IP地址段 設(shè)定網(wǎng)關(guān)地址

      為客戶端配置DNS地址 設(shè)定地址的租期

      預(yù)留靜態(tài)分配的IP地址

      ? 服務(wù)器模式(Server)

      ? 可以創(chuàng)建、刪除和修改VLAN ? 學(xué)習(xí)、轉(zhuǎn)發(fā)相同域名的VTP通告

      ? 客戶機(jī)模式(Client)

      ? 學(xué)習(xí)、轉(zhuǎn)發(fā)相同域名的VTP通告 ? 不可以創(chuàng)建、刪除和修改VLAN ? 透明模式(Transparent)

      ? 可以創(chuàng)建、刪除和修改VLAN,但只在本地有效 ? 轉(zhuǎn)發(fā)但不學(xué)習(xí)VTP通告

      三臺(tái)交換機(jī)做VTP服務(wù),交換機(jī)A做發(fā)布端。交換機(jī)B/C 接受學(xué)習(xí)。配置如下(SWA2 3——23SWB22——22SWC)SWA配置:

      SwA(config)# vtp domain test SwA(config)#vtp mode server

      vtp域名稱(chēng)test

      vtp運(yùn)行模式服務(wù)器模式

      SwA(config)#interface fastEthernet 0/23 SwA(config-if)#switchport mode trunk

      鏈接口做Trunk SWB配置:

      SwB(config)#vtp domain test SwB(config)#vtp mode client

      vtp域名稱(chēng)相同test vtp運(yùn)行模式學(xué)習(xí)模式

      SwB(config)#interface fastEthernet 0/22

      SwB(config-if)#switchport mode trunk SwB(config)#interface fastEthernet 0/23 SwB(config-if)#switchport mode trunk SWC配置:

      SwC(config)#vtp domain test.SwC(config)#vtp mode client SwC(config)#interface fastEthernet 0/22 SwC(config-if)#switchport mode trunk Vtp域配置完成,對(duì)SWA進(jìn)行配置SWB/C將同步配置

      SwA(config)#vlan 2 SwA(config-vlan)#name sales SwA(config)#vlan 3 SwA(config-vlan)#name develop SwA(config)#interface range fastEthernet 0/215 SW-2L(config-if-range)#switchport access vlan 2 SW-2L(config-if-range)#switchport mode access SW-2L(config)#interface range f0/16-23 SW-2L(config-if-range)#switchport access vlan 3 SW-2L(config-if-range)#switchport mode access SW-2L(config)#interface f0/24

      SW-2L(config-if)#switchport mode trunk 配置3層交換機(jī) SW-3L(config)#vlan 2 SW-3L(config-vlan)#exit SW-3L(config)#vlan 3 SW-3L(config-vlan)#exit

      SW-3L(config)#interface fastEthernet 0/24

      SW-3L(config-if)#switchport trunk encapsulation dot1q SW-3L(config-if)#switchport mode trunk

      SW-3L(config)#ip routing SW-3L(config)#interface vlan 1

      SW-3L(config-if)#ip address 192.168.1.1 255.255.255.0 SW-3L(config-if)#no shut SW-3L(config)#interface vlan 2

      SW-3L(config-if)#ip address 192.168.2.1 255.255.255.0 SW-3L(config-if)#no shut SW-3L(config)#interface vlan 3

      SW-3L(config-if)#ip address 192.168.3.1 255.255.255.0 SW-3L(config-if)#no shut DHCP中繼配置

      Switch(config-if)# ip helper-address DHCP—ip地址 SW-3L(config)#interface vlan 2

      SW-3L(config-if)#ip address 192.168.2.1 255.255.255.0 SW-3L(config-if)#ip helper-address 192.168.100.100 SW-3L(config-if)#no shutdown

      SW-3L(config)#interface vlan 3 SW-3L(config-if)#ip address 192.168.3.1 255.255.255.0 SW-3L(config-if)#ip helper-address 192.168.100.100 SW-3L(config-if)#no shutdown

      SW-3L(config)#interface vlan 100 SW-3L(config-if)#ip address 192.168.100.1 255.255.255.0

      SW-3L(config-if)#no shutdown

      第二篇:思科交換機(jī)配置命令總結(jié)

      思科交換機(jī)配置命令總結(jié)

      1.switch(config)# hostname hostname 在基于CLI的交換機(jī)上設(shè)置主機(jī)名/系統(tǒng)名: switch(enable)set system name name-string 2.在基于IOS的交換機(jī)上設(shè)置登錄口令: switch(config)# enable password level 1 password 在基于CLI的交換機(jī)上設(shè)置登錄口令: switch(enable)set password switch(enable)set enalbepass 3.在基于IOS的交換機(jī)上設(shè)置遠(yuǎn)程訪問(wèn): switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address 在基于CLI的交換機(jī)上設(shè)置遠(yuǎn)程訪問(wèn): switch(enable)set interface sc0 ip-address netmask broadcast-address switch(enable)set interface sc0 vlan switch(enable)set ip route default gateway 4.在基于IOS的交換機(jī)上啟用和瀏覽CDP信息: switch(config-if)# cdp enable switch(config-if)# no cdp enable 為了查看Cisco鄰接設(shè)備的CDP通告信息: switch# show cdp interface [type modle/port] switch# show cdp neighbors [type module/port] [detail] 在基于CLI的交換機(jī)上啟用和瀏覽CDP信息: switch(enable)set cdp {enable|disable} module/port 為了查看Cisco鄰接設(shè)備的CDP通告信息: switch(enable)show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 5.基于IOS的交換機(jī)的端口描述: switch(config-if)# description description-string 基于CLI的交換機(jī)的端口描述: switch(enable)set port name module/number description-string 6.在基于IOS的交換機(jī)上設(shè)置端口速度: switch(config-if)# speed{10|100|auto} 在基于CLI的交換機(jī)上設(shè)置端口速度: switch(enable)set port speed moudle/number {10|100|auto} switch(enable)set port speed moudle/number {4|16|auto} 7.在基于IOS的交換機(jī)上設(shè)置以太網(wǎng)的鏈路模式: switch(config-if)# duplex {auto|full|half} 在基于CLI的交換機(jī)上設(shè)置以太網(wǎng)的鏈路模式: switch(enable)set port duplex module/number {full|half} 8.在基于IOS的交換機(jī)上配置靜態(tài)VLAN: switch# vlan database switch(vlan)# vlan vlan-num name vla switch(vlan)# exit switch# configure teriminal switch(config)# interface interface module/number switch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-num switch(config-if)# end 在基于CLI的交換機(jī)上配置靜態(tài)VLAN: switch(enable)set vlan vlan-num [name name] switch(enable)set vlan vlan-num mod-num/port-list 9.在基于IOS的交換機(jī)上配置VLAN中繼線: switch(config)# interface interface mod/port switch(config-if)# switchport mode trunk switch(config-if)# switchport trunk encapsulation {isl|dotlq} switch(config-if)# switchport trunk allowed vlan remove vlan-list switch(config-if)# switchport trunk allowed vlan add vlan-list 在基于CLI的交換機(jī)上配置VLAN中繼線: switch(enable)set trunk module/port [on|off|desirable|auto|nonegotiate] Vlan-range [isl|dotlq|dotl0|lane|negotiate] 10.在基于IOS的交換機(jī)上配置VTP管理域: switch# vlan database switch(vlan)# vtp domain domain-name 在基于CLI的交換機(jī)上配置VTP管理域: switch(enable)set vtp [domain domain-name] 11.在基于IOS的交換機(jī)上配置VTP 模式: switch# vlan database switch(vlan)# vtp domain domain-name switch(vlan)# vtp {sever|cilent|transparent} switch(vlan)# vtp password password 在基于CLI的交換機(jī)上配置VTP 模式: switch(enable)set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password] 12.在基于IOS的交換機(jī)上配置VTP版本: switch# vlan database switch(vlan)# vtp v2-mode 在基于CLI的交換機(jī)上配置VTP版本: switch(enable)set vtp v2 enable 13.在基于IOS的交換機(jī)上啟動(dòng)VTP剪裁: switch# vlan database switch(vlan)# vtp pruning 在基于CL I 的交換機(jī)上啟動(dòng)VTP剪裁: switch(enable)set vtp pruning enable 14.在基于IOS的交換機(jī)上配置以太信道: switch(config-if)# port group group-number [distribution {source|destination}] 在基于CLI的交換機(jī)上配置以太信道: switch(enable)set port channel moudle/port-range mode{on|off|desirable|auto} 15.在基于IOS的交換機(jī)上調(diào)整根路徑成本: switch(config-if)# spanning-tree [vlan vlan-list] cost cost 在基于CLI的交換機(jī)上調(diào)整根路徑成本: switch(enable)set spantree portcost moudle/port cost switch(enable)set spantree portvlancost moudle/port [cost cost][vlan-list] 16.在基于IOS的交換機(jī)上調(diào)整端口ID: switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority 在基于CLI的交換機(jī)上調(diào)整端口ID: switch(enable)set spantree portpri {mldule/port}priority switch(enable)set spantree portvlanpri {module/port}priority [vlans] 17.在基于IOS的交換機(jī)上修改STP時(shí)鐘: switch(config)# spanning-tree [vlan vlan-list] hello-time seconds switch(config)# spanning-tree [vlan vlan-list] forward-time seconds ` switch(config)# spanning-tree [vlan vlan-list] max-age seconds 在基于CLI的交換機(jī)上修改STP時(shí)鐘: switch(enable)set spantree hello interval[vlan] switch(enable)set spantree fwddelay delay [vlan] switch(enable)set spantree maxage agingtiame[vlan] 18.在基于IOS的交換機(jī)端口上啟用或禁用Port Fast 特征: switch(config-if)#spanning-tree portfast 在基于CLI的交換機(jī)端口上啟用或禁用Port Fast 特征: switch(enable)set spantree portfast {module/port}{enable|disable} 19.在基于IOS的交換機(jī)端口上啟用或禁用UplinkFast 特征: switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second] 在基于CLI的交換機(jī)端口上啟用或禁用UplinkFast 特征: switch(enable)set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on] 20.為了將交換機(jī)配置成一個(gè)集群的命令交換機(jī),首先要給管理接口分配一個(gè)IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name 21.為了從一條中繼鏈路上刪除VLAN,可使用下列命令: switch(enable)clear trunk module/port vlan-range 22.用show vtp domain 顯示管理域的VTP參數(shù).23.用show vtp statistics顯示管理域的VTP參數(shù).24.在Catalyst交換機(jī)上定義TrBRF的命令如下: switch(enable)set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}] 25.在Catalyst交換機(jī)上定義TrCRF的命令如下: switch(enable)set vlan vlan-num [name name] type trcrf {ring hex-ring-num|decring decimal-ring-num} parent vlan-num 26.在創(chuàng)建好TrBRF VLAN之后,就可以給它分配交換機(jī)端口.對(duì)于以太網(wǎng)交換,可以采用如下命令給VLAN分配端口: switch(enable)set vlan vlan-num mod-num/port-num 27.命令show spantree顯示一個(gè)交換機(jī)端口的STP狀態(tài).28.配置一個(gè)ELAN的LES和BUS,可以使用下列命令: ATM(config)# interface atm number.subint multioint ATM(config-subif)# lane serber-bus ethernet elan-name 29.配置LECS: ATM(config)# lane database database-name ATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-address ATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-address ATM(lane-config-databade)# name …

      30.創(chuàng)建完數(shù)據(jù)庫(kù)后,必須在主接口上啟動(dòng)LECS.命令如下: ATM(config)# interface atm number ATM(config-if)# lane config database database-name ATM(config-if)# lane config auto-config-atm-address 31.將每個(gè)LEC配置到一個(gè)不同的ATM子接口上.命令如下: ATM(config)# interface atm number.subint multipoint ATM(config)# lane client ethernet vlan-num elan-num 32.用show lane server 顯示LES的狀態(tài).33.用show lane bus顯示bus的狀態(tài).34.用show lane database顯示LECS數(shù)據(jù)庫(kù)可內(nèi)容.35.用show lane client顯示LEC的狀態(tài).36.用show module顯示已安裝的模塊列表.37.用物理接口建立與VLAN的連接: router# configure terminal router(config)# interface media module/port router(config-if)# description description-string router(config-if)# ip address ip-addr subnet-mask router(config-if)# no shutdown 38.用中繼鏈路來(lái)建立與VLAN的連接: router(config)# interface module/port.subinterface router(config-ig)# encapsulation[isl|dotlq] vlan-number router(config-if)# ip address ip-address subnet-mask 39.用LANE 來(lái)建立與VLAN的連接: router(config)# interface atm module/port router(config-if)# no ip address router(config-if)# atm pvc 1 0 5 qsaal router(config-if)# atm pvc 2 0 16 ilni router(config-if)# interface atm module/port.subinterface multipoint router(config-if)# ip address ip-address subnet-mask router(config-if)# lane client ethernet elan-num router(config-if)# interface atm module/port.subinterface multipoint router(config-if)# ip address ip-address subnet-name router(config-if)# lane client ethernet elan-name router(config-if)# …

      40.為了在路由處理器上進(jìn)行動(dòng)態(tài)路由配置,可以用下列IOS命令來(lái)進(jìn)行: router(config)# ip routing router(config)# router ip-routing-protocol router(config-router)# network ip-network-number router(config-router)# network ip-network-number 41.配置默認(rèn)路由: switch(enable)set ip route default gateway 42.為一個(gè)路由處理器分配VLANID,可在接口模式下使用下列命令: router(config)# interface interface number router(config-if)# mls rp vlan-id vlan-id-num 43.在路由處理器啟用MLSP: router(config)# mls rp ip 44.為了把一個(gè)外置的路由處理器接口和交換機(jī)安置在同一個(gè)VTP域中: router(config)# interface interface number router(config-if)# mls rp vtp-domain domain-name 45.查看指定的VTP域的信息: router# show mls rp vtp-domain vtp domain name 46.要確定RSM或路由器上的管理接口,可以在接口模式下輸入下列命令: router(config-if)#mls rp management-interface 47.要檢驗(yàn)MLS-RP的配置情況: router# show mls rp 48.檢驗(yàn)特定接口上的MLS配置:

      router# show mls rp interface interface number 49.為了在MLS-SE上設(shè)置流掩碼而又不想在任一個(gè)路由處理器接口上設(shè)置訪問(wèn)列表: set mls flow [destination|destination-source|full] 50.為使MLS和輸入訪問(wèn)列表可以兼容,可以在全局模式下使用下列命令: router(config)# mls rp ip input-acl [page] 51.當(dāng)某個(gè)交換機(jī)的第3層交換失效時(shí),可在交換機(jī)的特權(quán)模式下輸入下列命令: switch(enable)set mls enable 52.若想改變老化時(shí)間的值,可在特權(quán)模式下輸入以下命令: switch(enable)set mls agingtime agingtime 53.設(shè)置快速老化:

      switch(enable)set mls agingtime fast fastagingtime pkt_threshold 54.確定那些MLS-RP和MLS-SE參與了MLS,可先顯示交換機(jī)引用列表中的內(nèi)容再確定: switch(enable)show mls include 55.顯示MLS高速緩存記錄: switch(enable)show mls entry 56.用命令show in arp顯示ARP高速緩存區(qū)的內(nèi)容。

      57.要把路由器配置為HSRP備份組的成員,可以在接口配置模式下使用下面的命令: router(config-if)# standby group-number ip ip-address 58.為了使一個(gè)路由器重新恢復(fù)轉(zhuǎn)發(fā)路由器的角色,在接口配置模式下: router(config-if)# standy group-number preempt 59.訪問(wèn)時(shí)間和保持時(shí)間參數(shù)是可配置的:

      router(config-if)# standy group-number timers hellotime holdtime 60.配置HSRP跟蹤:

      router(config-if)# standy group-number track type-number interface-priority 61.要顯示HSRP路由器的狀態(tài):

      router# show standby type-number group brief 62.用命令show ip igmp確定當(dāng)選的查詢器。63.啟動(dòng)IP組播路由選擇:

      router(config)# ip muticast-routing 64.啟動(dòng)接口上的PIM:

      dalllasr1>(config-if)# ip pim {dense-mode|sparse-mode|sparse-dense-mode} 65.啟動(dòng)稀疏-稠密模式下的PIM: router# ip multicast-routing router# interface type number router# ip pim sparse-dense-mode 66.核實(shí)PIM的配置:

      dallasr1># show ip pim interface[type number] [count] 67.顯示PIM鄰居:

      dallasr1># show ip neighbor type number 68.為了配置RP的地址,命令如下:

      dallasr1># ip pim rp-address ip-address [group-access-list-number][override] 69.選擇一個(gè)默認(rèn)的RP: dallasr1># ip pim rp-address 通告RP和它所服務(wù)的組范圍:

      dallasr1># ip pim send-rp-announce type number scope ttl group-list access-list-number 為管理范圍組通告RP的地址:

      dallasr1># ip pim send-rp-announce ethernet0 scope 16 group-list1 dallasr1># access-list 1 permit 266.0.0.0 0.255.255.255 設(shè)定一個(gè)RP映像代理:

      dallasr1># ip pim send-rp-discovery scope ttl 核實(shí)組到RP的映像:

      dallasr1># show ip pim rp mapping dallasr1># show ip pim rp [group-name|group-address] [mapping] 70.在路由器接口上用命令ip multicast ttl-threshold ttl-value設(shè)定TTL閥值: dallasr1>(config-if)# ip multicast ttl-threshold ttl-value 71.用show ip pim neighbor顯示PIM鄰居表。72.顯示組播通信路由表中的各條記錄:

      dallasr1>show ip mroute [group-name|group-address][scoure][summary][count][active kbps] 73.要記錄一個(gè)路由器接受和發(fā)送的全部IP組播包:

      dallasr1> #debug ip mpacket [detail] [access-list][group] 74.要在CISCO路由器上配置CGMP: dallasr1>(config-if)# ip cgmp 75.配置一個(gè)組播路由器,使之加入某一個(gè)特定的組播組: dallasr1>(config-if)# ip igmp join-group group-address 76.關(guān)閉 CGMP:

      dallasr1>(config-if)# no ip cgmp 77.啟動(dòng)交換機(jī)上的CGMP:

      dallasr1>(enable)set cgmp enable 78.核實(shí)Catalyst交換機(jī)上CGMP的配置情況: catalystla1>(enable)show config set prompt catalystla1> set interface sc0 192.168.1.1 255.255.255.0 set cgmp enable 79.CGMP離開(kāi)的設(shè)置:

      Dallas_SW(enable)set cgmp leave 80.在Cisco設(shè)備上修改控制端口密碼: R1(config)# line console 0 R1(config-line)# login R1(config-line)# password Lisbon R1(config)# enable password Lilbao R1(config)# login local R1(config)# username student password cisco 81.在Cisco設(shè)備上設(shè)置控制臺(tái)及vty端口的會(huì)話超時(shí): R1(config)# line console 0 R1(config-line)# exec-timeout 5 10 R1(config)# line vty 0 4 R1(config-line)# exec-timeout 5 2 82.在Cisco設(shè)備上設(shè)定特權(quán)級(jí):

      R1(config)# privilege configure level 3 username R1(config)# privilege configure level 3 copy run start R1(config)# privilege configure level 3 ping R1(config)# privilege configure level 3 show run R1(config)# enable secret level 3 cisco 83.使用命令privilege 可定義在該特權(quán)級(jí)下使用的命令: router(config)# privilege mode level level command 84.設(shè)定用戶特權(quán)級(jí):

      router(config)# enable secret level 3 dallas router(config)# enable secret san-fran router(config)# username student password cisco 85.標(biāo)志設(shè)置與顯示:

      R1(config)# banner motd ‘unauthorized access will be prosecuted!’ 86.設(shè)置vty訪問(wèn):

      R1(config)# access-list 1 permit 192.168.2.5 R1(config)# line vty 0 4 R1(config)# access-class 1 in 87.配置HTTP訪問(wèn):

      Router3(config)# access-list 1 permit 192.168.10.7 Router3(config)# ip http sever Router3(config)# ip http access-class 1 Router3(config)# ip http authentication local Router3(config)# username student password cisco 88.要啟用HTTP訪問(wèn),請(qǐng)鍵入以下命令: switch(config)# ip http sever 89.在基于set命令的交換機(jī)上用setCL1啟動(dòng)和核實(shí)端口安全:

      switch(enable)set port security mod_num/port_num…enable mac address switch(enable)show port mod_num/port_num 在基于CiscoIOS命令的交換機(jī)上啟動(dòng)和核實(shí)端口安全:

      switch(config-if)# port secure [mac-mac-count maximum-MAC-count] switch# show mac-address-table security [type module/port] 90.用命令access-list在標(biāo)準(zhǔn)通信量過(guò)濾表中創(chuàng)建一條記錄:

      Router(config)# access-list access-list-number {permit|deny} source-address [source-address] 91.用命令access-list在擴(kuò)展通信量過(guò)濾表中創(chuàng)建一條記錄: Router(config)# access-list access-list-number {permit|deny{protocol|protocol-keyword}}{source source-wildcard|any}{destination destination-wildcard|any}[protocol-specific options][log] 92.對(duì)于帶內(nèi)路由更新,配置路由更新的最基本的命令格式是:

      R1(config-router)#distribute-list access-list-number|name in [type number] 93.對(duì)于帶外路由更新,配置路由更新的最基本的命令格式是:

      R1(config-router)#distribute-list access-list-number|name out [interface-name] routing-process| autonomous-system-number 94.set snmp命令選項(xiàng):

      set snmp community {read-only|ready-write|read-write-all}[community_string] 95.set snmp trap 命令格式如下: set snmp trap {enable|disable} [all|moudle|classis|bridge|repeater| auth|vtp|ippermit|vmps|config|entity|stpx] set snmp trap rvcr_addr rcvr_community 96.啟用SNMP chassis 陷阱: Console>(enable)set snmp trap enable chassis 97.啟用所有SNMP chassis 陷阱: Console>(enable)set snmp trap enable 98.禁用SNMP chassis 陷阱: Console>(enable)set snmp trap disable chassis 99.給SNMP陷阱接收表加一條記錄:

      Console>(enable)set snmp trap 192.122.173.42 public 100.show snmp 輸出結(jié)果。

      101.命令set snmp rmon enable 的輸出結(jié)果。102.顯示SPAN信息: Consile> show span

      第三篇:成都大學(xué)教學(xué)用思科交換機(jī)路由器配置命令

      成都大學(xué)思科路由器教學(xué)資料 思科Cisco交換機(jī)、路由器設(shè)置命令 Lzshihj_tz2f_3550

      交換機(jī)口令設(shè)置:

      switch>enable ;進(jìn)入特權(quán)模式 switch#config terminal ;進(jìn)入全局配置模式 switch(config)#hostname ;設(shè)置交換機(jī)的主機(jī)名

      switch(config)#enable secret xxx ;設(shè)置特權(quán)加密口令為 xxx

      switch(config)#enable password xxx ;設(shè)置特權(quán)非密口令為 xxx

      switch(config)#line console 0 ;進(jìn)控制臺(tái)口(Rs232)初始化

      switch(config-line)#line vty 0 4 ;進(jìn)入虛擬終端virtual tty

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

      switch(config-line)#password xx ;設(shè)置登錄口令xx switch#exit ;返回命令

      交換機(jī)VLAN設(shè)置:

      switch#vlan database ;進(jìn)入VLAN設(shè)置 switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;刪vlan 2 switch(config)#int f0/1 ;進(jìn)入端口1 switch(config-if)#switchport access vlan 2 ;當(dāng)前端口1加入VLAN 2

      switch(config-if)#switchport mode trunk ;設(shè)置為干線 switch(config-if)#switchport trunk allowed vlan 1,2;設(shè)置允許的vlan switch(config-if)#switchport trunk encap dot1q ;設(shè)置vlan中繼 switch(config)#vtp domain ;設(shè)置發(fā)vtp域名 switch(config)#vtp password switch(config)#vtp mode server switch(config)#vtp mode client

      交換機(jī)設(shè)置IP地址:

      switch(config)#interface vlan 1 ;進(jìn)入vlan 1

      switch(config-if)#ip address ;添加遠(yuǎn)程登錄IP switch(config)#ip default-gateway ;添加默認(rèn)網(wǎng)關(guān)

      switch#dir flash: ;查看內(nèi)存

      交換機(jī)顯示命令:

      switch#write ;寫(xiě)入保存 switch#show vtp switch#show run ;查看當(dāng)前配置信息 switch#show vlan ;看VLAN switch#show interface ;顯示所有端口信息

      switch#show int f0/0 ;顯示端口0的信息 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 路由器顯示命令:

      router#show run ;顯示接口 router#show interface ;顯示接口 router#show ip route ;顯示路由 router#show cdp nei ;看鄰居 router#reload

      ;重新起動(dòng)

      設(shè)置口令:

      router>enable ;進(jìn)入特權(quán)模式 router#config terminal ;進(jìn)入全局配置模式 router(config)#hostname ;設(shè)置交換機(jī)的主機(jī)名

      router(config)#enable secret xxx ;設(shè)置特權(quán)加密口令為 xxx

      router(config)#enable password xxx ;設(shè)置特權(quán)非密口令為 xxx

      router(config)#line console 0 ;進(jìn)控制臺(tái)口(Rs232)初始化

      router(config-line)#line vty 0 4 ;進(jìn)入虛擬終端virtual tty

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

      router(config-line)#password xx ;設(shè)置登錄口令xx router(config)#(Ctrl+z);返回特權(quán)模式 router#exit ;返回命令

      配置IP地址:

      router(config)#int s0/0 ;進(jìn)行串Serail接口

      router(config-if)#no shutdown ;起動(dòng)接口 router(config-if)#clock rate 64000 ;設(shè)置時(shí)鐘

      router(config-if)#ip address 10.1.1.1 255.255.0.0 ;設(shè)置IP地址和子網(wǎng)掩碼

      router(config-if)#ip add 10.1.1.2 255.255.0.0 second;

      router(config-if)#int f0/0.1;進(jìn)入子接口 router(config-subif.1)#ip address ; router(config-subif.1)#encapsulation dot1q ;

      router(config)#config-register 0x2142 ;跳過(guò)配置文件 router(config)#config-register 0x2102 ;正常使用配置文件 router#reload ;重新引導(dǎo) 復(fù)制操作:

      router#copy running-config startup-config ;存配置 router#copy running-config tftp ;上載 router#copy startup-config tftp

      router#copy tftp flash: ;特權(quán)模式下升級(jí)IOS

      router#copy tftp startup-config

      ;下載配置文件到nvram

      ROM狀態(tài):

      Ctrl+Break ;進(jìn)入ROM監(jiān)控狀態(tài)

      rommon>confreg 0x2142 ;跳過(guò)配置,26 36 45xx

      rommon>confreg 0x2102 ;使用配置,恢復(fù)工作狀態(tài)

      rommon>reset

      ;重新引導(dǎo),等效于重開(kāi)機(jī)

      rommon>copy xmodem: flash: ;從console升級(jí)IOS

      rommon>IP_ADDRESS=10.65.1.2 ;設(shè)置路由器IP rommon>IP_SUBNET_MASK=255.255.0.0 ;設(shè)置路由器掩碼 rommon>TFTP_SERVER=10.65.1.1 ;指定TFTP服務(wù)器IP

      rommon>TFTP_FILE=c2600.bin ;所要下載的文件 rommon>tftpdnld ;ROM監(jiān)控狀態(tài)下升級(jí)IOS

      rommon>dir flash: ;查看閃存中的內(nèi)容 rommon>boot ;引導(dǎo)IOS

      靜態(tài)路由:

      ip route 例: router(config)#ip route 10.1.0.0 255.255.0.0 10.2.1.1 router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2

      動(dòng)態(tài)路由:

      router(config)#ip routing ;啟動(dòng)路由 router(config)#router rip ;啟動(dòng)RIP路由協(xié)議。router(config-router)#network ;配置范圍,有的支持all。

      router(config-router)#negihbor ;點(diǎn)對(duì)點(diǎn) 幀中繼用。

      幀中繼命令:

      router(config)# frame-relay switching ;使能幀中繼交換 router(config-s0)# encapsulation frame-relay ;使能幀中繼

      router(config-s0)# frame-relay intf-type DCE ;DCE端(需要配虛電路)

      router(config-s0)# frame-relay local-dlci 20 ;配置虛電路號(hào)

      基本訪問(wèn)控制列表:

      router(config)#access-list permit|deny router(config)#interface ;default: deny any router(config-if)#ip access-group in|out ;default: out

      例:

      RB(config)#access-list 4 permit 10.8.1.1

      RB(config)#access-list 4 deny 10.8.1.0 0.0.0.255

      RB(config)#access-list 4 permit 10.8.0.0 0.0.255.255 RB(config)#access-list 4 deny 10.0.0.0 0.255.255.255 RB(config)#access-list 4 permit any RB(config)#int f0/0

      RB(config-if)#ip access-group 4 in

      擴(kuò)展訪問(wèn)控制列表:

      access-list permit|deny icmp [type]

      access-list permit|deny tcp [port] 例1:

      router(config)#access-list 101 deny icmp any 10.64.0.2 0.0.0.0 echo router(config)#access-list 101 permit ip any any router(config)#int s0/0

      router(config-if)#ip access-group 101 in 例2:

      router(config)#access-list 102 deny tcp any 10.65.0.2 0.0.0.0 eq 80 router(config)#access-list 102 permit ip any any router(config)#interface s0/1

      router(config-if)#ip access-group 102 out

      router(config)#no access-list 102

      router(config-if)#no ip access-group 101 in

      在路由器上設(shè)置 SNMP Community Strings

      router(config)# snmp-server community read-community-string ro

      router(config)# snmp-server community write-community-string rw

      在交換機(jī)上設(shè)置 SNMP Community Strings

      switch(config)# snmp-server community read-community-string ro

      switch(config)# snmp-server community write-community-string rw

      在路由器上配置日志信息(Syslog Message Logging)

      router(config)# logging on

      router(config)# logging server-ip-address router(config)# logging trap severity-level 路由器恢復(fù)出廠設(shè)置

      erase start-config 或write erase 或erase NVROM

      第四篇:思科路由知識(shí)總結(jié)

      ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 網(wǎng)絡(luò)的組成部分

      設(shè)備和介質(zhì)是網(wǎng)絡(luò)的物理要素,即硬件

      服務(wù)和過(guò)程是網(wǎng)絡(luò)設(shè)備上運(yùn)行的通信程序,稱(chēng)為軟件

      這些設(shè)備將每臺(tái)主機(jī)連接到網(wǎng)絡(luò),并且可以將多個(gè)獨(dú)立的網(wǎng)絡(luò)連接成網(wǎng)際網(wǎng)絡(luò)。中間網(wǎng)絡(luò)設(shè)備包括: 網(wǎng)絡(luò)接入設(shè)備(集線器、交換機(jī)和無(wú)線接入點(diǎn))網(wǎng)間設(shè)備(路由器)

      通信服務(wù)器和調(diào)制解調(diào)器

      安全設(shè)備(防火墻)

      中間設(shè)備可控制數(shù)據(jù)的路徑但并不會(huì)生成或更改數(shù)據(jù)的內(nèi)容.現(xiàn)代網(wǎng)絡(luò)主要使用三種介質(zhì)來(lái)連接設(shè)備并提供傳輸數(shù)據(jù)的途徑。這三種介質(zhì)是: 無(wú)線傳輸 銅纜與光線

      電纜內(nèi)部的金屬電線

      玻璃或塑料纖維(光纜)

      需要牢記的重要術(shù)語(yǔ)包括: 網(wǎng)絡(luò)接口卡

      物理端口 接口

      網(wǎng)絡(luò)模型有兩種基本類(lèi)型:協(xié)議模型和參考模型

      ? ? ? ? ? 完整的通信過(guò)程包括以下步驟: 1.在發(fā)送方源終端設(shè)備的應(yīng)用層創(chuàng)建數(shù)據(jù)

      2.當(dāng)數(shù)據(jù)在源終端設(shè)備中沿協(xié)議棧向下傳遞時(shí)對(duì)其分段和封裝

      3.在協(xié)議棧網(wǎng)絡(luò)接入層的介質(zhì)上生成數(shù)據(jù)

      4.通過(guò)由介質(zhì)和任意中間設(shè)備組成的網(wǎng)際網(wǎng)絡(luò)傳輸數(shù)據(jù) ? ? ? ? ? ? ? ? ? ? 5.在目的終端設(shè)備的網(wǎng)絡(luò)接入層接收數(shù)據(jù)

      6.當(dāng)數(shù)據(jù)在目的設(shè)備中沿協(xié)議棧向上傳遞時(shí)對(duì)其解封和重組 7.將此數(shù)據(jù)傳送到目的終端設(shè)備應(yīng)用層的目的應(yīng)用程序

      應(yīng)用層為以人為本網(wǎng)絡(luò)中的不同個(gè)人之間提供了使用數(shù)據(jù)網(wǎng)絡(luò)實(shí)現(xiàn)端到端連接的方法.表示層對(duì)應(yīng)用層服務(wù)之間傳輸?shù)臄?shù)據(jù)規(guī)定了通用的表示方式.會(huì)話層為表示層提供組織對(duì)話和管理交換的服務(wù).傳輸層為終端設(shè)備之間的每個(gè)通信定義了數(shù)據(jù)分段、傳輸和重組服務(wù).網(wǎng)絡(luò)層為所標(biāo)識(shí)的終端設(shè)備直接按通過(guò)網(wǎng)絡(luò)交換一個(gè)個(gè)數(shù)據(jù)的片段提供服務(wù).數(shù)據(jù)鏈路層協(xié)議描述了設(shè)備之間通過(guò)公共介質(zhì).物理層協(xié)議描述的機(jī)械、電氣、功能和操作方法用于激活、維護(hù)和停用網(wǎng)絡(luò)設(shè)備之間比特傳輸使用的物理連接.?

      ? 數(shù)據(jù)鏈路層(MAC)? 網(wǎng)絡(luò)層(IP)? 協(xié)議數(shù)據(jù)單元(PDU)

      ?

      ? 應(yīng)用層提供了網(wǎng)絡(luò)接口

      ? 應(yīng)用層幫助人們處理通信,以便通過(guò)數(shù)據(jù)網(wǎng)絡(luò)傳輸.?

      ? 通過(guò)以上這些服務(wù)器可以知道每一種協(xié)議都有各自的服務(wù)器,這樣在工作的時(shí)候提供各自服務(wù)器對(duì)應(yīng)的服務(wù)。

      ? url統(tǒng)一資源定位符,也成為網(wǎng)頁(yè)地址 ?

      ?

      ?

      ? 路由器的基本組件

      –-CPU – RAM – ROM – 操作系統(tǒng)

      ? 路由器是網(wǎng)絡(luò)組成的中心

      –-路由器通常用于兩種連接: –-WAN 連接(連接到ISP)–-LAN 連接

      路由器檢查數(shù)據(jù)報(bào)的目的IP地址,有助于確定最佳路徑添加到路由表中

      ? 路由器的組成及功能

      ? CPU – 執(zhí)行操作系統(tǒng)的指令

      ? 隨機(jī)訪問(wèn)存儲(chǔ)器(RAM)– RAM中內(nèi)容斷電丟失

      ? 運(yùn)行操作系統(tǒng): ? 運(yùn)行配置文件: ? IP 路由表: ? ARP 緩存: ? 數(shù)據(jù)包緩存區(qū): ? 只讀存儲(chǔ)器(ROM)– 保存開(kāi)機(jī)自檢軟件.,存儲(chǔ)路由器的啟動(dòng)引導(dǎo)程序

      ? bootstrap 指令

      ? 基本的自檢軟件

      ? 迷你版 IOS.? 非易失 RAM(NVRAM)– 存儲(chǔ)啟動(dòng)配置.這包括IP地址,路由協(xié)議,主機(jī)名

      ? 閃存– 運(yùn)行操作系統(tǒng)(Cisco IOS)? Interfaces – 擁有多種物理接口用于連接網(wǎng)絡(luò).接口類(lèi)型舉例: ? 思科路由器所應(yīng)用的操作系統(tǒng)被稱(chēng)為 Internetwork Operating System(IOS).? 驗(yàn)證路由器啟動(dòng)過(guò)程:-show version 命令用于查看路由器在啟動(dòng)過(guò)程中的信息。信息包括: ? 鏡像名稱(chēng) 和IOS 版本

      ? 只讀存儲(chǔ)器中的引導(dǎo)程序版本 ? 鏡像文件名及存儲(chǔ)路徑 ? 接口的類(lèi)型及編號(hào) ? NVRAM的容量 ? flash的容量

      ? 配置寄存器的值

      ? 路由器管理接口:

      ? Console 口 ? Auxiliary 口

      ? 路由器物理接口使得路由器接受或發(fā)送數(shù)據(jù)包 ? 每個(gè)接口連接到一個(gè)獨(dú)立的網(wǎng)絡(luò) ? 路由器外部由各種插孔和插座組成? 接口類(lèi)型:-以太網(wǎng)-快速以太網(wǎng)-串口

      -DSL(數(shù)字用戶線路)-ISDN(綜合業(yè)務(wù)數(shù)字網(wǎng))?

      兩組主要的路由器接口

      1.局域網(wǎng)接口: ? 被用來(lái)連接局域網(wǎng) ? 擁有二層mac地址

      ? 可被分配三層IP地址 ? 通常由 RJ-45接口組成

      2.廣域網(wǎng)接口

      ? 用于連接外部網(wǎng)絡(luò).? 依靠廣域網(wǎng)技術(shù), 可應(yīng)用二層地址.? 使用三層地址

      ? 路由器和網(wǎng)絡(luò)層

      路由器借助目的IP地址轉(zhuǎn)發(fā)數(shù)據(jù)包

      ? 路由表決定數(shù)據(jù)包的路徑.? 確定最佳路徑

      ? 包被封裝成幀

      ? 幀通過(guò)媒介以比特流的形式排列

      ? 檢驗(yàn)基本的路由配置-使用 show running-config 命令

      -存儲(chǔ)路由器基本配置 copy running-config startup-config

      -其他檢驗(yàn)路由器的命令: ? Show running-config – 顯示當(dāng)前隨機(jī)訪問(wèn)存儲(chǔ)器中的配置 ? Show startup-config – 顯示NVRAM中的配置文件

      ? Show IP route – 現(xiàn)實(shí)路由表

      ? Show interfaces – 顯示所有接口的配置信息 ? Show IP int brief-顯示接口的簡(jiǎn)要信息

      ? 路由表存儲(chǔ)在 RAM 中,包含以下信息: ? 直連網(wǎng)絡(luò) – 一個(gè)設(shè)備連接到另一個(gè)路由器接口時(shí)會(huì)出現(xiàn) ? 遠(yuǎn)程網(wǎng)絡(luò)連接 – 這個(gè)網(wǎng)絡(luò)并非直接連接到某一臺(tái)路由器

      ? 網(wǎng)絡(luò)的詳細(xì)信息 包括源信息, 網(wǎng)絡(luò)地址和子網(wǎng)掩碼, 下一條路由的IP地址

      ? 建立路由表的三種途徑: ? 直連路由 –直接連到路由器上的網(wǎng)絡(luò) ? 靜態(tài)路由 –管理員手工構(gòu)建路由表

      ? 動(dòng)態(tài)路由 –路由器之間動(dòng)態(tài)學(xué)習(xí)到的路由表

      ? 直連路由出現(xiàn)在路由表的條件 1.接口應(yīng)該 up up.2.IP 地址通過(guò)接口分配.? 路由表中的靜態(tài)路由

      在靜態(tài)或動(dòng)態(tài)路由被使用之前,路由表中必須包含與遠(yuǎn)程網(wǎng)絡(luò)相關(guān)的直連路由

      ? 何時(shí)使用靜態(tài)路由

      路由器較少

      唯一外連出口

      星型拓?fù)?/p>

      ? 維護(hù)路由表

      -動(dòng)態(tài)路由協(xié)議用來(lái)共享路由信息 維護(hù)更新自身的路由表

      ? IP routing protocols.常見(jiàn)的路由協(xié)議:-RIP-IGRP-EIGRP-OSPF ? 路由表的原則-3 條法則:

      1.每臺(tái)路由器根據(jù)其自身路由表中的信息獨(dú)立作出決策.2.一臺(tái)路由器的路由表中包含某些信息并不表示其它路由器也包含相同的信息

      3.有關(guān)兩個(gè)網(wǎng)絡(luò)之間路徑的路由信息并不能提供反向路徑(即返回路徑)的路由信息.2.IP數(shù)據(jù)包字段提供關(guān)于數(shù)據(jù)包發(fā)送和接受主機(jī)的信息 3.對(duì)于學(xué)習(xí)CCNA的同學(xué)要掌握以下幾個(gè)部分:-目的IP地址-源IP 地址

      -版本號(hào)和生存周期-IP 包頭長(zhǎng)度

      -優(yōu)先級(jí)和服務(wù)類(lèi)型-數(shù)據(jù)包長(zhǎng)度

      ? MAC 幀字段包括:-報(bào)頭

      -起始定界符-目的 MAC 地址-源 MAC地址-類(lèi)型/長(zhǎng)度-數(shù)據(jù)和填充體-幀校驗(yàn)序列

      ? Metric是一個(gè)數(shù)值,用以確定到達(dá)目的地的最佳路徑

      ? Metrics 可以是一個(gè)簡(jiǎn)單的變量也可以是有多個(gè)變量符合而成 ? 路由協(xié)議有兩種Metric :-跳數(shù)-帶寬

      ? Metric(度量)越小路由越優(yōu)先

      ? 包轉(zhuǎn)發(fā)包括兩個(gè)功能: ? 找出最佳路徑

      ? 送到外出接口

      ? 通過(guò)以下三個(gè)方法之一確定結(jié)果:-Directly Connected Network 直接通過(guò)本路由器接口轉(zhuǎn)發(fā)數(shù)據(jù)包到主機(jī)

      -Remote Network

      轉(zhuǎn)發(fā)數(shù)據(jù)包到下一跳路由器

      -No Route Determined 丟棄該數(shù)據(jù)包并報(bào)告差錯(cuò)

      ? 路由器的交換功能把數(shù)據(jù)包從一個(gè)接口轉(zhuǎn)到另一個(gè)接口-當(dāng)數(shù)據(jù)包到達(dá)路由器將做以下處理: ? 剝離二層幀頭.? 根據(jù)目的IP地址選出最佳路由.? 將數(shù)據(jù)包重新封裝成幀.? 將幀轉(zhuǎn)發(fā)出去.? 一個(gè)數(shù)據(jù)包從一臺(tái)網(wǎng)絡(luò)設(shè)備到另一臺(tái)-源和目的IP地址在過(guò)程中不會(huì)改變

      -包在路由器之間傳輸其源和目的2層地址地址將隨之變化 next.(二層地址不一定總是MAC地址)

      -TTL值每經(jīng)過(guò)一跳減1

      ? 路由器的功能

      確定發(fā)送數(shù)據(jù)包的最佳路徑 將數(shù)據(jù)包轉(zhuǎn)發(fā)到目的地 路由器連接到廣域網(wǎng)

      -路由器有 DB-60 接口可以支持五種不同的布線標(biāo)準(zhǔn) 連接到以太網(wǎng)

      -有兩種類(lèi)型:直通電纜(或稱(chēng)為跳線電纜)和交叉電纜

      ? 直通電纜:

      -交換機(jī)與路由器, 交換機(jī)與PC,集線器與PC, 集線器與服務(wù)器

      ? 交叉電纜:

      -交換機(jī)與交換機(jī), PC與PC, 交換機(jī)與集線器, 集線器與集線器,路由器與路由器

      研究路由器的連接

      ? 廣域網(wǎng)物理層的兩邊:-數(shù)據(jù)電路終端設(shè)備(DCE)– 服務(wù)提供者.CSU/DSU 是一個(gè) DCE 設(shè)備.-數(shù)據(jù)終端設(shè)備(DTE)– 路由器是一個(gè)典型的 DTE 設(shè)備

      ? CDP show 命令

      ? Show cdp neighbors

      -顯示以下信息:

      ? 毗鄰設(shè)備 ID ? 本地接口

      ? 保持時(shí)間以秒為單位 ? 毗鄰設(shè)備功能代碼 ? 毗鄰硬件平臺(tái) ? 毗鄰遠(yuǎn)程端口 ID ? Show cdp neighbors detail

      -有助于確定IP地址正確性

      ? 配置靜態(tài)路由: ip route ?

      3條原理

      ? 原理 1:每臺(tái)路由器根據(jù)其自身路由表中的信息獨(dú)立做出決策。

      ? 原理 2:一臺(tái)路由器的路由表中包含某些信息并不表示其它路由 器也包含相同的信息。

      ? 原理 3:有關(guān)兩個(gè)網(wǎng)絡(luò)之間路徑的路由信息并不能提供反向路徑(即返回路徑)的路由信息。

      ? 匯總路由減小路由表.? 路由匯總就是將多條路由化為一條.? 動(dòng)態(tài)路由協(xié)議的分類(lèi)

      ?

      分類(lèi):-IGP(內(nèi)部網(wǎng)關(guān)協(xié)議)

      -EGP(外部網(wǎng)關(guān)協(xié)議)

      ? 內(nèi)部網(wǎng)關(guān)協(xié)議(IGP)-用于在自治系統(tǒng)內(nèi)部路由.-例如: RIP, EIGRP, OSPF ? 外部網(wǎng)關(guān)協(xié)議(EGP)-用于在自治系統(tǒng)之間路由

      -例如: BGPv4 ? 當(dāng)所有路由器都獲取到完整而準(zhǔn)確的網(wǎng)絡(luò)信息時(shí),網(wǎng)絡(luò)即完成收斂。

      ? 度量: 度量是指路由協(xié)議用來(lái)分配到達(dá)遠(yuǎn)程網(wǎng)絡(luò)的路由開(kāi)銷(xiāo)的值

      ? IP 路由協(xié)議中使用的度量如下

      -帶寬

      -開(kāi)銷(xiāo)

      -延遲

      -跳數(shù)

      -負(fù)載

      -可靠性

      ? 各路由協(xié)議的度量如下

      -RIP – 跳數(shù)

      -IGRP & EIGRP-帶寬、延遲、可靠性和負(fù)載

      -IS-IS & OSPF –開(kāi)銷(xiāo), Cisco 采用的 OSPF 使用的是帶寬

      ? 度量的用途

      用于確定到達(dá)目的的最佳路徑

      ? 管理距離的用途

      這個(gè)數(shù)值用于指定路由協(xié)議的優(yōu)先級(jí)

      ? 直連網(wǎng)絡(luò) 默認(rèn)管理距離是 0 ? 靜態(tài)路由 默認(rèn)管理距離是 1 ? 距離矢量路由協(xié)議舉例: ? 路由信息協(xié)議(RIP)? 內(nèi)部網(wǎng)關(guān)協(xié)議(IGRP)? 增強(qiáng)型 IGRP(EIGRP)

      ? 距離矢量的意義: 使用距離矢量路由協(xié)議的路由器并不了解到達(dá)目的網(wǎng)絡(luò)的整條路徑。該路由器只知道:

      ? 自身與目的網(wǎng)絡(luò)之間的距離

      ? 應(yīng)該往哪個(gè)方向或使用哪個(gè)接口轉(zhuǎn)發(fā)數(shù)據(jù)包

      ? 距離矢量路由協(xié)議有一些共同特征: ?

      周期更新

      ?

      鄰居

      ?

      廣播更新

      ?

      整個(gè)路由表更新

      ? 達(dá)到收斂的速度包含兩個(gè)方面:

      -路由器在路由更新中向其鄰居傳播拓?fù)浣Y(jié)構(gòu)變化的速度。

      -使用收集到的新路由信息計(jì)算最佳路徑路由的速度

      ? 定期更新: RIPv1 & IGRP

      路由器發(fā)出完整路由表是會(huì)存在一個(gè)時(shí)間間隔.? RIP應(yīng)用 4個(gè)計(jì)時(shí)器RIP 的接口在啟動(dòng)時(shí)都會(huì)發(fā)送請(qǐng)求消息

      -要求所有 RIP 鄰居發(fā)送完整的路由表

      ? 響應(yīng)消息

      -此消息回應(yīng)請(qǐng)求的路由器包含整個(gè)路由表 自動(dòng)匯總的優(yōu)缺點(diǎn) 優(yōu)點(diǎn): ? 可以使發(fā)送和接收的路由更新較小

      ? 使用單條路由可加快 路由表的查找過(guò)程

      缺點(diǎn): ? 不支持不連續(xù)網(wǎng)絡(luò) ? 有類(lèi)ip尋址

      ? 截止到 2007 年 1 月,Internet 的主機(jī)數(shù)量已經(jīng)超過(guò) 4.33 億臺(tái)。

      ? 保留 IPv4 地址空間地方法:

      -VLSM 和 CIDR

      -網(wǎng)絡(luò)地址轉(zhuǎn)換

      -私有地址

      ? ? ? ? ?

      第五篇:stata命令總結(jié)

      表2-1: 回歸分析相關(guān)命令一覽

      命令用途

      anova 方差和協(xié)方差分析 heckman Heckman 篩選模型

      intreg 離散型變量模型,包括Tobit、cnreg 和intreg ivreg 工具變量法(IV 或2SLS)

      newey Newey-West 標(biāo)準(zhǔn)差設(shè)定下的回歸

      prais 針對(duì)序列相關(guān)的Prais-Winsten, Cochrane-Orcutt, or Hildreth-Lu 回歸 qreg 分量回歸 reg OLS 回歸 sw 逐步回歸法

      reg3 三階段最小二乘回歸

      rreg 穩(wěn)健回歸(不同于方差穩(wěn)健型回歸,即White 方法)sureg 似無(wú)相關(guān)估計(jì)

      svyheckman 調(diào)查數(shù)據(jù)的Heckman 篩選模型 svyintreg 調(diào)查數(shù)據(jù)的間斷變量回歸 svyregress 調(diào)查數(shù)據(jù)的線性回歸 tobit Tobit 回歸

      treatreg treatment 效應(yīng)模型 truncreg 截?cái)嗷貧w

      表2-2: 時(shí)間序列命令一覽

      命令用途

      clemao1 允許結(jié)構(gòu)突變的單位根檢驗(yàn) zandrews dfuller dfgls pperron coin 單方程協(xié)整檢驗(yàn)

      dwstat 參考dwstat2 , durbina2 durbinh

      表2-3: Panel Data 模型相關(guān)命令一覽I 命令模型

      統(tǒng)計(jì)描述相關(guān)命令:

      xtdes 變量類(lèi)型,數(shù)據(jù)類(lèi)型描述 xtsum 基本統(tǒng)計(jì)量 xttab 按表格形式列示 xtpattern 面板數(shù)據(jù)的模式 估計(jì)相關(guān)命令:

      xtreg 面板數(shù)據(jù)模型(固定效應(yīng)、隨機(jī)效應(yīng))

      xtregar 含有AR(1)干擾項(xiàng)的固定效應(yīng)和隨機(jī)效應(yīng)面板數(shù)據(jù)模型

      xtgls 截面-時(shí)序混合模型,可處理異方差、組內(nèi)序列相關(guān)和組間相關(guān)性 xtpcse OLS or Prais-Winsten models with panel-corrected standard errors xtrchh Hildreth-Houck random coefficients models xtivreg 面板模型的工具變量或兩階段最小二乘法估計(jì) xtabond Arellano-Bond(1991)線性動(dòng)態(tài)面板數(shù)據(jù)模型估計(jì)

      xtabond2 Arellano-Bover(1995)系統(tǒng)GMM 動(dòng)態(tài)面板數(shù)據(jù)模型估計(jì) xttobit Tobit 隨機(jī)效應(yīng)面板模型

      xtintreg Random-effects interval data regression models xtlogit Fe, Re, Pa logit models xtprobit Re, Pa probit models xtcloglog Re, Pa cloglog models xtpoisson Fe, Re, Pa Poisson models xtnbreg Fe, Re, Pa negative binomial models xtfrontier 面板隨機(jī)前沿模型

      xthtylor Hausman-Taylor estimator for error-components models

      表2-4: Panel Data 模型相關(guān)命令一覽II 命令模型

      假設(shè)檢驗(yàn)相關(guān):

      test Wald 檢驗(yàn),如時(shí)間效應(yīng)聯(lián)合顯著性檢驗(yàn) xttest0 隨機(jī)效應(yīng)檢驗(yàn) xttest1 面板序列相關(guān)檢驗(yàn) xttest2 ads xtserial Wooldridge 一階序列相關(guān)檢驗(yàn) xtab Arellano 面板一階序列相關(guān)檢驗(yàn) hausman Hausman 檢驗(yàn) 面板單位根和協(xié)整相關(guān): xtunit stata提供的檢驗(yàn)方法

      ipshin IPS(2003)面板單位根檢驗(yàn)

      levilin Levin,Lin和Chu(LLC, 2002)面板單位根檢驗(yàn) madfuller Sarno-Taylor(1998)面板單位根檢驗(yàn)

      xtfisher Maddala和Wu(1999),基于P 值的面板單位根檢驗(yàn)

      表2-5: Post-estimation Commands 命令名稱(chēng)用途

      adjust 列示預(yù)測(cè)結(jié)果的均質(zhì),適于多種回歸分析,可分組列示 estimates 估計(jì)結(jié)果的存儲(chǔ)、再顯示、列表比較等 hausman Hausman 模型識(shí)別檢驗(yàn)

      lincom 獲得參數(shù)的線性組合,在Logit 模型中可以獲得系數(shù)線性組合的OR 值 linktest 但方程link 識(shí)別檢驗(yàn),用y 對(duì)Oy 和Oy2 回歸 lrtest 似然比(LR)檢驗(yàn)

      mfx 計(jì)算邊際效應(yīng)和彈性系數(shù) nlcom 系數(shù)的非線性組合 predict 獲得擬合值、殘差等

      predictnl 獲得非線性估計(jì)的擬合值、殘差等 test 線性約束的假設(shè)檢驗(yàn),Wald 檢驗(yàn) testnl 非線性約束的假設(shè)檢驗(yàn)

      vce 列示參數(shù)估計(jì)值的方差-協(xié)方差矩陣

      表2-6: 二維圖種類(lèi)一覽

      圖形種類(lèi)簡(jiǎn)單描述 scatter scatterplot line line plot connected connected-line plot scatteri scatter with immediate arguments area line plot with shading bar bar plot spike spike plot dropline dropline plot dot dot plot rarea range plot with area shading rbar range plot with bars rspike range plot with spikes rcap range plot with capped spikes rcapsym range plot with spikes capped with symbols rscatter range plot with markers rline range plot with lines rconnected range plot with lines and markers tsline time-series plot tsrline time-series range plot mband median-band line plot mspline spline line plot lowess LOWESS line plot lfit linear prediction plot qfit quadratic prediction plot fpfit fractional polynomial plot lfitci linear prediction plot with CIs qfitci quadratic prediction plot with CIs fpfitci fractional polynomial plot with CIs function line plot of function histogram histogram plot kdensity kernel density plot 表2-7: 二維圖選項(xiàng)一覽

      選項(xiàng)類(lèi)別簡(jiǎn)單描述

      added line options draw lines at specified y or x values added text option display text at specified(y,x)value axis options labels, ticks, grids, log scales title options titles, subtitles, notes, captions legend option legend explaining what means what scale(#)resize text, markers, and line widths region options outlining, shading, aspect ratio, size aspect option constrain aspect ratio of plot region scheme(schemename)overall look by(varlist,...)repeat for subgroups nodraw suppress display of graph name(name,...)specify name for graph saving(filename,...)save graph in file advanced options difficult to explain 表2-9: 模擬分析相關(guān)命令一覽

      命令用途備注 抽樣相關(guān):

      corr2data 產(chǎn)生具有指定相關(guān)性的數(shù)據(jù)僅適用于模擬相關(guān)分析 drawnorm invnorm(uniform())產(chǎn)生服從標(biāo)準(zhǔn)正態(tài)分布的隨機(jī)數(shù)函數(shù),可調(diào)節(jié)均值和方差 matuniform(r,c)產(chǎn)生均勻分布函數(shù)

      sample 從現(xiàn)有數(shù)據(jù)中進(jìn)行非重復(fù)隨機(jī)抽樣參考bsample sim arma 產(chǎn)生服從ARIMA 過(guò)程的隨機(jī)變量需要下載 Bootstrap 相關(guān): bootstrap bs bstat bsample MC 相關(guān): simulate MC simulation jknife 類(lèi)似于MC permute postfile 存儲(chǔ)MC 的結(jié)果 statsby exp list

      下載思科命令詳解及總結(jié)(共5篇)word格式文檔
      下載思科命令詳解及總結(jié)(共5篇).doc
      將本文檔下載到自己電腦,方便修改和收藏,請(qǐng)勿使用迅雷等下載。
      點(diǎn)此處下載文檔

      文檔為doc格式


      聲明:本文內(nèi)容由互聯(lián)網(wǎng)用戶自發(fā)貢獻(xiàn)自行上傳,本網(wǎng)站不擁有所有權(quán),未作人工編輯處理,也不承擔(dān)相關(guān)法律責(zé)任。如果您發(fā)現(xiàn)有涉嫌版權(quán)的內(nèi)容,歡迎發(fā)送郵件至:645879355@qq.com 進(jìn)行舉報(bào),并提供相關(guān)證據(jù),工作人員會(huì)在5個(gè)工作日內(nèi)聯(lián)系你,一經(jīng)查實(shí),本站將立刻刪除涉嫌侵權(quán)內(nèi)容。

      相關(guān)范文推薦

        stata命令總結(jié)

        stata11常用命令 注:JB統(tǒng)計(jì)量對(duì)應(yīng)的p大于0.05,則表明非正態(tài),這點(diǎn)跟sktest和swilk檢驗(yàn)剛好相反; dta為數(shù)據(jù)文件; gph為圖文件; do為程序文件; 注意stata要區(qū)別大小寫(xiě); 不得用作用戶變......

        AutoCAD2017命令總結(jié)

        AutoCAD2017命令總結(jié) 直線:L+空格 畫(huà)直線時(shí)點(diǎn)三點(diǎn):C+空格鍵可以使三條線形成閉合狀態(tài) 畫(huà)圓:C+空格 ESC取消一切命令 單擊右鍵可以回到上一步命令(控制在250毫秒內(nèi)) 正交:F8切換正......

        思科 心得體會(huì)

        思科心得體會(huì) 有人說(shuō),大學(xué)不過(guò)是高中的延伸,在這里還得繼續(xù)高中的那種拼命苦學(xué);又有人說(shuō),跨進(jìn)大學(xué)校門(mén),前途和事業(yè)便有了保障,可以痛痛快快玩了。我認(rèn)為,大學(xué)是一幅空白畫(huà)卷,等著你......

        思科學(xué)習(xí)心得

        小新手說(shuō)說(shuō)思科學(xué)習(xí)心得 我開(kāi)始正式接觸思科的內(nèi)容的時(shí)候,老師講的很好,可我聽(tīng)的卻有點(diǎn)迷茫。那個(gè)時(shí)候不知道有什么華為之類(lèi)的,更別說(shuō)什么思科了,更是一臉的迷茫,臉上全是“問(wèn)號(hào)......

        思科固件刷新個(gè)人總結(jié)

        刷OS要用到:9芯console控制線+USB串口轉(zhuǎn)換線(型號(hào):力特ZE403/ZE400,需要安裝驅(qū)動(dòng))、3CDaemon TFTP server軟件、secureCRT、曲別針AP的初始IP地址為10.0.0.X(X取2--30中的值,例如11......

        思科三層交換機(jī)配置總結(jié)

        思科交換機(jī)的基本配置命令學(xué)習(xí)CISCO交換機(jī)基本配置:Console端口連接 用戶模式hostname# ; 特權(quán)模式hostname(config)# ; 全局配置模式hostname(config-if)# ; 交換機(jī)口令設(shè)置: s......

        思科網(wǎng)絡(luò)設(shè)備培訓(xùn)(共5篇)

        思科網(wǎng)絡(luò)設(shè)備培訓(xùn) -交換機(jī)系列Cisco Catalyst交換機(jī)的基本操作 Cisco Catalyst固化系列交換機(jī)的安裝 ?以2960、3560、3750等1U交換機(jī)在19英寸機(jī)柜中的安裝為例 ?首先將交換......

        Ping命令總結(jié)[5篇模版]

        1 ping 127.0.0.1 通:操作系統(tǒng)TCP/IP功能完好 不通:重新給系統(tǒng)安裝TCP/IP(類(lèi)Unix OS不會(huì)出現(xiàn)這種狀況) 2 ping 本地ip 使用DHCP時(shí),先使用ipconfig查看,若有ip,則正常,且說(shuō)明局域網(wǎng)物......