
103
[RouterA] ospf
[Router-A-ospf-1] area 0
[Router-A-ospf-1-area-0.0.0.0] network 12.12.12.1 0.0.0.255
[Router-A-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[Router-A-ospf-1-area-0.0.0.0] quit
[Router-A-ospf-1] quit
# Configure Router B.
<RouterB>system-view
[RouterB] ospf
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] network 12.12.12.2 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
3.
Configure IP addresses for the interfaces:
# Configure Router A.
[RouterA] interface giabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ip address 12.12.12.1 24
[RouterA-GigabitEthernet2/1/1] quit
# Configure Router B.
[RouterB] interface giabitethernet 2/1/1
[RouterB-GigabitEthernet2/1/1] ip address 12.12.12.2 24
4.
Configure the MPLS TE tunnel:
# Configure an RSVP-TE tunnel between Router A and Router B.
[RouterA] interface tunnel 1
[RouterA-Tunnel1] ip address 10.10.10.1 24
[RouterA-Tunnel1] tunnel-protocol mpls te
[RouterA-Tunnel1] destination 2.2.2.2
[RouterA-Tunnel1] mpls te tunnel-id 10
[RouterA-Tunnel1] mpls te signal-protocol rsvp-te
[RouterA-Tunnel1] mpls te commit
[RouterA-Tunnel1] return
5.
Verify the configuration:
# Display detailed information about the BFD session between Router A and Router B.
<RouterA> display bfd session verbose
Total Session Num: 1 Init Mode: Active
Session Working Under Ctrl Mode:
Local Discr: 19 Remote Discr: 18
Source IP: 12.12.12.1 Destination IP: 12.12.12.2
Session State: Up Interface: GigabitEthernet2/1/1
Min Trans Inter: 400ms Act Trans Inter: 400ms
Min Recv Inter: 400ms Act Detect Inter: 2000ms
Running Up for: 00:00:01 Auth mode: None
Connect Type: Direct Board Num: 6
Protocol: RSVP