• No results found

Configuring the Full-Mesh VPLS

In document ZXA10 C300 Configuration Manual (Page 186-195)

Configuration Flow

16.2 VPLS Configuration

16.2.2 Configuring the Full-Mesh VPLS

To connect all of the customer LANs, full mesh connectivity is required. LDP is used for full mesh establishment for VPLS.

Networking Diagram

Figure 16-11shows the networking diagram of the full-mesh VPLS.

Figure 16-11 Networking Diagram of Full-Mesh VPLS

ONU1, ONU2, and ONU2 are in the same VPLS network. These three ONUs communicate with each other through the PWs based on theLDPsessions.

Configuration Data

Table 16-6lists the configuration data of the full-mesh VPLS.

Table 16-6 Configuration Data of Full-Mesh VPLS

Item Data

Loopback interface l ID: 1

l IP address: 1.1.1.1/32

L3 interface 1 l VLAN ID: 10

l Interface: gei_1/21/1 l IP address: 30.1.1.1/24

L3 interface 2 l VLAN ID: 11

l Interface: gei_1/21/2 l IP address: 10.1.1.2/24 Reserved VPN VLAN VLAN ID: 4090

PW 1 l Name: 2and1000pw

l Mode: dynamic pwe3 l Type: ethernet-vlan l Peer: 2.2.2.2 l Router ID: 2.2.2.2 l VCID: 1000

PW 2 l Name: 3and1000pw

l Mode: dynamic pwe3 l Type: ethernet-vlan l Peer: 3.3.3.3 l Router ID: 3.3.3.3 l VC ID: 1000

VFI l Name: fullmesh-vfi

l PW1: 2and1000pw l PW2: 3and1000pw

Class map l Name: classmap1000

l SVLANID: 1000 C300-1

CIP l Index: 1

l Service type: ethernet class-map l Class map: classmap1000 Loopback interface ID l ID: 1

l IP address: 2.2.2.2/32

L3 interface 1 l VLAN ID: 11

l Interface: gei_1/21/1 l IP address: 10.1.1.1/24

L3 interface 2 l VLAN ID: 12

l Interface: gei_1/21/2 l IP address: 20.1.1.2/24 Reserved VPN VLAN VLAN ID: 4090

C300-2

Item Data

PW 1 l Name: 1and1000pw

l Mode: dynamic pwe3 l Type: ethernet-vlan l Peer: 1.1.1.1 l Router ID: 1.1.1.1 l VC ID: 1000

PW 2 l Name: 3and1000pw

l Mode: dynamic pwe3 l Type: ethernet-vlan l Peer: 3.3.3.3 l Router ID: 3.3.3.3 l VC ID: 1000

VFI l Name: fullmesh-vfi

l PW1: 1and1000pw l PW2: 3and1000pw

Class map l Name: classmap1000

l SVLAN ID: 1000

CIP l Index: 1

l Service type: ethernet class-map l Class map: classmap1000 Loopback interface l ID: 1

l IP address: 3.3.3.3/32

L3 interface 1 l VLAN ID: 12

l Interface: gei_1/21/1 l IP address: 20.1.1.1/24

L3 interface 2 l VLAN ID: 10

l Interface: gei_1/21/2 l IP address: 30.1.1.2/24 Reserved VPN VLAN VLAN ID: 4090

PW 1 l Name: 1and1000pw

l Mode: dynamic pwe3 l Type: ethernet-vlan l Peer: 1.1.1.1 l Router ID: 1.1.1.1 l VC ID: 1000

PW 2 l Name: 2and1000pw

l Mode: dynamic pwe3 l Type: ethernet-vlan l Peer: 2.2.2.2 l Router ID: 2.2.2.2 C300-3

Item Data

l VC ID: 1000

VFI l Name: fullmesh-vfi

l PW1: 1and1000pw l PW2: 2and1000pw

Class map l Name: classmap1000

l SVLAN ID: 1000

CIP l Index: 1

l Service type: ethernet class-map l Class map: classmap1000

Note:

A class map defines the policy of class mapping.

A CIP is a logical interface that correlates to an L2VPN service instance, that is, AC. The data on a CIP is a certain service flow, which is specified by a class map, from a UNI.

Configuration Flow

Figure 16-12shows the configuration flowchart of the full-mesh VPLS.

Figure 16-12 Configuration Flowchart of Full-Mesh VPLS

Steps

l Configuration on C300-1.

1. Configure the loopback interface.

ZXAN(config)#interface loopback1

ZXAN(config-loopback1)#ip address 1.1.1.1 255.255.255.255 ZXAN(config-loopback1)#exit

2. Configure the VLAN of the uplink interfaces.

ZXAN(config)#interface gei_1/21/1 ZXAN(config-if)#switchport vlan 10 tag ZXAN(config-if)#exit

ZXAN(config)#interface gei_1/21/2 ZXAN(config-if)#switchport vlan 11 tag ZXAN(config-if)#exit

3. Configure the IP address of the VLAN interfaces.

