source-interface

Configures the source IP address of the Network Time Protocol (NTP) packets.
Syntax
source-interface { ethernet unit/slot/port | lag lag-id | loopback num | ve num }
no source-interface { ethernet unit/slot/port | lag lag-id | loopback num | ve num }
Command Default

When the system sends an NTP packet, the source IP address is normally set to the lowest IP address of the interface through which the NTP packet is sent.

Parameters
ethernet unit/slot/port
Configures the source IP address for an NTP packet as that of the specified Ethernet interface.
lag lag-id
Configures the source IP address for an NTP packet as a LAG virtual interface.
loopback num
Configures the source IP address for an NTP packet as that of the specified loopback interface.
ve num
Configures the source IP address for an NTP packet as that of the specified Virtual Ethernet interface.
Modes

NTP configuration mode

Usage Guidelines

The specified interface will be used for the source address for all packets sent to all destinations. If a source address is to be used for a specific association, use the source keyword in the peer or server command.

Note: If the source interface is not configured, the lowest IP address in the outgoing interface will be used in the NTP packets.

The no form of the command resets the source IP address of the NTP packets as the IP address of the interface through which the NTP packets are sent.

Examples

The following example configures the source IP address for an NTP packet as that of the specified Ethernet interface.

device(config)# ntp
device(config-ntp)# source-interface ethernet 1/1/3
History
Release version Command history
08.0.61 This command was modified to add lag lag-id options.