Configuration
This section shows the procedure to configure TCP MSS for LDP session.
Enable Label Switching
Running LDP on a system requires the following tasks:
1. | Enabling label-switching on the interface on NSM. |
2. | Enabling LDP on an interface in the LDP daemon. |
3. | Running an Internal Gateway Protocol (IGP), for example, Open Shortest Path first (OSPF), to distribute reachability information within the MPLS cloud. |
4. | Configuring the transport address. |
5. | Configure the TCP MSS neighbor on peer node (Active node). |
Topology
Figure 77. Device topology for TCP MSS for LDP
Configuration
The below configuration shows how to configure the TCP MSS value for the LDP neighbors.
R1 - NSM
R1#configure terminal |
Enter configure mode. |
R1(config)#interface xe1 |
Specify the interface |
R1(config-if)#ip address 10.10.10.1/24 |
Assign IP address |
R1(config-if)#label-switching |
Enable label switching on interface |
R1(config-if)#exit |
Exit interface mode. |
R1(config)#interface lo |
Specify the loopback interface to be configured. |
R1(config-if)#ip address 1.1.1.1/32 secondary |
Set the IP address of the loopback interface to |
R1(config-if)#commit |
Commit the transaction. |
R1 - LDP
R1(config)#router ldp |
Enter Router mode for LDP. |
R1(config-router)#router-id 1.1.1.1 |
Set the router ID to IP address |
R1(config-router)#transport-address ipv4 1.1.1.1 |
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. It is preferable to use the loopback address as transport address. In addition, use the parameter |
R1(config-router)#targeted-peer ipv4 3.3.3.3 |
Configure targeted peer |
R1(config-router-targeted-peer)#exit |
Exit targeted peer-mode. |
R1(config-router)#exit |
Exit the router mode and return to the configure mode. |
R1(config)#interface xe1 |
Enter interface mode |
R1(config-if)#enable-ldp ipv4 |
Enable LDP on |
R1(config-if)#commit |
Commit the transaction. |
R1 - OSPF
R1(config)#router ospf 100 |
Configure the routing process and specify the process ID |
R1(config-router)#network 10.10.10.0/24 area 0 |
Define the interface |
R1(config-router)#network 1.1.1.1/32 area 0 |
Define the interface |
R1(config-router)#commit |
Commit the transaction. |
R2 - NSM
R2#configure terminal |
Enter configure mode. |
R2(config)#interface lo |
Specify the loopback interface to be configured. |
R2(config-if)#ip address 2.2.2.2/32 secondary |
Set the IP address of the loopback interface to |
R2(config-if)#exit |
Exit interface mode. |
R2(config)#interface xe1 |
Specify the interface |
R2(config-if)#ip address 20.20.20.1/24 |
Assign IP address |
R2(config-if)#label-switching |
Enable label switching on interface |
R2(config-if)#exit |
Exit interface mode. |
R2(config)#interface xe2 |
Specify the interface |
R2(config-if)#ip address 10.10.10.2/24 |
Assign IP address |
R2(config-if)#label-switching |
Enable label switching on interface |
R2(config-if)#commit |
Commit the transaction. |
R2 - LDP
R2(config)#router ldp |
Enter Router mode. |
R2(config-router)#router-id 2.2.2.2 |
Set the router ID to IP address |
R2(config-router)#transport-address ipv4 2.2.2.2 |
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. It is preferable to use the loopback address as transport address. In addition, use the parameter |
R2(config-router)#neighbor 1.1.1.1 tcp-mss 600 |
Configure the TCP MSS value on peer node which have active side only. |
R2(config-router)#exit |
Exit router mode and return to configure mode. |
R2(config)#interface xe1 |
Specify the interface |
R2(config-if)#enable-ldp ipv4 |
Enable LDP on a specified interface |
R2(config-if)#exit |
Exit interface mode. |
R2(config)#interface xe2 |
Specify the interface |
R2(config-if)#enable-ldp ipv4 |
Enable LDP on a specified interface |
R2(config-if)#commit |
Commit the transaction. |
R2 - OSPF
R2(config)#router ospf 100 |
Configure the routing process and specify the process ID |
R2(config-router)#network 10.10.10.0/24 area 0 |
Define the interfaces |
R2(config-router)#network 20.20.20.0/24 area 0 |
Define the interfaces |
R2(config-router)#network 2.2.2.2/32 area 0 |
Define the interfaces |
R2(config-router)#commit |
Commit the transaction. |
R3 - NSM
R3#configure terminal |
Enter configure mode. |
R3(config)#interface lo |
Specify the loopback interface to be configured. |
R3(config-if)#ip address 3.3.3.3/32 secondary |
Set the IP address of the loopback interface to |
R3(config-if)#exit |
Exit interface mode. |
R3(config)#interface xe1 |
Specify the interface |
R3(config-if)#ip address 20.20.20.2/24 |
Set the IP address of the interface to |
R3(config-if)#label-switching |
Enable label switching on interface |
R3(config-if)#commit |
Commit the transaction. |
R3 - LDP
R3(config)#router ldp |
Enter Router mode. |
R3(config-router)#router-id 3.3.3.3 |
Set the router ID for IP address |
R3(config-router)#transport-address ipv4 3.3.3.3 |
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. It is preferable to use the loopback address as transport address. In addition, use the parameter |
R3(config-router)#neighbor 2.2.2.2 tcp-mss 650 |
Configure the TCP MSS value on peer node which have active side only. |
R3(config-router)#targeted-peer ipv4 1.1.1.1 |
Configure targeted peer. |
R3(config-router-targeted-peer)#exit |
Exit targeted peer-mode. |
R3(config-router)#exit |
Exit the router mode and return to the configure mode. |
R3(config)#interface xe1 |
Enter interface mode |
R3(config-if)#enable-ldp ipv4 |
Enable LDP on |
R3(config-if)#commit |
Commit the transaction. |
R3 - OSPF
R3(config)#router ospf 100 |
Configure the routing process and specify the Process ID |
R3(config-router)#network 20.20.20.0/24 area 0 |
Define the interfaces |
R3(config-router)#network 3.3.3.3/32 area 0 |
Define the interfaces |
R3(config-router)#commit |
Commit the transaction. |
Validation
R1
R1#show ldp session
Codes: m - MD5 password is not set/unset.
g - GR configuration not set/unset.
t - TCP MSS not set/unset.
Session has to be cleared manually
Code Peer IP Address IF Name My Role State KeepAlive UpTime
2.2.2.2 xe1 Passive OPERATIONAL 30 00:07:12
3.3.3.3 xe1 Passive OPERATIONAL 30 00:07:12
R1#show ldp session count
--------------------------------------------
Multicast Peers : 1 [UP: 1]
Targeted Peers : 1 [UP: 1]
Total Sessions : 2 [UP: 2]
--------------------------------------------
R1#show ldp targeted-peer count
-------------------------------------------------
Num Targeted Peers: 1 [UP: 1]
-------------------------------------------------
R1#show ldp routes
Prefix Addr Nexthop Addr Intf Owner
1.1.1.1/32 0.0.0.0 lo connected
2.2.2.2/32 10.10.10.2 xe1 ospf
3.3.3.3/32 10.10.10.2 xe1 ospf
10.10.10.0/24 0.0.0.0 xe1 connected
20.20.20.0/24 10.10.10.2 xe1 ospf
R1#show ldp fec
LSR codes : E/N - LSR is egress/non-egress for this FEC,
L - LSR received a label for this FEC,
> - LSR will use this route for the FEC
FEC Code Session Out Label ELC Nexthop Addr
1.1.1.1/32 E > non-existent none No connected
2.2.2.2/32 NL> 2.2.2.2 impl-null No 10.10.10.2
3.3.3.3/32 NL> 2.2.2.2 25601 No 10.10.10.2
10.10.10.0/24 NL 2.2.2.2 impl-null No connected
E > non-existent none No connected
20.20.20.0/24 NL> 2.2.2.2 impl-null No 10.10.10.2
48.48.48.48/32 E > non-existent none No connected
R2
R2#show ldp session
Codes: m - MD5 password is not set/unset.
g - GR configuration not set/unset.
t - TCP MSS not set/unset.
Session has to be cleared manually
Code Peer IP Address IF Name My Role State KeepAlive UpTime
3.3.3.3 xe1 Passive OPERATIONAL 30 00:06:10
1.1.1.1 xe2 Active OPERATIONAL 30 00:06:10
R2#show ldp session count
--------------------------------------------
Multicast Peers : 2 [UP: 2]
Targeted Peers : 0 [UP: 0]
Total Sessions : 2 [UP: 2]
--------------------------------------------
R2#show ldp routes
Prefix Addr Nexthop Addr Intf Owner
1.1.1.1/32 10.10.10.1 xe2 ospf
2.2.2.2/32 0.0.0.0 lo connected
3.3.3.3/32 20.20.20.2 xe1 ospf
10.10.10.0/24 0.0.0.0 xe2 connected
20.20.20.0/24 0.0.0.0 xe1 connected
R2#show ldp session 1.1.1.1
Session state : OPERATIONAL
Session role : Active
TCP Connection : Established
IP Address for TCP : 1.1.1.1
Interface being used : xe2
Peer LDP ID : 1.1.1.1:0
Preferred Peer LDP Password : Not Set
Adjacencies : 10.10.10.1
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : 600
Applied TCP MSS : 600
Preferred TCP MSS : NA
Address List received : 1.1.1.1
10.10.10.1
48.48.48.48
Received Labels : Fec Label Maps To
IPV4:10.10.10.0/24 impl-null none
IPV4:1.1.1.1/32 impl-null 25600
Sent Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:10.10.10.0/24 impl-null none
IPV4:3.3.3.3/32 25601 impl-null
IPV4:2.2.2.2/32 impl-null none
R3
R3#show ldp session
Codes: m - MD5 password is not set/unset.
g - GR configuration not set/unset.
t - TCP MSS not set/unset.
Session has to be cleared manually
Code Peer IP Address IF Name My Role State KeepAlive UpTime
2.2.2.2 xe1 Active OPERATIONAL 30 00:03:06
1.1.1.1 xe1 Active OPERATIONAL 30 00:03:06
R3#show ldp targeted-peer count
-------------------------------------------------
Num Targeted Peers: 1 [UP: 1]
-------------------------------------------------
PE2#show ldp session count
--------------------------------------------
Multicast Peers : 1 [UP: 1]
Targeted Peers : 1 [UP: 1]
Total Sessions : 2 [UP: 2]
--------------------------------------------
R3#show ldp routes
Prefix Addr Nexthop Addr Intf Owner
1.1.1.1/32 20.20.20.1 xe1 ospf
2.2.2.2/32 20.20.20.1 xe1 ospf
3.3.3.3/32 0.0.0.0 lo connected
10.10.10.0/24 20.20.20.1 xe1 ospf
20.20.20.0/24 0.0.0.0 xe1 connected
R3#show ldp fec-ipv4 count
------------------------
Num. IPv4 FEC(s): 5
------------------------
R3#show ldp session 2.2.2.2
Session state : OPERATIONAL
Session role : Active
TCP Connection : Established
IP Address for TCP : 2.2.2.2
Interface being used : xe1
Peer LDP ID : 2.2.2.2:0
Preferred Peer LDP Password : Not Set
Adjacencies : 20.20.20.1
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : 650
Applied TCP MSS : 650
Preferred TCP MSS : NA
Address List received : 2.2.2.2
10.10.10.2
20.20.20.1
Received Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:10.10.10.0/24 impl-null none
IPV4:2.2.2.2/32 impl-null none
IPV4:1.1.1.1/32 25600 none
Sent Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:3.3.3.3/32 impl-null none
Configure TCP MSS on ALL neighbor
R1 - NSM
R1#configure terminal |
Enter configure mode. |
R1(config)#interface xe1 |
Specify the interface |
R1(config-if)#ip address 10.10.10.1/24 |
Assign IP address |
R1(config-if)#label-switching |
Enable label switching on interface |
R1(config-if)#exit |
Exit interface mode. |
R1(config)#interface lo |
Specify the loopback interface to be configured. |
R1(config-if)#ip address 1.1.1.1/32 secondary |
Set the IP address of the loopback interface to 1.1.1.1/32. |
R1(config-if)#commit |
Commit the transaction. |
R1 - LDP
R1(config)#router ldp |
Enter Router mode for LDP. |
R1(config-router)#router-id 1.1.1.1 |
Set the router ID to IP address |
R1(config-router)#transport-address ipv4 1.1.1.1 |
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. It is preferable to use the loopback address as transport address. In addition, use the parameter |
R1(config-router)#targeted-peer ipv4 3.3.3.3 |
Configure targeted peer. |
R1(config-router)#neighbor all tcp-mss 700 |
Configure the TCP MSS value with |
R1(config-router-targeted-peer)#exit |
Exit-targeted-peer-mode. |
R1(config-router)#exit |
Exit the Router mode and return to the Configure mode. |
R1(config)#interface xe1 |
Enter interface mode |
R1(config-if)#enable-ldp ipv4 |
Enable LDP on |
R1(config-if)#commit |
Commit the transaction. |
R1 - OSPF
R1(config)#router ospf 100 |
Configure the routing process and specify the process ID (100). The process ID should be a unique positive integer identifying the routing process. |
R1(config-router)#network 10.10.10.0/24 area 0 |
Define the interface |
R1(config-router)#network 1.1.1.1/32 area 0 |
Define the interface |
R1(config-router)#commit |
Commit the transaction. |
R2 - NSM
R2#configure terminal |
Enter configure mode. |
R2(config)#interface lo |
Specify the loopback (lo) interface to be configured. |
R2(config-if)#ip address 2.2.2.2/32 secondary |
Set the IP address of the loopback interface to |
R2(config-if)#exit |
Exit interface mode. |
R2(config)#interface xe1 |
Specify the interface |
R2(config-if)#ip address 20.20.20.1/24 |
Assign IP address 20.20.20.1/24 to interface. |
R2(config-if)#label-switching |
Enable label switching on interface xe1. |
R2(config-if)#exit |
Exit interface mode. |
R2(config)#interface xe2 |
Specify the interface |
R2(config-if)#ip address 10.10.10.2/24 |
Assign IP address |
R2(config-if)#label-switching |
Enable label switching on interface |
R2(config-if)#commit |
Commit the transaction. |
R2 - LDP
R2(config)#router ldp |
Enter Router mode. |
R2(config-router)#router-id 2.2.2.2 |
Set the router ID to IP address |
R2(config-router)#transport-address ipv4 2.2.2.2 |
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. It is preferable to use the loopback address as transport address. In addition, use the parameter |
R2(config-router)#neighbor all tcp-mss 710 |
Configure the TCP MSS value with |
R2(config-router)#exit |
Exit Router mode and return to configure mode. |
R2(config)#interface xe1 |
Specify the interface |
R2(config-if)#enable-ldp ipv4 |
Enable LDP on a specified interface |
R2(config-if)#exit |
Exit interface mode. |
R2(config)#interface xe2 |
Specify the interface |
R2(config-if)#enable-ldp ipv4 |
Enable LDP on a specified interface |
R2(config-if)#commit |
Commit the transaction. |
R2 - OSPF
R2(config)#router ospf 100 |
Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
R2(config-router)#network 10.10.10.0/24 area 0 |
Define the interfaces |
R2(config-router)#network 20.20.20.0/24 area 0 |
Define the interfaces |
R2(config-router)#network 2.2.2.2/32 area 0 |
Define the interfaces |
R2(config-router)#commit |
Commit the transaction. |
R3 - NSM
R3#configure terminal |
Enter configure mode. |
R3(config)#interface lo |
Specify the loopback interface to be configured. |
R3(config-if)#ip address 3.3.3.3/32 secondary |
Set the IP address of the loopback interface to |
R3(config-if)#exit |
Exit interface mode. |
R3(config)#interface xe1 |
Specify the interface |
R3(config-if)#ip address 20.20.20.2/24 |
Set the IP address of the interface to |
R3(config-if)#label-switching |
Enable label switching on interface |
R3(config-if)#commit |
Commit the transaction. |
R3 - LDP
R3(config)#router ldp |
Enter Router mode. |
R3(config-router)#router-id 3.3.3.3 |
Set the router ID for IP address |
R3(config-router)#transport-address ipv4 3.3.3.3 |
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. It is preferable to use the loopback address as transport address. In addition, use the parameter |
R3(config-router)#neighbor all tcp-mss 720 |
Configure the TCP MSS value with |
R3(config-router)#targeted-peer ipv4 1.1.1.1 |
Configure targeted peer. |
R3(config-router-targeted-peer)#exit |
Exit-targeted-peer-mode. |
R3(config-router)#exit |
Exit the Router mode and return to the Configure mode. |
R3(config)#interface xe1 |
Enter interface mode. |
R3(config-if)#enable-ldp ipv4 |
Enable LDP on |
R3(config-if)#commit |
Commit the transaction. |
R3 - OSPF
R3(config)#router ospf 100 |
Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
R3(config-router)#network 20.20.20.0/24 area 0 |
Define the interfaces |
R3(config-router)#network 3.3.3.3/32 area 0 |
Define the interfaces |
R3(config-router)#commit |
Commit the transaction. |
Validation
R1
R1#show ldp session
Codes: m - MD5 password is not set/unset.
g - GR configuration not set/unset.
t - TCP MSS not set/unset.
Session has to be cleared manually
Code Peer IP Address IF Name My Role State KeepAlive UpTime
2.2.2.2 xe1 Passive OPERATIONAL 30 00:11:22
3.3.3.3 xe1 Passive OPERATIONAL 30 00:11:22
R1#show ldp session 2.2.2.2
Session state : OPERATIONAL
Session role : Passive
TCP Connection : Established
IP Address for TCP : 2.2.2.2
Interface being used : xe1
Peer LDP ID : 2.2.2.2:0
Preferred Peer LDP Password : Not Set
Adjacencies : 10.10.10.2
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : 700
Applied TCP MSS : 700
Preferred TCP MSS : NA
Address List received : 2.2.2.2
10.10.10.2
20.20.20.1
Received Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:10.10.10.0/24 impl-null none
IPV4:3.3.3.3/32 25601 none
IPV4:2.2.2.2/32 impl-null none
Sent Labels : Fec Label Maps To
IPV4:10.10.10.0/24 impl-null none
IPV4:1.1.1.1/32 impl-null none
R1#show ldp session 3.3.3.3
Session state : OPERATIONAL
Session role : Passive
TCP Connection : Established
IP Address for TCP : 3.3.3.3
Interface being used : xe1
Peer LDP ID : 3.3.3.3:0
Preferred Peer LDP Password : Not Set
Adjacencies : 3.3.3.3
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : 700
Applied TCP MSS : 700
Preferred TCP MSS : NA
Address List received : 3.3.3.3
20.20.20.2
Received Labels : Fec Label Maps To
Sent Labels : Fec Label Maps To
R2
R2#show ldp session
Codes: m - MD5 password is not set/unset.
g - GR configuration not set/unset.
t - TCP MSS not set/unset.
Session has to be cleared manually
Code Peer IP Address IF Name My Role State KeepAlive UpTime
3.3.3.3 xe1 Passive OPERATIONAL 30 00:13:39
1.1.1.1 xe2 Active OPERATIONAL 30 00:13:39
R2#show ldp session 3.3.3.3
Session state : OPERATIONAL
Session role : Passive
TCP Connection : Established
IP Address for TCP : 3.3.3.3
Interface being used : xe1
Peer LDP ID : 3.3.3.3:0
Preferred Peer LDP Password : Not Set
Adjacencies : 20.20.20.2
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : 710
Applied TCP MSS : 710
Preferred TCP MSS : NA
Address List received : 3.3.3.3
20.20.20.2
Received Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:3.3.3.3/32 impl-null 25601
Sent Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:10.10.10.0/24 impl-null none
IPV4:2.2.2.2/32 impl-null none
IPV4:1.1.1.1/32 25600 impl-null
R2#show ldp session 1.1.1.1
Session state : OPERATIONAL
Session role : Active
TCP Connection : Established
IP Address for TCP : 1.1.1.1
Interface being used : xe2
Peer LDP ID : 1.1.1.1:0
Preferred Peer LDP Password : Not Set
Adjacencies : 10.10.10.1
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : 710
Applied TCP MSS : 700
Preferred TCP MSS : NA
Address List received : 1.1.1.1
10.10.10.1
Received Labels : Fec Label Maps To
IPV4:48.48.48.48/32 impl-null none
IPV4:10.10.10.0/24 impl-null none
IPV4:1.1.1.1/32 impl-null 25600
Sent Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:10.10.10.0/24 impl-null none
IPV4:3.3.3.3/32 25601 impl-null
IPV4:2.2.2.2/32 impl-null none
R3
R3#show ldp session 2.2.2.2
Session state : OPERATIONAL
Session role : Active
TCP Connection : Established
IP Address for TCP : 2.2.2.2
Interface being used : xe1
Peer LDP ID : 2.2.2.2:0
Preferred Peer LDP Password : Not Set
Adjacencies : 20.20.20.1
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : 720
Applied TCP MSS : 710
Preferred TCP MSS : NA
Address List received : 2.2.2.2
10.10.10.2
20.20.20.1
Received Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:10.10.10.0/24 impl-null none
IPV4:2.2.2.2/32 impl-null none
IPV4:1.1.1.1/32 25600 none
Sent Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:3.3.3.3/32 impl-null none
R3#show ldp session 1.1.1.1
Session state : OPERATIONAL
Session role : Active
TCP Connection : Established
IP Address for TCP : 1.1.1.1
Interface being used : xe1
Peer LDP ID : 1.1.1.1:0
Preferred Peer LDP Password : Not Set
Adjacencies : 1.1.1.1
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : 720
Applied TCP MSS : 700
Preferred TCP MSS : NA
Address List received : 1.1.1.1
10.10.10.1
Received Labels : Fec Label Maps To
Sent Labels : Fec Label Maps To
Configuration of TCP MSS with Auto-targeted
R1 - NSM
R1#configure terminal |
Enter configure mode. |
R1(config)#interface xe1 |
Specify the interface |
R1(config-if)#ip address 10.10.10.1/24 |
Assign IP address |
R1(config-if)#label-switching |
Enable label switching on interface |
R1(config-if)#exit |
Exit interface mode. |
R1(config)#interface lo |
Specify the loopback interface to be configured. |
R1(config-if)#ip address 1.1.1.1/32 secondary |
Set the IP address of the loopback interface to |
R1(config-if)#commit |
Commit the transaction. |
R1 - LDP
R1(config)#router ldp |
Enter Router mode for LDP. |
R1(config-router)#router-id 1.1.1.1 |
Set the router ID to IP address |
R1(config-router)#transport-address ipv4 1.1.1.1 |
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. It is preferable to use the loopback address as transport address. In addition, use the parameter |
R1(config-router)#targeted-peer ipv4 3.3.3.3 |
Configure targeted peer. |
R1(config-router-targeted-peer)#exit |
Exit-targeted-peer-mode. |
R1(config-router)#exit |
Exit the Router mode and return to the configure mode. |
R1(config)#interface xe1 |
Enter interface mode. |
R1(config-if)#enable-ldp ipv4 |
Enable LDP on |
R1(config-if)#commit |
Commit the transaction. |
R1 - OSPF
R1(config)#router ospf 100 |
Configure the routing process and specify the process ID (100). The process ID should be a unique positive integer identifying the routing process. |
R1(config-router)#network 10.10.10.0/24 area 0 |
Define the interface |
R1(config-router)#network 1.1.1.1/32 area 0 |
Define the interface |
R1(config-router)#commit |
Commit the transaction. |
R2 - NSM
R2#configure terminal |
Enter configure mode. |
R2(config)#interface lo |
Specify the loopback interface to be configured. |
R2(config-if)#ip address 2.2.2.2/32 secondary |
Set the IP address of the loopback interface to |
R2(config-if)#exit |
Exit interface mode. |
R2(config)#interface xe1 |
Specify the interface |
R2(config-if)#ip address 20.20.20.1/24 |
Assign IP address |
R2(config-if)#label-switching |
Enable label switching on interface |
R2(config-if)#exit |
Exit interface mode. |
R2(config)#interface xe2 |
Specify the interface |
R2(config-if)#ip address 10.10.10.2/24 |
Assign IP address |
R2(config-if)#label-switching |
Enable label switching on interface |
R2(config-if)#commit |
Commit the transaction. |
R2 - LDP
R2(config)#router ldp |
Enter Router mode. |
R2(config-router)#router-id 2.2.2.2 |
Set the router ID to IP address |
R2(config-router)#transport-address ipv4 2.2.2.2 |
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. It is preferable to use the loopback address as transport address. In addition, use the parameter |
R2(config-router)#neighbor auto-targeted tcp-mss 800 |
Configure the TCP MSS value on all |
R2(config-router)#exit |
Exit Router mode and return to configure mode. |
R2(config)#interface xe1 |
Specify the interface |
R2(config-if)#enable-ldp ipv4 |
Enable LDP on a specified interface |
R2(config-if)#exit |
Exit interface mode. |
R2(config)#interface xe2 |
Specify the interface |
R2(config-if)#enable-ldp ipv4 |
Enable LDP on a specified interface |
R2(config-if)#commit |
Commit the transaction. |
R2 - OSPF
R2(config)#router ospf 100 |
Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
R2(config-router)#network 10.10.10.0/24 area 0 |
Define the interfaces |
R2(config-router)#network 20.20.20.0/24 area 0 |
Define the interfaces |
R2(config-router)#network 2.2.2.2/32 area 0 |
Define the interfaces |
R2(config-router)#commit |
Commit the transaction. |
R3 - NSM
R3#configure terminal |
Enter configure mode. |
R3(config)#interface lo |
Specify the loopback interface to be configured. |
R3(config-if)#ip address 3.3.3.3/32 secondary |
Set the IP address of the loopback interface to |
R3(config-if)#exit |
Exit interface mode. |
R3(config)#interface xe1 |
Specify the interface |
R3(config-if)#ip address 20.20.20.2/24 |
Set the IP address of the interface to |
R3(config-if)#label-switching |
Enable label switching on interface |
R3(config-if)#commit |
Commit the transaction. |
R3 - LDP
R3(config)#router ldp |
Enter Router mode. |
R3(config-router)#router-id 3.3.3.3 |
Set the router ID for IP address |
R3(config-router)#transport-address ipv4 3.3.3.3 |
Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. It is preferable to use the loopback address as transport address. In addition, use the parameter |
R3(config-router)#neighbor auto-targeted tcp-mss 810 |
Configure the TCP MSS value on all |
R3(config-router)#targeted-peer ipv4 1.1.1.1 |
Configure targeted peer. |
R3(config-router-targeted-peer)#exit |
Exit-targeted-peer-mode. |
R3(config-router)#exit |
Exit the Router mode and return to the configure mode. |
R3(config)#interface xe1 |
Enter interface mode |
R3(config-if)#enable-ldp ipv4 |
Enable LDP on |
R3(config-if)#commit |
Commit the transaction. |
R3 - OSPF
R3(config)#router ospf 100 |
Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
R3(config-router)#network 20.20.20.0/24 area 0 |
Define the interfaces |
R3(config-router)#network 3.3.3.3/32 area 0 |
Define the interfaces |
R3(config-router)#commit |
Commit the transaction. |
Validation
R1
R1#show ldp session
Codes: m - MD5 password is not set/unset.
g - GR configuration not set/unset.
t - TCP MSS not set/unset.
Session has to be cleared manually
Code Peer IP Address IF Name My Role State KeepAlive UpTime
2.2.2.2 xe1 Passive OPERATIONAL 30 00:00:03
3.3.3.3 xe1 Passive OPERATIONAL 30 00:00:03
R1#show ldp targeted-peers
IP Address Interface
3.3.3.3 xe1
R1#show ldp session 3.3.3.3
Session state : OPERATIONAL
Session role : Passive
TCP Connection : Established
IP Address for TCP : 3.3.3.3
Interface being used : xe1
Peer LDP ID : 3.3.3.3:0
Preferred Peer LDP Password : Not Set
Adjacencies : 3.3.3.3
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : Not configured
Applied TCP MSS : 810
Preferred TCP MSS : NA
Address List received : 3.3.3.3
20.20.20.2
Received Labels : Fec Label Maps To
IPV4:20.20.20.0/24 25604 none
IPV4:3.3.3.3/32 25603 none
IPV4:10.10.10.0/24 25602 none
IPV4:2.2.2.2/32 25601 none
IPV4:1.1.1.1/32 25600 none
Sent Labels : Fec Label Maps To
IPV4:10.10.10.0/24 25604 none
IPV4:1.1.1.1/32 25603 none
IPV4:20.20.20.0/24 25602 impl-null
IPV4:3.3.3.3/32 25601 25601
IPV4:2.2.2.2/32 25600 impl-null
R2
R2#show ldp session
Codes: m - MD5 password is not set/unset.
g - GR configuration not set/unset.
t - TCP MSS not set/unset.
Session has to be cleared manually
Code Peer IP Address IF Name My Role State KeepAlive UpTime
3.3.3.3 xe1 Passive OPERATIONAL 30 00:00:04
1.1.1.1 xe2 Active OPERATIONAL 30 00:00:04
R2#show ldp targeted-peers
R2#show ldp session 3.3.3.3
Session state : OPERATIONAL
Session role : Passive
TCP Connection : Established
IP Address for TCP : 3.3.3.3
Interface being used : xe1
Peer LDP ID : 3.3.3.3:0
Preferred Peer LDP Password : Not Set
Adjacencies : 20.20.20.2
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : Not configured
Applied TCP MSS : 1460
Preferred TCP MSS : NA
Address List received : 3.3.3.3
20.20.20.2
Received Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:3.3.3.3/32 impl-null 25601
Sent Labels : Fec Label Maps To
IPV4:20.20.20.0/24 impl-null none
IPV4:10.10.10.0/24 impl-null none
IPV4:2.2.2.2/32 impl-null none
IPV4:1.1.1.1/32 25600 impl-null
R3
R3#show ldp session
Codes: m - MD5 password is not set/unset.
g - GR configuration not set/unset.
t - TCP MSS not set/unset.
Session has to be cleared manually
Code Peer IP Address IF Name My Role State KeepAlive UpTime
2.2.2.2 xe1 Active OPERATIONAL 30 00:02:15
1.1.1.1 xe1 Active OPERATIONAL 30 00:02:15
R3#show ldp targeted-peers
IP Address Interface
1.1.1.1 xe1
PE2#show ldp session 1.1.1.1
Session state : OPERATIONAL
Session role : Active
TCP Connection : Established
IP Address for TCP : 1.1.1.1
Interface being used : xe1
Peer LDP ID : 1.1.1.1:0
Preferred Peer LDP Password : Not Set
Adjacencies : 1.1.1.1
Advertisement mode : Downstream Unsolicited
Label retention mode : Liberal
Graceful Restart : Not Capable
Keepalive Timeout : 30
Reconnect Interval : 15
Configured TCP MSS : 810
Applied TCP MSS : 810
Preferred TCP MSS : NA
Address List received : 1.1.1.1
10.10.10.1
Received Labels : Fec Label Maps To
IPV4:10.10.10.0/24 25604 none
IPV4:1.1.1.1/32 25603 none
IPV4:20.20.20.0/24 25602 none
IPV4:3.3.3.3/32 25601 none
IPV4:2.2.2.2/32 25600 none
Sent Labels : Fec Label Maps To
IPV4:20.20.20.0/24 25604 none
IPV4:3.3.3.3/32 25603 none
IPV4:10.10.10.0/24 25602 impl-null
IPV4:2.2.2.2/32 25601 impl-null
IPV4:1.1.1.1/32 25600 25600