4.4. Configuring Boot Options File with CLI

This section provides information to configure BOF parameters with CLI.

4.4.1. BOF Configuration Overview

Nokia routers do not contain a boot EEPROM. The boot loader code is loaded from the boot.ldr file. The BOF file performs the following tasks:

  1. Sets up the CPM and CCM Ethernet port (speed, duplex, auto).
  2. Assigns the IP address for the CPM and CCM Ethernet port.
  3. Creates static routes for the CPM/CCM Ethernet port.
  4. Sets the console port speed.
  5. Configures the Domain Name System (DNS) name and DNS servers.
  6. Configures the primary, secondary, tertiary configuration source.
  7. Configures the primary, secondary, and tertiary image source.
  8. Configures the license source.
  9. Configures operational parameters.

4.4.2. Basic BOF Configuration

The parameters which specify location of the image filename that the router will try to boot from and the configuration file are in the BOF.

The most basic BOF configuration should have the following:

  1. Primary address
  2. Primary image location
  3. Primary configuration location

The following is a sample of a basic BOF configuration.

A:SR-45# show bof
===============================================================================
BOF (Memory)
===============================================================================
    primary-image cf3:/4.0.R20
    primary-config cf3:/ospf_default.cfg
    address 192.168.189.53/24 active
    static-route     192.168.0.0/16 next-hop 192.168.189.1
    static-route     172.16.0.0/8 next-hop 192.168.189.1
    autonegotiate
    duplexfull
    speed100
    wait3
    persiston
    console-speed    115200
===============================================================================
A:SR-45#
 

4.4.3. Common Configuration Tasks

The following sections are basic system tasks that must be performed.

For details about hardware installation and initial router connections, refer to the specific router hardware installation guide.

4.4.3.1. Searching for the BOF

The BOF should be on the same drive as the boot loader file. If the system cannot load or cannot find the BOF then the system checks whether the boot sequence was manually interrupted. The system prompts for a different image and configuration location.

The following example shows an example of the output when the boot sequence is interrupted.

. . .

###########################################
Sample output:
Hit a key within 3 seconds to change boot parameters...   
Type "sros" and hit ENTER within 29 seconds to begin changing parameters: sros 
You must supply some required Boot Options. At any prompt, you can type:
   "restart" - restart the query mode.
   "reboot"  - reboot.
   "exit"    - boot with existing values.
Press ENTER to begin, or 'flash' to enter firmware update...
Software Location
-----------------
   You must enter the URL of the TiMOS software.
   The location can be on a Compact Flash device,
   or on the network.
   Here are some examples
      cf3:/timos1.0R1
      ftp://user:passwd@192.168.1.150/./timos1.0R1
      ftp://user:passwd@[3FFE::1]/./timos1.0R1
The existing Image URL is 'ftp://*:*@192.168.192.20/./images'
Press ENTER to keep it.
Software Image URL: ftp://vxworks:vxw0rks@192.168.10.20/./rel/0.0/xx
Configuration File Location
---------------------------
   You must enter the location of configuration
   file to be used by TiMOS.  The file can be on
   a Compact Flash device, or on the network.
   Here are some examples
      cf1:/config.cfg
      ftp://user:passwd@192.168.1.150/./config.cfg
      ftp://user:passwd@[3FFE::1]/./config.cfg
      tftp://192.168.1.150/./config.cfg
      tftp://[3FFE::1]/./config.cfg
The existing Config URL is 'ftp://*:*@192.168.192.20/./images/dut-b.cfg'
Press ENTER to keep it, or the word 'none' for no Config URL.
Config File URL: cf1:/config.cfg
License File Location
---------------------------
   You must enter the location of the license
   file to be used by TiMOS.  The file can be on
   a Compact Flash device, or on the network.
   Here are some examples
      cf1:/license.txt
      ftp://user:passwd@192.168.1.150/./license.txt
      ftp://user:passwd@[3FFE::1]/./license.txt
      tftp://192.168.1.150/./license.txt
      tftp://[3FFE::1]/./license.txt
