ch7-e3-e4 ews-ip mpls lab texttraining.bsnl.co.in/digital_library_source/upgradation/e3e4/e3-e4...
TRANSCRIPT
![Page 1: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/1.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 1
CHAPTER-7
IP/MPLS LAB
![Page 2: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/2.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 2
PE-4
P-4 P-3
P-2 P-1
PE-2
PE-3
POS3/2
POS3/2P
OS
3/1
PO
S3
/1
PO
S3/1
PO
S3
/1
POS3/2
POS3/2
Gi2/1
Gi2/1Gi2/1
Gi2/1Gi2/1
Gi2/1Gi2/1
Gi2/1
Preliminary configuration –
Module 1
16.1/30
16
.5/3
0
16.6/30
16.9/30
16.2/30
16.10/30
16.13
/30
16.14
/30
PE-1
Loop back IP 192.168.x.254/32
Lo0 2.254/32Lo0 0.254/32
Lo0 4.254/32Lo0 6.254/32
![Page 3: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/3.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 3
NLab Module: 1 (Preliminery Configuration)
P-1 Preliminary configuration
User Access Verification
Password:xxxxx
P-1>en
Password:xxxxx
P-1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-1(config)#interface Loopback0
P-1(config-if)# description ** P-1's Loopback 0 Interface **
P-1(config-if)# ip address 192.168.0.254 255.255.255.255
P-1(config-if)# no shutdown
P-1(config-if)# exit
P-1(config)#interface GigabitEthernet2/1
P-1(config-if)# description ** P-1-PE-1 GigE link **
P-1(config-if)# ip address 172.16.16.17 255.255.255.252
P-1(config-if)# no shutdown
P-1(config-if)# exit
P-1(config)#interface POS3/1
P-1(config-if)# description ** P-1-P-3 STM-1 link **
P-1(config-if)# ip address 172.16.16.14 255.255.255.252
P-1(config-if)# encapsulation ppp
P-1(config-if)# clock source internal
P-1(config-if)# no shutdown
P-1(config-if)# exit
P-1(config)#interface POS3/2
![Page 4: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/4.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 4
P-1(config-if)# description ** P-1-P-2 STM-1 link **
P-1(config-if)# ip address 172.16.16.1 255.255.255.252
P-1(config-if)# encapsulation ppp
P-1(config-if)# no shutdown
P-1(config-if)#end
P-1#write memory
Building configuration...
[OK]
P-1#
PE-1 Preliminary configuration
User Access Verification
Password:
PE-1>en
Password:
PE-1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-1(config)#interface Loopback0
PE-1(config-if)# description ** PE-1's Loopback 0 Interface **
PE-1(config-if)# ip address 192.168.1.254 255.255.255.255
PE-1(config-if)# no shutdown
PE-1(config-if)# exit
PE-1(config)#interface GigabitEthernet2/1
PE-1(config-if)# description ** PE-1-P-1 GigE link **
PE-1(config-if)# ip address 172.16.16.18 255.255.255.252
PE-1(config-if)# no shutdown
PE-1(config-if)# exit
PE-1(config)# end
![Page 5: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/5.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 5
PE-1#write memory
Building configuration...
[OK]
PE-1#
P-2 Preliminary configuration
User Access Verification
Password: xxxxx
P-2>en
Password:xxxxx
P-2# conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-2(config)#interface Loopback0
P-2(config-if)# description ** P-2's Loopback 0 Interface **
P-2(config-if)# ip address 192.168.2.254 255.255.255.255
P-2(config-if)# no shutdown
P-2(config-if)# exit
P-2(config)#interface GigabitEthernet2/1
P-2(config-if)# description ** P-2-PE-2 GigE link **
P-2(config-if)# ip address 172.16.16.21 255.255.255.252
P-2(config-if)# no shutdown
P-2(config-if)# exit
P-2(config)#interface POS3/1
P-2(config-if)# description ** P-2-P-4 STM-1 link **
P-2(config-if)# ip address 172.16.16.5 255.255.255.252
P-2(config-if)# encapsulation ppp
P-2(config-if)# no shutdown
P-2(config-if)# exit
![Page 6: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/6.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 6
P-2(config)#interface POS3/2
P-2(config-if)# description ** P-2-P-1 STM-1 link **
P-2(config-if)# ip address 172.16.16.2 255.255.255.252
P-2(config-if)# encapsulation ppp
P-2(config-if)# clock source internal
P-2(config-if)# no shutdown
P-2(config-if)#end
P-2#write memory
Building configuration...
[OK]
P-2#
PE-2 Preliminary configuration
User Access Verification
Password:
PE-2>en
Password:
PE-2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-2(config)#interface Loopback0
PE-2(config-if)# description ** PE-2's Loopback 0 Interface **
PE-2(config-if)# ip address 192.168.2.254 255.255.255.255
PE-2(config-if)# no shutdown
PE-2(config-if)# exit
PE-2(config)#interface GigabitEthernet2/1
PE-2(config-if)# description ** PE-2-P-2 GigE link **
PE-2(config-if)# ip address 172.16.16.22 255.255.255.252
PE-2(config-if)# no shutdown
![Page 7: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/7.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 7
PE-2(config-if)# exit
PE-2(config)# end
PE-2#write memory
Building configuration...
[OK]
PE-2#
P-3 Preliminary configuration
User Access Verification
Password: xxxxx
P-3>en
Password:xxxxx
P-3# conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-3(config)#interface Loopback0
P-3(config-if)# description ** P-3's Loopback 0 Interface **
P-3(config-if)# ip address 192.168.4.254 255.255.255.255
P-3(config-if)# no shutdown
P-3(config-if)# exit
P-3(config)#interface GigabitEthernet2/1
P-3(config-if)# description ** P-3-PE-3 GigE link **
P-3(config-if)# ip address 172.16.16.25 255.255.255.252
P-3(config-if)# no shutdown
P-3(config-if)# exit
P-3(config)#interface POS3/1
P-3(config-if)# description ** P-3-P-1 STM-1 link **
P-3(config-if)# ip address 172.16.16.13 255.255.255.252
P-3(config-if)# encapsulation ppp
![Page 8: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/8.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 8
P-3(config-if)# no shutdown
P-3(config-if)# exit
P-3(config)#interface POS3/2
P-3(config-if)# description ** P-3-P-4 STM-1 link **
P-3(config-if)# ip address 172.16.16.10 255.255.255.252
P-3(config-if)# encapsulation ppp
P-3(config-if)# clock source internal
P-3(config-if)# no shutdown
P-3(config-if)#end
P-3#write memory
Building configuration...
[OK]
P-3#
PE-3 Preliminary configuration
User Access Verification
Password:
PE-3>en
Password:
PE-3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-3(config)#interface Loopback0
PE-3(config-if)# description ** PE-2's Loopback 0 Interface **
PE-3(config-if)# ip address 192.168.5.254 255.255.255.255
PE-3(config-if)# no shutdown
PE-3(config-if)# exit
PE-3(config)#interface GigabitEthernet2/1
PE-3(config-if)# description ** PE-2-P-2 GigE link **
![Page 9: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/9.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 9
PE-3(config-if)# ip address 172.16.16.26 255.255.255.252
PE-3(config-if)# no shutdown
PE-3(config-if)# exit
PE-3(config)# end
PE-3#write memory
Building configuration...
[OK]
PE-3#
P-4 Preliminary configuration
User Access Verification
Password: xxxxx
P-4>en
Password:xxxxx
P-4# conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-4(config)#interface Loopback0
P-4(config-if)# description ** P-4's Loopback 0 Interface **
P-4(config-if)# ip address 192.168.6.254 255.255.255.255
P-4(config-if)# no shutdown
P-4(config-if)# exit
P-4(config)#interface GigabitEthernet2/1
P-4(config-if)# description ** P-4-PE-4 GigE link **
P-4(config-if)# ip address 172.16.16.29 255.255.255.252
P-4(config-if)# no shutdown
P-4(config-if)# exit
P-4(config)#interface POS3/1
P-4(config-if)# description ** P-4-P-2 STM-1 link **
![Page 10: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/10.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 10
P-4(config-if)# ip address 172.16.16.6 255.255.255.252
P-4(config-if)# encapsulation ppp
P-4(config-if)# clock source internal
P-4(config-if)# no shutdown
P-4(config-if)# exit
P-4(config)#interface POS3/2
P-4(config-if)# description ** P-4-P-3 STM-1 link **
P-4(config-if)# ip address 172.16.16.9 255.255.255.252
P-4(config-if)# encapsulation ppp
P-4(config-if)# no shutdown
P-4(config-if)#end
P-4#write memory
Building configuration...
[OK]
P-4#
PE-4 Preliminary configuration
User Access Verification
Password:
PE-4>en
Password:
PE-4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-4(config)#interface Loopback0
PE-4(config-if)# description ** PE-4's Loopback 0 Interface **
PE-4(config-if)# ip address 192.168.7.254 255.255.255.255
PE-4(config-if)# no shutdown
PE-4(config-if)# exit
![Page 11: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/11.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 11
PE-4(config)#interface GigabitEthernet2/1
PE-4(config-if)# description ** PE-4-P-4 GigE link **
PE-4(config-if)# ip address 172.16.16.30 255.255.255.252
PE-4(config-if)# no shutdown
PE-4(config-if)# exit
PE-4(config)# end
PE-4#write memory
Building configuration...
[OK]
PE-4#
![Page 12: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/12.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 12
PE-4
P-4 P-3
P-2 P-1
PE-2
PE-3
POS3/2
POS3/2
PO
S3/1
PO
S3/1
PO
S3/1
PO
S3/1
POS3/2
POS3/2
Gi2/1
Gi2/1Gi2/1
Gi2/1Gi2/1
Gi2/1Gi2/1
Gi2/1
16.1/301
6.5
/3
0
16
.6
/3
0
16.9/30
16.2/30
16.10/30
16.1
3/3
0
16
.1
4/3
0
PE-1
Lo0 2.0/24Lo0 0.0/24
Lo0 4.0/24Lo0 6.0/24
Default
DefaultDefault
Default
Static/Default Routing – Module-2
Lab Module: 2 (Static Routing)
![Page 13: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/13.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 13
P-1 Configuration:-
Syntax:
P-1(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
P-1(config)#ip route 192.168.4.0 255.255.255.0 POS3/1
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.1.0/24 192.168.4.0/24
192.168.5.0/24
172.16.16.24/30
172.16.16.8/30
192.168.2.0/24
192.168.3.0/24
192.168.6.0/24
192.168.7.0/24
172.16.16.20/30
172.16.16.4./30
172.16.16.28/30
PE-1 Configuration:-
Syntax:
PE-1(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
PE-1(config)#ip route 192.168.0.0 255.255.255.0 GigE2/1
![Page 14: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/14.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 14
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.0.0/24
192.168.2.0/24
192.168.3.0/24
192.168.4.0/24
192.168.5.0/24
192.168.6.0/24
192.168.7.0/24
172.16.16.0/30
172.16.16.4/30
172.16.16.8/30
172.16.16.12/30
172.16.16.20/30
172.16.16.24/30
172.16.16.28/30
--
--
P-2 Configuration:-
Syntax:
P-2(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
P-2(config)#ip route 192.168.4.0 255.255.255.0 POS3/1
![Page 15: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/15.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 15
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.3.0/24 192.168.4.0/24
192.168.5.0/24
192.168.6.0/24
192.168.7.0/24
172.16.16.8/30
172.16.16.28/30
172.16.16.24/30
192.168.0.0/24
192.168.1.0/24
172.16.16.16/30
172.16.16.12/30
PE-2 Configuration:-
Syntax:
PE-2(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
PE-2(config)#ip route 192.168.0.0 255.255.255.0 GigE2/1
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.4.0/24
192.168.5.0/24
192.168.6.0/24
192.168.7.0/24
172.16.16.0/30
172.16.16.4/30
172.16.16.8/30
172.16.16.12/30
172.16.16.16/30
172.16.16.24/30
172.16.16.28/30
--
--
![Page 16: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/16.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 16
P-3 Configuration:-
Syntax:
P-3(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
P-3(config)#ip route 192.168.0.0 255.255.255.0 POS3/1
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.5.0/24 192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
172.16.16.16/30
172.16.16.0/30
172.16.16.20/30
192.168.6.0/24
192.168.7.0/24
172.16.16.28/30
172.16.16.4/30
PE-3 Configuration:-
Syntax:
PE-3(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
PE-3(config)#ip route 192.168.0.0 255.255.255.0 GigE2/1
![Page 17: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/17.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 17
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
192.168.4.0/24
192.168.6.0/24
192.168.7.0/24
172.16.16.0/30
172.16.16.4/30
172.16.16.8/30
172.16.16.12/30
172.16.16.16/30
172.16.16.20/30
172.16.16.28/30
--
--
+P-4 Configuration:-
Syntax:
P-4(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
P-4(config)#ip route 192.168.2.0 255.255.255.0 POS3/1
![Page 18: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/18.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 18
PE-4 Configuration:-
Syntax:
PE-4(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
PE-4(config)#ip route 192.168.0.0 255.255.255.0 GigE2/1
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
192.168.4.0/24
192.168.5.0/24
192.168.6.0/24
172.16.16.0/30
172.16.16.4/30
172.16.16.8/30
172.16.16.12/30
172.16.16.16/30
172.16.16.20/30
172.16.16.24/30
--
--
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.7.0/24 192.168.2.0/24
192.168.3.0/24
172.16.16.20/30
172.16.16.0/30
192.168.0.0/24
192.168.1.0/24
192.168.4.0/24
192.168.5.0/24
172.16.16.24/30
172.16.16.12/30
172.16.16.16/30
![Page 19: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/19.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 19
Commands:
P-1 Config :-
P-1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-1(config)#ip route 192.168.1.0 255.255.255.0 gigabitEthernet 2/1
P-1(config)#ip route 192.168.2.0 255.255.255.0 pos 3/2
P-1(config)#ip route 192.168.3.0 255.255.255.0 pos 3/2
P-1(config)#ip route 192.168.4.0 255.255.255.0 pos 3/1
P-1(config)#ip route 192.168.5.0 255.255.255.0 pos 3/1
P-1(config)#ip route 192.168.6.0 255.255.255.0 pos 3/2
P-1(config)#ip route 192.168.7.0 255.255.255.0 pos 3/2
P-1(config)#ip route 172.16.16.8 255.255.255.252 pos 3/1
P-1(config)#ip route 172.16.16.24 255.255.255.252 pos 3/1
P-1(config)#ip route 172.16.16.4 255.255.255.252 pos 3/2
P-1(config)#ip route 172.16.16.20 255.255.255.252 pos 3/2
P-1(config)#ip route 172.16.16.28 255.255.255.252 pos 3/2
P-1(config)#end
P-1#write
Building configuration...
[OK]
P-1#
PE-1 Config :-
PE-1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-1(config)#ip route 192.168.0.0 255.255.255.0 gigabitEthernet 2/1
PE-1(config)#ip route 192.168.2.0 255.255.255.0 gigabitEthernet 2/1
PE-1(config)#ip route 192.168.3.0 255.255.255.0 gigabitEthernet 2/1
![Page 20: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/20.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 20
PE-1(config)#ip route 192.168.4.0 255.255.255.0 gigabitEthernet 2/1
PE-1(config)#ip route 192.168.5.0 255.255.255.0 gigabitEthernet 2/1
PE-1(config)#ip route 192.168.6.0 255.255.255.0 gigabitEthernet 2/1
PE-1(config)#ip route 192.168.7.0 255.255.255.0 gigabitEthernet 2/1
PE-1(config)#ip route 172.16.16.0 255.255.255.252 gigabitEthernet 2/1
PE-1(config)#ip route 172.16.16.4 255.255.255.252 gigabitEthernet 2/1
PE-1(config)#ip route 172.16.16.8 255.255.255.252 gigabitEthernet 2/1
PE-1(config)#ip route 172.16.16.12 255.255.255.252 gigabitEthernet 2/1
PE-1(config)#ip route 172.16.16.20 255.255.255.252 gigabitEthernet 2/1
PE-1(config)#ip route 172.16.16.24 255.255.255.252 gigabitEthernet 2/1
PE-1(config)#ip route 172.16.16.28 255.255.255.252 gigabitEthernet 2/1
PE-1(config)#end
PE-1#write
Building configuration...
[OK]
PE-1#
P-2 Config:-
P-2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-2(config)#ip route 192.168.3.0 255.255.255.0 gigabitEthernet 2/1
P-2(config)#ip route 192.168.0.0 255.255.255.0 pos 3/2
P-2(config)#ip route 192.168.1.0 255.255.255.0 pos 3/2
P-2(config)#ip route 192.168.4.0 255.255.255.0 pos 3/1
P-2(config)#ip route 192.168.5.0 255.255.255.0 pos 3/1
P-2(config)#ip route 192.168.6.0 255.255.255.0 pos 3/1
P-2(config)#ip route 192.168.7.0 255.255.255.0 pos 3/1
P-2(config)#ip route 172.16.16.16 255.255.255.252 pos 3/2
P-2(config)#ip route 172.16.16.8 255.255.255.252 pos 3/1
P-2(config)#ip route 172.16.16.12 255.255.255.252 pos 3/2
![Page 21: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/21.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 21
P-2(config)#ip route 172.16.16.24 255.255.255.252 pos 3/1
P-2(config)#ip route 172.16.16.28 255.255.255.252 pos 3/1
P-2(config)#end
P-2#
PE-2 Config:-
PE-2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-2(config)#ip route 192.168.2.0 255.255.255.0 gigabitEthernet 2/1
PE-2(config)#ip route 192.168.0.0 255.255.255.0 gigabitEthernet 2/1
PE-2(config)#ip route 192.168.1.0 255.255.255.0 gigabitEthernet 2/1
PE-2(config)#ip route 192.168.4.0 255.255.255.0 gigabitEthernet 2/1
PE-2(config)#ip route 192.168.5.0 255.255.255.0 gigabitEthernet 2/1
PE-2(config)#ip route 192.168.6.0 255.255.255.0 gigabitEthernet 2/1
PE-2(config)#ip route 192.168.7.0 255.255.255.0 gigabitEthernet 2/1
PE-2(config)#ip route 172.16.16.0 255.255.255.252 gigabitEthernet 2/1
PE-2(config)#ip route 172.16.16.4 255.255.255.252 gigabitEthernet 2/1
PE-2(config)#ip route 172.16.16.8 255.255.255.252 gigabitEthernet 2/1
PE-2(config)#ip route 172.16.16.12 255.255.255.252 gigabitEthernet 2/1
PE-2(config)#ip route 172.16.16.16 255.255.255.252 gigabitEthernet 2/1
PE-2(config)#ip route 172.16.16.24 255.255.255.252 gigabitEthernet 2/1
PE-2(config)#ip route 172.16.16.28 255.255.255.252 gigabitEthernet 2/1
PE-2(config)#end
PE-2#
P-3 Config :-
P-3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-3(config)#ip route 192.168.0.0 255.255.255.0 pos 3/1
![Page 22: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/22.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 22
P-3(config)#ip route 192.168.1.0 255.255.255.0 pos 3/1
P-3(config)#ip route 192.168.2.0 255.255.255.0 pos 3/1
P-3(config)#ip route 192.168.3.0 255.255.255.0 pos 3/1
P-3(config)#ip route 192.168.5.0 255.255.255.0 gigabitEthernet 2/1
P-3(config)#ip route 192.168.6.0 255.255.255.0 pos 3/2
P-3(config)#ip route 192.168.7.0 255.255.255.0 pos 3/2
P-3(config)#ip route 172.16.16.16 255.255.255.252 pos 3/1
P-3(config)#ip route 172.16.16.0 255.255.255.252 pos 3/1
P-3(config)#ip route 172.16.16.20 255.255.255.252 pos 3/1
P-3(config)#ip route 172.16.16.28 255.255.255.252 pos 3/2
P-3(config)#ip route 172.16.16.4 255.255.255.252 pos 3/2
P-3(config)#end
P-3#write
Building configuration...
[OK]
P-3#
PE-3 Config :-
PE-3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-3(config)#ip route 192.168.0.0 255.255.255.0 gigabitEthernet 2/1
PE-3(config)#ip route 192.168.1.0 255.255.255.0 gigabitEthernet 2/1
PE-3(config)#ip route 192.168.2.0 255.255.255.0 gigabitEthernet 2/1
PE-3(config)#ip route 192.168.3.0 255.255.255.0 gigabitEthernet 2/1
PE-3(config)#ip route 192.168.4.0 255.255.255.0 gigabitEthernet 2/1
PE-3(config)#ip route 192.168.6.0 255.255.255.0 gigabitEthernet 2/1
PE-3(config)#ip route 192.168.7.0 255.255.255.0 gigabitEthernet 2/1
PE-3(config)#ip route 172.16.16.0 255.255.255.252 gigabitEthernet 2/1
PE-3(config)#ip route 172.16.16.4 255.255.255.252 gigabitEthernet 2/1
![Page 23: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/23.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 23
PE-3(config)#ip route 172.16.16.8 255.255.255.252 gigabitEthernet 2/1
PE-3(config)#ip route 172.16.16.12 255.255.255.252 gigabitEthernet 2/1
PE-3(config)#ip route 172.16.16.16 255.255.255.252 gigabitEthernet 2/1
PE-3(config)#ip route 172.16.16.20 255.255.255.252 gigabitEthernet 2/1
PE-3(config)#ip route 172.16.16.28 255.255.255.252 gigabitEthernet 2/1
PE-3(config)#end
PE-3#write
Building configuration...
[OK]
PE-3#
P-4 Config:-
P-4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-4(config)#ip route 192.168.7.0 255.255.255.0 gigabitEthernet 2/1
P-4(config)#ip route 192.168.0.0 255.255.255.0 pos 3/2
P-4(config)#ip route 192.168.1.0 255.255.255.0 pos 3/2
P-4(config)#ip route 192.168.2.0 255.255.255.0 pos 3/1
P-4(config)#ip route 192.168.3.0 255.255.255.0 pos 3/1
P-4(config)#ip route 192.168.4.0 255.255.255.0 pos 3/2
P-4(config)#ip route 192.168.5.0 255.255.255.0 pos 3/2
P-4(config)#ip route 172.16.16.0 255.255.255.252 pos 3/1
P-4(config)#ip route 172.16.16.24 255.255.255.252 pos 3/2
P-4(config)#ip route 172.16.16.20 255.255.255.252 pos 3/1
P-4(config)#ip route 172.16.16.12 255.255.255.252 pos 3/2
P-4(config)#ip route 172.16.16.16 255.255.255.252 pos 3/2
P-4(config)#end
P-4#
![Page 24: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/24.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 24
PE-4 Config:-
PE-4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-4(config)#ip route 192.168.2.0 255.255.255.0 gigabitEthernet 2/1
PE-4(config)#ip route 192.168.0.0 255.255.255.0 gigabitEthernet 2/1
PE-4(config)#ip route 192.168.1.0 255.255.255.0 gigabitEthernet 2/1
PE-4(config)#ip route 192.168.4.0 255.255.255.0 gigabitEthernet 2/1
PE-4(config)#ip route 192.168.5.0 255.255.255.0 gigabitEthernet 2/1
PE-4(config)#ip route 192.168.6.0 255.255.255.0 gigabitEthernet 2/1
PE-4(config)#ip route 192.168.3.0 255.255.255.0 gigabitEthernet 2/1
PE-4(config)#ip route 172.16.16.0 255.255.255.252 gigabitEthernet 2/1
PE-4(config)#ip route 172.16.16.4 255.255.255.252 gigabitEthernet 2/1
PE-4(config)#ip route 172.16.16.8 255.255.255.252 gigabitEthernet 2/1
PE-4(config)#ip route 172.16.16.12 255.255.255.252 gigabitEthernet 2/1
PE-4(config)#ip route 172.16.16.16 255.255.255.252 gigabitEthernet 2/1
PE-4(config)#ip route 172.16.16.24 255.255.255.252 gigabitEthernet 2/1
PE-4(config)#ip route 172.16.16.20 255.255.255.252 gigabitEthernet 2/1
PE-4(config)#end
PE-4#
![Page 25: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/25.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 25
PE-4
P-4 P-3
P-2 P-1
PE-2
PE-3
POS3/2
POS3/2
PO
S3/1
PO
S3
/1
PO
S3
/1
PO
S3/1
POS3/2
POS3/2
Gi2/1
Gi2/1Gi2/1
Gi2/1Gi2/1
Gi2/1Gi2/1
Gi2/1
16.1/301
6.5
/3
0
16.6
/3
0
16.9/30
16.2/30
16.10/30
16
.1
3/3
0
16
.14
/3
0
PE-1
Lo0 2.0/24Lo0 0.0/24
Lo0 4.0/24Lo0 6.0/24
Default
DefaultDefault
Default
Default Routing – Module-3
Lab Module: 3 (Default Routing)
![Page 26: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/26.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 26
Removing the static routes and replacing with a Default route command:-
1. show running-config
2. Select and copy all the static routes into the clip-board
3. Paste into Notepad
4. Keep the lines containing the static routes which is to be removed
5. Negate all commands with “no”
6. Begin with “conf t” end with “write memory”
7. Copy into clip board and run the script at Hash prompt of the router
Eg Notepad script for P-1 Router:-
conf t
no ip route 192.168.2.0 255.255.255.0
no ip route 192.168.3.0 255.255.255.0
no ip route 192.168.6.0 255.255.255.0
no ip route 192.168.7.0 255.255.255.0
no ip route 172.16.16.20 255.255.255.252
no ip route 172.16.16.4 255.255.255.252
no ip route 172.16.16.28 255.255.255.252
ip route 0.0.0.0 0.0.0.0 POS3/2
end
write memory
P-1 Configuration:-
Syntax:
P-1(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
P-1(config)#ip route 0.0.0.0 0.0.0.0 POS3/2
![Page 27: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/27.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 27
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.1.0/24 192.168.4.0/24
192.168.5.0/24
172.16.16.24/30
172.16.16.8/30
0.0.0.0/0
PE-1 Configuration:-
Syntax:
PE-1(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
PE-1(config)# ip route 0.0.0.0 0.0.0.0 GigE2/1
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
0.0.0.0/0 -- --
P-2 Configuration:-
Syntax:
P-2(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
P-2(config)# ip route 0.0.0.0 0.0.0.0 POS3/1
![Page 28: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/28.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 28
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.3.0/24 0.0.0.0/0 192.168.0.0/24
192.168.1.0/24
172.16.16.16/30
172.16.16.12/30
PE-2 Configuration:-
Syntax:
PE-2(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
PE-2(config)#ip route 0.0.0.0 0.0.0.0 GigE2/1
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
0.0.0.0/0 -- --
P-3 Configuration:-
Syntax:
P-3(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
P-3(config)# ip route 0.0.0.0 0.0.0.0 POS3/2
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.5.0/24 0.0.0.0/0 192.168.6.0/24
192.168.7.0/24
172.16.16.28/30
172.16.16.4/30
![Page 29: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/29.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 29
PE-3 Configuration:-
Syntax:
PE-3(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
PE-3(config)# ip route 0.0.0.0 0.0.0.0 GigE2/1
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
0.0.0.0/0 -- --
P-4 Configuration:-
Syntax:
P-4(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
P-4(config)# ip route 0.0.0.0 0.0.0.0 POS3/2
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
192.168.7.0/24 192.168.2.0/24
192.168.3.0/24
172.16.16.20/30
172.16.16.0/30
0.0.0.0/0
PE-4 Configuration:-
Syntax:
PE-4(Config)#ip route <NW No.> <Subnet Mask> <Next Hop Add. | Interface name>
Eg:
PE-4(config)# ip route 0.0.0.0 0.0.0.0 GigE2/1
![Page 30: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/30.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 30
Next Hop Interface GigE 2/1 POS 3/1 POS 3/2
Networks to be
Routed
0.0.0.0/0 -- --
Verification commands:
Eg for P-1 Router:
P-1# show running-config
P-1#show ip route
P-1#ping 192.168.1.254
P-1#ping 192.168.2.254
P-1#ping 192.168.3.254
P-1#ping 192.168.4.254
P-1#ping 192.168.5.254
P-1#ping 192.168.6.254
P-1#ping 192.168.7.254
P-1#ping <all Interface addresses>
Commands:
P-1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-1(config)#no ip route 192.168.2.0 255.255.255.0 POS3/2
P-1(config)#no ip route 192.168.3.0 255.255.255.0 POS3/2
P-1(config)#no ip route 192.168.6.0 255.255.255.0 POS3/2
P-1(config)#no ip route 192.168.7.0 255.255.255.0 POS3/2
P-1(config)#no ip route 172.16.16.4 255.255.255.252 POS3/2
P-1(config)#no ip route 172.16.16.20 255.255.255.252 POS3/2
P-1(config)#no ip route 172.16.16.28 255.255.255.252 POS3/2
![Page 31: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/31.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 31
P-1(config)#ip route 0.0.0.0 0.0.0.0 pos3/2
P-1(config)#end
P-1#wr
Building configuration...
[OK]
P-1#
PE-1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-1(config)#no ip route 0.0.0.0 0.0.0.0 GigabitEthernet2/1
PE-1(config)#no ip route 172.16.16.0 255.255.255.252 GigabitEthernet2/1
PE-1(config)#no ip route 172.16.16.4 255.255.255.252 GigabitEthernet2/1
PE-1(config)#no ip route 172.16.16.8 255.255.255.252 GigabitEthernet2/1
PE-1(config)#no ip route 172.16.16.12 255.255.255.252 GigabitEthernet2/1
PE-1(config)#no ip route 172.16.16.20 255.255.255.252 GigabitEthernet2/1
PE-1(config)#no ip route 172.16.16.24 255.255.255.252 GigabitEthernet2/1
PE-1(config)#no ip route 172.16.16.28 255.255.255.252 GigabitEthernet2/1
PE-1(config)#no ip route 192.168.0.0 255.255.255.0 GigabitEthernet2/1
PE-1(config)#no ip route 192.168.2.0 255.255.255.0 GigabitEthernet2/1
PE-1(config)#no ip route 192.168.3.0 255.255.255.0 GigabitEthernet2/1
PE-1(config)#no ip route 192.168.4.0 255.255.255.0 GigabitEthernet2/1
PE-1(config)#no ip route 192.168.5.0 255.255.255.0 GigabitEthernet2/1
PE-1(config)#no ip route 192.168.6.0 255.255.255.0 GigabitEthernet2/1
PE-1(config)#no ip route 192.168.7.0 255.255.255.0 GigabitEthernet2/1
PE-1(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet2/1
PE-1(config)#end
PE-1#wr
Building configuration...
[OK] PE-1#conf t
PE-1#
![Page 32: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/32.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 32
P-2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-2(config)#no ip route 172.16.16.8 255.255.255.252 POS3/1
P-2(config)#no ip route 172.16.16.24 255.255.255.252 POS3/1
P-2(config)#no ip route 172.16.16.28 255.255.255.252 POS3/1
P-2(config)#no ip route 192.168.4.0 255.255.255.0 POS3/1
P-2(config)#no ip route 192.168.5.0 255.255.255.0 POS3/1
P-2(config)#no ip route 192.168.6.0 255.255.255.0 POS3/1
P-2(config)#no ip route 192.168.7.0 255.255.255.0 POS3/1
P-2(config)#ip route 0.0.0.0 0.0.0.0 POS3/1
P-2(config)#end
P-2#wr
Building configuration...
[OK]
P-2#
PE-2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-2(config)#no ip route 172.16.16.0 255.255.255.252 GigabitEthernet2/1
PE-2(config)#no ip route 172.16.16.4 255.255.255.252 GigabitEthernet2/1
PE-2(config)#no ip route 172.16.16.8 255.255.255.252 GigabitEthernet2/1
PE-2(config)#no ip route 172.16.16.12 255.255.255.252 GigabitEthernet2/1
PE-2(config)#no ip route 172.16.16.16 255.255.255.252 GigabitEthernet2/1
PE-2(config)#no ip route 172.16.16.24 255.255.255.252 GigabitEthernet2/1
PE-2(config)#no ip route 172.16.16.28 255.255.255.252 GigabitEthernet2/1
PE-2(config)#no ip route 192.168.0.0 255.255.255.0 GigabitEthernet2/1
PE-2(config)#no ip route 192.168.1.0 255.255.255.0 GigabitEthernet2/1
PE-2(config)#no ip route 192.168.2.0 255.255.255.0 GigabitEthernet2/1
![Page 33: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/33.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 33
PE-2(config)#no ip route 192.168.4.0 255.255.255.0 GigabitEthernet2/1
PE-2(config)#no ip route 192.168.5.0 255.255.255.0 GigabitEthernet2/1
PE-2(config)#no ip route 192.168.6.0 255.255.255.0 GigabitEthernet2/1
PE-2(config)#no ip route 192.168.7.0 255.255.255.0 GigabitEthernet2/1
PE-2(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet2/1
PE-2(config)#end
PE-2#wr
Building configuration...
[OK]
PE-2#
P-3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-3(config)#no ip route 172.16.16.0 255.255.255.252 POS3/1
P-3(config)#no ip route 172.16.16.16 255.255.255.252 POS3/1
P-3(config)#no ip route 172.16.16.20 255.255.255.252 POS3/1
P-3(config)#no ip route 192.168.0.0 255.255.255.0 POS3/1
P-3(config)#no ip route 192.168.1.0 255.255.255.0 POS3/1
P-3(config)#no ip route 192.168.2.0 255.255.255.0 POS3/1
P-3(config)#no ip route 192.168.3.0 255.255.255.0 POS3/1
P-3(config)#ip route 0.0.0.0 0.0.0.0 POS3/1
P-3(config)#end
P-3#wr
Building configuration...
[OK]
P-3#
PE-3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
![Page 34: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/34.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 34
PE-3(config)#no ip route 172.16.16.0 255.255.255.252 GigabitEthernet2/1
PE-3(config)#no ip route 172.16.16.4 255.255.255.252 GigabitEthernet2/1
PE-3(config)#no ip route 172.16.16.8 255.255.255.252 GigabitEthernet2/1
PE-3(config)#no ip route 172.16.16.12 255.255.255.252 GigabitEthernet2/1
PE-3(config)#no ip route 172.16.16.16 255.255.255.252 GigabitEthernet2/1
PE-3(config)#no ip route 172.16.16.20 255.255.255.252 GigabitEthernet2/1
PE-3(config)#no ip route 172.16.16.28 255.255.255.252 GigabitEthernet2/1
PE-3(config)#no ip route 192.168.0.0 255.255.255.0 GigabitEthernet2/1
PE-3(config)#no ip route 192.168.1.0 255.255.255.0 GigabitEthernet2/1
PE-3(config)#no ip route 192.168.2.0 255.255.255.0 GigabitEthernet2/1
PE-3(config)#no ip route 192.168.3.0 255.255.255.0 GigabitEthernet2/1
PE-3(config)#no ip route 192.168.4.0 255.255.255.0 GigabitEthernet2/1
PE-3(config)#no ip route 192.168.6.0 255.255.255.0 GigabitEthernet2/1
PE-3(config)#no ip route 192.168.7.0 255.255.255.0 GigabitEthernet2/1
PE-3(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet2/1
PE-3(config)#end
PE-3#wr
Building configuration...
[OK]
PE-3#
P-4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
P-4(config)#no ip route 172.16.16.12 255.255.255.252 POS3/2
P-4(config)#no ip route 172.16.16.16 255.255.255.252 POS3/2
P-4(config)#no ip route 172.16.16.24 255.255.255.252 POS3/2
P-4(config)#no ip route 192.168.0.0 255.255.255.0 POS3/2
P-4(config)#no ip route 192.168.1.0 255.255.255.0 POS3/2
P-4(config)#no ip route 192.168.4.0 255.255.255.0 POS3/2
P-4(config)#no ip route 192.168.5.0 255.255.255.0 POS3/2
![Page 35: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/35.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 35
P-4(config)#ip route 0.0.0.0 0.0.0.0 POS3/2
P-4(config)#end
P-4#wr
Building configuration...
[OK]
P-4#
PE-4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
PE-4(config)#no ip route 172.16.16.0 255.255.255.252 GigabitEthernet2/1
PE-4(config)#no ip route 172.16.16.4 255.255.255.252 GigabitEthernet2/1
PE-4(config)#no ip route 172.16.16.8 255.255.255.252 GigabitEthernet2/1
PE-4(config)#no ip route 172.16.16.12 255.255.255.252 GigabitEthernet2/1
PE-4(config)#no ip route 172.16.16.16 255.255.255.252 GigabitEthernet2/1
PE-4(config)#no ip route 172.16.16.20 255.255.255.252 GigabitEthernet2/1
PE-4(config)#no ip route 172.16.16.24 255.255.255.252 GigabitEthernet2/1
PE-4(config)#no ip route 192.168.0.0 255.255.255.0 GigabitEthernet2/1
PE-4(config)#no ip route 192.168.1.0 255.255.255.0 GigabitEthernet2/1
PE-4(config)#no ip route 192.168.2.0 255.255.255.0 GigabitEthernet2/1
PE-4(config)#no ip route 192.168.3.0 255.255.255.0 GigabitEthernet2/1
PE-4(config)#no ip route 192.168.4.0 255.255.255.0 GigabitEthernet2/1
PE-4(config)#no ip route 192.168.5.0 255.255.255.0 GigabitEthernet2/1
PE-4(config)#no ip route 192.168.6.0 255.255.255.0 GigabitEthernet2/1
PE-4(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet2/1
PE-4(config)#end
PE-4#wr
Building configuration...
[OK]
PE-4#
![Page 36: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/36.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 36
MPLS-VPN Lab Module: 4
(Preliminery Configuration for MPLS)
P-4
P-2 P-1POS3/2 POS3/2
PO
S3
/1
PO
S3
/1
PO
S3
/1
PO
S3
/116.1/30
16.5
/30
16.6
/30
16.2/3016.1
3/30
16.1
4/30
** Loop back IP 192.168.x.254/32
Lo0 2.254/32Lo0 0.254/32
Lo0 4.254/32Lo0 6.254/32
** Link IP Address 172.16.16.X/30
P-3
PE-2 PE-1
PE-3PE-4
OSPF- Area 0
MPLS Domain
Basic MPLS Lab – Module-4
POS3/2
POS3/2
16.9/30
16.10/30
Step-1
Configure OSPF in all the P router & PE router
![Page 37: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/37.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 37
Configuring OSPF 1111:- e.g. P-4 router
P-4(config)#router ospf 1111
P-4(config-router)#network 172.16.16.4 0.0.0.3 area 0
P-4(config-router)#network 172.16.16.8 0.0.0.3 area 0
P-4(config-router)#network 172.16.16.28 0.0.0.3 area o
P-4(config-router)#network 172.16.16.36 0.0.0.3 area o
P-4(config-router)#network 192.168.6.254 0.0.0.0 area 0
P-4(config-router)#passive-interface loopback 0
P-4(config-router)#auto-cost reference-bandwidth 1000
P-4(config-router)#exit
P-4(config)#exit
P-4#wr
Building configuration...
[OK]
P-4#
Note:- Similar steps to be followed for other routers.
Step-2
Configuring MPLS :- e.g. P-4 router
Configuring/saving MPLS/Cisco Express Forwarding(cef) on all interfaces:-
P-2(config)# ip cef distributed
P-2(config)#mpls ip
P-2(config)#mpls label protocol ldp
P-2(config)# interface pos 3/1
P-2(config-if)# mpls ip
P-2(config-if)# mpls label protocol ldp
![Page 38: CH7-E3-E4 EWS-IP MPLS Lab TEXTtraining.bsnl.co.in/DIGITAL_LIBRARY_SOURCE/upgradation/e3e4/E3-E4 EWS... · E3-E4 E &WS Revised on 15-03-2011 BSNL, India For Internal Circualtion of](https://reader030.vdocuments.net/reader030/viewer/2022040302/5e7d27b278fce80a62643d11/html5/thumbnails/38.jpg)
E3-E4 E &WS Revised on 15-03-2011
BSNL, India For Internal Circualtion of BSNL Only Page 38
P-2(config-if)# interface pos 3/2
P-2(config-if)# mpls ip
P-2(config-if)# mpls label protocol ldp
P-2(config-if)# interface GigabitEthernet 2/1
P-2(config-if)# mpls ip
P-2(config-if)# mpls label protocol ldp
P-2(config-if)# interface GigabitEthernet 2/2
P-2(config-if)# mpls ip
P-2(config-if)# mpls label protocol ldp
P-2(config-if)#end
P-2#wr
Building configuration...
[OK]
P-2#
Verification commands:
#sh ru
#sh mpls ldp neighbour