You are on page 1of 84

Contents

Unit 1 Basic operation and configuration of router.....................................................................................1

1.1 Practice 1: router basic configuration .....................................................................................................1

1.1.1 Practice Description..................................................................................................................1

1.1.2 Practice Planning......................................................................................................................1

1.1.3 Practice Step and Record..........................................................................................................2

1.2 Summarizations and Questions................................................................................................................7

1.2.1 Summarizations........................................................................................................................7

1.2.2 Questions..................................................................................................................................7

Unit 2 Routing basics.......................................................................................................................................9

2.1 Practice : basic route configuration..........................................................................................................9

2.1.1 Practice Description..................................................................................................................9

2.1.2 Practice Planning....................................................................................................................10

2.1.3 Practice Step and Record........................................................................................................10

2.2 Summarizations and Questions..............................................................................................................14

2.2.1 Summarizations......................................................................................................................14

2.2.2 Questions................................................................................................................................14

Unit 3 OSPF Configuration...........................................................................................................................15

3.1 Practice 1: Single area OSPF configuration..........................................................................................15

3.1.1 Practice Description................................................................................................................15

3.1.2 Practice Planning....................................................................................................................16

3.1.3 Practice Step and Record........................................................................................................16

3.2 Practice 2: Multi area OSPF configuration............................................................................................19

3.2.1 Practice Description................................................................................................................19

i
3.2.2 Practice Planning....................................................................................................................20

3.2.3 Practice Step and Record........................................................................................................20

3.3 Practice: Route redistribution................................................................................................................23

3.3.1 Practice Description................................................................................................................23

3.3.2 Practice Planning....................................................................................................................23

3.3.3 Practice Step and Record........................................................................................................24