License File URL: 
No license file specified.
IP Autoconfiguration
--------------------
   This device supports IP autoconfiguration of the management port.
   When the Software Image URL and the License File URL are not local,
   the network configuration must be static (no autoconfiguration).
   When the Config File URL is not local,
   the network configuration is recommended to be static (no autoconfiguration).
   Per address family the configuration must be either static, either auto.
The Software Image URL is not local and does require that the IPv4 network is statically configured.
   [IPv4 Autoconfiguration cannot be enabled]
Would you like to enable IPv4 Autoconfiguration? (yes/no) no
Would you like to enable IPv6 Autoconfiguration? (yes/no) no
Network Configuration
---------------------
   You specified a network location for either the
   software or the configuration file.  You need to
   configure IP(v6) for this system.
   IP addresses should be entered in standard
   dotted decimal form with a network length.
       example:   192.168.1.169/24
The existing Active IP address is 192.168.192.23/18. Press ENTER to keep it.
Enter Active IP Address (Type 0 if none desired): 192.168.10.1/20
The existing Standby IP address is 192.168.192.24/18. Press ENTER to keep it.
Enter Standby IP Address (Type 0 if none desired): 192.168.10.2/20
   In case of an IPv6, the IPv6 address should be
   entered in standard colon hexadecimal notation
   with a prefix length.
       example:   3FFE::1/112
The existing Active IPv6 address is 3000::c0a8:c015/114. Press ENTER to keep it.
Enter Active IPv6 Address (Type 0 if none desired): 3ABC::AAAA:1/100
The existing Standby IPv6 address is 3000::c0a8:c016/114. Press ENTER to keep it.
Enter Standby IPv6 Address (Type 0 if none desired): 3ABC::AAAA:2/100
Would you like to add a static route? (yes/no) yes
Static Routes
-------------
   You specified network locations which require
   static routes to reach. You will be asked to
   enter static routes until all the locations become
   reachable.
   Static routes should be entered in the following format:
   prefix/mask next-hop ip-address
       example:     192.168.0.0/16 next-hop 192.168.1.254
       example:     3FFE::1:0/112 next-hop 3FFE::2:1
Enter ip route: 1.1.1.0/24 next-hop 192.168.1.250
1.1.1.0/24 next-hop 192.168.1.250
A route to that subnet already exists.
Would you like to add a static route? (yes/no) no
Would you like to add an IPv6 static route? (yes/no) no
The existing fips-140-2 configuration is : 'no fips-140-2'
If you would like to change it please enter 'fips-140-2' followed by ENTER
or press ENTER to keep existing fips configuration
Auto-Boot
---------
   This device supports automated provisioning
   from the network.  When this mode is enabled
   the system will not execute the boot configuration
   file. Instead, it will boot to the default 
   configuration and automatically provision supported
   equipment for further loading from the network.
Would you like to enable Automated-Provisioning? (yes/no) no
New Settings
------------
    primary-image    ftp://*:*@192.168.10.20/./rel/0.0/xx
    primary-config   cf1:/config.cfg
    address          192.168.10.1/20 active
    address          192.168.10.2/20 standby
    address          3abc::aaaa:1/100 active
    address          3abc::aaaa:2/100 standby
    static-route     1.1.1.0/24 next-hop 192.168.1.250
    autonegotiate
    duplex           full
    speed            100
    wait             3
   persist          off
    no fips-140-2
    console-speed    115200
Do you want to overwrite cf3:/bof.cfg with the new settings? (yes/no): yes
Successfully saved the new settings in cf3:/bof.cfg
###########################################

4.4.3.2. Accessing the CLI

To access the CLI to configure the software for the first time, follow these steps:

  1. When the CPM/CCM is installed, and power to the chassis is turned on, the SR OS software automatically begins the boot sequence.
  2. When the boot loader and BOF image and configuration files are successfully located, establish a router connection (console session).

