乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      華為、H3C和銳捷:一起學(xué)習(xí)BGP基本的配置

       copy_left 2021-10-26

      華為

      文章圖片1

      1)配置各接口所屬的VLAN。

      #配置switchA。

      system-view

      sysname switchA

      vlan batch 10 50

      interface gigabitethernet 0/0/1

      port link-type trunk

      port trunk allow-pass vlan 10

      quit

      interface gigabitethernet 0/0/2

      port link-type trunk

      port trunk allow-pass vlan 50

      quit

      #配置switchB。

      system-view

      sysname switchA

      vlan batch 10 20 30

      interface gigabitethernet 0/0/1

      port link-type trunk

      port trunk allow-pass vlan 10

      quit

      interface gigabitethernet 0/0/2

      port link-type trunk

      port trunk allow-pass vlan 20

      quit

      interface gigabitethernet 0/0/3

      port link-type trunk

      port trunk allow-pass vlan 30

      quit

      switchC和switchD的配置與switchB類似,不再贅述。

      2)配置各vlanif接口的IP地址。

      #配置switchA。

      interface vlanif 10

      ip address 192.168.1.2 24

      quit

      interface vlanif 50

      ip address 10.1.1.1 16

      quit

      #配置switchB。

      interface vlanif 10

      ip address 192.168.1.1 24

      quit

      interface vlanif 20

      ip address 172.16.3.1 24

      quit

      interface vlanif 30

      ip address 172.16.1.1 24

      quit

      switchC和switchD的配置與switchB類似,不再贅述。

      3)配置IBGP連接。

      #配置switchB。

      bgp 65009

      router-id 172.17.2.2

      peer 172.16.1.2 as-number 65009

      peer 172.16.3.2 as-number 65009

      quit

      #配置switchC。

      bgp 65009

      router-id 172.17.3.3

      peer 172.16.3.1 as-number 65009

      peer 172.16.2.2 as-number 65009

      quit

      #配置switchD。

      bgp 65009

      router-id 172.17.4.4

      peer 172.16.1.1 as-number 65009

      peer 172.16.2.1 as-number 65009

      quit

      4)配置EBGP。

      #配置switchA。

      bgp 65008

      router-id 172.17.1.1

      peer 192.168.1.1 as-number 65009

      quit

      #配置switchB。

      bgp 65009

      peer 192.168.1.2 as-number 65008

      quit

      #查看BGP對等體的連接狀態(tài)。

      display bgp peer

      5)配置switchA發(fā)布路由10.1.0.0/16。

      #配置switchA發(fā)布路由。

      bgp 65008

      ipv4-family unicast

      network 10.1.0.0 255.255.0.0

      quit

      #查看switchA,switchB和switchC的路由表信息。

      display bgp routing-table

      6)配置BGP引入直連路由。

      #配置switchB。

      bgp 65009

      ipv4-family unicast

      import-route direct

      quit

      #查看switchA和switchC的路由表。

      #在switchC上使用ping進行驗證。

      ping 10.1.1.1

      注意:在該場景中互聯(lián)接口的STP處于未使能狀態(tài),因為在使能STP的環(huán)形網(wǎng)絡(luò)中,如果交換機的vlanif接口構(gòu)建三層網(wǎng)絡(luò),會導(dǎo)致某個端口被阻塞,導(dǎo)致三層業(yè)務(wù)不能正常運行。

      H3C

      文章圖片2

      1)配置各vlanif接口的IP地址。

      #配置switchA。

      system-view

      interface vlan-interface 100

      ip address 8.1.1.1 255.255.255.0

      quit

      interface vlan-interface 200

      ip address 3.1.1.2 255.255.255.0

      quit

      interface loopback 0

      ip address 1.1.1.1 255.255.255.255

      quit

      switchB和switchC配置和switchA類似,不再贅述。

      2)配置IBGP連接。

      • 為了防止端口狀態(tài)不穩(wěn)定引起路由震蕩,使用loopback接口來創(chuàng)建IBGP對等體。
      • 使用loopback接口創(chuàng)建IBGP對等體時,因loopback接口不是兩個對等體的實際連接口,所以,必須使用peer connect-interface命令將loopback接口配置為BGP連接的源接口。
      • 在AS 65009內(nèi)部,使用OSPF協(xié)議,保證switchB和switchC的loopback相互之間路由可達。

      #配置switch B。

      system-view

      bgp 65009

      router-id 2.2.2.2

      peer 3.3.3.3 as-number 65009

      peer 3.3.3.3 connect-interface loopback 0

      address-family ipv4 unicast

      peer 3.3.3.3 enable

      quit

      ospf 1

      area 0

      network 2.2.2.2 0.0.0.0

      network 9.1.1.0 0.0.0.255

      quit

      #配置switch C。

      system-view

      bgp 65009

      router-id 3.3.3.3

      peer 2.2.2.2 as-number 65009

      peer 2.2.2.2 connect-interface loopback 0

      address-family ipv4 unicast

      peer 2.2.2.2 enable

      quit

      ospf 1

      area 0

      network 3.3.3.3 0.0.0.0

      network 9.1.1.0 0.0.0.255

      quit

      #查看IBGP對等體信息。

      display bgp peer ipv4

      3)配置EBGP連接。

      • EBGP鄰居關(guān)系的兩臺路由器,處于不同的AS域,對端的loopback接口一般路由不可達,所以一般使用直連地址建立EBGP鄰居。

      #配置switchA。

      system-view

      bgp 65008

      router-id 1.1.1.1

      peer 3.1.1.1 as-number 65009

      address-family ipv4 unicast

      peer 3.1.1.1 enable

      network 8.1.1.0 24

      quit

      #配置switchB。

      system-view

      bgp 65009

      peer 3.1.1.2 as-number 65008

      address-family ipv4 unicast

      peer 3.1.1.2 enable

      network 8.1.1.0 24

      quit

      #查看switchB的BGP對等體的連接狀態(tài)。

      display bgp peer ipv4

      #查看switchA、switchB和switchC的BGP路由表。

      display bgp routing-table ipv4

      4)配置BGP引入直連路由。

      #配置switchB。

      bgp 65009

      address-family ipv4 unicast

      import-route direct

      quit

      #查看switchA和switchC的BGP路由表。

      display bgp routing-table ipv4

      #使用ping進行驗證。

      ping 8.1.1.1

      銳捷

      文章圖片3

      1)配置接口IP地址。

      #配置A。

      configure terminal

      interface loopback 0

      ip address 10.1.1.1 255.255.255.255

      exit

      interface gigabitethernet 0/1

      ip address 192.168.1.1 255.255.255.0

      exit

      router bgp 65536

      neighbor 10.1.1.3 remote-as 65536

      neighbor 10.1.1.3 update-source loopback 0

      配置B和配置A類似,不再贅述。

      #配置C。

      configure terminal

      interface loopback 0

      ip address 10.1.1.3 255.255.255.255

      exit

      interface gigabitethernet 0/1

      ip address 192.168.1.3 255.255.255.0

      exit

      interface gigabitethernet 0/2

      ip address 192.168.2.3 255.255.255.0

      exit

      interface gigabitethernet 0/3

      ip address 192.168.3.3 255.255.255.0

      exit

      router bgp 65536

      neighbor ibgp-group peer-group

      neighbor ibgp-group remote-as 65536

      neighbor ibgp-group update-source loopback 0

      neighbor 10.1.1.1 peer-group ibgp-group

      neighbor 10.1.1.2 peer-group ibgp-group

      neighbor 192.168.3.4 remote-as 65537

      #配置D。

      configure terminal

      interface gigabitethernet 0/1

      ip address 192.168.3.4 255.255.255.0

      exit

      router bgp 65537

      neighbor 192.168.3.3 remote-as 65536

      #使用show命令查看BGP鄰居狀態(tài)。

      show ip bgp neighbor

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多