HP 12500 Series Configuration Manual page 343

Mpls, routing switch series
Table of Contents

Advertisement

Configure VPN 1 on PE 3 to allow CE 3 to access the network.
Configure BGP between PE 1 and CE 1, between PE 2 and CE 2, and between PE 3 and CE
3 to inject routes of CEs into PEs.
Configure BGP AS number substitution.
2.
# Configure BGP AS number substitution on PE 1, PE2, and PE3 as described in
AS number
substitution."
# Display the routing table on CE 2. You can see that CE 2 has learned the route 100.1.1.1/32
to CE 1. A routing loop has occurred because CE1 and CE 2 reside in the same site.
<CE2> display bgp routing-table peer 10.2.1.2 received-routes
Total Number of Routes: 8
BGP Local router ID is 10.2.1.1
Status codes: * - valid, ^ - VPN best, > - best, d - damped,
Network
*>
10.1.1.0/24
*>
10.1.1.1/32
*
10.2.1.0/24
*
10.2.1.1/32
*
10.3.1.0/24
*
10.3.1.1/32
*>
100.1.1.1/32
*>
200.1.1.1/32
<CE2> display ip routing-table
Routing Tables: Public
Destinations : 10
Destination/Mask
10.1.1.0/24
10.1.1.1/32
10.2.1.0/24
10.2.1.1/32
10.3.1.0/24
10.3.1.1/32
100.1.1.1/32
127.0.0.0/8
127.0.0.1/32
200.1.1.1/32
Configure the SoO attribute.
3.
# On PE 1, configure a routing policy named soo to add the specified SoO attribute.
<PE1> system-view
[PE1] route-policy soo permit node 10
[PE1-route-policy] apply extcommunity soo 1:100 additive
[PE1-route-policy] quit
# On PE 1, apply the routing policy soo to routes received from CE 1.
[PE1] bgp 100
[PE1-bgp] ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1] peer 10.1.1.1 route-policy soo import
h - history,
i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
NextHop
10.2.1.2
10.2.1.2
10.2.1.2
10.2.1.2
10.2.1.2
10.2.1.2
10.2.1.2
10.2.1.2
Proto
Pre
Cost
BGP
255
0
BGP
255
0
Direct 0
0
Direct 0
0
BGP
255
0
BGP
255
0
BGP
255
0
Direct 0
0
Direct 0
0
BGP
255
0
335
MED
LocPrf
0
0
Routes : 10
NextHop
10.2.1.2
10.2.1.2
10.2.1.1
127.0.0.1
10.2.1.2
10.2.1.2
10.2.1.2
127.0.0.1
127.0.0.1
10.2.1.2
"Configuring BGP
PrefVal Path/Ogn
0
100?
0
100?
0
100?
0
100?
0
100?
0
100?
0
100 100?
0
100 100?
Interface
Vlan2
Vlan2
Vlan2
InLoop0
Vlan2
Vlan2
Vlan2
InLoop0
InLoop0
Vlan2

Advertisement

Table of Contents
loading

Table of Contents