当前位置:网站首页>Label exchange experiment

Label exchange experiment

2022-07-05 04:24:00 m0_ fifty-eight million nine hundred and sixty-three thousand o

  1. Configure public network first IP

 

 

 

use ospf Connect the public network

 

 

4 Set it to silent interface

Test public network connectivity

7 The default point of 4

Test connectivity

  1. build mpls Environmental Science

R2

R3

R4

 

stay 2 Do on VRF Space

Binding interface

#

interface GigabitEthernet0/0/0

 ip binding vpn-instance b1

 ip address 192.168.2.2 255.255.255.0

#

#

interface GigabitEthernet0/0/2

 ip binding vpn-instance a1

 ip address 192.168.2.2 255.255.255.0

#

stay 4 Do on VRF Space

Binding interface

#

interface GigabitEthernet0/0/1

 ip binding vpn-instance a2

 ip address 192.168.3.1 255.255.255.0

#

interface GigabitEthernet0/0/2

 ip binding vpn-instance b2

 ip address 192.168.3.1 255.255.255.0

#

stay mpls Start the bgp

[R2]bgp 1

[R2-bgp]router-id 2.2.2.2

[R2-bgp]peer 4.4.4.4 as-number 1

[R2-bgp]peer 4.4.4.4 connect-interface LoopBack 0

[R2-bgp]ipv4-family vpnv4

[R2-bgp-af-vpnv4]peer 4.4.4.4 enable

[R4]bgp 1

[R4-bgp]router-id 4.4.4.4

[R4-bgp]peer 2.2.2.2 as-number 1

[R4-bgp]peer 2.2.2.2 connect-interface LoopBack 0

[R4-bgp]ipv4-family vpnv4

[R4-bgp-af-vpnv4]peer 2.2.2.2 enable

to R1 with IP

to R6 with IP

to R5 with IP

to R7 with IP

to R2,6 Interleave rip

R6

R2

to R4,7 Interleave ospf

R7

R4

R4 Learned 7 Loopback

stay R2 Two way republishing on

#

rip 1 vpn-instance a1

 version 2

 network 192.168.2.0

 import-route bgp

#

#

 ipv4-family vpn-instance a1

  import-route rip 1

#

stay R4 Two way republishing on

#

ospf 2 vpn-instance a2

 import-route bgp

 area 0.0.0.0

  network 192.168.3.1 0.0.0.0

#

#

 ipv4-family vpn-instance a2

  import-route ospf 2

#

Write static route

R1

[R1]ip route-static 192.168.3.0 24 192.168.2.2

[R1]ip route-static 192.168.4.0 24 192.168.2.2

R2

[R2]ip route-static vpn-instance b1 192.168.1.0 24 192.168.2.1

#

 ipv4-family vpn-instance b1

  import-route direct

  import-route static

#

R4

[R4]ip route-static vpn-instance b2 192.168.4.0 24 192.168.3.2

#

 ipv4-family vpn-instance b2

  import-route direct

  import-route static

#

R5

[R5]ip route-static 192.168.1.0 24 192.168.3.1

[R5]ip route-static 192.168.2.0 24 192.168.3.1

 

原网站

版权声明
本文为[m0_ fifty-eight million nine hundred and sixty-three thousand o]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140642434221.html