H3C SR8800 10G Mpls Configuration Manual page 157

Core routers
Table of Contents

Advertisement

[PE2-ospf-1] opaque-capability enable
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] mpls-te enable
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
Configure an MPLS TE tunnel
4.
# Create a TE tunnel with PE 1 as the headend and PE 2 as the tail. The signaling protocol is
CR-LDP.
[PE1] interface tunnel 4
[PE1-Tunnel4] ip address 12.1.1.1 255.255.255.0
[PE1-Tunnel4] tunnel-protocol mpls te
[PE1-Tunnel4] destination 3.3.3.3
[PE1-Tunnel4] mpls te tunnel-id 10
[PE1-Tunnel4] mpls te signal-protocol crldp
[PE1-Tunnel4] mpls te commit
[PE1-Tunnel4] quit
# Perform the display interface tunnel command on PE 1. You can see that the tunnel interface is
up.
Configure the VPN instance on each PE, and bind it to the interface connected to the CE
5.
# Configure on CE 1.
<CE1> system-view
[CE1] interface GigabitEthernet 3/1/1
[CE1-GigabitEthernet3/1/1] ip address 192.168.1.2 255.255.255.0
[CE1-GigabitEthernet3/1/1] quit
# Configure the VPN instance on PE 1, and use CR-LSP for VPN setup. Bind the VPN instance with
the interface connected to CE 1.
[PE1] ip vpn-instance vpn1
[PE1-vpn-instance-vpn1] route-distinguisher 100:1
[PE1-vpn-instance-vpn1] vpn-target 100:1 both
[PE1-vpn-instance-vpn1] tnl-policy policy1
[PE1-vpn-instance-vpn1] quit
[PE1] tunnel-policy policy1
[PE1-tunnel-policy-policy1] tunnel select-seq cr-lsp load-balance-number 1
[PE1-tunnel-policy-policy1] quit
[PE1] interface GigabitEthernet 3/1/1
[PE1-GigabitEthernet3/1/1] ip binding vpn-instance vpn1
[PE1-GigabitEthernet3/1/1] ip address 192.168.1.1 255.255.255.0
[PE1-GigabitEthernet3/1/1] quit
# Configure on CE 2.
<CE2> system-view
[CE2] interface GigabitEthernet 3/1/1
[CE2-GigabitEthernet3/1/1] ip address 192.168.2.2 255.255.255.0
[CE2-GigabitEthernet3/1/1] quit
# Configure the VPN instance on PE 2, and bind it with the interface connected to CE 2.
[PE2] ip vpn-instance vpn1
[PE2-vpn-instance-vpn1] route-distinguisher 100:2
[PE2-vpn-instance-vpn1] vpn-target 100:1 both
146

Advertisement

Table of Contents
loading

Table of Contents