Lab 168 - Creating MPLS Topology

Topology
Task 1
Using the physical topology presented here configure the IP addressing according to
the following diagram. Make sure that all routers and switches can ping each other
on a point-to-point basis (All loopbacks use 10.0.x.x/24 addresses where x=router
number, sw1=7, sw2=8 etc.).

Pic. 1 - MPLS Topology Diagram.
Task 2
Once devices can ping each other on a point-to-point basis, enable OSPF on links
between R1, R2, R3 and SW3 (core of our MPLS network) Advertise loopback
addresses as /32 prefixes. Use AREA 0.

Solution
Task 1
Using the physical topology presented here configure the IP addressing according to the
following diagram. Make sure that all routers and switches can ping each other on a point-topoint basis (All loopbacks use 10.0.x.x/24 addresses where x=router number, sw1=7, sw2=8
etc.).
R1 Configuration:
!

255.255.0 ! interface FastEthernet0/0.3 255.255.255.0 ! ! interface FastEthernet0/0.0 ! R2 Configuration: ! interface Loopback0 ip address 10.13 encapsulation dot1Q 13 ip address 172.255.1 255.13 encapsulation dot1Q 13 ip address 172.12 encapsulation dot1Q 12 ip address 172.255.1 255.0.255.255.16 encapsulation dot1Q 16 ip address 172.23 .13.16.1.255.1 255.255.0 ! interface FastEthernet0/0.12.15.255.0 ! interface FastEthernet0/0.interface Loopback0 ip address 10.16.255.0.0 ! interface FastEthernet0/0 no ip address speed 100 full-duplex ! interface FastEthernet0/0.0 ! interface FastEthernet0/0.2 255.16.255.2 255.15 encapsulation dot1Q 15 ip address 172.12 encapsulation dot1Q 12 ip address 172.255.0 ! interface FastEthernet0/0 no ip address speed 100 full-duplex ! interface FastEthernet0/0.2.1 255.16.255.12.16.1 255.13.16.255.16.

34 encapsulation dot1Q 34 ip address 172.29 encapsulation dot1Q 29 ip address 172.255.0 ! R3 Configuration: ! interface Loopback0 ip address 10.3 255.2 255.255.16.255.103 encapsulation dot1Q 103 ip address 172.0 ! interface FastEthernet0/0.0 ! interface FastEthernet0/0.34.16.29.23.3 255.0.3 255.255.23.0 ! interface FastEthernet0/0 no ip address speed 100 full-duplex ! interface FastEthernet0/0.255.0.255.255.255.255.16.45 encapsulation dot1Q 45 .4.255.255.0 ! interface FastEthernet0/0.16.255.encapsulation dot1Q 23 ip address 172.103.255.0 ! interface FastEthernet0/0.16.34.34 encapsulation dot1Q 34 ip address 172.2 255.255.16.0 ! interface FastEthernet0/0 no ip address speed 100 full-duplex ! interface FastEthernet0/0.255.3.4 255.0 ! R4 Configuration: ! interface Loopback0 ip address 10.4 255.3 255.23 encapsulation dot1Q 23 ip address 172.255.

0.103.45 encapsulation dot1Q 45 ip address 172.6 255.6.0 ! interface FastEthernet0/0 no ip address speed 100 full-duplex ! interface FastEthernet0/0.79.5 255.45.16.15 encapsulation dot1Q 15 ip address 172.0 ! interface FastEthernet0/0 no ip address speed 100 full-duplex ! interface FastEthernet0/0.45.0 ! interface FastEthernet0/0.255.16 encapsulation dot1Q 16 ip address 172.255.89.255.0.255.16.5.5 255.6 255.255.255.255.5 255.0 ! SW1 Configuration: ! vlan 12-13.29.16.255.255.15-16.34.0 ! R6 Configuration: ! interface Loopback0 ip address 10.15.4 255.16.255.255.23.45.ip address 172.16.0 ! R5 Configuration: ! interface Loopback0 ip address 10.255.111 ! ip tcp synwait-time 5 ! ! ! ! interface Loopback0 .

0.ip address 10.255.0 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface FastEthernet1/0 ! interface FastEthernet1/1 switchport mode trunk duplex full speed 100 ! interface FastEthernet1/2 switchport mode trunk duplex full speed 100 ! interface FastEthernet1/3 switchport mode trunk duplex full speed 100 ! interface FastEthernet1/4 switchport mode trunk duplex full speed 100 ! interface FastEthernet1/5 switchport mode trunk duplex full speed 100 ! interface FastEthernet1/6 switchport mode trunk duplex full speed 100 ! interface FastEthernet1/7 .7 255.7.255.

0 ! SW2 Configuration: ! vlan 12-13.15-16.23.0.79.7 255.shutdown ! interface FastEthernet1/8 shutdown ! interface FastEthernet1/9 switchport mode trunk ! interface FastEthernet1/10 shutdown ! interface FastEthernet1/11 switchport mode trunk ! interface FastEthernet1/12 shutdown ! interface FastEthernet1/13 switchport mode trunk ! interface FastEthernet1/14 shutdown ! interface FastEthernet1/15 shutdown ! interface Vlan1 no ip address ! interface Vlan79 ip address 172.29.16.255.8.0 ! interface FastEthernet0/0 no ip address .8 255.79.255.255.111 ! ip tcp synwait-time 5 ! ! ! ! interface Loopback0 ip address 10.255.103.34.45.89.

shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface FastEthernet1/0 shutdown ! interface FastEthernet1/1 shutdown duplex full speed 100 ! interface FastEthernet1/2 shutdown duplex full speed 100 ! interface FastEthernet1/3 shutdown duplex full speed 100 ! interface FastEthernet1/4 shutdown duplex full speed 100 ! interface FastEthernet1/5 shutdown duplex full speed 100 ! interface FastEthernet1/6 shutdown duplex full speed 100 ! interface FastEthernet1/7 switchport mode trunk shutdown ! .

111 ! ip tcp synwait-time 5 ! ! ! .0 ! SW3 Configuration: ! vlan 12-13.23.8 255.103.255.15-16.16.29.89.interface FastEthernet1/8 switchport mode trunk shutdown ! interface FastEthernet1/9 switchport mode trunk shutdown ! interface FastEthernet1/10 switchport mode trunk shutdown ! interface FastEthernet1/11 switchport mode trunk shutdown ! interface FastEthernet1/12 switchport mode trunk shutdown ! interface FastEthernet1/13 switchport mode trunk ! interface FastEthernet1/14 switchport mode trunk shutdown ! interface FastEthernet1/15 switchport mode trunk shutdown ! interface Vlan1 no ip address shutdown ! interface Vlan89 ip address 172.45.89.255.79.34.

255.9 255.0 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface FastEthernet1/0 shutdown duplex full speed 100 ! interface FastEthernet1/1 switchport mode trunk duplex full speed 100 ! interface FastEthernet1/2 shutdown duplex full speed 100 ! interface FastEthernet1/3 shutdown duplex full speed 100 ! interface FastEthernet1/4 shutdown duplex full speed 100 ! interface FastEthernet1/5 shutdown duplex full speed 100 ! interface FastEthernet1/6 .255.9.! interface Loopback0 ip address 10.0.

255.9 255.0 ! interface Vlan79 .29.shutdown duplex full speed 100 ! interface FastEthernet1/7 switchport mode trunk shutdown ! interface FastEthernet1/8 switchport mode trunk shutdown ! interface FastEthernet1/9 switchport mode trunk ! interface FastEthernet1/10 switchport mode trunk shutdown ! interface FastEthernet1/11 switchport mode trunk shutdown ! interface FastEthernet1/12 switchport mode trunk shutdown ! interface FastEthernet1/13 switchport mode trunk shutdown ! interface FastEthernet1/14 switchport mode trunk shutdown ! interface FastEthernet1/15 switchport mode trunk shutdown ! interface Vlan1 no ip address shutdown ! interface Vlan29 ip address 172.16.255.

255.255.0 ! SW4 Configuration: ! vlan 12-13.23.255.0 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface FastEthernet1/0 duplex full speed 100 ! interface FastEthernet1/1 shutdown duplex full speed 100 ! interface FastEthernet1/2 shutdown duplex full speed 100 ! .29.9 255.10 255.111.111 ! ip tcp synwait-time 5 ! ! ! ! interface Loopback0 ip address 10.45.9 255.ip address 172.9 255.0 ! interface Vlan111 ip address 172.255.0.16.255.89.0 ! interface Vlan89 ip address 172.255.255.79.255.103.15-16.16.16.10.79.34.89.

interface FastEthernet1/3 shutdown duplex full speed 100 ! interface FastEthernet1/4 shutdown duplex full speed 100 ! interface FastEthernet1/5 shutdown duplex full speed 100 ! interface FastEthernet1/6 shutdown duplex full speed 100 ! interface FastEthernet1/7 switchport mode trunk shutdown ! interface FastEthernet1/8 switchport mode trunk shutdown ! interface FastEthernet1/9 switchport mode trunk shutdown ! interface FastEthernet1/10 switchport mode trunk shutdown ! interface FastEthernet1/11 switchport mode trunk ! interface FastEthernet1/12 switchport mode trunk shutdown ! interface FastEthernet1/13 switchport mode trunk shutdown ! .

255.0 area 0 network 172.1.1 0.0.12. Use AREA 0.0.0 ! Task 2 Once devices can ping each other on a point-to-point basis.16. R2.16.0.16.2 0.0.254 255.0.0.2. R3 and SW3 (core of our MPLS network) Advertise loopback addresses as /32 prefixes.1 0. enable OSPF on links between R1.111 encapsulation dot1Q 111 ip address 172.255.0 ! BB1 Configuration: ! interface FastEthernet0/0 no ip address speed 100 full-duplex ! interface FastEthernet0/0.111.0.0 area 0 network 172.16.1 0.255.255.13.0 area 0 .interface FastEthernet1/14 switchport mode trunk shutdown ! interface FastEthernet1/15 switchport mode trunk shutdown ! interface Vlan1 no ip address shutdown ! interface Vlan103 ip address 172.103.10 255.0.0 area 0 ! R2 Configuration: ! router ospf 1 log-adjacency-changes network 10.0. R1 Configuration: ! router ospf 1 log-adjacency-changes network 10.0.

0.0.13.0 area 0 network 172.3 0.2 0.12.0 area 0 network 172.9 0.0 area 0 network 172.16.29.0.0.16.16.0.9.0.3.0.9 0.0 area 0 network 172.0 area 0 ! R3 Configuration: ! router ospf 1 log-adjacency-changes network 10.16.0 area 0 ! .0.2 0.0.0.2 0.0.23.network 172.23.0.0.3 0.0.0.16.29.3 0.16.0.0 area 0 ! SW3 Configuration: ! router ospf 1 log-adjacency-changes network 10.0 area 0 network 172.0.0.