ZXAN(config)#interface vlan 10

ZXAN(config-if-vlan10)#ip address 30.1.1.1 255.255.255.0 ZXAN(config-if-vlan10)#exit

ZXAN(config)#interface vlan 11

ZXAN(config-if-vlan11)#ip address 10.1.1.2 255.255.255.0 ZXAN(config-if-vlan11)#exit

4. Enable the MPLS on the VLAN interfaces.

ZXAN(config)#interface vlan 10 ZXAN(config-if-vlan10)#mpls ip ZXAN(config-if-vlan10)#exit ZXAN(config)#interface vlan 11 ZXAN(config-if-vlan11)#mpls ip ZXAN(config-if-vlan11)##exit

5. Configure the routing protocol.

ZXAN(config)#router ospf 1

ZXAN(config-router)#network 1.1.1.1 0.0.0.0 area 0.0.0.0 ZXAN(config-router)#network 30.1.1.0 0.0.0.255 area 0.0.0.0 ZXAN(config-router)#network 10.1.1.0 0.0.0.255 area 0.0.0.0 ZXAN(config-router)#exit

6. Enable the global MPLS function.

ZXAN(config)#vlan-reserve 4090 vpn ZXAN(config)#ip mpls-forwarding enable ZXAN(config)#mpls ldp router-id loopback1 ZXAN(config)#mpls ip

7. Configure the LDP target session.

ZXAN(config)#mpls ldp target-session 2.2.2.2 ZXAN(config)#mpls ldp target-session 3.3.3.3

8. Configure the VC.

ZXAN(config)#pw 2and1000pw

ZXAN(config-pw)#mode dynamic pwe3 fec128 ZXAN(config-pw)#pwtype ethernet-vlan

ZXAN(config-pw)#peer 2.2.2.2 router-id 2.2.2.2 vcid 1000 ZXAN(config-pw)#exit

ZXAN(config)#pw 3and1000pw

ZXAN(config-pw)#mode dynamic pwe3 fec128 ZXAN(config-pw)#pwtype ethernet-vlan

ZXAN(config-pw)#peer 3.3.3.3 router-id 3.3.3.3 vcid 1000 ZXAN(config-pw)#exit

9. Configure the VFI.

ZXAN(config)#vfi fullmesh-vfi

ZXAN(config-vfi)#mpls xconnect pw 2and1000pw ZXAN(config-vfi)#mpls xconnect pw 3and1000pw ZXAN(config-vfi)#exit

10. Configure the class map.

ZXAN(config)#class-map classmap1000 ZXAN(config-cmap)#match svlan-id 1000 ZXAN(config-cmap)#exit

11. Configure the CIP.

ZXAN(config)#cip 1

ZXAN(config-cip1)#service-type ethernet class-map classmap1000 ZXAN(config-cip1)#xconnect fullmesh-vfi

ZXAN(config-cip1)#exit

12. Save the configuration data.

l Configuration on C300-2.

1. Configure the loopback interface.

ZXAN(config)#interface loopback1

ZXAN(config-loopback1)#ip address 2.2.2.2 255.255.255.255 ZXAN(config-loopback1)#exit

2. Configure the VLAN of the uplink interface.

ZXAN(config)#interface gei_1/21/1 ZXAN(config-if)#switchport vlan 11 tag ZXAN(config-if)#exit

ZXAN(config)#interface gei_1/21/2 ZXAN(config-if)#switchport vlan 12 tag ZXAN(config-if)#exit

3. Configure the IP address of the VLAN interfaces.

ZXAN(config)#interface vlan 11

ZXAN(config-if-vlan11)#ip address 10.1.1.1 255.255.255.0 ZXAN(config-if-vlan11)#exit

ZXAN(config)#interface vlan 12

ZXAN(config-if-vlan12)#ip address 20.1.1.2 255.255.255.0 ZXAN(config-if-vlan12)#exit

4. Enable the MPLS on the VLAN interfaces.

ZXAN(config)#interface vlan 11 ZXAN(config-if-vlan11)#mpls ip ZXAN(config-if-vlan11)#exit ZXAN(config)#interface vlan 12 ZXAN(config-if-vlan12)#mpls ip ZXAN(config-if-vlan12)##exit

5. Configure the routing protocol.

ZXAN(config)#router ospf 1

ZXAN(config-router)#network 2.2.2.2 0.0.0.0 area 0.0.0.0 ZXAN(config-router)#network 10.1.1.0 0.0.0.255 area 0.0.0.0 ZXAN(config-router)#network 20.1.1.0 0.0.0.255 area 0.0.0.0 ZXAN(config-router)#exit

6. Enable the global MPLS function.

ZXAN(config)#vlan-reserve 4090 vpn ZXAN(config)#ip mpls-forwarding enable ZXAN(config)#mpls ldp router-id loopback1 ZXAN(config)#mpls ip

7. Configure the LDP target session.

ZXAN(config)#mpls ldp target-session 1.1.1.1 ZXAN(config)#mpls ldp target-session 3.3.3.3