4.4.3.2.1. Console Connection

To establish a console connection, you will need the following:

  1. An ASCII terminal or a PC running terminal emulation software set to the parameters shown in the table below.
  2. A standard serial cable with a male DB9.

Table 29 lists the console configuration parameter values.

Table 29:  Console Configuration Parameter Values 

Parameter

Value

Baud Rate

115,200

Data Bits

8

Parity

None

Stop Bits

1

Flow Control

None

To establish a console connection:

  1. Connect the terminal to the Console port on the CPM/CCM using the serial cable.
  2. Power on the terminal.
  3. Establish the connection by pressing the <Enter> key a few times on your terminal keyboard.
  4. At the router prompt, enter the login and password.
    The default login is admin.
    The default password is admin.

4.4.4. Configuring BOF Parameters

The following example shows a BOF configuration on a 7750 SR:

A:ALA-1>bof# show bof
==================================================================
Memory BOF
==================================================================
no autonegotiate
duplex      full
speed      100
address    10.10.xx.xx/20 active
wait    3
primary-image cf3:\both.tim
primary-config cf3:\test123.cfg
primary-dns 192.168.xx.xx 
persist     on
dns-domain test.nokia.com
==================================================================
A:ALA-1>bof#

4.4.4.1. Autoconfigure

When autoconfigure is enabled, the router performs a DHCP discovery or solicit (IPv6) to get the IP address of the out-of-band (OOB) management port.

The OOB management port can support a DHCP client for IPv4, IPv6, or dual stack. For dual stack, both IPv4 and IPv6 DHCP are configured. When the offer for either of the address families arrives, the management port is configured with the IP address in the offer. Eventually, both offers arrive and the management port is configured with both address families.

When a DHCP client is configured using autoconfigure, all image and license files should be placed and loaded from the CF. The configuration file could be loaded from the network, but Nokia recommends that the config file be on the CF as well. The configuration file is not loaded until the DHCP client offer is received and programmed successfully for the management port IP address, or the DHCP client timeout is expired.

4.4.4.1.1. Autoconfigure Restrictions

When autoconfigure is enabled, a static IP address or static route cannot be configured in the BOF.

Similarly, a DNS server cannot be configured in the BOF, and only the DNS server provided by the DHCP offer can be used to resolve URLs.

The option 15 DNS domain name is not supported. The user can configure the DNS domain in the BOF so that the domain is not blocked when autoconfigure is used. Otherwise, the user must use the absolute URL with the host-name and domain included.

4.4.4.1.2. DHCP Discovery of MAC Addresses

When autoconfigure is used on redundant CPM chassis, the DHCP discovery uses the chassis MAC address. Only the active CPM performs a DHCP discovery and not the inactive CPM. When the offer arrives, the node uses that IP and the chassis MAC as addresses for management. Consequently, the inactive CPM is not reachable by the network, because it has no separate IP address. On activity switch, the inactive CPM inherits the active IP and chassis MAC.

For non-redundant CPMs, the management port MAC is used.

Note:

The router must be rebooted when enabling autoconfigure for the first time to ensure that the CPM card uses the chassis MAC address.

4.4.4.1.3. IPv6 DUID

SR OS supports type 2 DUID (link local), which is set to the chassis serial number. Type 3 (enterprise) is set to the chassis MAC address. Type 1 is not supported.

For type 2 DUID, the SR OS sends the Nokia Enterprise ID as the second byte of the DUID, followed by the chassis serial number. The first byte is the DUID type code. The chassis serial number starts with capital ASCII letters, which ensures that the serial number is unique as an application ID in the SR OS IPv6 DHCP application domain.

