Configuring NTP and Syslog over IPv6 on CTP Node (CTPView)
Following are the pre-requirements for configuring NTP and Syslog over IPv6 on CTP node:
CTP should be configured to either “IPv6 only” or “IPv4 and IPv6” protocol as shown below:
Hostname: ctp_90 Protocols supported: IPV4 & IPV6 Default network device (eth0: 10/100/1000 Copper (right back)) IPV4 parameters: ipaddress: 10.216.118.90 netmask: 255.255.254.0 default gw: 10.216.119.254 mtu: 1500 bytes Default network device (eth0: 10/100/1000 Copper (right back)) IPV6 parameters: ip6addr: 2001:418:9802:ffee::90/48 ip6mtu: 1500 bytes ipv6gw: 2001:418:9802:ffee::1
The NTP or Syslog server should be configured with an IPv6 address.
Configuring NTP (without Authentication) over IPv6 on CTP Node
To configure NTP (without authentication) over IPv6 on CTP node using CTPView:
In the side pane, select System > Configuration. The System Configuration page appears.
Click the Node Settings tab.
Under the NTP Settings section, enter the first IPv6 server address in the 1st field. If required, enter the second IPv6 server address in the 2nd field.
Leave the Key ID and Key Value fields blank.
Change the Status to Enabled, and then click Submit Settings.
After submitting the NTP settings, CTP node tries to synchronize with the first NTP server. Upon successful synchronization, the date or time of CTP node is changed to the respective date or time of the first NTP server. If the CTP node is unable to synchronize with the first server, it tries to synchronize with the second NTP server. Upon successful synchronization with the second NTP server, the date or time of the CTP node is changed to the respective date or time of the second NTP server.
Configuring NTP (with Authentication) over IPv6 on CTP Node
It is assumed that the shared secret key is already being communicated between client and server and it is the responsibility of the server to have the shared secret keys already configured in their conf and keys files.
If CTPView acts as NTP server, make sure that the line “trustedkey 1” (here 1 is key ID, some other key ID can also be used) is added in the /etc/ntp.conf of CTPView server. The line “1 M juniper” (here 1 is key ID and juniper is key, some other key and key ID can also be used) should be mentioned in the /etc/ntp/keys, and ntpd should be started in CTPView server.
To configure NTP with authentication over IPv6 on CTP node using CTPView:
- In the side pane, select System > Configuration. The System Configuration page appears.
- Click the Node Settings tab.
- Under the NTP Settings section, enter the first IPv6 server address in the 1st field. If required, enter the second IPv6 server address in the 2nd field.
- Enter key ID and key values in the Key ID and Key Value fields, respectively. The key ID should be unique for both NTP servers.
- Change the Status to Enabled, and then click Submit Settings.
4. After submitting the NTP settings, CTP node tries to synchronize with the first NTP server. Upon successful synchronization, the date or time of CTP node is changed to the respective date or time of the first NTP server. If the CTP node is unable to synchronize with the first server, it tries to synchronize with the second NTP server. Upon successful synchronization with the second NTP server, the date or time of the CTP node is changed to the respective date or time of the second NTP server.
Configuring Syslog over IPv6 on CTP Node
To configure Syslog over IPv6 on CTP Node:
- In the side pane, select System > Configuration. The System Configuration page appears.
- Click the Node Settings tab.
- Under the Syslog Settings section, enter the first IPv6 server address in the 1st field. If required, enter the second IPv6 server address in the 2nd field.
- Change the Status to Enabled, and then click Submit Settings.
- After submitting the Syslog settings, monitor the /var/log/messages of both the syslog servers. The CTP
logs should be displayed in syslog servers as shown below:
[root@ctp_90 /tmp 19]# t Jun 22 18:23:33 ctp_90 ctpd: 7 util_prt_psc: se-0/2 B4 St Chg: RUNNING to DISABLD Jun 22 18:23:34 ctp_90 ctpd: 7 util_prt_psc: se-0/2 B4 St Chg: DISABLD to NoSYNC Jun 22 18:23:35 ctp_90 ctpd: 7 util_prt_psc: se-0/2 B4 St Chg: NoSYNC to InSYNC Jun 22 18:23:36 ctp_90 ctpd: 7 util_prt_psc: se-0/2 B4 St Chg: InSYNC to RUNNING Logs in Syslog Servers [juniper_sa@ctpview log 30]$ tail -f /var/log/messages Jun 22 18:23:33 ctp_90 ctpd: 7 util_prt_psc: se-0/2 B4 St Chg: RUNNING to DISABLD Jun 22 18:23:34 ctp_90 ctpd: 7 util_prt_psc: se-0/2 B4 St Chg: DISABLD to NoSYNC Jun 22 18:23:35 ctp_90 ctpd: 7 util_prt_psc: se-0/2 B4 St Chg: NoSYNC to InSYNC Jun 22 18:23:36 ctp_90 ctpd: 7 util_prt_psc: se-0/2 B4 St Chg: InSYNC to RUNNING