3.4 Practice 3: Multi area OSPF configuration(Stub Area(Totally Stubby Area(....................................26

3.4.1 Practice Description................................................................................................................26

3.4.2 Practice Planning....................................................................................................................27

3.4.3 Practice Step and Record........................................................................................................27

Unit 4 M6000 ACL Configuration................................................................................................................31

4.1 Practice: ACL.........................................................................................................................................31

4.1.1 Practice Description................................................................................................................31

4.1.2 Practice Planning....................................................................................................................32

4.1.3 Practice Step and Record........................................................................................................32

4.2 Summarizations and Questions..............................................................................................................33

4.2.1 Summarizations......................................................................................................................33

4.2.2 Questions................................................................................................................................33

Unit 5 BGP......................................................................................................................................................35

5.1 Practice: IBGP neighbor........................................................................................................................35

5.1.1 Practice description.................................................................................................................35

5.1.2 Practice Planning....................................................................................................................35

5.1.3 Practice steps and Record.......................................................................................................35

5.2 Practice: EBGP neighbor.......................................................................................................................40

5.2.1 Practice description.................................................................................................................40

5.2.2 Practice Planning....................................................................................................................40

5.2.3 Practice steps and Record.......................................................................................................40


ii
5.3 Practice: EBGP neighbor (multi-hops)..................................................................................................43

5.3.1 Practice description.................................................................................................................43

5.3.2 Practice Planning....................................................................................................................44

5.3.3 Practice steps and Record.......................................................................................................44

5.4 Practice: BGP route advertisement and redistribution...........................................................................47

5.4.1 Practice description.................................................................................................................47

5.4.2 Practice steps and Record.......................................................................................................47

5.5 Practice: BGP synchronization..............................................................................................................53

5.5.1 Practice description.................................................................................................................53

5.5.2 Practice Planning....................................................................................................................53

5.5.3 Practice steps and Record.......................................................................................................53

Unit 6 MPLS...................................................................................................................................................59

6.1 Practice: MPLS......................................................................................................................................59

6.1.1 Practice description.................................................................................................................59

6.1.2 Practice Planning....................................................................................................................59

6.1.3 Practice steps and Record.......................................................................................................59

Unit 7 BGP/MPLS VPN................................................................................................................................67

7.1 Practice: BGP/MPLS VPN....................................................................................................................67

7.1.1 Practice description.................................................................................................................67

7.1.2 Practice Planning....................................................................................................................67

7.1.3 Practice steps and Examples...................................................................................................68

7.1.4 Verify the result.......................................................................................................................73

Unit 8 VPWS...................................................................................................................................................75

8.1 Practice: VPWS......................................................................................................................................75

8.1.1 Practice description.................................................................................................................75

8.1.2 Practice Planning....................................................................................................................75

iii
8.1.3 Practice steps and Examples...................................................................................................75

8.1.4 Verify the result.......................................................................................................................78

Unit 9 VPLS....................................................................................................................................................81

9.1 Practice: VPLS.......................................................................................................................................81

9.1.1 Practice description.................................................................................................................81

9.1.2 Practice Planning....................................................................................................................81

9.1.3 Practice steps and Examples...................................................................................................81

9.1.4 Verify the result.......................................................................................................................84

iv
Unit 1 Basic operation and configuration of
router

1.1 Practice 1: router basic configuration

1.1.1 Practice Description

1.1.1.1 Purposes

Grasp the basic operation and configuration of router.

1.1.1.2 Projects

 Basic configuration

 Interface configuration

1.1.1.3 Requirements

 Finish the practice independently

 Keep a detailed record of every step in the practice

1.1.1.4 Time arrangement

4 hours

1.1.1.5 Practice Prepare

Connect pc to router by console line and enter the configuration interface.

1.1.2 Practice Planning

Console line

Fig. 1.1-1

1
1.1.3 Practice Step and Record

1.1.3.1 Task 1:basic configuration

Enter configuration mode(

ZXR10>

ZXR10>enable

Password:

ZXR10#

ZXR10#configure terminal

Enter configuration commands, one per line, End with Ctrl-Z(

ZXR10(config)#

ZXR10(config)#interface gei-0/1/0/1

ZXR10(config-if)#

ZXR10(config)#router ospf 1

ZXR10(config-ospfv2)#

Show running configuration file

ZXR10#show running-config

Set system name

ZXR10(config)#hostname zte

Set system date and time

ZXR10#clock set 15:52:35 apr 18 2005

2
Unit 2 Routing basics

Set privileged mode password

ZXR10(config)#enable secret level 15 0 zte

Set logging on banner

ZXR10(config)#banner incoming c

Enter TEXT message. End with the character 'c'.

hello,zte

Save configuration file

ZXR10#write

Set Telnet user and password

ZXR10(config)#system-user

ZXR10(config-system-user)#username zte password zte authentication-template 1


authorization-template 1

ZXR10(config-system-user)#authentication-template 1

ZXR10(config-authen-temp)#bind-authentication-template 2001

ZXR10(config-authen-temp)#exit

ZXR10(config-system-user)#authorization-template 1

ZXR10(config-author-temp)#bind-authorization-template 2001

ZXR10(config-author-temp)#local-privilege-level 15

ZXR10(config-author-temp)#exit

ZXR10(config)#aaa-authentication-template 2001

ZXR10(config-aaa-authen-template)#aaa-authentication-type local

ZXR10(config-aaa-authen-template)#exit

3
ZXR10 M6000 Product Training Practice Manual

ZXR10(config)#aaa-authorization-template 2001

ZXR10(config-aaa-author-template)#aaa-authorization-type none

ZXR10(config-aaa-author-template)#exit

Show file directory(

ZXR10(config)#dir

ZXR10#cd /sysdisk0

ZXR10#dir

ZXR10#cd DATA0

ZXR10#dir

Copy and restore configuration file

 backup configuration file to TFTP Server

ZXR10#copy tftp root: startrun.dat //168.1.1.1/startrun.dat

 restore configuration file from TFTP Server

ZXR10#copy tftp //168.1.1.1/ startrun.dat root: startrun.dat

Show system information

ZXR10#show version

ZXR10#show software 0 21

Show system information

ZXR10#show version

ZXR10# show system-group

ZXR10#show fan

ZXR10#show hardware 0 0

4
Unit 2 Routing basics

Password recovery

a, Press any key to enter BOOT configuration interface when the following print
information appears

Press any key to stop autoboot:3

b. Press y when the following print information appears to modify start-up


parameters.

Do you want to manual config ? (Yy/Nn)y

c. Enter BOOT menu, press 1 and then press Enter.

BootMode Selection as follow:

0 - Auto boot

1 - Manual BOOT Config

2 - Show BOOT Config

? - Print this help list

[3GPlat Boot]: 1

d. Enter BOOT configuration interface.

In BOOT configuration interface, enter m6000 in FTP Password and FTP

Password Confirm. Enter the new distribution file name in File Name. Keep

the default settings in other configurations.

Config As SC? (Yy/Nn) : n y

Boot Mode(1: Local Flash;2: Net;3: Mpu-bootp): 2

Base MAC Addr:

0:d0:d0:77:8:0

Mac Total : 35

Local IP : 192.0.1.6

Net Mask : 255.255.255.0

Gateway IP : 192.0.1.8

5
ZXR10 M6000 Product Training Practice Manual

Server IP : 192.0.1.8

File Name : M6k_10_1.1.0.set

FTP Path :

FTP Username : m6000

FTP Password : ***** *****

FTP Password Confirm : *****

Serial Authenticate (Yy/Nn) : n

Enable Password : ******

1.1.3.2 Task 2:Interface configuration

enable/disable

ZXR10(config)#interface gei-0/3/0/8

ZXR10(config-if)#shutdown

ZXR10(config-if)#show ip interface gei-0/3/0/8

ZXR10(config-if)#no shutdown

ZXR10(config-if)#show ip interface gei-0/3/0/8

IP address configuration

ZXR10(config-if)#ip address 192.168.1.1 255.255.255.0

Show interface information

ZXR10#show interface

6
Unit 2 Routing basics

1.2 Summarizations and Questions

1.2.1 Summarizations

What is included in router basic configuration?

1.2.2 Questions

 How many kinds of configuration files are there in the router and their
difference?

 How to recover password?

 When the router can not boot because of the broken version file, what shall we
do?

 How to configure two ip addresses to an interface(When do we need to do this?

7
Unit 2 Routing basics

2.1 Practice : basic route configuration

2.1.1 Practice Description

2.1.1.1 Purposes

 Grasp the basic conception of routing

 Grasp the configuration of these types of routes:

1( Connected route

2( Static route

3( Default route

 Grasp the configuration of 802.1Q subinterface

2.1.1.2 Projects

 Configure IP addresses of the interfaces

 Configure static route

 Configure default route

2.1.1.3 Requirements

 Design the data according to network topology

 Cooperate with each other to finish the practice

 Keep a detailed record of all the steps

2.1.1.4 Time arrangement

2 hours

2.1.1.5 Practice Prepare

Connect the routers according to the topology.

9
2.1.2 Practice Planning

Fig. 2.1-2

2.1.3 Practice Step and Record

2.1.3.1 Task 1:configure IP addresses

 Configure PC IP address

 Ping each other to confirm the configuration and link is ok

 Configure IP addresses of all the interfaces on router A and router B

Related configuration commands:

ROUTER A configuration

ZXR10(config)#hostname R1

R1(config)#interface fei-0/0/0/1.1

R1(config-subif)#exit

10
Unit 2 Routing basics

R1(config)#vlan

R1(config-vlan)#interface fei-0/0/0/1.1

R1(config-subvlan-if)#encapsulation-dot1q 100

R1(config-subvlan-if)#exit

R1(config-vlan)#exit

R1(config)#interface fei-0/0/0/1.1

R1(config-subif)#ip address 10.1.1.1 255.255.255.0

R1(config-subif)#exit

R1(config)#interface fei-0/0/0/1.2

R1(config-subif)#exit

R1(config)#vlan

R1(config-vlan)#interface fei-0/0/0/1.2

R1(config-subvlan-if)#encapsulation-dot1q 200

R1(config-subvlan-if)#exit

R1(config-vlan)#exit

R1(config)#interface fei-0/0/0/1.2

R1(config-subif)#ip address 10.1.2.1 255.255.255.0

R1(config-subif)#exit

R1 (config)#interface fei-0/0/0/3

R1 (config-if)#ip address 10.1.3.1 255.255.255.0

R1 (config-if)#exit

R1 (config)#interface fei-0/0/0/2

R1 (config-if)#ip address 192.168.1.1 255.255.255.252

R1 (config-if)#exit

ROUTER B configuration

11
ZXR10 M6000 Product Training Practice Manual

ZXR10(config)#hostname R2

R2 (config)#interface fei-0/0/0/1.1

R2 (config-subif)#exit

R2 (config)#vlan

R2 (config-vlan)#interface fei-0/0/0/1.1

R2 (config-subvlan-if)#encapsulation-dot1q 100

R2 (config-subvlan-if)#exit

R2 (config-vlan)#exit

R2 (config)#interface fei-0/0/0/1.1

R2 (config-subif)#ip address 10.2.1.1 255.255.255.0

R2 (config-subif)#exit

R2 (config)#interface fei-0/0/0/1.2

R2 (config-subif)#exit

R2 (config)#vlan

R2 (config-vlan)#interface fei-0/0/0/1.2

R2 (config-subvlan-if)#encapsulation-dot1q 200

R2 (config-subvlan-if)#exit

R2 (config-vlan)#exit

R2 (config)#interface fei-0/0/0/1.2

R2 (config-subif)#ip address 10.2.2.1 255.255.255.0

R2 (config-subif)#exit

R2 (config)#interface fei-0/0/0/3

R2 (config-if)#ip address 10.2.3.1 255.255.255.0

R2 (config-if)#exit

R2 (config)#interface fei-0/0/0/2

R2 (config-if)#ip address 192.168.1.2 255.255.255.252

12
Unit 2 Routing basics

R2 (config-if)#exit

 Configure VLAN on router A and router B according to network topology

Before configuring any routes, confirm which two PCs can ping each other

Show route table to see which routes appear(

ZXR10#show ip forwarding route

2.1.3.2 Task 2:configure static routes

ROUTER A configuration

R1(config)#ip route 10.2.1.0 255.255.255.0 192.168.1.2

R1 (config)#ip route 10.2.2.0 255.255.255.0 192.168.1.2

R1 (config)#ip route 10.2.3.0 255.255.255.0 192.168.1.2

ROUTER B configuration

R2 (config)#ip route 10.1.1.0 255.255.255.0 192.168.1.1

R2 (config)#ip route 10.1.2.0 255.255.255.0 192.168.1.1

R2 (config)#ip route 10.1.3.0 255.255.255.0 192.168.1.1

2.1.3.3 Task 3:Configure default route

Use default route to replace static route to make the network work.

Related configuration commands(

ROUTER A configuration

ZXR10(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2

ROUTER B configuration

ZXR10(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1

13
ZXR10 M6000 Product Training Practice Manual

2.2 Summarizations and Questions

2.2.1 Summarizations

When configuring static routes, make sure all the segments appear in route table
otherwise some segments will be unreachable.

2.2.2 Questions

 When will connected routes appear in route table(

 What is the advantage of using default route and static route(

14
Unit 3 OSPF Configuration

3.1 Practice 1: Single area OSPF configuration

3.1.1 Practice Description

1.1.1.1 Purposes

 Understand ospf basic principle and working process, grasp ospf basic
configuration and steps

 Understand the function of router ID to ospf ( and the way to configure router
ID(automatically selected by system or named by people(

1.1.1.2 Projects

 Configure OSPF

 Configure loopback interface and reconfigure OSPF

 Check the result

1.1.1.3 Requirements

 Design the data according to network topology

 Cooperate with each other to finish the practice

 Keep a detailed record of all the steps

1.1.1.4 Time arrangement

2 hours

1.1.1.5 Practice Prepare

Connect the routers according to the topology.

Configure IP addresses of all the interfaces.

Make sure all the directly connected interfaces can ping each other.

15
3.1.2 Practice Planning

Fig 3.1-1 Single area OSPF configuration

3.1.3 Practice Step and Record

1.1.1.6 Task 1:configure OSPF

Target(All the routers can ping each other

Related configuration commands(

R1 configuration

R1(config)#interface fei-0/1/0/1

R1(config-if)#ip address 30.0.0.1 255.255.255.252

R1(config-if)#exit

R1(config)#router ospf 10

R1(config-ospfv2)#network 30.0.0.0 0.0.0.3 area 0

R1(config-ospfv2)#exit

R2 configuration

R2(config)#interface fei-0/1/0/1

R2(config-if)#ip address 30.0.0.2 255.255.255.252

R2(config-if)#exit

R2(config)#interface fei-0/1/0/2

R2(config-if)#ip address 30.0.1.2 255.255.255.252

16
Unit 7 BGP/MPLS VPN

R2(config-if)#exit

R2(config)#router ospf 10

R2(config-ospfv2)#network 30.0.0.0 0.0.0.3 area 0

R2(config-ospfv2)#network 30.0.1.0 0.0.0.3 area 0

R2(config-ospfv2)#exit

R3 configuration

R3(config)#interface fei-0/1/0/1

R3(config-if)#ip address 30.0.1.1 255.255.255.252

R3(config-if)#exit

R3(config)#router ospf 10

R3(config-ospfv2)#network 30.0.1.0 0.0.0.3 area 0

R3(config-ospfv2)#exit

After configuration ( use following commands to check the status and parameters of
ospf((

show ip forwarding route show route table

show ip ospf neighbor show ospf neighbor

1.1.1.7 Task 2:configure loopback interface and reconfigure OSPF

Target ( configure loopback address ( configure router-id ( add loopback interface into
ospf(so all the routers can ping other routers’ loopback addresses(

Related network topology as following(

Fig 3.1-2 configure loopback interface and reconfigure OSPF

Related configuration commands(

17
ZXR10 M6000 Product Training Practice Manual

R1 configuration

R1(config)#interface loopback1

R1(config-if)#ip adderss 1.1.1.1 255.255.255.255

R1(config-if)#exit

R1(config)#router ospf 10

R1(config- ospfv2)#network 1.1.1.1 0.0.0.0 area 0

R1(config- ospfv2)# router-id 1.1.1.1

R1(config-ospfv2)#exit

R2 configuration

R2(config)#interface loopback1

R2(config-if)#ip adderss 1.1.1.2 255.255.255.255

R2(config-if)#exit

R2(config)#router ospf 10

R2(config- ospfv2)#network 1.1.1.2 0.0.0.0 area 0

R2(config- ospfv2)# router-id 1.1.1.2

R2(config-ospfv2)#exit

R3 configuration

R3(config)#interface loopback1

R3(config-if)#ip adderss 1.1.1.3 255.255.255.255

R3(config-if)#exit

R3(config)#router ospf 10

R3(config- ospfv2)#network 1.1.1.3 0.0.0.0 area 0

R3(config- ospfv2)# router-id 1.1.1.3

R3(config-ospfv2)#exit

After configuration ( use following commands to check the status and parameters of
ospf((

18
Unit 7 BGP/MPLS VPN

show ip forwarding route show route table

show ip ospf neighbor show ospf neighbor

Consider(Now we specify router ID and just now we didn’t, is there any change with
the router ID?

1.1.1.8 Task 3: Check the result

After enable ospf(use following command to debug ospf(

ZXR10# debug ip ospf adj

Observe the working process of ospf

3.2 Practice 2: Multi area OSPF configuration

3.2.1 Practice Description

1.1.1.9 Purposes

 Understand ospf (area) basic principles and working process (grasp multi-area
basic configuration and steps

 Configure route summary as to multi-area and understand the function and


purpose of route summary.

1.1.1.10 Projects

 Configure multi-area OSPF

 Configure route summary

1.1.1.11 Requirements

 Design the data according to network topology

 Cooperate with each other to finish the practice

 Keep a detailed record of all the steps

1.1.1.12 Time arrangement

1 hours

19
ZXR10 M6000 Product Training Practice Manual

1.1.1.13 Practice Prepare

Connect the routers according to the topology.

Configure IP addresses of all the interfaces.

Make sure all the directly connected interfaces can ping each other.

3.2.2 Practice Planning

Fig 3.2-3 Multi area OSPF configuration

3.2.3 Practice Step and Record

1.1.1.14 Task 1:configure multi-area OSPF

Target (area 1 is common areas(make sure all the routers can ping each other

Related configuration commands(

R1 configuration

R1(config)# interface loopback1

R1(config-if)# ip adderss 1.1.1.1 255.255.255.255

R1(config-if)# exit

R1(config)# interface fei-0/1/0/1

R1(config-if)# ip address 30.0.0.2 255.255.255.252

R1(config-if)# exit

R1(config)# interface fei-0/1/0/2

R1(config-if)# ip address 2.2.2.5 255.255.255.252

20
Unit 7 BGP/MPLS VPN

R1(config-if)# exit

R1(config)# interface fei-0/1/0/3

R1(config-if)# ip address 2.2.2.1 255.255.255.252

R1(config-if)# exit

R1(config)# router ospf 1

R1(config-ospfv2)# router-id 1.1.1.1

R1(config-ospfv2)# network 30.0.0.0 0.0.0.3 area 1

R1(config-ospfv2)# network 2.2.2.0 0.0.0.3 area 1

R1(config-ospfv2)# network 2.2.2.4 0.0.0.3 area 1

R1(config-ospfv2)# network 1.1.1.1 0.0.0.0 area 1

R1(config-ospfv2)# exit

R2 configuration

R2(config)# interface loopback1

R2(config-if)# ip adderss 1.1.1.2 255.255.255.255

R2(config-if)# exit

R2(config)# interface fei-0/1/0/1

R2(config-if)# ip address 30.0.0.1 255.255.255.252

R2(config-if)# exit

R2(config)# interface fei-0/1/0/2

R2(config-if)# ip address 30.0.1.1 255.255.255.252

R2(config-if)# exit

R2(config)# router ospf 1

R2(config-ospfv2)# router-id 1.1.1.2

R2(config-ospfv2)# network 30.0.0.0 0.0.0.3 area 1

R2(config-ospfv2)# network 30.0.1.0 0.0.0.3 area 0

R2(config-ospfv2)# network 1.1.1.2 0.0.0.0 area 0

R2(config-ospfv2)# exit

21
ZXR10 M6000 Product Training Practice Manual

R3 configuration

R3(config)# interface loopback1

R3(config-if)# ip adderss 1.1.1.3 255.255.255.255

R3(config-if)# exit

R3(config)# interface fei-0/1/0/1

R3(config-if)# ip address 30.0.1.2 255.255.255.252

R3(config-if)# exit

R3(config)# router ospf 1

R3(config-ospfv2)# router-id 1.1.1.3

R3(config-ospfv2)# network 30.0.1.0 0.0.0.3 area 0

R3(config-ospfv2)# network 1.1.1.3 0.0.0.0 area 0

R3(config-ospfv2)# exit

1.1.1.15 Task 2:configure route summary

Target(configure route summary in area 1(summary address is 2.2.2.0/29

Configuration hints(

 Route summary only needs to be done on R2 (route summary only needs to be


done on ABR(

 Route summary must be configure as advertised ( otherwise the neighbors can


not learn related LSA

Related configuration commands(

R2(config)# router ospf 1

R2(config-ospf)# area 1 range 2.2.2.0 255.255.255.248 summary-link

R2(config-ospf)#exit

After configuration(check the configuration results(

 Check the route table on R1,R2,R3 to see if there are entries of 2.2.2.0/29

22
Unit 7 BGP/MPLS VPN

 Check the route table on R1,R2,R3 to see if there are entries of 2.2.2.4/30.

Consider(give explanation to the above phenomenon.

3.3 Practice: Route redistribution

3.3.1 Practice Description

1.1.1.16 Purposes

 Understand simple route redistribution in OSPF

1.1.1.17 Projects

 Configure route redistribution in all kinds of OSPF areas

1.1.1.18 Requirements

 Inject static route and directly connected route on R1 to OSPF

1.1.1.19 Time arrangement

1 hours

1.1.1.20 Practice Prepare

Connect the routers according to the topology.

Configure IP addresses on all the interfaces

Make sure the directed connected two interfaces can ping each other

3.3.2 Practice Planning

23
ZXR10 M6000 Product Training Practice Manual

3.3.3 Practice Step and Record

1.1.1.21 Task 1

OSPF protocol is enabled on the interfaces of R1,R2 and R3.

Redistribute user network routes on R2,R3

R1 Configuration

R1(config)# interface loopback1

R1(config-if)# ip adderss 1.1.1.1 255.255.255.255

R1(config-if)# exit

R1(config)# interface fei-0/1/0/1

R1(config-if)# ip address 30.0.0.2 255.255.255.252

R1(config-if)# exit

R1(config)# interface fei-0/1/0/2

R1(config-if)# ip address 2.2.2.5 255.255.255.252

R1(config-if)# exit

R1(config)# interface fei-0/1/0/3

R1(config-if)#i p address 2.2.2.1 255.255.255.252

R1(config-if)# exit

R1(config)# router ospf 1

R1(config-ospfv2)# router-id 1.1.1.1

R1(config-ospfv2)# network 30.0.0.0 0.0.0.3 area 1

R1(config-ospfv2)# redistribute connected

R1(config-ospfv2)# exit

R2 Configuration

R2(config)# interface loopback1

R2(config-if)# ip adderss 1.1.1.2 255.255.255.255

R2(config-if)# exit

24
Unit 7 BGP/MPLS VPN

R2(config)# interface fei-0/1/0/1

R2(config-if)# ip address 30.0.0.1 255.255.255.252

R2(config-if)# exit

R2(config)# interface fei-0/1/0/2

R2(config-if)# ip address 30.0.1.1 255.255.255.252

R2(config-if)# exit

R2(config)# router ospf 1

R2(config-ospfv2)# router-id 1.1.1.2

R2(config-ospfv2)# network 30.0.0.0 0.0.0.3 area 1

R2(config-ospfv2)# network 30.0.1.0 0.0.0.3 area 0

R2(config-ospfv2)#exit

R3 Configuration

R3(config)# interface loopback1

R3(config-if)# ip adderss 1.1.1.3 255.255.255.255

R3(config-if)# exit

R3(config)# interface fei-0/1/0/1

R3(config-if)# ip address 30.0.1.2 255.255.255.252

R3(config-if)# exit

R3(config)# router ospf 1

R3(config-ospf-v2)# router-id 1.1.1.3

R3(config-ospf-v2)# network 30.0.1.0 0.0.0.3 area 0

R3(config-ospf-v2)#exit

After configuration(check the configuration results(

 Check the route table on R1,R2,R3 to see if there are subnetwork


2.2.2.0/30(2.2.2.4/30?

 Consider(give explanation to the above phenomenon.

25
ZXR10 M6000 Product Training Practice Manual

3.4 Practice 3: Multi area OSPF configuration ( Stub Area ( Totally


Stubby Area(

3.4.1 Practice Description

1.1.1.22 Purposes

 Understand ospf area types and functions(basic working principles and process
of Stub Area ( Totally Stubby Area ( grasp configuration of ospf Stub
Area(Totally Stubby Area

1.1.1.23 Projects

 Configure OSPF stub area

 Configure OSPF totally stubby area

1.1.1.24 Requirements

 Design the data according to network topology

 Cooperate with each other to finish the practice

 Keep a detailed record of all the steps

1.1.1.25 Time arrangement

2 hours

1.1.1.26 Practice Prepare

Connect the routers according to the topology.

Configure IP addresses of all the interfaces.

Make sure all the directly connected interfaces can ping each other.

26
Unit 7 BGP/MPLS VPN

3.4.2 Practice Planning

Fig 3.4-4 OSPF STUB Area Configuration

3.4.3 Practice Step and Record

1.1.1.27 Task 1:configure OSPF stub area

Target ( configure area 1 as stub area ( make sure all the routers can ping each other
include PC.

Preparations(In order to observe valid result of practice (we need to configure on R1


to import route in advance ( to produce outside route ( ( R1 configuration are as
following(

R1(config)# interface loopback1

R1(config-if)# ip adderss 1.1.1.1 255.255.255.255

R1(config-if)# exit

R1(config)# interface fei-0/1/0/1

R1(config-if)# ip address 30.0.0.1 255.255.255.252

R1(config-if)# exit

R1(config)# interface fei-0/1/0/2

27
ZXR10 M6000 Product Training Practice Manual

R1(config-if)# ip address 30.0.2.1 255.255.255.252

R1(config-if)# exit

R1(config)# router ospf 10

R1(config-ospfv2)# router-id 1.1.1.1

R1(config-ospfv2)# network 30.0.0.0 0.0.0.3 area 0

R1(config-ospfv2)# redistribute connected

R1(config-ospfv2)# exit

R2 Configuartion:

R2(config)# interface loopback1

R2(config-if)# ip adderss 1.1.1.2 255.255.255.255

R2(config-if)# exit

R2(config)# interface fei-0/1/0/1

R2(config-if)# ip address 30.0.0.2 255.255.255.252

R2(config-if)# exit

R2(config)# interface fei-0/1/0/2

R2(config-if)# ip address 30.0.1.2 255.255.255.252

R2(config-if)# exit

R2(config)# router ospf 10

R2(config-ospfv2)# router-id 1.1.1.2

R2(config-ospfv2)# network 30.0.0.0 0.0.0.3 area 0

R2(config-ospfv2)# network 30.0.1.0 0.0.0.3 area 1

R2(config-ospfv2)# area 1 stub

R2(config-ospfv2)#exit

R3 Configuartion:

R3(config)# interface loopback1

R3(config-if)# ip adderss 1.1.1.3 255.255.255.255

R3(config-if)# exit

28
Unit 7 BGP/MPLS VPN

R3(config)# interface fei-0/1/0/1

R3(config-if)# ip address 30.0.1.2 255.255.255.252

R3(config-if)# exit

R3(config)# router ospf 10

R3(config-ospfv2)# router-id 1.1.1.4

R3(config-ospfv2)# network 30.0.1.0 0.0.0.3 area 1

R3(config-ospfv2)# area 1 stub

R3(config-ospfv2)# exit

 Pay attention to the coherence of all the routers in area 1

Related configuration commands(

R2(config-router)#area 1 stub

R3(config-router)#area 1 stub

Observe resultes(

Show R2 ( R3 route table ( check the changes in route table before and after
configuring stub area(focus on the following points(

 Does the outside segment appear in route table(30.0.2.0/30)?

 Dose the inter-area segment


( 30.0.0.0/30 ( 1.1.1.1/32 ( 1.1.1.2/32 ( 1.1.1.3/32 ( 30.0.1.0/30 ( appear in route
table

 Does the default route appear in route table

Explain the above phenomenon(and explain the function of default route

1.1.1.28 Task 2:configure OSPF totally stubby area

Target(configure area 1 as totally stub area (make sure all the routers can ping each
other, and can access 30.0.2.0/30 segment.

Configuration hints(

 Keep the configuration on the routers in area 1 in step 1

 Pay attention to the [no-summary] parameter

29
ZXR10 M6000 Product Training Practice Manual

Related configuration commands(

R2(config-ospfv2)#area 1 stub no-summary

R3(config- ospfv2)#area 1 stub

Observe results(

Show route table on R2,R3 ( check the changes in route table before and after
configuring totally stubby area(focus on the following points(

 Does the outside segment(30.0.2.0/304(appear in the route table?

 Does the inter-area


segment(30.0.0.0/30(1.1.1.1/32(1.1.1.2/32(1.1.1.3/32(30.0.1.0/30(appear?

 Does the default route appear in route talbe?

Explain the above phenomenon(and explain the function of default route

30
Unit 4 M6000 ACL Configuration

4.1 Practice: ACL

4.1.1 Practice Description

4.1.1.1 Purposes

 Understand the basic conception and working principles of ACL

 Grasp the configuration steps of ACL

4.1.1.2 Projects

 Configure ACL

4.1.1.3 Requirements

 Design the data according to network topology

 Keep a detailed record of all the steps

4.1.1.4 Time arrangement

2 hours

4.1.1.5 Practice Prepare

Connect the routers according to the topology.

Configure IP addresses on all the interfaces

Make sure the directed connected two interfaces can ping each other

31
4.1.2 Practice Planning

Fig 4.1-5

PC1 and PC2 both send Telnet requests to R1 through R2, but R1 only wants to receive
the Telnet request coming from PC1 but not PC2.

To realize the requirement of R1, bind ACL to ingress of gei-0/1/0/1 to filter the Telnet
packets coming from PC2 (The ACL also can be bound to egress of gei-0/1/0/2).

4.1.3 Practice Step and Record

4.1.3.1 Configuration

R2configuration(

R2(config)#ipv4-access-list test

R2(config-ipv4-acl)#rule 10 deny tcp 10.20.30.20 0.0.0.0 eq telnet 30.20.10.1 0.0.0.0

R2(config-ipv4-acl)#rule 20 permit any

R2(config-ipv4-acl)#exit

R2(config)#ipv4-access-group interface gei-0/1/0/1 ingress test

4.1.3.2 Verification

32
Unit 7 BGP/MPLS VPN

Show ACL list and its brief information

R2(config)#show ipv4-access-lists brief

Show the binding information(

R2(config)#show ipv4-access-groups

R2(config)#show ipv4-access-lists name test

R2(config)#show ipv4-access-lists name test brief

R2(config)#show ipv4-access-lists

4.2 Summarizations and Questions

4.2.1 Summarizations

It’s different to apply acl to interface and telnet application.

4.2.2 Questions

 In the above practice(we should use inbound or outbound (If we use the other
how to configure(

 In the above practice(what should be used, standar acl or extend acl(If we use
the other how to configure(

33
Unit 5 BGP

5.1 Practice: IBGP neighbor

5.1.1 Practice description

5.1.1.1 Purpose
Understand BGP theory.

Grasp the configuration of BGP and the watch on commands.

5.1.1.2 Practice requirement

Understand BGP theory.

5.1.1.3 Time arrangement

2 hours.

5.1.1.4 Practice preparations

Connect the equipments according to the topology.

5.1.2 Practice Planning

5.1.3 Practice steps and Record

5.1.3.1 Step 1

R1 configuration(

ZXR10#configure terminal

ZXR10(config)#hostname R1

35
R1(config)# interface fei-0/1/0/1

R1(config-if)#ip address 10.1.1.2 255.255.255.252

R1(config-if)#exit

R1(config)# interface loopback1

R1(config-if)#ip address 1.1.1.1 255.255.255.255

R1(config-if)#exit

R1(config)# router bgp 100

R1(config-bgp)# neighbor 10.1.1.1 remote-as 100 // set up IBGP neighbor in AS100

R1(config- bgp)#neighbor 10.1.1.1 activate // this is a default setting

R1(config- bgp)#network 1.1.1.1 255.255.255.255

R1(config- bgp)#exit

R2 configuration(

ZXR10#configure terminal

ZXR10(config)#hostname R2

R2(config)# interface fei-0/1/0/1

R2(config-if)#ip address 10.1.1.1 255.255.255.252

R2(config-if)#exit

R2(config)# interface loopback1

R2(config-if)#ip address 1.1.1.2 255.255.255.255

R2(config-if)#exit

R2(config)# router bgp 100

R2(config- bgp)# neighbor 10.1.1.2 remote-as 100

R2(config- bgp)#neighbor 10.1.1.2 activate

R2(config- bgp)#network 1.1.1.2 255.255.255.255

R2(config- bgp)#exit

36
Unit 7 BGP/MPLS VPN

use loopback interface to setup IBGP neighbor:

R2 configuration(

R2(config)# router bgp 100

R2(config- bgp)#no neighbor 10.1.1.2

R2(config- bgp)# neighbor 1.1.1.1 remote-as 100

R2(config- bgp)# neighbor 1.1.1.1 activate

R2(config- bgp)# neighbor 1.1.1.1 update-source loopback1 // assign loopback address


as the source address

R2(config- bgp)#exit

R2(config)#ip route 1.1.1.1 255.255.255.255 10.1.1.2 // you need to guarantee the 2


loopback address can be ping each other.

R1 configuration(

R1(config)# router bgp 100

R1(config- bgp)#no neighbor 10.1.1.1

R1(config- bgp)# neighbor 1.1.1.2 remote-as 100

R1(config- bgp)# neighbor 1.1.1.2 activate

R1(config- bgp)# neighbor 1.1.1.2 update-source loopback1

R1(config- bgp)#exit

R1(config)#ip route 1.1.1.2 255.255.255.255 10.1.1.1

5.1.3.2 Verification

R1(config)#show running-config | begin bgp

router bgp 100

network 1.1.1.1 255.255.255.255

neighbor 1.1.1.2 remote-as 100

neighbor 1.1.1.2 activate

neighbor 1.1.1.2 update-source loopback1

37
ZXR10 M6000 Product Training Practice Manual

Use command: show ip bgp neighbor to the IBGP neighbor status

R1(config)# show ip bgp neighbor

BGP neighbor is 10.1.1.1, remote AS 100, internal link

BGP version 4, remote router ID 1.1.1.2

BGP state = Established, up for 00:03:50 // BGP’s status is Established, means the
neighbor relations is successfully setup.

hold time is 90 seconds, keepalive interval is 30 seconds

Neighbor capabilities:

Route refresh: advertised and received

Address family IPv4 Unicast: advertised and received

All received 9 messages

0 updates, 0 errs

1 opens, 0 errs

8 keepalives

0 vpnv4 refreshs, 0 ipv4 refreshs, 0 errs

0 notifications, 0 other errs

After last established received 7 messages

0 updates, 0 errs

0 opens, 0 errs

7 keepalives

0 vpnv4 refreshs, 0 ipv4 refreshs, 0 errs

0 notifications, 0 other errs

All sent 9 messages

0 updates, 1 opens, 8 keepalives

0 vpnv4 refreshs, 0 ipv4 refreshs, 0 notifications

After last established sent 7 messages

38
Unit 7 BGP/MPLS VPN

0 updates, 0 opens, 7 keepalives

0 vpnv4 refreshs, 0 ipv4 refreshs, 0 notifications

For address family: IPv4 Unicast

All received nlri 0, unnlri 0, 0 accepted prefixes

All sent nlri 0, unnlri 0, 0 advertised prefixes

maximum limit 4294967295

Minimum time between advertisement runs is 30 seconds

Minimum time between origin runs is 15 seconds

For address family: VPNv4 Unicast no activate

All received nlri 0, unnlri 0, 0 accepted prefixes

All sent nlri 0, unnlri 0, 0 advertised prefixes

maximum limit 4294967295

Connections established 1

Local host: 10.1.1.2, Local port: 1024

Foreign host: 10.1.1.1, Foreign port: 179

If use loopback, the last 2 lines will be:

Local host: 1.1.1.2, Local port: 179

Foreign host: 1.1.1.1, Foreign port: 1026

You can also use command: show ip bgp summary to check:

R2#show ip bgp summary

Neighbor Ver As MsgRcvd MsgSend Up/Down(s) State

10.1.1.2 4 100 1 1 00:00:37 Established

39
ZXR10 M6000 Product Training Practice Manual

5.2 Practice: EBGP neighbor

5.2.1 Practice description

5.2.1.1 Purpose
Understand BGP theory.

Grasp the configuration of BGP and the watch on commands.

5.2.1.2 Practice requirement

Understand BGP theory.

5.2.1.3 Time arrangement

2 hours.

5.2.1.4 Practice preparations

Connect the equipments according to the topology.

5.2.2 Practice Planning

5.2.3 Practice steps and Record

5.2.3.1 Step 1

R1 Configuration

ZXR10#configure terminal

ZXR10(config)#hostname R1

R1(config)# interface fei-0/1/0/1

R1(config-if)#ip address 10.1.1.2 255.255.255.252

R1(config-if)#exit

40
Unit 7 BGP/MPLS VPN

R1(config)# interface loopback1

R1(config-if)#ip address 1.1.1.1 255.255.255.255

R1(config-if)#exit

R1(config)# router bgp 100

R1(config- bgp)# neighbor 10.1.1.1 remote-as 200

R1(config- bgp)#neighbor 10.1.1.1 activate

R1(config- bgp)#network 1.1.1.1 255.255.255.255

R1(config- bgp)#exit

R2 Configuration

ZXR10#configure terminal

ZXR10(config)#hostname R2

R2(config)# interface fei-0/1/0/1

R2(config-if)#ip address 10.1.1.1 255.255.255.252

R2(config-if)#exit

R2(config)# interface loopback1

R2(config-if)#ip address 1.1.1.2 255.255.255.255

R2(config-if)#exit

R2(config)# router bgp 200

R2(config- bgp)# neighbor 10.1.1.2 remote-as 100

R2(config- bgp)#neighbor 10.1.1.2 activate

R2(config- bgp)#network 1.1.1.2 255.255.255.255

R2(config- bgp)#exit

5.2.3.2 Verification

Use command: show ip bgp neighbor to the EBGP neighbor status

R2(config)# show ip bgp neighbor

41
ZXR10 M6000 Product Training Practice Manual

BGP neighbor is 10.1.1.2, remote AS 100, external link

BGP version 4, remote router ID 1.1.1.1

BGP state = Established, up for 00:01:06

hold time is 90 seconds, keepalive interval is 30 seconds

Neighbor capabilities:

Route refresh: advertised and received

Address family IPv4 Unicast: advertised and received

All received 3 messages

0 updates, 0 errs

1 opens, 0 errs

2 keepalives

0 vpnv4 refreshs, 0 ipv4 refreshs, 0 errs

0 notifications, 0 other errs

After last established received 1 messages

0 updates, 0 errs

0 opens, 0 errs

1 keepalives

0 vpnv4 refreshs, 0 ipv4 refreshs, 0 errs

0 notifications, 0 other errs

All sent 3 messages

0 updates, 1 opens, 2 keepalives

0 vpnv4 refreshs, 0 ipv4 refreshs, 0 notifications

After last established sent 1 messages

0 updates, 0 opens, 1 keepalives

0 vpnv4 refreshs, 0 ipv4 refreshs, 0 notifications

For address family: IPv4 Unicast

All received nlri 0, unnlri 0, 0 accepted prefixes

42
Unit 7 BGP/MPLS VPN

All sent nlri 0, unnlri 0, 0 advertised prefixes

maximum limit 4294967295

Minimum time between advertisement runs is 30 seconds

Minimum time between origin runs is 15 seconds

For address family: VPNv4 Unicast no activate

All received nlri 0, unnlri 0, 0 accepted prefixes

All sent nlri 0, unnlri 0, 0 advertised prefixes

maximum limit 4294967295

Connections established 1

Local host: 10.1.1.1, Local port: 1034

Foreign host: 10.1.1.2, Foreign port: 179

You can also use command: show ip bgp summary to check:

R2(config)#show ip bgp summary

Neighbor Ver As MsgRcvd MsgSend Up/Down(s) State

10.1.1.2 4 100 2 2 00:01:25 Established

5.3 Practice: EBGP neighbor (multi-hops)

5.3.1 Practice description

5.3.1.1 Purpose
Understand BGP theory.

Grasp the configuration of BGP and the watch on commands.

5.3.1.2 Practice requirement

Understand BGP theory.

5.3.1.3 Time arrangement

2 hours.

5.3.1.4 Practice preparations

Connect the equipments according to the topology.

43
ZXR10 M6000 Product Training Practice Manual

5.3.2 Practice Planning

5.3.3 Practice steps and Record

5.3.3.1 Step 1

R1 Configuration(

ZXR10#configure terminal

ZXR10(config)#hostname R1

R1(config)# interface fei-0/1/0/1

R1(config-if)#ip address 10.1.1.2 255.255.255.252

R1(config-if)#exit

R1(config)# interface fei-0/1/2/1

R1(config-if)#ip address 10.1.0.1 255.255.255.252

R1(config-if)#exit

R1(config)# interface loopback1

R1(config-if)#ip address 1.1.1.1 255.255.255.255

R1(config-if)#exit

R1(config)# ip route 1.1.1.2 255.255.255.255 10.1.1.1 // use static route to guarantee


the 2 neighbors address can ping each other.

44
Unit 7 BGP/MPLS VPN

R1(config)# router bgp 100

R1(config- bgp)# neighbor 1.1.1.2 remote-as 200 //use loopback address to setup
EBGP neighbor

R1(config- bgp)# neighbor 1.1.1.2 activate

R1(config- bgp)# neighbor 1.1.1.2 ebgp-multihop ttl 8

R1(config- bgp)# neighbor 1.1.1.2 update-source loopback1

R1(config- bgp)# neighbor 10.1.0.2 remote-as 100

R1(config- bgp)#network 1.1.1.1 255.255.255.255

R1(config- bgp)#exit

R2 Configuration(

ZXR10#configure terminal

ZXR10(config)#hostname R2

R2(config)# interface fei-0/1/0/1

R2(config-if)#ip address 10.1.1.1 255.255.255.252

R2(config-if)#exit

R2(config)# interface loopback1

R2(config-if)#ip address 1.1.1.2 255.255.255.255

R2(config-if)#exit

R2(config)# ip route 1.1.1.1 255.255.255.255 10.1.1.2

R2(config)# router bgp 200

R2(config- bgp)# neighbor 1.1.1.1 remote-as 100

R2(config- bgp)# neighbor 1.1.1.1 activate

R2(config- bgp)# neighbor 1.1.1.1 ebgp-multihop ttl 8

R2(config- bgp)# neighbor 1.1.1.1 update-source loopback1

R2(config- bgp)# network 1.1.1.2 255.255.255.255

R2(config- bgp)#exit

45
ZXR10 M6000 Product Training Practice Manual

R3 Configuration(

ZXR10#configure terminal

ZXR10(config)#hostname R3

R3(config)# interface fei-0/1/0/1

R3(config-if)#ip address 10.1.0.2 255.255.255.252

R3(config-if)#exit

R3(config)# interface loopback1

R3(config-if)#ip address 1.1.1.3 255.255.255.255

R3(config-if)#exit

R3(config)# router bgp 100

R3(config- bgp)# neighbor 10.1.0.1 remote-as 100

R3(config- bgp)# neighbor 10.1.0.1 activate

R3(config- bgp)# network 1.1.1.3 255.255.255.255

R3(config- bgp)#exit

5.3.3.2 Verification

Use command: show ip bgp neighbor/ show ip bgp summary to check the EBGP
neighbor status

46
Unit 7 BGP/MPLS VPN

5.4 Practice: BGP route advertisement and redistribution

5.4.1 Practice description

5.4.1.1 Purpose
Understand BGP theory.

Grasp the configuration of BGP and the watch on commands.

5.4.1.2 Practice requirement

Understand BGP theory.

5.4.1.3 Time arrangement

2 hours.

5.4.1.4 Practice preparations

Connect the equipments according to the topology.

5.4.2 Practice steps and Record

5.4.2.1 Step 1

1( OSPF will run on router R1and R3(

2( Setup EBGP neighbor over R1 and R2(

3( R1 redistribute OSPF routes(

R3 Configuration(

47
ZXR10 M6000 Product Training Practice Manual

ZXR10#configure terminal

ZXR10(config)#hostname R3

R3(config)# interface fei-0/1/0/1

R3(config-if)#ip address 10.1.0.2 255.255.255.252

R3(config-if)#exit

R3(config)# interface loopback1

R3(config-if)#ip address 1.1.1.3 255.255.255.255

R3(config-if)#exit

R3(config)#router ospf 1

R3(config- ospfv2)#network 1.1.1.3 0.0.0.0 area 0.0.0.0

R3(config- ospfv2)#network 10.1.0.0 0.0.0.3 area 0.0.0.0

R3(config- ospfv2)#exit

R1 Configuration(

ZXR10#configure terminal

ZXR10(config)#hostname R1

R1(config)# interface fei-0/1/0/1

R1(config-if)#ip address 10.1.1.2 255.255.255.252

R1(config-if)#exit

R1(config)# interface fei_0/1/2/1

R1(config-if)#ip address 10.1.0.1 255.255.255.252

R1(config-if)#exit

R1(config)# interface loopback1

R1(config-if)#ip address 1.1.1.1 255.255.255.255

R1(config-if)#exit

R1(config)#router ospf 1

R1(config- ospfv2)# network 1.1.1.1 0.0.0.0 area 0.0.0.0

48
Unit 7 BGP/MPLS VPN

R1(config- ospfv2)# network 10.1.0.0 0.0.0.3 area 0.0.0.0

R1(config- ospfv2)#exit

R1(config)# router bgp 100

R1(config- bgp)# neighbor 10.1.1.1 remote-as 200

R1(config- bgp)# neighbor 10.1.1.1 activate

R1(config- bgp)#exit

R2 Configuration(

ZXR10#configure terminal

ZXR10(config)#hostname R2

R2(config)# interface fei-0/1/0/1

R2(config-if)#ip address 10.1.1.1 255.255.255.252

R2(config-if)#exit

R2(config)# interface loopback1

R2(config-if)#ip address 1.1.1.2 255.255.255.255

R2(config-if)#exit

R2(config)# router bgp 200

R2(config- bgp)# neighbor 10.1.1.2 remote-as 100

R2(config- bgp)# neighbor 10.1.1.2 activate

R2(config- bgp)# network 1.1.1.2 255.255.255.255

5.4.2.2 Verification

Use show ip forwarding route to check on R2:

R2#show ip forwarding route

IPv4 Routing Table(

Dest Mask Gw Interface Owner pri metric

1.1.1.2 255.255.255.255 1.1.1.2 loopback1 address 0 0

10.1.1.0 255.255.255.252 10.1.1.1 fei-0/1/0/1 direct 0 0

49
ZXR10 M6000 Product Training Practice Manual

10.1.1.1 255.255.255.255 10.1.1.1 fei-0/1/0/1 address 0 0

5.4.2.3 Route Redistribution

Then do the route redistribution.

R1 Configuration(

R1(config)# router bgp 100

R1(config- bgp)#redistribute ospf-int

R1(config- bgp)# redistribute connect

check R2:

R2# show ip forwarding route

IPv4 Routing Table(

Dest Mask Gw Interface Owner pri metric

1.1.1.1 255.255.255.255 10.1.1.2 fei-0/1/0/1 bgp 20 0

1.1.1.2 255.255.255.255 1.1.1.2 loopback1 address 0 0

1.1.1.3 255.255.255.255 10.1.1.2 fei-0/1/0/1 bgp 20 0

10.1.1.0 255.255.255.252 10.1.1.1 fei-0/1/0/1 direct 0 0

10.1.1.1 255.255.255.255 10.1.1.1 fei-0/1/0/1 address 0 0

R1# show ip forwarding route

IPv4 Routing Table:

Dest Mask Gw Interface Owner pri metric

1.1.1.1 255.255.255.255 1.1.1.1 loopback1 address 0 0

1.1.1.2 255.255.255.255 10.1.1.1 fei-0/1/0/1 bgp 20 0

1.1.1.3 255.255.255.255 10.1.0.2 fei-0/1/0/1 ospf 110 20

10.1.0.0 255.255.255.252 10.1.0.1 fei-0/1/2/1 direct 0 0

10.1.0.1 255.255.255.255 10.1.0.1 fei-0/1/2/1 address 0 0

50
Unit 7 BGP/MPLS VPN

10.1.1.0 255.255.255.252 10.1.1.2 fei-0/1/0/1 direct 0 0

10.1.1.2 255.255.255.255 10.1.1.2 fei-0/1/0/1 address 0 0

51
ZXR10 M6000 Product Training Practice Manual

52
Unit 7 BGP/MPLS VPN

5.5 Practice: BGP synchronization

5.5.1 Practice description

5.5.1.1 Purpose
Understand BGP theory.

Grasp the configuration of BGP and the watch on commands.

5.5.1.2 Practice requirement

Understand BGP theory.

5.5.1.3 Time arrangement

2 hours.

5.5.1.4 Practice preparations

Connect the equipments according to the topology.

5.5.2 Practice Planning

5.5.3 Practice steps and Record

5.5.3.1 Step 1

Use static route on R2 and R3 ( , guarantee that R2 BGP interface and R3 BGP
interface can ping each other through R1 ( R2 and R3 are IBGP neighbors, No BGP
over R1.
53
ZXR10 M6000 Product Training Practice Manual

R1:

Just config the interface addresses.

R1 Configuration(

ZXR10#configure terminal

ZXR10(config)#hostname R1

R1(config)# interface fei-0/1/0/1

R1(config-if)#ip address 10.1.1.1 255.255.255.252

R1(config-if)#exit

R1(config)# interface fei-0/1/2/1

R1(config-if)#ip address 10.1.0.1 255.255.255.252

R1(config-if)#exit

R1(config)# interface loopback1

R1(config-if)#ip address 1.1.1.1 255.255.255.255

R1(config-if)#exit

R2:

ZXR10#configure terminal

ZXR10(config)#hostname R2

R2(config)# interface fei-0/1/0/1

R2(config-if)#ip address 10.1.1.2 255.255.255.252

R2(config-if)#exit

R2(config)# interface loopback1

R2(config-if)#ip address 1.1.1.2 255.255.255.255

R2(config-if)#exit

R2(config)# ip route 10.1.0.0 255.255.255.252 10.1.1.1

R2(config)# router bgp 100

R2(config- bgp)# redistribute connected

54
Unit 7 BGP/MPLS VPN

R2(config- bgp)# neighbor 10.1.0.2 remote-as 100

R2(config- bgp)# neighbor 10.1.0.2 activate

R2(config- bgp)#exit

R3:

ZXR10#configure terminal

ZXR10(config)#hostname R3

R3(config)# interface fei-0/1/0/1

R3(config-if)#ip address 10.1.0.2 255.255.255.252

R3(config-if)#exit

R3(config)# interface loopback1

R3(config-if)#ip address 1.1.1.3 255.255.255.255

R3(config-if)#exit

R3(config)# interface loopback2

R3(config-if)#ip address 130.1.1.1 255.255.255.255

R3(config-if)#exit

R3(config)# interface loopback3

R3(config-if)#ip address 130.1.2.1 255.255.255.255

R3(config-if)#exit

R3(config)# ip route 10.1.1.0 255.255.255.252 10.1.0.1

R3(config)# router bgp 100

R3(config-bgp)# redistribute connected

R3(config-bgp)# neighbor 10.1.1.2 remote-as 100

R3(config-bgp)# neighbor 10.1.1.2 activate

R3(config-bgp)#exit

5.5.3.2 Verification

When synchronization is on:

55
ZXR10 M6000 Product Training Practice Manual

R2#show ip bgp route

Status codes: *valid, >best, i-internal

Origin codes: i-IGP, e-EGP, ?-incomplete

Dest NextHop Metric LocPrf RtPrf Path

*> 1.1.1.2/32 0.0.0.0 0 ?

*i 1.1.1.3/32 10.1.0.2 100 200 ?

*> 10.1.1.0/30 0.0.0.0 0 ?

*i 130.1.1.0/24 10.1.0.2 100 200 ?

*i 130.1.2.0/24 10.1.0.2 100 200 ?

R2#show ip forwarding route

IPv4 Routing Table:

Dest Mask Gw Interface Owner pri metric

1.1.1.2 255.255.255.255 1.1.1.2 loopback1 address 0 0

10.1.0.0 255.255.255.252 10.1.1.1 fei-0/1/2/1 static 1 0

10.1.1.0 255.255.255.252 10.1.1.2 fei-0/1/2/1 direct 0 0

10.1.1.2 255.255.255.255 10.1.1.2 fei-0/1/2/1 address 0 0

Even R2 recieved R3’s route of loopback address, but it will not be put into the route
table(

5.5.3.3 No Synchronization

When synchronization is off:

R2(config)#router bgp 100

R2(config-bgp)#no synchronization

R2#show ip forwarding route

IPv4 Routing Table(

Dest Mask Gw Interface Owner pri metric

1.1.1.2 255.255.255.255 1.1.1.2 loopback1 address 0 0

56
Unit 7 BGP/MPLS VPN

1.1.1.3 255.255.255.255 10.1.1.1 fei-0/1/2/1 bgp 200 0

10.1.0.0 255.255.255.252 10.1.1.1 fei-0/1/2/1 static 1 0

10.1.1.0 255.255.255.252 10.1.1.2 fei-0/1/2/1 direct 0 0

10.1.1.2 255.255.255.255 10.1.1.2 fei-0/1/2/1 address 0 0

130.1.1.0 255.255.255.0 10.1.1.1 fei-0/1/2/1 bgp 200 0

130.1.2.0 255.255.255.0 10.1.1.1 fei-0/1/2/1 bgp 200 0

57
Unit 6 MPLS

6.1 Practice: MPLS

6.1.1 Practice description

1.1.1.29 Purpose
Understand MPLS theory.

Grasp the configuration of MPLS and the watch on commands.

1.1.1.30 Practice requirement

Understand MPLS theory.

1.1.1.31 Time arrangement

2 hours.

1.1.1.32 Practice preparations

Connect the equipments according to the topology.

6.1.2 Practice Planning

Fig 6.1-6 MPLS

6.1.3 Practice steps and Record

1.1.1.33 Step 1

Configure MPLS.

59
R1 configuration:

ZXR10#configure terminal

ZXR10(config)#hostname R1

R1(config)# interface loopback1

R1(config-if)#ip address 1.1.1.1 255.255.255.255

R1(config-if)#exit

R1(config)# interface fei-0/1/0/3

R1(config-if)# ip address 10.40.79.254 255.255.255.0

R1(config-if)#exit

R1(config)# interface fei-0/5/0/2

R1(config-if)# ip address 192.168.1.1 255.255.255.252

R1(config-if)#exit

R1(config)#router ospf 1

R1(config-router)#network 1.1.1.1 0.0.0.0 area 0.0.0.0

R1(config-router)#network 192.168.1.0 0.0.0.3 area 0.0.0.0

R1(config-router)#redistribute connected

R1(config-router)#exit

R1(config)#mpls ldp instance 1

R1(config-ldp)#router-id loopback1

R1(config-ldp)# interface fei-0/1/0/3

R1(config-ldp-if)# discovery transport-address interface

R1(config-ldp-if)#exit

R1(config-ldp)# interface fei-0/5/0/2

R1(config-ldp-if)# discovery transport-address interface

R1(config-ldp-if)#exit

R2 configuration:

60
Unit 7 BGP/MPLS VPN

ZXR10#configure terminal

ZXR10(config)#hostname R2

R2(config)# interface loopback1

R2(config-if)#ip address 2.2.2.2 255.255.255.255

R2(config-if)#exit

R2(config)# interface fei-0/1/0/1

R2(config-if)# ip address 10.1.1.1 255.255.255.252

R2(config-if)#exit

R2(config)# interface fei_0/1/0/2

R2(config-if)# ip address 192.168.1.2 255.255.255.252

R2(config-if)#exit

R2(config)#router ospf 1

R2(config-router)#network 2.2.2.2 0.0.0.0 area 0.0.0.0

R2(config-router)#network 192.168.1.0 0.0.0.3 area 0.0.0.0

R2(config-router)#network 10.1.1.0 0.0.0.3 area 0.0.0.0

R2(config-router)#exit

R2(config)#mpls ldp instance 1

R2(config-ldp)#router-id loopback1

R2(config-ldp)# interface fei-0/1/0/1

R2(config-ldp-if)# discovery transport-address interface

R2(config-ldp-if)#exit

R2(config-ldp)# interface fei-0/1/0/2

R2(config-ldp-if)# discovery transport-address interface

R2(config-ldp-if)#exit

R3 configuration:

ZXR10#configure terminal

61
ZXR10 M6000 Product Training Practice Manual

ZXR10(config)#hostname R3

R3(config)# interface loopback1

R3(config-if)#ip address 3.3.3.3 255.255.255.255

R3(config-if)#exit

R3(config)# interface fei_0/1/0/1

R3(config-if)# ip address 10.1.1.2 255.255.255.252

R3(config-if)#exit

R3(config)# interface fei_0/1/0/3

R3(config-if)# ip address 192.168.0.1 255.255.255.0

R3(config-if)#exit

R3(config)#router ospf 1

R3(config-router)#network 3.3.3.3 0.0.0.0 area 0.0.0.0

R3(config-router)#network 192.168.0.0 0.0.0.255 area 0.0.0.0

R3(config-router)#network 10.1.1.0 0.0.0.3 area 0.0.0.0

R3(config-router)#exit

R3(config)#mpls ldp instance 1

R3(config-ldp)#router-id loopback1

R3(config-ldp)# interface fei-0/1/0/1

R3(config-ldp-if)# discovery transport-address interface

R3(config-ldp-if)#exit

R3(config-ldp)# interface fei-0/1/0/3

R3(config-ldp-if)# discovery transport-address interface

R3(config-ldp-if)#exit

1.1.1.34 Verify the result

Observe the results.

When enabling MPLS on interface between R1 and R2(R2 and R3, PC1 can ping PC2.

Observe the label forwarding information on R1(R2(R3(

62
Unit 7 BGP/MPLS VPN

R1#show mpls forwarding-table

Mpls Ldp Forwarding-table:

InLabel OutLabel Dest Pfxlen Interface NextHop

16 Pop tag 2.2.2.2 32 fei-0/5/0/2 192.168.1.2

17 17 3.3.3.3 32 fei-0/5/0/2 192.168.1.2

18 Pop tag 10.1.1.0 30 fei-0/5/0/2 192.168.1.2

19 16 192.168.0.0 24 fei-0/5/0/2 192.168.1.2

R2#show mpls forwarding-table

Mpls Ldp Forwarding-table:

InLabel OutLabel Dest Pfxlen Interface NextHop

18 Pop tag 1.1.1.1 32 fei-0/1/0/2 192.168.1.1

17 Pop tag 3.3.3.3 32 fei-0/1/0/1 10.1.1.2

19 Pop tag 10.40.76.0 22 fei-0/1/0/2 192.168.1.1

16 Pop tag 192.168.0.0 24 fei-0/1/0/1 10.1.1.2

R3#show mpls forwarding-table

Mpls Ldp Forwarding-table:

InLabel OutLabel Dest Pfxlen Interface NextHop

18 18 1.1.1.1 32 fei-0/1/0/1 10.1.1.1

17 Pop tag 2.2.2.2 32 fei-0/1/0/1 10.1.1.1

19 19 10.40.76.0 22 fei-0/1/0/1 10.1.1.1

16 Pop tag 192.168.1.0 30 fei-0/1/0/1 10.1.1.1

Directly connected two routers, IN label of the downstream router is the out label of
upstream router, for example, IN label for network 3.3.3.3/32 on R2 is 17, OUT label

63
ZXR10 M6000 Product Training Practice Manual

for network 3.3.3.3/32 on R1 is 17.

Label can be a number, or POP, or untag(

Label is a number is easy to understand, this value is learned from downstream router.

Label is POP means that this router is the penultimate hop for the destination network,
this value is 3 in fact.

Untag means that label is not learned from downstream. For example router supporting
mpls connected with router not supporting mpls, out label on router supporting and
enabling mpls for destination network to downstream router is untag..

In order to understand better the label information, we make some changes on the
original practice ( delete LDP on R3 for the interface fei_0/1/0/1 connected to R2 ( it
means mpls forwarding is disabled. Then we can observe following label information
on R1(R2(R3(

R1#show mpls forwarding-table

Mpls Ldp Forwarding-table:

InLabel OutLabel Dest Pfxlen Interface NextHop

16 Pop tag 2.2.2.2 32 fei-0/5/0/2 192.168.1.2

17 17 3.3.3.3 32 fei-0/5/0/2 192.168.1.2

18 Pop tag 10.1.1.0 30 fei-0/5/0/2 192.168.1.2

19 16 192.168.0.0 24 fei-0/5/0/2 192.168.1.2

R2# show mpls forwarding-table

Mpls Ldp Forwarding-table:

InLabel OutLabel Dest Pfxlen Interface NextHop

18 Pop tag 1.1.1.1 32 fei-0/1/0/2 192.168.1.1

17 Untagged 3.3.3.3 32 fei-0/1/0/1 10.1.1.2

19 Pop tag 10.40.76.0 22 fei-0/1/0/2 192.168.1.1

64
Unit 7 BGP/MPLS VPN

16 Untagged 192.168.0.0 24 fei-0/1/0/1 10.1.1.2

Label on R3 is empty.

At this time PC1 can not ping the untag network on R2 (network connected to R3 (.
This means that when mpls network connected to IP network, with only route
information is not enough, the label forwarding table also should be correct.

Solution is to adopt policy on R2, mpls packet from R1 to R3 pop the tag and then
communicate with R3 as IP packet. Reference commands(

R2(config)#mpls ldp instance 1

R2(config-ldp)#access-fec for test

R2(config-ldp)#exit

R2(config)#ipv4-access-list test

R2(config-ipv4-acl)#rule 10 deny 10.1.1.0 0.0.0.3

R2(config-ipv4-acl)#rule 20 deny 192.168.0.0 0.0.0.255

R2(config-ipv4-acl)#rule 30 permit any

R2(config-ipv4-acl)#exit

65
Unit 7 BGP/MPLS VPN

7.1 Practice: BGP/MPLS VPN

7.1.1 Practice description

7.1.1.1 Purpose
Understand BGP/MPLS VPN theory.

Grasp the configuration of BGP/MPLS VPN and the watch on commands.

7.1.1.2 Practice requirement

Understand BGP/MPLS VPN theory.

7.1.1.3 Time arrangement

2 hours.

7.1.1.4 Practice preparations

Connect the equipments according to the topology.

7.1.2 Practice Planning

Fig 7.1-7 BGP/MPLS VPN Configuration

67
7.1.3 Practice steps and Examples

CE1 and CE2 belong to the same VPN.

The loopback address of CE1 is 100.1.1.1/24, and that of CE2 is 200.1.1.1/24.

Make sure that CE1 and CE2 can learn the loopback routes between each other by
using OSPF.

The BGP runs between CE1 and PE1, while the OSPF runs between CE2 and PE2.

CE1 and CE2 can learn the routes from each other, and the ping is successful between
them.

CE1 Configuration(

CE1(config)#interface loopback1

CE1(config-if)#ip address 100.1.1.1 255.255.255.0

CE1(config-if)#exit

CE1(config)#interface gei-0/1/1/1

CE1(config-if)#ip address 10.1.1.2 255.255.255.0

CE1(config-if)#exit

CE1(config)#router bgp 200

CE1(config-bgp)#network 100.1.1.0 255.255.255.0

CE1(config-bgp)#neighbor 10.1.1.1 remote-as 100

PE1 Configuration(

PE1(config)#ip vrf test1

PE1(config-vrf)#rd 100:1

PE1(config-vrf)#address-family ipv4

PE1(config-vrf-af)#route-target import 100:1

PE1(config-vrf-af)#route-target export 100:1

68
Unit 7 BGP/MPLS VPN

PE1(config-vrf-af)#exit

PE1(config-vrf)#exit

PE1(config)#interface loopback1

PE1(config-if)#ip address 10.10.1.1 255.255.255.255

PE1(config-if)#exit

PE1(config)#interface gei-0/1/0/3

PE1(config-if)#ip address 10.10.12.1 255.255.255.0

PE1(config-if)#exit

PE1(config)#mpls ldp instance 1

PE1(config-ldp)#route-id loopback1

PE1(config-ldp)#interface gei-0/1/0/3

PE1(config-ldp-if)#exit

PE1(config-ldp)#exit

PE1(config)#interface gei-0/1/0/2

PE1(config-if)#ip vrf forwarding test1

PE1(config-if)#ip address 10.1.1.1 255.255.255.0

PE1(config-if)#exit

PE1(config)#router ospf 1

PE1(config-ospfv2)#router-id 10.10.1.1

PE1(config-ospfv2)#network 10.0.0.0 0.255.255.255 area 0.0.0.0

PE1(config-ospfv2)#exit

PE1(config)#router bgp 100

PE1(config-bgp)#neighbor 10.10.3.3 remote-as 100

PE1(config-bgp)#neighbor 10.10.3.3 update-source loopback1

PE1(config-bgp)#address-family ipv4 vrf test1

PE1(config-bgp-af)#redistribute connected

69
ZXR10 M6000 Product Training Practice Manual

PE1(config-bgp-af)#neighbor 10.1.1.2 remote-as 200

PE1(config-bgp-af)#exit-address-family

PE1(config-bgp)#address-family vpnv4

PE1(config-bgp-af)#neighbor 10.10.3.3 activate

PE1(config-bgp-af)#exit-address-family

PE1(config-bgp)#exit

PE1(config)#mpls ldp instance 1

PE1(config-ldp)#router-id loopback1

P router Configuration(

P(config)#interface gei-0/1/0/4

P(config-if)#ip address 10.10.12.2 255.255.255.0

P(config-if)#exit

P(config)#mpls ldp instance 1

P(config-ldp)#interface gei-0/1/0/4

P(config-ldp-if)#exit

P(config-ldp)#exit

P(config)#interface gei-0/1/0/5

P(config-if)#ip address 10.10.23.2 255.255.255.0

P(config-if)#exit

P(config)#mpls ldp instance 1

P(config-ldp)#interface gei-0/1/0/5

P(config-ldp-if)#exit

P(config-ldp)#exit

P(config)#interface loopback1

P(config-if)#ip address 10.10.2.2 255.255.255.255

70
Unit 7 BGP/MPLS VPN

P(config-if)#exit

P(config)#router ospf 1

P(config-ospfv2)#network 10.0.0.0 0.255.255.255 area 0.0.0.0

P(config-ospfv2)#exit

P(config)#mpls ldp

P(config-ldp)#router-id loopback1

PE2 Configuration(

PE2(config)#ip vrf test1

PE2(config-vrf)#rd 100:1

PE2(config-vrf)#address-family ipv4

PE2(config-vrf-af)#route-target import 100:1

PE2(config-vrf-af)#route-target export 100:1

PE2(config-vrf-af)#exit

PE2(config-vrf)#exit

PE2(config)#interface loopback1

PE2(config-if)#ip address 10.10.3.3 255.255.255.255

PE2(config-if)#exit

PE2(config)#interface gei-0/1/0/6

PE2(config-if)#ip address 10.10.23.3 255.255.255.0

PE2(config-if)#exit

PE2(config)#mpls ldp instance 1

PE2(config-ldp)#interface gei-0/1/0/6

PE2(config-ldp-if)#exit

PE2(config-ldp)#exit

PE2(config)#interface gei-0/1/0/7.10

71
ZXR10 M6000 Product Training Practice Manual

PE2(config-subif)#exit

PE2(config)#vlan-configuration

PE2(vlan-config)#interface gei-0/1/0/7.10

PE2(subvlan-if-config)#encapsulation-dot1q 10

PE2(subvlan-if-config)#exit

PE2(vlan-config)#exit

PE2(config)#interface gei-0/1/0/7.10

PE2(config-subif)#ip vrf forwarding test1

PE2(config-subif)#ip address 10.10.10.1 255.255.255.0

PE2(config-subif)#exit

PE2(config)#router ospf 1

PE2(config-ospfv2)#network 10.0.0.0 0.255.255.255 area 0.0.0.0

PE2(config-ospfv2)#exit

PE2(config)#router ospf 2 vrf test1

PE2(config-ospfv2)#network 10.10.10.1 0.0.0.0 area 0.0.0.0

PE2(config-ospfv2)#redistribute bgp-int

PE2(config-ospfv2)#exit

PE2(config)#router bgp 100

PE2(config-bgp)#neighbor 10.10.1.1 remote-as 100

PE2(config-bgp)#neighbor 10.10.1.1 update-source loopback1

PE2(config-bgp)#address-family ipv4 vrf test1

PE2(config-bgp-af)#redistribute ospf-int 2

PE2(config-bgp-af)#redistribute connected

PE2(config-bgp-af)#exit-address-family

PE2(config-bgp)#address-family vpnv4

PE2(config-bgp-af)#neighbor 10.10.1.1 activate

72
Unit 7 BGP/MPLS VPN

PE2(config-bgp-af)#exit-address-family

PE2(config-bgp)#exit

PE2(config)#mpls ldp

PE2(config-ldp)#router-id loopback1

CE2 Configuration(

CE2(config)#interface loopback1

CE2(config-if)#ip address 200.1.1.1 255.255.255.0

CE2(config-if)#exit

CE2(config)#interface gei-0/1/0/8.10

CE2(config-if)#exit

CE2(config)#vlan-configuration

CE2(vlan-config)#interface gei-0/2/0/8.10

CE2(subvlan-if-config)#encapsulation-dot1q 10

CE2(subvlan-if-config)#exit

CE2(vlan-config)#exit

CE2(config)#interface gei-0/2/0/8.10

CE2(config-subif)#ip address 10.10.10.2 255.255.255.0

CE2(config)#router ospf 1

CE2(config-ospfv2)#network 10.10.10.2 0.0.0.0 area 0

CE2(config-ospfv2)#network 200.1.1.1 0.0.0.0 area 0

7.1.4 Verify the result

ZXR10#show ip bgp summary

Neighbor Ver As MsgRcvd MsgSend Up/Down(s) State/PfxRcd

10.1.1.1 4 100 0 12 00:00:09 0

73
ZXR10 M6000 Product Training Practice Manual

Check CE1’s route table:

ZXR10#show ip forwarding route

IPv4 Routing Table:

Dest Gw Interface Owner Pri Metric

10.1.1.0/24 10.1.1.2 gei-0/1/0/1 DIRECT 0 0

10.1.1.0/32 10.1.1.0 gei-0/1/0/1 MARTIAN 0 0

10.1.1.2/32 10.1.1.2 gei-0/1/0/1 ADDRESS 0 0

10.1.1.255/32 10.1.1.255 gei-0/1/0/1 BROADCAST 0 0

100.1.1.0/24 100.1.1.1 loopback1 DIRECT 0 0

100.1.1.0/32 100.1.1.0 loopback1 MARTIAN 0 0

100.1.1.1/32 100.1.1.1 loopback1 ADDRESS 0 0

100.1.1.255/32 100.1.1.255 loopback1 BROADCAST 0 0

200.1.1.0/24 10.1.1.1 gei-0/1/0/2 BGP 20 0

74
Unit 8 VPWS

8.1 Practice: VPWS

8.1.1 Practice description

8.1.1.1 Purpose
Understand VPWS theory.

Grasp the configuration of VPWS and the watch on commands.

8.1.1.2 Practice requirement

Understand VPWS theory.

8.1.1.3 Time arrangement

2 hours.

8.1.1.4 Practice preparations

Connect the equipments according to the topology.

8.1.2 Practice Planning

Fig 8.1-1 VPWS Configuration

8.1.3 Practice steps and Examples

PE1 Configuration(

PE1(config)# interface fei-0/1/0/1

PE1(config-if)# ip address 1.1.1.1 255.255.255.0

75
PE1(config-if)#exit

PE1(config)# interface loopback1

PE1(config-if)# ip address 100.100.1.1 255.255.255.255

PE1(config-if)# exit

PE1(config)# router ospf 200

PE1(config-ospfv2)# network 1.1.1.0 0.0.0.255 area 0.0.0.0

PE1(config-ospfv2)# network 100.100.1.1 0.0.0.0 area 0.0.0.0

PE1(config-ospfv2)# exit

PE1(config)# mpls ldp instance 100

PE1(config-ldp)# router-id loopback1

PE1(config-ldp)# interface fei-0/1/0/1

PE1(config-ldp-if)# exit

PE1(config-ldp)# exit

PE1(config)# sdu sdu1

PE1(config)# mpls l2vpn enable

PE1(config)# vpws vpws_zte1

PE1(config-vpws)# sdu sdu1

PE1(config-vpws-sdu)# neighbour 100.100.1.2 20

PE1(config-vpws-sdu-pw)# control-word unused

PE1(config-vpws-sdu-pw)# signal dynamic

PE1(config-vpws-sdu-pw)# tunnel-policy auto

PE1(config-vpws-sdu-pw)# exit

PE1(config-vpws-sdu)# exit

PE1(config-vpws)# sac fei-0/1/0/2

PE1(config-vpws-sac)# service-define ethernet

PE1(config-vpws-sac-eth)# encapsulation raw

76
Unit 7 BGP/MPLS VPN

PE1(config-vpws-sac-eth)# exit

PE1(config-vpws-sac)# exit

PE1(config-vpws)# exit

PE2 Configuration(

PE2(config)# interface fei-0/1/0/1

PE2(config-if)# ip address 1.1.1.2 255.255.255.0

PE2(config-if)# exit

PE2(config)# interface loopback1

PE2(config-if)# ip address 100.100.1.2 255.255.255.255

PE2(config-if)# exit

PE2(config)# router ospf 200

PE2(config-ospfv2)# network 100.100.1.2 0.0.0.0 area 0.0.0.0

PE2(config-ospfv2)# network 1.1.1.0 0.0.0.255 area 0.0.0.0

PE2(config-ospfv2)# exit

PE2(config)# mpls ldp instance 100

PE2(config-ldp)# router-id loopback1

PE2(config-ldp)# interface fei-0/1/0/1

PE2(config-ldp-if)# exit

PE2(config-ldp)# exit

PE2(config)# sdu sdu1

PE2(config)# mpls l2vpn enable

PE2(config)# vpws vpws_zte1

PE2(config-vpws)# sdu sdu1

PE2(config-vpws-sdu)# neighbour 100.100.1.1 20

PE2(config-vpws-sdu-pw)# control-word unused

77
ZXR10 M6000 Product Training Practice Manual

PE2(config-vpws-sdu-pw)# signal dynamic

PE2(config-vpws-sdu-pw)# tunnel-policy auto

PE2(config-vpws-sdu-pw)# exit

PE2(config-vpws-sdu)# exit

PE2(config-vpws)# sac fei-0/1/0/2

PE2(config-vpws-sac)# service-define ethernet

PE2(config-vpws-sac-eth)# encapsulation raw

PE2(config-vpws-sac-eth)# exit

PE2(config-vpws-sac)# exit

PE2(config-vpws)# exit

8.1.4 Verify the result

PE2(config)# show l2vpn forwardinfo detail

Local interface:[VPLS vpls_zte2]

MPLS VC type is ETH, Connection mode: HUB

Destination address: 100.100.1.1, VCID: 40, VC status: DOWN

Create time: 00:15:11 Last status change time: 00:15:11

Signaling protocol: LDP, peer 100.100.1.1:0,DOWN

MPLS VC labels: local -, remote -

PE2(config)# show l2vpn forwardinfo

Hearders: PWType - Pseudowire type and Pseudowire connection mode

Local - Local label, Remote - Remote label

VPNowner - owner type and instance name

Codes: H - HUB mode, S - SPOKE mode, L - VPLS, W - VPWS, M - MSPW

PeerID VCID PWType State Local Remote VPNowner

100.100.1.1 40 ETH H DOWN - - L: vpws_zte1

78
Unit 7 BGP/MPLS VPN

79
Unit 9 VPLS

9.1 Practice: VPLS

9.1.1 Practice description

9.1.1.1 Purpose
Understand VPLS theory.

Grasp the configuration of VPLS and the watch on commands.

9.1.1.2 Practice requirement

Understand VPLS theory.

9.1.1.3 Time arrangement

2 hours.

9.1.1.4 Practice preparations

Connect the equipments according to the topology.

9.1.2 Practice Planning

Fig 9.1-8 VPLS Configuration

9.1.3 Practice steps and Examples

PE1 Configuration(

PE1(config)# interface fei-0/1/0/1

PE1(config-if)# ip address 1.1.1.1 255.255.255.0

81
PE1(config-if)# exit

PE1(config)# interface loopback1

PE1(config-if)# ip address 100.100.1.1 255.255.255.255

PE1(config-if)# exit

PE1(config)# router ospf 200

PE1(config-ospfv2)# network 1.1.1.0 0.0.0.255 area 0.0.0.0

PE1(config-ospfv2)# network 100.100.1.1 0.0.0.0 area 0.0.0.0

PE1(config-ospfv2)# exit

PE1(config)# mpls ldp instance 100

PE1(config-ldp)# router-id loopback1

PE1(config-ldp)# interface fei-0/1/0/1

PE1(config-ldp-if)# exit

PE1(config-ldp)# exit

PE1(config)# sdu sdu4

PE1(config)# mpls l2vpn enable

PE1(config)# vpls vpls_zte2 qualified

PE1(config-vpls)# sdu sdu4

PE1(config-vpls-sdu)# neighbour 100.100.1.2 40

PE1(config-vpls-sdu-pw)# control-word unused

PE1(config-vpls-sdu-pw)# signal dynamic

PE1(config-vpls-sdu-pw)# encapsulation raw

PE1(config-vpls-sdu-pw)# tunnel-policy auto

PE1(config-vpls-sdu-pw)# exit

PE1(config-vpls-sdu)# exit

PE1(config-vpls)# sac fei-0/1/0/2

PE1(config-vpls-sac)# service-define ethernet

82
Unit 7 BGP/MPLS VPN

PE1(config-vpls-sac-sd)# exit

PE1(config-vpls-sac)# exit

PE1(config-vpls)# exit

PE2 Configuration(

PE2(config)# interface fei-0/1/0/1

PE2(config-if)# ip address 1.1.1.2 255.255.255.0

PE2(config-if)# exit

PE2(config)# interface loopback1

PE2(config-if)# ip address 100.100.1.2 255.255.255.255

PE2(config-if)# exit

PE2(config)# router ospf 200

PE2(config-ospfv2)# network 100.100.1.2 0.0.0.0 area 0.0.0.0

PE2(config-ospfv2)# network 1.1.1.0 0.0.0.255 area 0.0.0.0

PE2(config-ospfv2)# exit

PE2(config)# mpls ldp instance 100

PE2(config-ldp)# router-id loopback1

PE2(config-ldp)# interface fei-0/1/0/1

PE2(config-ldp-if)# exit

PE2(config-ldp)# exit

PE2(config)# sdu sdu4

PE2(config)# mpls l2vpn enable

PE2(config)# vpls vpls_zte2 qualified

PE2(config-vpls)# sdu sdu4

PE2(config-vpls-sdu)# neighbour 100.100.1.1 40

83
ZXR10 M6000 Product Training Practice Manual

PE2(config-vpls-sdu-pw)# control-word unused

PE2(config-vpls-sdu-pw)# signal dynamic

PE2(config-vpls-sdu-pw)# encapsulation raw

PE2(config-vpls-sdu-pw)# tunnel-policy auto

PE2(config-vpls-sdu-pw)# exit

PE2(config-vpls-sdu)# exit

PE2(config-vpls)# sac fei-0/1/0/2

PE2(config-vpls-sac)# service-define ethernet

PE2(config-vpls-sac-sd)# exit

PE2(config-vpls-sac)# exit

PE2(config-vpls)# exit

9.1.4 Verify the result

PE2(config)#show l2vpn forwardinfo detail

Local interface:[VPLS vpls_zte2]

MPLS VC type is ETH, Connection mode: HUB

Destination address: 100.100.1.1, VCID: 40, VC status: DOWN

Create time: 00:15:11 Last status change time: 00:15:11

Signaling protocol: LDP, peer 100.100.1.1:0,DOWN

MPLS VC labels: local -, remote -

PE2(config)# show l2vpn forwardinfo

Hearders: PWType - Pseudowire type and Pseudowire connection mode

Local - Local label, Remote - Remote label

VPNowner - owner type and instance name

Codes: H - HUB mode, S - SPOKE mode, L - VPLS, W - VPWS, M - MSPW

84
Unit 7 BGP/MPLS VPN

PeerID VCID PWType State Local Remote VPNowner

100.100.1.1 40 ETH H DOWN - - L: vpls_zte2

85

You might also like