Configure A Gre Tunnel - HP 10500 Series Configuration Manual

Hide thumbs Also See for 10500 Series:
Table of Contents

Advertisement

# Configure PE 1.
[PE1] bgp 100
[PE1-bgp] peer 2.2.2.9 as-number 100
[PE1-bgp] peer 2.2.2.9 connect-interface loopback 0
[PE1-bgp] ipv4-family vpnv4
[PE1-bgp-vpnv4] peer 2.2.2.9 enable
[PE1-bgp-vpnv4] quit
[PE1-bgp] quit
# Configure PE 2 in the same way that PE 1 is configured. (Details not shown.)
After completing the configuration, execute the display bgp peer vpnv4 command on the PEs. The
output shows that BGP peer relationship has been established between the PEs and has reached
the Established state.
[PE1] display bgp peer vpnv4
BGP local router ID: 1.1.1.9
Local AS number: 100
Total number of peers: 1
Peer
2.2.2.9

Configure a GRE tunnel:

6.
# Configure PE 1.
[PE1] interface tunnel 0 mode gre
[PE1-Tunnel0] source loopback 0
[PE1-Tunnel0] destination 2.2.2.9
[PE1-Tunnel0] ip address 20.1.1.1 24
[PE1-Tunnel0] mpls enable
[PE1-Tunnel0] quit
# Configure PE 2.
[PE2] interface tunnel 0 mode gre
[PE2-Tunnel0] source loopback 0
[PE2-Tunnel0] destination 1.1.1.9
[PE2-Tunnel0] ip address 20.1.1.2 24
[PE2-Tunnel0] mpls enable
[PE2-Tunnel0] quit
Verify the configuration:
7.
After the configurations, the CEs can learn the interface routes from each other.
Take CE 1 as an example:
[CE1] display ip routing-table
Destinations : 13
Destination/Mask
0.0.0.0/32
10.1.1.0/24
10.1.1.0/32
AS
MsgRcvd
100
5
Routes : 13
Proto
Pre
Cost
Direct 0
0
Direct 0
0
Direct 0
0
132
Peers in established state: 1
MsgSent OutQ PrefRcv Up/Down
7
0
NextHop
127.0.0.1
10.1.1.1
10.1.1.1
State
2 00:00:43 Established
Interface
InLoop0
Vlan12
Vlan12

Advertisement

Table of Contents
loading

Table of Contents