欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HCIA認(rèn)證學(xué)習(xí)筆記6:VRP文件管理,靜態(tài)路由操作示例

  發(fā)布時間:2020-04-28 14:49:16   作者:Tachyon.xue   我要評論
這篇文章主要介紹了HCIA認(rèn)證VRP文件管理,靜態(tài)路由操作,結(jié)合實(shí)例形式分析了HCIA認(rèn)證VRP文件管理、靜態(tài)路由具體原理、配置方法及操作注意事項(xiàng),需要的朋友可以參考下

本文講述了HCIA認(rèn)證學(xué)習(xí)筆記6:VRP文件管理,靜態(tài)路由操作。分享給大家供大家參考,具體如下:

1、VRP文件管理

FTP基于TCP(TCP對網(wǎng)絡(luò)開銷打,但是他是可靠傳輸);TFTP基于UDP(UDP對網(wǎng)絡(luò)開銷不大,但是他是不可靠傳輸)

2、靜態(tài)路由

2.1、IP路由的基礎(chǔ)

路由器的基本功能一個是決策(RIB)一個是轉(zhuǎn)發(fā)(FIB)

看下如何轉(zhuǎn)發(fā)的

<tachyonAR01>display fib  //查看轉(zhuǎn)發(fā)表
Route Flags: G - Gateway Route, H - Host Route,    U - Up Route
             S - Static Route,  D - Dynamic Route, B - Black Hole Route
             L - Vlink Route
--------------------------------------------------------------------------------
 FIB Table:
 Total number of Routes : 7 
 
Destination/Mask   Nexthop         Flag  TimeStamp     Interface      TunnelID
10.1.1.255/32      127.0.0.1       HU    t[2006]       InLoop0        0x0
10.1.1.1/32        127.0.0.1       HU    t[2006]       InLoop0        0x0
255.255.255.255/32 127.0.0.1       HU    t[3]          InLoop0        0x0
127.255.255.255/32 127.0.0.1       HU    t[3]          InLoop0        0x0
127.0.0.1/32       127.0.0.1       HU    t[3]          InLoop0        0x0
127.0.0.0/8        127.0.0.1       U     t[3]          InLoop0        0x0
10.1.1.0/24        10.1.1.1        U     t[2006]       GE0/0/0        0x0

2.2、LAN和廣播域

廣播域就是一個是網(wǎng)絡(luò)(子網(wǎng))

路由器隔離廣播域(一個接口就是一個網(wǎng)絡(luò))

2.3、路由選路

路由表(控制層面)不一定和報(bào)文轉(zhuǎn)發(fā)在同一個路徑上

R - relay,代表下一跳設(shè)備不是本設(shè)備的直連,需要做路由更迭才可以到達(dá)
D - download to fib,裝載到路由表

  • 如果接口工作,天生得到直連理由(Direct)
  • 靜態(tài)方式得到路由,管理員手工設(shè)置
  • 動態(tài)路由協(xié)議得到路由

2.4、路由的原理

  • 最長匹配原則(起跑線)
    A、0.0.0.0/0默認(rèn)理由
    B、10.2.1.0/24
    C、10.2.1.1/32
    D、100.1.1.0/24
    去往10.2.1.100選擇B路由;去往10.2.1.1選擇C路由;去往100.1.2.1選擇A路由
  • 理由協(xié)議的優(yōu)先級(是本設(shè)備做出的決策依據(jù))(數(shù)值小的優(yōu)先)
  • 在同一個路由協(xié)議中度量值比較小的優(yōu)先
    不同的協(xié)議會有不同的度量方法
    2.5、FIB,路由負(fù)載不等于數(shù)據(jù)包文轉(zhuǎn)發(fā)也等分的轉(zhuǎn)發(fā),而是根據(jù)流(五元組,哈希)來轉(zhuǎn)發(fā)的

靜態(tài)路由配置

在這里插入圖片描述

它有3個可以選擇的方案1是下一跳的方案;2是出接口的方案;3是出接口+下一跳的方案

IP轉(zhuǎn)發(fā),稱之為逐跳轉(zhuǎn)發(fā)“跳”指的就是設(shè)備

ensp實(shí)驗(yàn)(演示靜態(tài)路由)

在這里插入圖片描述

AR1

<Huawei>system-view
[Huawei]sysname tachyonAR01
[tachyonAR01]interface GigabitEthernet 0/0/0
[tachyonAR01-GigabitEthernet0/0/0]ip address 12.1.1.1 24
[tachyonAR01-GigabitEthernet0/0/0]q
[tachyonAR01]interface GigabitEthernet 0/0/1
[tachyonAR01-GigabitEthernet0/0/1]ip address 13.1.1.1 24
[tachyonAR01]ip route-static 44.1.1.1 32 12.1.1.2   //配置去往44.1.1.1/32的主機(jī),下一跳是12.1.1.2(第一條路)
[tachyonAR01]ip route-static 44.1.1.1 32 13.1.1.3   //配置去往44.1.1.1/32的主機(jī),下一跳是13.1.1.3(第二條路)
[tachyonAR01]display ip routing-table  protocol static //查看靜態(tài)路由協(xié)議
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 1        Routes : 2        Configured Routes : 2

