Details not shown
Configure the IGP protocol.
2.
# Enable IS-IS to advertise host routes with LSR IDs as destinations on each node. (Details not
shown)
# Perform the display ip routing-table command on each switch. You can see that all nodes have
learned the host routes of other nodes with LSR IDs as destinations. Take Switch A for example:
<SwitchA> display ip routing-table
Routing Tables: Public
Destinations : 13
Destination/Mask
1.1.1.1/32
2.1.1.0/24
2.1.1.1/32
2.2.2.2/32
3.1.1.0/24
3.2.1.0/24
3.3.1.0/24
3.3.3.3/32
4.1.1.0/24
4.4.4.4/32
5.5.5.5/32
127.0.0.0/8
127.0.0.1/32
Configure MPLS TE basic settings, and enable RSVP-TE and CSPF.
3.
# Configure Switch A.
[SwitchA] mpls lsr-id 1.1.1.1
[SwitchA] mpls
[SwitchA-mpls] mpls te
[SwitchA-mpls] mpls rsvp-te
[SwitchA-mpls] mpls te cspf
[SwitchA-mpls] quit
[SwitchA] interface vlan-interface 1
[SwitchA-Vlan-interface1] mpls
[SwitchA-Vlan-interface1] mpls te
[SwitchA-Vlan-interface1] mpls rsvp-te
[SwitchA-Vlan-interface1] quit
# Configure Switch B.
[SwitchB] mpls lsr-id 2.2.2.2
[SwitchB] mpls
[SwitchB-mpls] mpls te
[SwitchB-mpls] mpls rsvp-te
[SwitchB-mpls] mpls te cspf
[SwitchB-mpls] quit
[SwitchB] interface vlan-interface 1
[SwitchB-Vlan-interface1] mpls
[SwitchB-Vlan-interface1] mpls te
[SwitchB-Vlan-interface1] mpls rsvp-te
Routes : 13
Proto
Pre
Cost
Direct 0
0
Direct 0
0
Direct 0
0
ISIS
15
10
ISIS
15
20
ISIS
15
20
ISIS
15
30
ISIS
15
20
ISIS
15
30
ISIS
15
30
ISIS
15
20
Direct 0
0
Direct 0
0
107
NextHop
Interface
127.0.0.1
InLoop0
2.1.1.1
Vlan1
127.0.0.1
InLoop0
2.1.1.2
Vlan1
2.1.1.2
Vlan1
2.1.1.2
Vlan1
2.1.1.2
Vlan1
2.1.1.2
Vlan1
2.1.1.2
Vlan1
2.1.1.2
Vlan1
2.1.1.2
Vlan1
127.0.0.1
InLoop0
127.0.0.1
InLoop0