DUID type codes are as follows:

  1. DHCP6C_DUID_ENT_ID__IPSEC_IPV4ADDR - 1
  2. DHCP6C_DUID_ENT_ID__IPSEC_ASN1DN - 2
  3. DHCP6C_DUID_ENT_ID__IPSEC_FQDN - 3
  4. DHCP6C_DUID_ENT_ID__IPSEC_USER_FQDN - 4
  5. DHCP6C_DUID_ENT_ID__IPSEC_IPV6ADDR - 5
  6. DHCP6C_DUID_ENT_ID__IPSEC_ASN1GN - 6
  7. DHCP6C_DUID_ENT_ID__IPSEC_KEYID - 7
  8. DHCP6C_DUID_ENT_ID__WLAN_GW - 8
  9. DHCP6C_DUID_ENT_ID__AUTOBOOT - 9
  10. DHCP6C_DUID_ENT_ID__ZTP_BOF_AUTOP - Capital letters in ASCII

4.4.4.1.4. IPv6 DHCP RAs

An IPv6 DHCP offer does not have an IP prefix within the offer, unlike an IPv4 DHCP offer. The IPv6 prefix is usually obtained from the IPv6 Route Advertisement (RA) arriving from the upstream router. For ZTP, SR OS is a host and assigns a /128 prefix to the IPv6 address obtained from the DHCP offer.In addition, SR OS supports the installation of IPv6 default and static routes from upstream routers using the IPv6 RA. Multiple upstream routers can respond to a route solicitation with their own RA. SR OS installs all the routes advertised by the RA. If the same route is advertised by multiple upstream routers (next hops), the SR OS installs the route with the highest preference. The SR OS does not support ECMP when the same route is advertised from multiple next hops by multiple RAs.

To ensure that all the RAs are obtained before the auto-provisioning process is started for IPv6, SR OS follows the RFC 4861 recommendation that the host (in this case SR OS) send a minimum of three route solicitations. This is to ensure that if a route solicitation is lost, at least one of the three would reach the upstream routers. Each route solicitation is followed by a 4 s timeout. If the first route solicitation is sent at T0, the second is sent at T0+4 s and the third is sent at T0+8 s. The upstream routers must respond to the route solicitation with in 0.5 s. This means that the SR OS will have all of the RAs and the routes within 8.5 s of the first route solicitation. Therefore, SR OS waits for a maximum of 9 s to receive all RAs.

If the DHCPv6 timeout is less than 9 s, the DHCPv6 timeout is honored even for the RA wait time. If the node has received a single RA and DHCP offer, the process is considered a success. However, it is possible that not all the RAs have arrived on the node because the node has waited less than 9 s.

4.5. Service Management Tasks

This section discusses service management tasks related to the BOF.

4.5.1. System Administration Commands

Use the following administrative commands to perform management tasks.

CLI Syntax:
A:ALA-1# admin
display-config
reboot [active | standby | upgrade] [hold] [now]
save [file-url] [detail] [index]

4.5.1.1. Viewing the Current Configuration

Use one of the following CLI commands to display the current configuration. The detail option displays all default values. The index option displays only the persistent indices. The info command displays context-level information.

CLI Syntax:
admin# display-config [detail | index]
info detail

The following example shows a configuration file for the 7750 SR:

A:7750-3>admin# display-config
# TiMOS B-1.0.Ixxx - Copyright (c) 2000-2016 Nokia
# Built on Tues Jan 21 21:39:07 2007 by builder in /rel1.0/xx/panos/main
 
# Generated WED Jan 31 06:15:29 2007 UTC
 
exit all
configure
#--------------------------------------------------
echo "System Configuration"
#--------------------------------------------------
system
        name "7750-3"
        contact "Fred Information Technology"
        location "Bldg.1-floor 2-Room 201"
        clli-code "abcdefg1234"
        coordinates "N 45 58 23, W 34 56 12"
        ccm 1
        exit
        snmp
        exit
        login-control
            idle-timeout 1440
            motd text "7750-3"
        exit
        time
            sntp
                shutdown
            exit
            zone UTC 
        exit
        thresholds
            rmon
            exit
        exit
    exit...