Static routing table status : <Active>
         Destinations : 1        Routes : 2

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface
//可以看出去往同一個目的地44.1.1.1/32,我們有兩個下一跳,這就稱之為負(fù)載均衡的方式
       44.1.1.1/32  Static  60   0          RD   12.1.1.2        GigabitEthernet0/0/0
                    Static  60   0          RD   13.1.1.3        GigabitEthernet0/0/1

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

AR2

<Huawei>system-view
[Huawei]sysname tachyonAR02
[tachyonAR02]interface GigabitEthernet 0/0/0
[tachyonAR02-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[tachyonAR02-GigabitEthernet0/0/0]q
[tachyonAR02]interface GigabitEthernet 0/0/1
[tachyonAR02-GigabitEthernet0/0/1]ip address 24.1.1.2 24
[tachyonAR02]ip route-static 44.1.1.1 32 24.1.1.4   //配置去往44.1.1.1/32的主機(jī),下一跳是24.1.1.4
[tachyonAR02]display ip routing-table protocol static //查看靜態(tài)路由協(xié)議
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 1        Routes : 1        Configured Routes : 1

Static routing table status : <Active>
         Destinations : 1        Routes : 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       44.1.1.1/32  Static  60   0          RD   24.1.1.4        GigabitEthernet0/0/1

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

AR3

<Huawei>system-view 
[Huawei]sysname tachyonAR03
[tachyonAR03]interface GigabitEthernet 0/0/0
[tachyonAR03-GigabitEthernet0/0/0]ip address 34.1.1.3 24
[tachyonAR03-GigabitEthernet0/0/0]q
[tachyonAR03]interface GigabitEthernet 0/0/1 
[tachyonAR03-GigabitEthernet0/0/1]ip address 13.1.1.3 24
[tachyonAR03]ip route-static 44.1.1.1 32 34.1.1.4  //配置去往44.1.1.1/32的主機(jī),下一跳是34.1.1.4
[tachyonAR03]display ip routing-table protocol static  //查看靜態(tài)路由協(xié)議
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 1        Routes : 1        Configured Routes : 1

Static routing table status : <Active>
         Destinations : 1        Routes : 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       44.1.1.1/32  Static  60   0          RD   34.1.1.4        GigabitEthernet0/0/0

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

AR4

<Huawei>system-view 
[Huawei]sysname tachyonAR04
[tachyonAR04]interface GigabitEthernet 0/0/0
[tachyonAR04-GigabitEthernet0/0/0]ip address 34.1.1.4 24
[tachyonAR04-GigabitEthernet0/0/0]q
[tachyonAR04]interface GigabitEthernet 0/0/1
[tachyonAR04-GigabitEthernet0/0/1]ip address 24.1.1.4 24
[tachyonAR04-GigabitEthernet0/0/1]q
[tachyonAR04]interface LoopBack 0                //進(jìn)入設(shè)備環(huán)回口
[tachyonAR04-LoopBack0]ip address 44.1.1.1 32    //為環(huán)回口配置1個主機(jī)地址
[tachyonAR04]ip route-static 12.1.1.0 24 24.1.1.2  //去往12.1.10/24的網(wǎng)絡(luò),下一跳24.1.1.2(這也是本實(shí)驗(yàn)的返回路由)(第一條路)
[tachyonAR04]ip route-static 12.1.1.0 24 34.1.1.3  //去往12.1.10/24的網(wǎng)絡(luò),下一跳34.1.1.3(這也是本實(shí)驗(yàn)的返回路由)(第二條路)
[tachyonAR04]display ip routing-table protocol static
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 1        Routes : 2        Configured Routes : 2

Static routing table status : <Active>
         Destinations : 1        Routes : 2

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface
//可以看出去往同一個目的地12.1.1.0/24,我們有兩個下一跳,這就稱之為負(fù)載均衡的方式(返回)
       12.1.1.0/24  Static  60   0          RD   24.1.1.2        GigabitEthernet0/0/1
                    Static  60   0          RD   34.1.1.3        GigabitEthernet0/0/0

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0
<tachyonAR04>ping -a 44.1.1.1 12.1.1.1    //直接ping12.1.1.1不通是因?yàn)閷懧酚?。只?a表明我們是從環(huán)回接口發(fā)出去的,直接ping它會認(rèn)為我們已物理接口發(fā)出。
  PING 12.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 12.1.1.1: bytes=56 Sequence=1 ttl=254 time=30 ms
    Reply from 12.1.1.1: bytes=56 Sequence=2 ttl=254 time=30 ms
    Reply from 12.1.1.1: bytes=56 Sequence=3 ttl=254 time=20 ms
    Reply from 12.1.1.1: bytes=56 Sequence=4 ttl=254 time=20 ms
    Reply from 12.1.1.1: bytes=56 Sequence=5 ttl=254 time=40 ms

  --- 12.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/28/40 ms

另:

如何開啟設(shè)備debug

<tachyonAR04>debugging ip icmp    //開啟ICMP的debug功能
<tachyonAR04>terminal debugging   //允許在終端上顯示

相關(guān)文章

最新評論