Configuring the Source IP Address for NTP Packets
By default, the source IP address of an NTP packet sent by the router is the address of the interface through
which the NTP packet is sent. Use this procedure to set a different source address.
No specific command enables NTP; the first NTP configuration command that you issue enables NTP.Note
SUMMARY STEPS
1.
configure
2.
ntp
3.
source type interface-path-id
4.
Use one of the following commands:
•
end
•
commit
DETAILED STEPS
PurposeCommand or Action
configure
Step 1
Enters NTP configuration mode.ntp
Example:
RP/0/RP0/CPU0:router(config)# ntp
Step 2
Configures an interface from which the IP source address is taken.
source type interface-path-id
Step 3
Example:
RP/0/RP0/CPU0:router(config-ntp)#
source POS 0/0/0/1
This interface is 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 shown in
Configuring Poll-Based Associations, on page 147.
Note
Saves configuration changes.Use one of the following commands:
Step 4
•
end
•
When you issue the end command, the system prompts you to commit
changes:
Uncommitted changes found, commit them before
•
commit
Example:
RP/0/RP0/CPU0:router(config-ntp)#
end
exiting(yes/no/cancel)?
[cancel]:
◦
Entering yes saves configuration changes to the running
configuration file, exits the configuration session, and returns the
router to EXEC mode.
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
157
Implementing NTP
Configuring the Source IP Address for NTP Packets