L Commands
This chapter describes the Cisco NX-OS unicast routing commands that begin with the letter L.
load-balancing
To specify the load-balancing method used by the active virtual gateway (AVG) of the Gateway Load Balancing Protocol (GLBP), use the load-balancing command. To disable load balancing, use the no form of this command.
load-balancing [ host-dependent | round-robin | weighted ]
Syntax Description
Defaults
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the host-dependent method of GLBP load balancing when you need each host to always use the same router. Use the weighted method of GLBP load balancing when you need unequal load balancing because gateways in the GLBP group have different forwarding capacities.
Examples
This example show how to configure the host-dependent load-balancing method for the AVG of the GLBP group 10:
Related Commands
|
|
|
|---|---|
Configures the weighting value and thresholds for the weighted load-balancing method. |
|
Configures object tracking for the weighted load-balancing method. |
local-as
To configure the Border Gateway Protocol (BGP) local AS number, use the local-as command.
Syntax Description
(Optional) Autonomous system number. The AS number can be a 16-bit integer or a 32-bit integer in the form of <higher 16-bit decimal number>.<lower 16-bit decimal number>. |
Defaults
Command Modes
|
|
|
Usage Guidelines
Examples
This example shows how to configure the local AS number for BGP:
Related Commands
|
|
|
|---|---|
local-as (bgp)
To configure a router to appear as a member of a second autonomous system (AS) in addition to the real AS of the device, use the local-as command. To remove the local AS configuration from the device, use the no form of this command.
local-as autonomous-system-number [no-prepend | replace-as [dual-as]]
no local-as autonomous-system-number [no-prepend | replace-as [dual-as]]
Syntax Description
Defaults
Command Modes
Neighbor configuration (config-router-neighbor)
Command History
|
|
|
Usage Guidelines
Examples
This example shows how to configure a router to appear as a member of a second AS in addition to the real AS of the device:
switch(config)# router bgp 64496
switch(config-router-neighbor)# local-as 429496 no-prepend replace-as dual-as
This example shows how to remove the local AS configuration from the device:
switch# configure terminal
switch(config)# router bgp 64496
switch(config-router-neighbor)# no local-as
Related Commands
|
|
|
|---|---|
log-adjacency-changes (EIGRP)
To enable the logging of changes in Enhanced Interior Gateway Routing Protocol (EIGRP) adjacency state, use the log-adjacency-changes command. To disable the logging of changes in EIGRP adjacency state, use the no form of this command.
Syntax Description
Defaults
Command Modes
Address-family configuration
Router configuration
Router VRF configuration
Command History
|
|
|
|---|---|
Usage Guidelines
Examples
This example shows how to enable logging of adjacency state changes for EIGRP 1:
Related Commands
|
|
|
|---|---|
log-adjacency-changes (IS-IS)
To enable the router to send a syslog message when an Intermediate System-to-Intermediate System Intradomain Routing Protocol (IS-IS) neighbor goes up or down, use the log-adjacency-changes configuration mode command. To disable this function, use the no form of this command.
Syntax Description
Defaults
Command Modes
Router configuration
VRF configuration
Command History
|
|
|
|---|---|
Usage Guidelines
The log-adjacency-changes command is on by default but only up/down (full/down) events are reported.
Examples
This example configures the router to send a syslog message when an IS-IS neighbor state changes:
Related Commands
|
|
|
|---|---|
log-adjacency-changes (OSPF)
To configure the router to send a syslog message when the state of an Open Shortest Path First (OSPF) neighbor changes, use the log-adjacency-changes command. To turn off this function, use the no form of this command.
log adjacency changes [ detail ]
Syntax Description
(Optional) Provides all (DOWN, INIT, 2WAY, EXSTART, EXCHANGE, LOADING, FULL) adjacency state changes. |
Defaults
The router sends a system message when the state of an OSPF neighbor changes.
Command Modes
Router configuration
Router VRF configuration
Command History
|
|
|
|---|---|
Usage Guidelines
Use the log-adjacency-changes command to display high-level changes to the state of the OSPF neighbor relationship. This command is on by default but only reports the up/down (full/down) events if you do not use the detail keyword.
Examples
This example shows how to configure the router to send a system message when an OSPF neighbor state changes:
log-adjacency-changes (OSPFv3)
To configure the router to send a system message when the state of an Open Shortest Path First version 3 (OSPFv3) neighbor changes, use the log-adjacency-changes command. To turn off this function, use the no form of this command.
log adjacency changes [ detail ]
Syntax Description
(Optional) Provides all (DOWN, INIT, 2WAY, EXSTART, EXCHANGE, LOADING, FULL) adjacency state changes. |
Defaults
The router sends a system message when the state of an OSPFv3 neighbor changes.
Command Modes
Router configuration
Router VRF configuration
Command History
|
|
|
|---|---|
Usage Guidelines
Use the log-adjacency-changes command to display high-level changes to the state of the OSPFv3 neighbor relationship. This command is on by default but only reports the up/down (full/down) events if you do not use the detail keyword.
Examples
This example shows how to configure the router to send a system message when an OSPFv3 neighbor state changes:
log-neighbor-warnings
To enable the logging of Enhanced Interior Gateway Routing Protocol (EIGRP) neighbor warning messages, use the log-neighbor-warnings command. To disable the logging of EIGRP neighbor warning messages, use the no form of this command.
log-neighbor-warnings [ seconds ]
Syntax Description
(Optional) Time interval (in seconds) between repeated neighbor warning messages. The range of seconds is from 1 to 65535. |
Defaults
Command Modes
Address-family configuration
Router configuration
Router VRF configuration
Command History
|
|
|
|---|---|
Usage Guidelines
Use the log-neighbor-warnings command to enable neighbor warning messages and to configure the interval between repeated neighbor warning messages.
Examples
This example shows how to log neighbor warning messages for EIGRP process 209 and to repeat the warning messages in 5-minute (300 seconds) intervals:
Related Commands
|
|
|
|---|---|
low-memory exempt
To exempt a Border Gateway Protocol (BGP) neighbor from a low-memory shutdown, use the low-memory exempt command. To make a BGP neighbor eligible for a low-memory shutdown, use the no form of this command.
Syntax Description
Defaults
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Examples
This example shows how to exempt a neighbor from low-memory shutdown:
Related Commands
|
|
|
|---|---|
lsp-gen-interval
To customize the IS-IS throttling of the LSP generation, use the lsp-gen-interval configuration mode command. To restore default values, use the no form of this command.
lsp-gen-interval { level-1 | level-2 } lsp-max-wait [ lsp-initial-wait lsp-second-wait ]
Syntax Description
Defaults
Command Modes
Router configuration
VRF configuration
Command History
|
|
|
|---|---|
Usage Guidelines
When you change the default values of this command, use the following guidelines:
- The lsp-initial-wait argument indicates the initial wait time (in milliseconds) before generating the first LSP.
- The lsp-second-wait argument indicates the amount of time to wait (in milliseconds) between the first and second LSP generation.
- Each subsequent wait interval is twice as long as the previous one until the wait interval reaches the lsp-max-wait interval specified, so this value causes the throttling or slowing down of the LSP generation after the initial and second intervals. Once this interval is reached, the wait interval continues at this interval until the network calms down.
- After the network calms down and there are no triggers for 2 times the lsp-max-wait interval, fast behavior is restored (the initial wait time).
The lsp-mtu command sets the delay (in milliseconds) between successive LSPs being transmitted (including LSPs generated by another system and forwarded by the local system).
You can enter these commands in combination to control the rate of LSP packets being generated, transmitted, and retransmitted.
Examples
This example configures the interval for LSP generation:
Related Commands
|
|
|
|---|---|
lsp-mtu
To set the maximum size of a link-state packet (LSP) generated by Cisco NX-OS software, use the lsp-mtu command. To restore the default Maximum Transmission Unit (MTU) size, use the no form of this command.
Syntax Description
Maximum LSP size in bytes. Range: 128 to 4352. Default: 1492. |
Defaults
Command Modes
Router configuration
VRF configuration
Command History
|
|
|
|---|---|
Usage Guidelines
You can increase the LSP MTU if there is a very large amount of information generated by a single router, because each device is limited to approximately 250 LSPs. In practice, this should never be necessary.
The LSP MTU must never be larger than the smallest MTU of any link in the area. This is because LSPs are flooded throughout the area.
The lsp-mtu command limits the size of LSPs generated by this router only.
Examples
This example sets the maximum LSP size to 1500 bytes:
Related Commands
|
|
|
|---|---|
Feedback