Lab 10 Classical Internet Access,,using subinterface,,,using static-routing

Classical Internet Access,,using subinterface,,,using static-routing

 

拓扑说明:

1.R2、R3为ISP网络,MPLS VPN

3.R2为PE

4.R3与R4为IPV4单播邻居。R4的loopback0:4.4.4.4/32代表所有的Internet路由。

5.R1为CE,MPLSVPN客户。R1与R2之间有两条物理线路(或者一条物理线路,使用可以起子接口的WAN封装,比如FR)

实验要求: 使用典型的Internet访问(静态路由)的方法,使用R1访问Internet时,走线路1。R1访问其它VPN客户时,走线路2.要求最优配置。

Step 1.配置各台路由器的IP地址,并且使用Ping命令确认各路由器的直连口的互通性。

R1:

lo 0:1.1.1.1/32

s0/0:12.1.1.1/24

s0/1:21.1.1.1/24

R2:

lo 0:2.2.2.2/32

s0/0:12.1.1.2/24

s0/2:21.1.1.2/24

s0/1:23.1.1.2/24

R3:

lo 0:3.3.3.3/32

s0/0:23.1.1.3/24

s0/1:34.1.1.3/24

R4:

lo 0:4.4.4.4/32

s0/0:34.1.1.4/24

step 2.isp内部配置igp,isis.

R2:

router isis

 net 49.0001.2222.2222.2222.00

int s0/1

 ip router isis

int lo 0

 ip router isis

R3:

router isis

 net 49.0001.3333.3333.3333.00

int s0/0

 ip router isis

int lo 0

 ip router isis

step 3.mpls

R2:

mpls label range 2000 2999

mpls label protocol ldp

mpls ldp router-id lo 0

ip cef

int s0/1

 mpls ip

R3:

mpls label range 3000 3999

mpls label protocol ldp

mpls ldp router-id lo 0

ip cef

int s0/0

 mpls ip

step 4.vrf

R2:

ip vrf vpna

 rd 100:1

 route-target both 100:1

int s0/0

 ip vrf forwarding vpna

 ip add 12.1.1.2 255.255.255.0

R3:

ip vrf vpna

 rd 100:1

 route-target both 100:1

step 5.mp-bgp,static route,announce static route.

R2:

ip route 1.1.1.1 255.255.255.255 21.1.1.1

router bgp 23

 no au

 no sy

 bgp router-id 2.2.2.2

 no bgp default ipv4-unicast

 nei 3.3.3.3 remote-as 23

 nei 3.3.3.3 update-source lo 0

address-family vpnv4

 nei 3.3.3.3 activate

exit

address-family ipv4

 no au

 no sy

 nei 3.3.3.3 activate

 nei 3.3.3.3 next-hop-self

 net 1.1.1.1 mask 255.255.255.255

exit

R3:

router bgp 23

 no au

 no sy

 bgp router-id 3.3.3.3

 no bgp default ipv4-unicast

 nei 2.2.2.2 remote-as 23

 nei 2.2.2.2 update-source lo 0

address-family vpnv4

 nei 2.2.2.2 activate

exit

address-family ipv4

 no au

 no sy

 nei 2.2.2.2 activate

 nei 2.2.2.2 next-hop-self

 nei 34.1.1.4 remote-as 4

exit

R4:

router bgp 4

 no au

 no sy

 bgp router-id 4.4.4.4

 nei 34.1.1.3 remote-as 23

 net 4.4.4.4 mask 255.255.255.255

step 6.ce,igp,重分发到vrf.

R1:

router rip

 ver 2

 no au

 net 1.1.1.1

 net 12.0.0.0

R2:

router rip

 ver 2

 no au

address-family ipv4 vrf vpna

 ver 2

 no au

 net 12.0.0.0

 red bgp 23 metric 5

exit

router bgp 23

address-family ipv4 vrf vpna

 red rip
exit

step 7.ce configure default route.

R1:

ip route 0.0.0.0 0.0.0.0 s0/1

step 8.traceroute 观察路径。

R1#traceroute          

Protocol [ip]:

Target IP address: 4.4.4.4

Source address: 1.1.1.1

Numeric display [n]:

Timeout in seconds [3]:

Probe count [3]:

Minimum Time to Live [1]:

Maximum Time to Live [30]:

Port Number [33434]:

Loose, Strict, Record, Timestamp, Verbose[none]:

Type escape sequence to abort.

Tracing the route to 4.4.4.4

  1 21.1.1.2 20 msec 68 msec 12 msec

  2 23.1.1.3 48 msec 28 msec 60 msec

  3 34.1.1.4 64 msec *  36 msec

猜你喜欢

转载自www.cnblogs.com/cyrusxx/p/12817798.html
今日推荐