8. Configure the VC.

ZXAN(config)#pw 1and1000pw

ZXAN(config-pw)#mode dynamic pwe3 fec128 ZXAN(config-pw)#pwtype ethernet-vlan

ZXAN(config-pw)#peer 1.1.1.1 router-id 1.1.1.1 vcid 1000 ZXAN(config)#pw 3and1000pw

ZXAN(config-pw)#mode dynamic pwe3 fec128 ZXAN(config-pw)#pwtype ethernet-vlan

ZXAN(config-pw)#peer 3.3.3.3 router-id 3.3.3.3 vcid 1000 ZXAN(config-pw)#exit

9. Configure the VFI.

ZXAN(config)#vfi fullmesh-vfi

ZXAN(config-vfi)#mpls xconnect pw 1and1000pw ZXAN(config-vfi)#mpls xconnect pw 3and1000pw ZXAN(config-vfi)#exit

10. Configure the class map.

ZXAN(config)#class-map classmap1000 ZXAN(config-cmap)#match svlan-id 1000 ZXAN(config-cmap)#exit

11. Configure the CIP.

ZXAN(config)#cip 1

ZXAN(config-cip1)#service-type ethernet class-map classmap1000 ZXAN(config-cip1)#xconnect fullmesh-vfi

ZXAN(config-cip1)#exit

12. Save the configuration data.

l Configuration on C300-3.

1. Configure the loopback interface.

ZXAN(config)#interface loopback1

ZXAN(config-loopback1)#ip address 3.3.3.3 255.255.255.255 ZXAN(config-loopback1)#exit

2. Configure the VLAN of the uplink interface.

ZXAN(config)#interface gei_1/21/1 ZXAN(config-if)#switchport vlan 12 tag

ZXAN(config-if)#exit

ZXAN(config)#interface gei_1/21/2 ZXAN(config-if)#switchport vlan 10 tag ZXAN(config-if)#exit

3. Configure the IP address of the VLAN interfaces.

ZXAN(config)#interface vlan 10

ZXAN(config-if-vlan10)#ip address 30.1.1.2 255.255.255.0 ZXAN(config-if-vlan10)#exit

ZXAN(config)#interface vlan 12

ZXAN(config-if-vlan12)#ip address 20.1.1.1 255.255.255.0 ZXAN(config-if-vlan12)#exit

4. Enable the MPLS on the VLAN interfaces.

ZXAN(config)#interface vlan 10 ZXAN(config-if-vlan10)#mpls ip ZXAN(config-if-vlan10)#exit ZXAN(config)#interface vlan 12 ZXAN(config-if-vlan12)#mpls ip ZXAN(config-if-vlan12)##exit

5. Configure the routing protocol.

ZXAN(config)#router ospf 1

ZXAN(config-router)#network 3.3.3.3 0.0.0.0 area 0.0.0.0 ZXAN(config-router)#network 20.1.1.0 0.0.0.255 area 0.0.0.0 ZXAN(config-router)#network 30.1.1.0 0.0.0.255 area 0.0.0.0 ZXAN(config-router)#exit

6. Enable the global MPLS function.

ZXAN(config)#vlan-reserve 4090 vpn ZXAN(config)#ip mpls-forwarding enable ZXAN(config)#mpls ldp router-id loopback1 ZXAN(config)#mpls ip

7. Configure the LDP target session.

ZXAN(config)#mpls ldp target-session 1.1.1.1 ZXAN(config)#mpls ldp target-session 2.2.2.2

8. Configure the VC.

ZXAN(config)#pw 1and1000pw

ZXAN(config-pw)#mode dynamic pwe3 fec128 ZXAN(config-pw)#pwtype ethernet-vlan

ZXAN(config-pw)#peer 1.1.1.1 router-id 1.1.1.1 vcid 1000 ZXAN(config)#pw 2and1000pw

ZXAN(config-pw)#mode dynamic pwe3 fec128 ZXAN(config-pw)#pwtype ethernet-vlan

ZXAN(config-pw)#peer 2.2.2.2 router-id 2.2.2.2 vcid 1000 ZXAN(config-pw)#exit

9. Configure the VFI.

ZXAN(config)#vfi fullmesh-vfi

ZXAN(config-vfi)#mpls xconnect pw 1and1000pw ZXAN(config-vfi)#mpls xconnect pw 2and1000pw ZXAN(config-vfi)#exit

10. Configure the class map.

ZXAN(config)#class-map classmap1000 ZXAN(config-cmap)#match svlan-id 1000 ZXAN(config-cmap)#exit

11. Configure the CIP.

ZXAN(config)#cip 1

ZXAN(config-cip1)#service-type ethernet class-map classmap1000 ZXAN(config-cip1)#xconnect fullmesh-vfi

ZXAN(config-cip1)#exit

12. Save the configuration data.

Result

Three ONUs can ping each other successfully.

In document ZXA10 C300 Configuration Manual (Page 186-195)

Related documents