<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>

            H3C認證GRE典型配置案例

            時間:2024-08-31 06:19:48 H3C認證 我要投稿
            • 相關推薦

            H3C認證GRE典型配置案例

              本文為大家詳細描述了路由器上配置GRE的基本方法和詳細步驟,給出了一種GRE基本的配置案例。

            H3C認證GRE典型配置案例

              1. 組網需求

              運行ip 協議的兩個子網group1 和group2,通過在secpath1 和secpath2 之間使用三層隧道協議gre 實現互聯。

              2. 組網圖

              3. 配置步驟

              (1) 配置secpath1

              # 配置接口ethernet0/0/0。

              [h3c] interface ethernet 0/0/0

              [h3c-ethernet0/0/0] ip address 10.1.1.1 255.255.255.0

              [h3c-ethernet0/0/0] quit

              # 配置接口ethernet1/0/0(隧道的實際物理接口)。

              [h3c] interface ethernet 1/0/0

              [h3c-ethernet1/0/0] ip address 192.13.2.1 255.255.255.0

              [h3c-ethernet1/0/0] quit

              # 創建tunnel1 接口。

              [h3c] interface tunnel 1

              # 配置tunnel1 接口的ip 地址。

              [h3c-tunnel1] ip address 10.1.2.1 255.255.255.0

              # 配置tunnel 封裝模式。

              [h3c-tunnel1] tunnel-protocol gre

              # 配置tunnel1 接口的源地址(ethernet1/0/0 的ip 地址)。

              [h3c-tunnel1] source 192.13.2.1

              # 配置tunnel1 接口的目的地址(secpath2 的ethernet2/0/1 的ip 地址)。

              [h3c-tunnel1] destination 131.108.5.2

              [h3c-tunnel1] quit

              # 配置從secpath1 經過tunnel1 接口到group2 的靜態路由。

              [h3c] ip route-static 10.1.3.0 255.255.255.0 tunnel 1

              (2) 配置secpath2

              # 配置接口ethernet0/0/0。

              [h3c] interface ethernet 0/0/0

              [h3c-ethernet0/0/0] ip address 10.1.3.1 255.255.255.0

              [h3c-ethernet0/0/0] quit

              # 配置接口ethernet2/0/1(隧道的實際物理接口)。

              [h3c] interface ethernet 2/0/1

              [h3c-ethernet2/0/1] ip address 131.108.5.2 255.255.255.0

              [h3c-ethernet2/0/1] quit

              # 創建tunnel2 接口。

              [h3c] interface tunnel 2

              # 配置tunnel2 接口的ip 地址。

              [h3c-tunnel2] ip address 10.1.2.2 255.255.255.0

              # 配置tunnel 封裝模式。

              [h3c-tunnel2] tunnel-protocol gre

              # 配置tunnel2 接口的源地址(ethernet2/0/1 的ip 地址)。

              [h3c-tunnel2] source 131.108.5.2

              # 配置tunnel2 接口的目的地址(secpath1 的ethernet1/0/0 的ip 地址)。

              [h3c-tunnel2] destination 192.13.2.1

              [h3c-tunnel2] quit

              # 配置從secpath2 經過tunnel2 接口到group1 的靜態路由。

              [h3c] ip route-static 10.1.1.0 255.255.255.0 tunnel 2

              interface Tunnel0

              tunnel source 192.15.135.81

              tunnel destination 192.15.135.80

              tunnel key 0

              tunnel checksum

              用以上例子為例,假設本端路由器

              eth0:10.1.1.1/24(連接內部局域網)

              tunnel0:10.2.1.1/30(192.15.135.81----192.15.135.80)

              serial0:192.15.135.81/24(連接Internet)

              ip route 10.3.1.0 255.255.255.0 10.2.1.2

              對端路由器

              eth0:10.3.1.1/24(連接內部局域網)

              tunnel0:10.2.1.2/30(192.15.135.80----192.15.135.81)

              serial0:192.15.135.80/24(連接Internet)

              ip route 10.1.1.0 255.255.255.0 10.2.1.1

              本端局域網里的主機10.1.1.2發一個報文給10.3.1.2:報文為{SA:10.1.12,DA:10.3.1.2}

              首先該報文會發給PC網關,即“本端路由器”,路由器根據目的地址路由,發現需要從tunnel0口發出,做GRE封裝后,報文為{SA:192.15.135.81,DA:192.15.135.80,{原來報文}},然后實際上從Serial0口發出,經過Internet上的N個路由器后到達“對端路由器”,路由器解開GRE封裝恢復原來報文,再從eth0口發出去。

            【H3C認證GRE典型配置案例】相關文章:

            H3C用戶認證配置08-25

            H3C交換機簡單配置案例08-16

            H3C防火墻2區域配置案例01-22

            H3C認證介紹08-07

            H3C認證優勢06-05

            h3c交換機配置telnet配置教程07-31

            華為認證ospf配置命令07-12

            H3C認證模擬試題09-04

            關于H3C認證的體系10-10

            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看