...
--------------------------------------------------
echo "Redundancy Configuration"
#--------------------------------------------------
    redundancy 
        synchronize boot-env
    exit
...exit all
 
# Finished FRI Nov 21 15:06:16 2008 UTC
A:7750# 

4.5.1.2. Modifying and Saving a Configuration

If you modify a configuration file, the changes remain in effect only during the current power cycle unless a save command is executed. Changes are lost if the system is powered down or the router is rebooted without saving.

  1. Specify the file URL location to save the running configuration. If a destination is not specified, the files are saved to the location where the files were found for that boot sequence. The same configuration can be saved with different file names to the same location or to different locations.
  2. The detail option adds the default parameters to the saved configuration.
  3. The index option forces a save of the index file.
  4. Changing the active and standby addresses without reboot standby CPM may cause a boot-env sync to fail.

The following command saves a configuration:

CLI Syntax:
bof# save [cflash-id]
Example:
A:ALA-1# bof
A:ALA-1>bof# save cf3:
A:ALA-1>bof#

The following command saves the system configuration:

CLI Syntax:
admin# save [file-url] [detail] [index]
Example:
A:ALA-1# admin save cf3:\test123.cfg
Saving config.# Saved to cf3:\test123.cfg
... complete
A:ALA-1#
Note:

If the persist option is enabled and the admin save file-url command is executed with an FTP path used as the file-url parameter, two FTP sessions simultaneously open to the FTP server. The FTP server must be configured to allow multiple sessions from the same login, otherwise, the configuration and index files will not be saved correctly.

4.5.1.3. Deleting Bof Parameters

You can delete specific BOF parameters. The no form of these commands removes the parameter from configuration. The changes remain in effect only during the current power cycle unless a save command is executed. Changes are lost if the system is powered down or the router is rebooted without saving.

Deleting a BOF address entry is not allowed from a Telnet session.

Use the following CLI syntax to save and remove BOF configuration parameters:

CLI Syntax:
bof# save [cflash-id]
Example:
A:ALA-1# bof
A:ALA-1>bof# save cf3:
A:ALA-1>bof#
CLI Syntax:
bof#
bof autoconfigure ipv4 no dhcp
bof autoconfigure ipv6 no dhcp
no address ip-address/mask [active | standby]
no autonegotiate
no console-speed
no dns-domain
no li-local-save
no li-separate
no primary-config
no primary-dns
no primary-image
no secondary-config
no secondary-dns
no secondary-image
no static-route ip-address/mask next-hop ip-address
no system-profile
no tertiary-config
no tertiary-dns
no tertiary-image

4.5.1.4. Saving a Configuration to a Different Filename

Save the current configuration with a unique filename to have additional backup copies and to edit parameters with a text editor. You can save your current configuration to an ASCII file.

Use the following CLI syntax to save a configuration to a different location:

CLI Syntax:
admin# save [file-url] [detail] [index]
Example:
A:ALA-1>admin# save cf3:\testABC.cfg
Saving config.# Saved to cf3:\testABC.cfg
... complete
A:ALA-1#

4.5.1.5. Rebooting

When an admin>reboot command is issued, routers with redundant CPM are rebooted as well as the XMAs, XCMs, and IOMs. Changes are lost unless the configuration is saved. Use the admin>save file-url command to save the current configuration. If no command line options are specified, the user is prompted to confirm the reboot operation.

Use the following CLI syntax to reboot:

CLI Syntax:
admin# reboot [active | standby | upgrade] [hold] [now]
Example:
A:ALA-1>admin# reboot
A:DutA>admin# reboot
Are you sure you want to reboot (y/n)? y
Resetting...OK
Alcatel 7xxx Boot ROM. Copyright 2000-2007 Alcatel-Lucent.
All rights reserved. All use is subject to applicable license agreements.....