Table Of Contents
Configuring CSS Basics
Initial Setup Quick Start
Changing the Administrative Username and Password
Creating Usernames and Passwords
Configuring the Ethernet Management Port
Configuring an IP Address and Subnet Mask for the Ethernet Management Port
Configuring Static Routes for the Ethernet Management Port
Configuring a Default Gateway for the Ethernet Management Port
Discarding ICMP Redirects on the Ethernet Management Port
Shutting Down the Ethernet Management Port
Configuring an IP Route
Configuring the Date, Time, and Time Zone
Setting the Date
Setting the European Date
Setting the Time
Setting the Time Zone
Configuring Daylight Saving Time
Configuring DST to Occur Every Year
Configuring DST for Only One Year
Disabling DST on the CSS
Showing the Date and Time
Synchronizing the CSS with an SNTP Server
Configuring a Primary or Secondary SNTP Server
Configuring the Poll Interval for the SNTP Server
Showing SNTP Configuration Information
Configuring a Host Name
Where to Go Next
Configuring CSS Basics
This chapter describes the initial configuration procedures for the CSS. Information in this chapter applies to all CSS models, except where noted.
This chapter contains the following major sections:
•
Initial Setup Quick Start
•
Changing the Administrative Username and Password
•
Creating Usernames and Passwords
•
Configuring the Ethernet Management Port
•
Configuring an IP Route
•
Configuring the Date, Time, and Time Zone
•
Synchronizing the CSS with an SNTP Server
•
Configuring a Host Name
Initial Setup Quick Start
Table 2-1 is a quick start configuration table designed to help you configure the CSS quickly and easily. This table provides the following basic steps:
•
Log in and access config mode
•
Change the default administrative username and password
•
Create additional usernames and passwords to log in to the CSS (optional)
•
Access boot mode to configure an IP address and subnet mask for the Ethernet management port
•
Configure a static route for destination networks that are outside the local subnet of the CSS and the Ethernet management port (optional)
•
Configure a default IP route
•
Enter the date, time, and time zone (optional)
•
Specify a Simple Network Time Protocol (SNTP) server (optional)
Once you configure the Ethernet management port IP address, you can continue to use the console port or you can use the Ethernet management port to Telnet in to the CSS and configure it remotely.
Table 2-1 Initial Setup Quick Start
Task and Command Example
|
1. Log in to the CSS using the default administrative username admin and password system, or the username and password assigned to you during the boot process.
Refer to Chapter 1, Booting, Logging In, and Getting Started, for details on logging in to the CSS.
|
2. Access config mode.
|
3. Change the default administrative username and password.
(config)# username-offdm bobo password secret
|
4. Create usernames and passwords to log in to the CSS (optional). The CSS supports a maximum of 32 usernames, including the administrator and technician usernames. You can assign each user with SuperUser or User status.
(config)# username picard password "captain" superuser
|
5. Access boot mode to configure an IP address for the Ethernet management port. This IP address must be on a different subnet than any other CSS virtual LAN (VLAN) circuit IP subnet or you will not be able to access the port. You must reboot the CSS for the new IP address to take effect.
(config-boot)# ip address 172.16.6.58
|
6. Configure a subnet mask for the Ethernet management port in boot mode.
(config-boot)# subnet mask 255.255.255.0
|
7. Exit from boot mode to config mode.
|
8. Configure a static IP route, as required.
(config)# ip route 192.168.0.0 255.255.0.0 192.168.1.1
|
9. Exit from config mode to configure a date. The clock date command does not allow backspacing. If you enter a wrong date, reenter the command with the new information.
Enter the date in the format mm-dd-yy.
Enter date: [12-31-03] 12-31-03
To use the European format to specify the date (using the format of day, month, and year), access config mode and use the date european-date command to enable the clock date command to accept date input in the format of day, month, and year.
(config)# date european-date
Enter date: [31-12-03] 31/12/03
|
10. Configure the time using the clock time command. The clock time command does not allow backspacing. If you enter the wrong time, reenter the command with the new information.
Enter the time in the format hh:mm:ss.
Enter time: [15:17:33] 16:17:33
|
11. (Optional) Specify the time zone and Universal Time Coordinated (UTC) offset if you are using an SNTP server to synchronize the CSS system clock.
# clock timezone EST hours 3 before-UTC
|
12. (Optional) Access config mode and specify the SNTP server and the polling frequency if you are using an SNTP server to synchronize the CSS system clock.
(config)# sntp server 192.168.19.21 version 2
(config)# sntp poll-interval 90
|
13. Save your configuration changes to the running-config file (recommended). If you do not save changes to the running-config file, all configuration changes are lost upon reboot.
# copy running-config startup-config
|
The following running-configuration example shows the results of entering the commands in Table 2-1.
!*************************** GLOBAL ***************************
username picard des-password 1hbfoeqbyecclcac superuser
sntp server 192.168.19.21 version 2
ip route 192.168.0.0 255.255.0.0 192.168.1.1 1
Changing the Administrative Username and Password
During the initial log in to the CSS you enter the default user name admin and the default password system in lowercase text. For security reasons, you should change the administrative username and password. Security on your CSS can be compromised because the administrative username and password are configured to be the same for every CSS shipped from Cisco Systems.
The administrative username and password are stored in nonvolatile random access memory (NVRAM). Each time you reboot the CSS, it reads the username and password from NVRAM and reinserts them in to the user database. SuperUser status is assigned to the administrative username by default.
You can change the administrative username and password, but because the information is stored in NVRAM, you cannot permanently delete them. If you delete the administrative username using the no username command, the CSS deletes the username from the running-config file, but restores the username from NVRAM when you reboot the CSS.
Use the username-offdm name password text command to change the administrative username or password.
Note
You can also use the Security Options menu from the Offline DM menu (accessed during the boot process) to change the administrative username and password. Refer to the Cisco Content Services Switch Administration Guide for information on the Offline DM menu.
For example, to change the default administrative username and password to a different username and password, enter.
(config)# username-offdm bobo password secret
Creating Usernames and Passwords
You can assign each user that logs into the CSS with SuperUser or User status.
•
User - Allows access to a limited set of commands that enable you to monitor and display CSS parameters, but not change them. A User prompt ends with the > symbol.
•
SuperUser - Allows access to the full set of CLI commands, including those in User mode, that enable you to configure the CSS. A SuperUser prompt ends with the # symbol.
Use the username command to create usernames and passwords to log in to the CSS. The CSS supports a maximum of 32 usernames, including the administrator and technician usernames.
From SuperUser mode, you can enter global configuration mode and its subordinate configuration modes. If you do not specify superuser when configuring a new user, the new user has only user-level status by default.
Caution 
Creating or modifying a username and password is restricted to CSS users who are identified as either administrators or technicians, and it is contingent on whether the
restrict user-database command has been entered (refer to the
Cisco Content Services Switch Security Configuration Guide).
The syntax for this global configuration mode command is:
username name [des-password|password] password {superuser}
{dir-access access}
The following example creates a SuperUser named picard with a password of captain.
(config)# username picard password "captain" superuser
The options and variables are as follows:
•
name - Sets the username you want to assign or change. Enter an unquoted text string with no spaces and a maximum of 16 characters. To see a list of existing usernames, enter username ?.
•
des-password - Specifies that the password you enter is the Data Encryption Standard (DES) form of the password. Use this option only when you are creating a script or a startup configuration file. Enter a DES-encrypted, case-sensitive, unquoted text string with no spaces from 6 to 64 characters.
Note
If you specify the des-password option, you must know the encrypted form of the password to successfully log in to the CSS. You can find the CSS encrypted password in the Global section of the running-config. To display the running-config, use the show running-config command.
•
password - Specifies that the password is not encrypted on your display as you enter it. However, the CSS DES-encrypts the password in the running-config for extra security. Use this option when you use the CLI to create users. Enter a case-sensitive, unquoted text string with no spaces from 6 to 16 characters.
•
password - The text string that you enter. The CSS allows all special characters in a password except for the percent sign (%).
•
superuser - Specifies SuperUser privileges to allow a user to access SuperUser mode. If you do not enter this option, the user can access only User mode.
•
dir-access - (Optional) Defines the CSS directory access privileges for the username. There are access privileges assigned to the seven CSS directories, in the following order: Script, Log, Root (installed CSS software), Archive, Release Root (configuration files), Core, and MIBs. By default, users have both read- and write-access privileges (B) to all seven directories. Administrators or technicians can use the dir-access option to selectively implement a set of directory access privileges for each user. Changing the access level also affects the use of the CLI commands associated with directories.
To use the dir-access option, you must first specify the restrict user-database command to implement security restrictions for the CSS user database (refer to the Cisco Content Services Switch Administration Guide).
•
access - Specifies directory access privileges for the username. By default, users have both read- and write-access privileges (B) to all seven directories. Enter, in order, one of the following access privilege codes for each of the seven CSS directories:
–
R - Read-only access to the CSS directory
–
W - Write-only access to the CSS directory
–
B - Both read- and write-access privileges to the CSS directory
–
N - No access privileges to the CSS directory
Figure 2-1 illustrates the directory access privileges for a username.
Figure 2-1 CSS Directory Access Privileges
For example, to define directory access for username picard, enter:
(config)# username picard password "captain" superuser NWBNNNR
To display a list of existing usernames, enter:
To remove an existing username, enter:
(config)# no username picard
To change a user password, reenter the username command and specify the new password. Remember to include SuperUser privileges if required. For example:
(config)# username picard password "flute" superuser
Caution 
The
no username command removes a user permanently. Make sure you want to perform this action because you cannot undo this command.
Configuring the Ethernet Management Port
The Ethernet management port provides a connection to the CSS that allows you to perform CSS management functions. The Ethernet management port supports management functions such as:
•
Secure remote login through SSH
•
Remote login through Telnet
•
File transfer through active FTP
•
SNMP queries
•
SNTP
•
DNS
•
ICMP redirects
•
RADIUS
•
Syslog
•
CDP
•
TACACs
•
CSS configuration changes through XML
Note
When using static routes for managing the CSS from subnets beyond the management LAN, the Ethernet management port supports the previous list of management applications, except CDP, DNS, SNTP, and TACACs. For more information on static routes, see the "Configuring Static Routes for the Ethernet Management Port" section.
The Ethernet management port also supports ping and traceroutes initiated from the CSS.
The Ethernet management port is located on the CSS 11501, CSS 11503, or CSS 11506 SCM front panels.
To access the Ethernet management port on the CSS, you must assign an IP address and a subnet mask to the port. If you want to manage the CSS from a subnet that is different from the Ethernet management port, you can configure static routes for the Ethernet management port.
If you want to use the Offline Diagnostic Monitor (Offline DM) menu to boot the CSS from an image that resides on a different subnet, you can configure a default gateway for the Ethernet management port.
Note the following considerations when configuring or using the Ethernet management port:
•
Dynamic routing protocols (such as RIP and OSPF) are not supported on the Ethernet management port.
•
Packet routing or forwarding is not supported between the Ethernet management port and the Ethernet interface ports.
•
Access control lists (ACLs) are not supported on the Ethernet management port.
•
APP sessions are not supported on the Ethernet management port.
•
You cannot specify an Ethernet management port IP address that matches or overlaps an IP address, VIP range, or static route previously set for one of the Ethernet interface ports. If you attempt to specify an overlapping or matching IP address, the CSS displays an error message and stops you from completing the command entry.
•
The Ethernet management port supports SNMP requests to retrieve CSS port information. The CSS Enterprise MIBs, however, do not return data for the Ethernet management port.
This section includes the following procedures:
•
Configuring an IP Address and Subnet Mask for the Ethernet Management Port
•
Configuring Static Routes for the Ethernet Management Port
•
Configuring a Default Gateway for the Ethernet Management Port
•
Discarding ICMP Redirects on the Ethernet Management Port
•
Shutting Down the Ethernet Management Port
Configuring an IP Address and Subnet Mask for the Ethernet Management Port
To access the Ethernet management port on the CSS, you must assign an IP address and a subnet mask. When setting the Ethernet management port IP address, note that:
•
The IP address must be on a different subnet than any other CSS VLAN circuit IP subnets. If you do not make the Ethernet management port IP address unique, you cannot access the port. Any traffic that is transmitted from or sent to the CSS circuit will fail if there is an overlap with the management port IP address.
•
An IP address of 0.0.0.0 for the Ethernet management port is a legal setting and disables the management port upon reboot. If you enter 0.0.0.0, and attempt to use the subnet mask command, the following message appears: The mask cannot be set because the IP address is 0.0.0.0.
Use the ip address command to configure an IP address for the Ethernet management port. Use the subnet mask command to configure the subnet mask for the Ethernet management port. Both commands are available in boot mode. You must reboot the CSS for the new Ethernet management port IP address and subnet to take effect.
The first time that you enter an IP address for the Ethernet management port, the CSS automatically configures a default subnet mask of 255.255.255.0. If you want, you can overwrite the default subnet mask with a mask that is appropriate for your application.
For example, to specify an Ethernet management port IP address, enter:
(config-boot)# ip address 172.16.6.58
For example, to specify an Ethernet management port subnet mask of 255.255.255.0, enter:
(config-boot)# subnet mask 255.255.255.0
Both the ip address command and the subnet mask command do not have a no form of the command. To change the IP address of the Ethernet management port, reenter the ip address command and enter the new IP address. To change the subnet mask, reenter the subnet mask command and enter the new subnet mask.
Configuring Static Routes for the Ethernet Management Port
If you want to manage the CSS from a subnet that is different from the Ethernet management port, you can configure static routes for the Ethernet management port. Static route entries consist of the destination IP network address and the IP address of the next hop router. You can configure a maximum of eight static routes for the Ethernet management port.
Note
When using static routes for managing the CSS from subnets beyond the management LAN, the Ethernet management port supports the management applications listed in the "Configuring the Ethernet Management Port" section except CDP, DNS, SNTP, and TACACs.
Note the following considerations when configuring a static route for the Ethernet management port:
•
The CSS does not use an internal (implicit) service for the Ethernet management port to periodically poll the next hop address in a static route. The periodic polling of the next hop address with an ICMP echo (or ping) keepalive is performed only when you configure a static route for an Ethernet interface port.
•
The rip redistribute static and ospf redistribute static commands do not advertise static routes configured on the Ethernet management port. These two commands only advertise static routes configured on the Ethernet interface ports.
Use the ip management route command to configure static routes for the Ethernet management port. This command is available in global configuration mode.
The syntax for the ip management route command is:
ip management route ip_address subnet_mask ip_address2
The variables are as follows:
•
ip_address - The destination network address. Enter the IP address in dotted-decimal notation (for example, 192.168.11.0).
•
subnet_mask - The IP subnet mask. Enter the mask as either:
–
A prefix length in classless interdomain routing (CIDR) bit-count notation (for example, /24).
–
An IP address in dotted-decimal notation (for example, 255.255.255.0).
•
ip_address2 - The next hop address for the route. Enter the IP address in dotted-decimal notation (for example, 192.168.11.0).
For example, to configure a static route for the Ethernet management port, enter:
(config)# ip management route 172.27.59.0 /24 172.16.6.100
To disable a static route for the Ethernet management port, enter:
(config)# no ip management route 172.27.59.0 /24 172.16.6.100
Configuring a Default Gateway for the Ethernet Management Port
The Ethernet management port allows you to boot the CSS from the Offline DM menu when the boot image resides on a different subnet. Use the gateway address command to configure a default gateway for the Ethernet management port. This command is available in boot mode.
To specify a default gateway for the Ethernet management port for use in Offline DM, enter:
(config-boot)# gateway address 172.16.6.110
To disable the default gateway and set it to an IP address of 0.0.0.0, use the no form of the gateway address command. For example:
config-boot)# no gateway address
A default gateway of 0.0.0.0 for the Ethernet management port does not appear in the show boot-config command output for the CSS boot configuration.
Discarding ICMP Redirects on the Ethernet Management Port
By default, the Ethernet management port accepts all incoming ICMP redirects. If you do not configure static routes for the management port, the CSS disregards any ICMP redirect packets. However, when you configure static routes for the management port, the CSS incorporates the ICMP redirects to the port as an entry in the routing table.
To enhance security on the CSS when you configure static routes on the management port, we strongly recommend that you configure the CSS management port to discard ICMP redirects.
Note
The Ethernet management port never transmits an ICMP redirect.
If you remove a static route when the management port is configured to accept ICMP redirect packets, the CSS removes from the routing table the router entry created by the ICMP redirects associated with the static route.
To configure the CSS to discard ICMP redirect packets on the Ethernet management port, enter:
(config)# ip management no-icmp-redirect
To reset the default behavior of accepting ICMP redirect packets on the Ethernet management port, enter:
(config)# no ip management no-icmp-redirect
To view whether the management port accepts or discards ICMP redirect packets, use the show ip configuration command to display the IP Management Port ICMP redirect field. When the port accepts ICMP redirects, the field entry displays enable. When the port discards ICMP redirects, the field entry displays disable.
Shutting Down the Ethernet Management Port
To shut down the Ethernet management port, use the admin-shutdown or shut command.
For example:
•
To shut down the Ethernet management port on the CSS 11501 with the admin-shutdown command, enter:
(config-if[Ethernet-Mgt])# admin-shutdown
•
To shut down the Ethernet management port on the CSS 11501 with the shut command, enter:
(config-if[Ethernet-Mgt])# shut
When you use the shut command, the CSS changes the shut command to the admin-shutdown command in the running configuration.
Configuring an IP Route
To establish IP connectivity to the CSS, a static IP route is required to connect the CSS to the next hop router. A static route consists of a destination network address and mask and the next hop to reach the destination. You can also specify a default static route (using 0.0.0.0 as the destination network address and a valid next hop address) to direct frames for which no other destination is listed in the routing table. Default static routes are useful for forwarding otherwise unrouteable packets by the CSS.
When you configure a static IP route, the CSS periodically polls the next hop router with an internal ICMP keepalive service to ensure the router is functioning properly. If the router fails, the CSS removes any entries from the routing table that point to the failed router and stops sending traffic to the failed router. When the router recovers, the CSS:
•
Becomes aware of the router
•
Reenters applicable routes in the routing table
To configure a static IP route, use the ip route command and specify one of the following:
•
An IP address and prefix length; for example, 192.168.1.0 /24
•
An IP address and a subnet mask; for example, 192.168.1.0 255.255.255.0
The syntax for the ip route command is:
ip route ip_address subnet mask ip_address2
The variables are as follows:
•
ip_address - The destination network address. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1).
•
subnet_mask - The IP subnet mask. Enter the mask as either:
–
A prefix length in CIDR bit-count notation (for example, /24)
–
An IP address in dotted-decimal notation (for example, 255.255.255.0)
•
ip_address2 - The next hop address for the route. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1).
For example, to configure a static IP route to destination network address 192.168.0.0 /16 and a next hop address of 192.168.1.1, enter:
(config)# ip route 192.168.0.0 /16 192.168.1.1
For example, to configure a default IP route using a destination address of 0.0.0.0/0 and a next hop address of 192.167.1.1, enter:
(config)# ip route 0.0.0.0 /0 192.167.1.1
Refer to the Cisco Content Services Switch Routing and Bridging Configuration Guide for complete information on configuring IP routes.
Configuring the Date, Time, and Time Zone
To set the date, time, or time zone for the CSS, use the clock command. When you enter this command, the CSS displays the current date and time.
The clock command does not allow backspacing. If you enter the wrong date, time, or time zone, you must reenter the command with the new information.
This section includes the following topics:
•
Setting the Date
•
Setting the European Date
•
Setting the Time
•
Setting the Time Zone
•
Configuring Daylight Saving Time
•
Showing the Date and Time
Setting the Date
Use the clock date command to set the date. A prompt appears to show the current date in the correct format to use. Enter the month, day, and year as integers with dash characters separating them. For example, enter June 15th 2003 as 06-15-03.
Enter the new date in the format mm-dd-yy as shown:
Enter date: [12-31-03] 12-31-03
Setting the European Date
Use the date european-date global configuration mode command to specify the date in the European format of day, month, and year. This command enables the clock date command to accept the date in day, month, and year, separated by slashes (/).
Enter the new date in the format dd/mm/yy as shown:
(config)# date european-date
Enter date: [31-12-03] 31/12/03
To reset the format for the clock date command to the default of month, day, and year, enter:
(config)# no date european-date
Setting the Time
Use the clock time command to set the time. This command sets the time in military-time (24-hour) format. A prompt appears to show the current time in the correct format to use. Enter the hour, minutes, and seconds as integers, separated by colons.
Enter the new time in the format hh:mm:ss as shown:
Enter time: [15:12:38] 16:12:38
Setting the Time Zone
Use the clock timezone command to specify a time zone for the CSS, which synchronizes the CSS system clock with an SNTP server. The time stored in the CSS is the local time. The SNTP server calculates the Universal Time Coordinated (UTC, also known as Greenwich Mean Time) time by offsetting the time zone from the local time. If required, you can apply a negative offset to the UTC (for example, -05:-23:+00) or a positive offset to the UTC (for example, +12:+00:+00).
Use the no form of the clock timezone command to reset the time zone information to 00:00:00, and also to set the clock to the new time without the time zone offset.
Note
The use of the clock timezone command assumes you are using the CSS with an SNTP server to synchronize the CSS system UTC time to that of a designated SNTP server. Without a configured SNTP server, the time zone information is not used. See the "Synchronizing the CSS with an SNTP Server" section for details.
The syntax for the clock timezone command is:
clock timezone name hours hours {before-UTC|after-UTC} {minute
minutes {before-UTC|after-UTC}
The options and variables are as follows:
•
timezone name - The name of the time zone. Enter a name with a maximum of 32 characters and no spaces.
•
hours hours - The hours of offset for the time zone. Enter a number from 0 to 12. Use with the before-UTC option or after-UTC option to set the offset to either a negative or positive number.
•
before-UTC - The offset for UTC as a negative number. For example, if the hour offset is 12, before-UTC sets the offset to -12.
•
after-UTC - The offset for UTC as a positive number (the default offset).
•
minute minutes - The minutes of offset for the time zone. Enter a number from 0 to 59. Use with the before-UTC option or after-UTC option to set the offset to either a positive or negative number.
For example, to enter the new time zone for Eastern Standard Time (EST) with a -3 hour offset:
# clock timezone EST hours 3 before-UTC
To set the time zone offset back to 00:00:00 (and also set the clock to the new time without the time zone offset):
Configuring Daylight Saving Time
By default, the CSS does not automatically change its clock for daylight saving time (DST). You can configure the CSS clock to automatically change to accommodate DST and its different policies in countries and territories worldwide. In many places in the world, DST is also known as Summer Time.
The DST feature on the CSS allows you to configure the date to begin and end DST, the time of day, and the number of minutes to offset the time. The DST feature is compatible with the CSS SNTP feature, but also works without having SNTP configured. A CSS configured with both SNTP and DST relies on SNTP to obtain the Coordinated Universal Time (UTC), and the CSS clock timezone information to provide the proper offset from UTC.
Note
Commands that are scheduled in the command scheduler may be affected by the time change when DST begins and ends. If a command is scheduled for execution at the same time period when the clock moves forward on the start of DST, then the CSS does not execute this command. However, when the time reverts back at the conclusion of the DST period and a command is scheduled for execution at this time, then the CSS executes the command twice.
To configure the CSS clock for DST, use the clock summer-time command in SuperUser mode. Through this command, you can configure DST to occur every year or for a single year occurrence on the CSS. You can also configure the number of minutes to offset the time. See the following sections to configure DST on the CSS:
•
Configuring DST to Occur Every Year
•
Configuring DST for Only One Year
•
Disabling DST on the CSS
To view the DST configuration or whether DST is disabled on the CSS, use the show clock command. For more information, see the "Showing the Date and Time" section.
Note
The CSS stores DST configuration information in NVRAM.
Configuring DST to Occur Every Year
To configure DST to occur every year on the CSS, use the recurring option with the clock summer-time command. When you use the recurring keyword without any other options, the CSS uses the United States (US) standard for DST with a 60 minute offset. US DST starts at 2 a.m. on the first Sunday of April and reverts to standard time at 2 a.m. on the last Sunday of October. The syntax is:
clock summer-time name recurring
The name variable is a three-character name for the time zone that appears when you use the show clock command during DST (for example, EDT, CDT, PDT).
For example to configure a zone named EDT to signify eastern daylight time using the default US standard DST every year, enter:
# clock summer-time EDT recurring
When you display this configuration using the show clock command, the Summer Time field displays 1 Sunday April 2:00 last Sunday October 2:00 60.
If you want to configure the CSS DST to occur every year on a different date or time other than that of the US standard, you must enter the start and stop dates and time for DST in the following syntax:
clock summer-time zone recurring start_week start_day start_month
hh:mm end_week end_day end_month hh:mm {offset}
The options are:
•
zone - The three-character name to designate the time zone.
•
start_week - The week of the month to begin DST. Enter a number from 1 to 4, or last.
•
start_day - The day of the week to begin DST. Enter a day from Sunday to Saturday.
•
start_month - The month to begin DST. Enter a month from January to December.
•
hh:mm - The military format of time in hours and minutes. For example, to enter 2 a.m., enter 02:00. For 2 p.m., enter 14:00.
•
end_week - The week of the month to end DST. Enter a number from 1 to 4, or last.
•
end_day - The day of the week to end DST. Enter a day from Sunday to Saturday.
•
end_month - The month to end DST. Enter a month from January to December.
•
(Optional) offset - The number of minutes added to the time for DST. By default, the offset is 60. Enter a number from 1 to 240.
For example, to configure DST in time zone EDT to start on the first Sunday in June at 2 a.m. and end on the last Sunday in October at 2 a.m., enter:
# clock summer-time EDT recurring 1 Sunday June 02:00 last Sunday
October 02:00
Configuring DST for Only One Year
To configure DST to occur for only one year on the CSS, use the date keyword with the clock summer-time command in the following syntax:
clock summer-time zone date dateStart monthStart yearStart hh:mm
dateEnd monthEnd yearEnd hh:mm {offset}
•
zone - The three-character name to designate the time zone.
•
dateStart - The day of the month to begin DST. Enter a number from 1 to 31.
•
monthStart - The month to begin DST. Enter a month from January to December.
•
yearStart - The year to begin DST. Enter a value from 2000 to 2079.
•
hh:mm - The military format of time in hours and minutes. For 2 a.m., enter 02:00. For 2 p.m., enter 14:00.
•
dateEnd - The day of the month to end DST. Enter a number from 1 to 31.
•
monthEnd - The month to end DST. Enter a month from January to December.
•
yearEnd- The year to end DST. Enter a value from 2000 to 2079.
•
(Optional) offset - The number of minutes added to the time for DST. By default, the offset is 60. Enter a number from 1 to 240.
For example, to configure DST in zone PDT to start on October 2, 2005 at 2 a.m. and end on May 2, 2006 at 2 a.m., enter:
# clock summer-time PDT date 2 October 2005 02:00 2 May 2006 02:00
Disabling DST on the CSS
To disable DST on the CSS, the default behavior, use the no clock summer-time command. For example, enter:
Showing the Date and Time
Use the show clock command to display the current date and time. For example:
Table 2-2 describes the fields in the show clock command output.
Table 2-2 Field Descriptions for the show clock Command
Field
|
Description
|
Date
|
Configured date in the format of month, day, and year (mm-dd-yyyy); for example, the date June 15th 2005 appears as 06-15-2005.
If you use the date european-date command, the format is day, month, and year (dd-mm-yyyy). For example, the date June 15th 2005 appears as 15-06-2005.
|
Time
|
Configured time in the format of hour, minute, and second (hh:mm:ss); for example, 16:23:45.
If you configure an SNTP server, the show clock command displays the time adjusted with the time zone offset. The show clock command displays the UTC time from the SNTP server. If you configure a time zone, the show clock command displays the time adjusted with the time zone offset. For example, if the UTC time from the server is 16:30:43 and you configure a time zone negative offset of 5 hours and 30 minutes (-05:-30:+00), the displayed time becomes 11:00:43.
|
TimeZone
|
The configured name of the time zone and the time offset from an SNTP server. When daylight savings time (DST) is configured, the configured DST timezone name is displayed during DST.
An offset with all zeros (00:00:00) indicates that no offset was configured for the time zone. A negative symbol (-) indicates a negative offset to the UTC (for example, -05:-23:+00). A positive symbol (+) indicates a positive offset to the UTC (for example, +12:+00:+00).
When DST is configured, this field also provides information in brackets that displays the DST recurring or date configuration settings. During DST, the configured name for the time zone, and the start date and time for standard time are displayed. When standard time is in effect, the configured name for the DST time zone, and its start date and time are displayed.
|
Summer Time
|
The three-letter configured name of the time zone when you configure DST. Disabled indicates that the CSS is not configured for DST.
|
Change
|
The number of minutes added to the time for DST. By default, the offset is 60.
|
Added
|
The current DST configuration when the clock transitions to DST.
|
Removed
|
The current DST configuration when the clock transitions to standard time.
|
Synchronizing the CSS with an SNTP Server
The Simple Network Time Protocol (SNTP) enables you to synchronize the computer system clocks on the Internet to that of a designated SNTP server. SNTP is a simplified, client-only version of the Network Time Protocol (NTP) that enables the CSS time-of-day to be synchronized with any SNTP server. Use the sntp command to configure SNTP on the CSS.
Accurate time-of-day is provided by synchronizing to the UTC time, which provides time within 100 milliseconds of the accurate time. You can configure information about the local time zone so the time appears correctly relative to the local time zone. You can configure two SNTP servers (primary and secondary) in case one server is unavailable. The CSS can receive the time from both servers but uses only the time of the primary server. If the primary server is unavailable, the CSS uses the time of the secondary server.
Note
The CSS cannot be used to provide time services to other devices.
Before you synchronize the CSS with an SNTP server, make sure you configure the proper time zone for the CSS (for example, to EST). Also make sure the time difference between the CSS internal clock and the SNTP server clock is less than 24 hours. Otherwise, the CSS will not synchronize its clock with the SNTP server. To configure the time on the CSS, see the "Configuring the Date, Time, and Time Zone" section for details.
For detailed information on configuring the SNTP server, consult the documentation provided with the server.
This section includes the following topics:
•
Configuring a Primary or Secondary SNTP Server
•
Configuring the Poll Interval for the SNTP Server
•
Showing SNTP Configuration Information
Configuring a Primary or Secondary SNTP Server
The CSS can receive the time from an SNTP server. You can configure up to two SNTP servers on the CSS. The primary server is the main server from which the CSS receives the time. You can configure an additional server, a secondary server, that acts as a backup server if the primary SNTP server is unavailable.
For the CSS to receive the time from an SNTP server, you must configure the IP address for the server through the sntp command. You can configure a primary, or secondary server, or both. You can also configure the version of SNTP that the server is using. The syntax for this command is:
sntp primary-server | secondary-server ip_address {version number}
The keywords, options, and variables are:
•
primary-server - Configures the server as the primary SNTP server.
•
secondary-server - Configures the server as the secondary SNTP server.
•
ip_address - The IP address for the SNTP server. Enter an IP address in dotted-decimal notation (for example, 192.168.1.0).
•
version number - (Optional) Configures the version number of the SNTP server. The valid number entries are 1 to 4. The default is 1.
For example., to configure a primary SNTP server running version 3, enter:
(config)# sntp primary-server 192.168.19.21 version 3
To remove a primary SNTP server, enter:
(config)# no sntp primary-server
To configure a secondary SNTP server running version 3, enter:
(config)# sntp secondary-server 192.168.19.22 version 3
To remove a secondary SNTP server, enter:
(config)# no sntp secondary-server
Configuring the Poll Interval for the SNTP Server
Continuous polling is critical for the CSS to obtain time from the SNTP server and ensure the local time matches the "real time" of the server. The poll interval is the time in seconds between successive SNTP request messages to the server. By default, this interval is 64 seconds. To configure the poll interval for SNTP request message, use the following command:
sntp [primary-server-poll-interval | secondary-server-poll-interval]
seconds
The keywords and variable are:
•
primary-server-poll-interval - Configures the poll interval for the primary SNTP server.
•
secondary-server-poll-interval - Configures the poll interval for the secondary SNTP server.
•
seconds - The poll interval in seconds between successive SNTP request messages to the server. Enter a value from 16 to 16284 seconds. The default is 64 seconds
For example, to specify a poll-interval of 90 seconds for the primary SNTP server, enter:
(config)# sntp primary-server-poll-interval 90
To reset the poll-interval for the primary SNTP server to the default setting of 64 seconds, enter:
(config)# no sntp primary-server-poll-interval
Showing SNTP Configuration Information
To display the SNTP configuration information on the CSS, enter the show sntp global command. For example:
(config)# show sntp global
Table 2-3 describes the fields in the show sntp global command output.
Table 2-3 Field Descriptions for the show sntp global Command
Field
|
Description
|
Server
|
Whether the server is configured as a primary or secondary server.
|
Server Address
|
The IP address for the SNTP server. This field also indicate whether the server is configured as a primary or secondary server.
|
Version
|
The version number of the server. The default is 1.
|
Poll Interval
|
The time in seconds between SNTP request messages. The range is 16 to 16284. The default is 64.
|
TimeSinceLastUpdate
|
The time in seconds since the last server reply.
|
Server Status
|
The operating status of the SNTP server, UP or DOWN. After the CSS fails to connect to the SNTP server three consecutive times, the CSS marks the SNTP state as DOWN.
|
Configuring a Host Name
The Host table is the static mapping of mnemonic host names to IP addresses, which is analogous to the ARP table. Use the host command to manage entries in the Host table of the CSS.
The syntax for this global configuration mode command is:
host host_name ip_address
The variables are as follows:
•
host_name - The name of the host. Enter an unquoted text string with no spaces and a length from 1 to 16 characters.
•
ip_address - The address associated with the host name. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1).
To add a host to the Host table, the host name must not exist in the Host table. To change a current host address, remove the host name and then add it again to the Host table with the new address.
For example:
(config)# host CSS11501-LML 192.168.3.6
To remove the existing host from the Host table, enter:
(config)# no host CSS11501-LML
To display a list of host names, enter:
(config)# show running-config global
Where to Go Next
Chapter 3, Configuring the Domain Name Service, provides information to configure the Domain Name Service (DNS), the facility that translates host names such as myhost.mydomain.com to IP addresses.