Router r2 – Brocade Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide (Supporting R05.6.00) User Manual

Page 450

Advertising
background image

426

Multi-Service IronWare Multiprotocol Label Switch (MPLS) Configuration Guide

53-1003031-02

Sample LDP configuration with VLL

2

R1(config-mpls)# interface loopback 1

R1(config-lbif-1)# port-name Generic All-Purpose Loopback

R1(config-lbif-1)# ip address 192.168.2.100/32

R1(config-lbif-1)# ip ospf area 0

R1(config-lbif-1)# exit

R1(config)# router mpls

R1(config-mpls)# mpls-interface e 2/1

R1(config-mpls)# ldp-enable

R1(config-mpls)# exit

R1(config-mpls)# vll VLL_to_R3 40000

R1(config-mpls-vll)# vll-peer 192.168.2.102

R1(config-mpls-vll)# untagged e 1/3

R1(config-mpls-vll)# exit

R1(config)# ip router-id 192.168.2.100

R1(config)# router ospf

R1(config-ospf-router)# area 0

R1(config-ospf-router)# exit

R1(config-mpls)# interface e 1/3

R1(config-if-e100-1/3)# port-name VLL_endpoint

R1(config-if-e100-1/3)# enable

R1(config-if-e100-1/3)# exit

R1(config-mpls)# interface e 2/1

R1(config-e10000-2/1)# port-name Connection_to_R2

R1(config-e10000-2/1)# enable

R1(config-e10000-2/1)# ip address 192.168.37.1/30

R1(config-e10000-2/1)# ip ospf area 0

R1(config-e10000-2/1)# exit

Router R2

The following commands configure Router R2 in

Figure

49

.

R2(config-mpls)# interface loopback 1

R2(config-lbif-1)# port-name Generic All-Purpose Loopback

R2(config-lbif-1)# ip address 192.168.2.101/32

R2(config-lbif-1)# ip ospf area 0

R2(config-lbif-1)# exit

R2(config)# router mpls

R2(config-mpls)# mpls-interface e 4/1 e 4/2

R2(config-mpls)# ldp-enable

R2(config-mpls)# exit

R2(config)# ip router-id 192.168.2.101

R2(config)# router ospf

R2(config-ospf-router)# area 0

R2(config-ospf-router)# exit

R2(config-mpls)# interface e 4/1

R2(config-e10000-4/1)# enable

R2(config-e10000-4/1)# ip address 192.168.40.1/30

R2(config-e10000-4/1)# ip ospf area 0

R2(config-e10000-4/1)# exit

R2(config-mpls)# interface e 4/2

R2(config-e10000-4/2)# enable

R2(config-e10000-4/2)# ip address 192.168.40.9/30

R2(config-e10000-4/2)# ip ospf area 0

R2(config-e10000-4/2)# exit

Advertising