[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring Basic Settings with a Configuration Editor

To establish basic connectivity on a Services Router, you identify the router, connect the router to the network, and specify basic network settings.

In a typical network, the Services Router has the basic settings listed in Table 35. Determine the values to set on the Services Router in your network.

Table 35: Sample Settings on a Services Router

Services Router Property

Sample Value

Services Router hostname

routera

Access for user “root”

SSH RSA public key

IP address of the NTP server used to synchronize system time on the Services Router

10.148.2.21

Services Router location

Sunnyvale, California, USA, which is in the America/Los_Angeles time zone

IP address of the DNS server to which DNS requests are sent

10.148.2.32

Domains to which the Services Router belongs

lab.router.net and router.net

IP address of a backup router to use while the Services Router is booting or if the routing protocol processes fail to start

192.168.2.44

Loopback IP address and prefix length for the Services Router lo0 interface

172.16.1.24/32

IP address and prefix length for the Services Router fe-0/0/0 interface

192.168.2.24/24

To use a configuration editor to configure basic settings:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. To configure basic settings, perform the configuration tasks described in Table 36.
  3. If you are using the J-Web interface, click Commit to view a summary of your changes, then click OK to commit the configuration. If you are using the CLI, commit the configuration by entering the commit command.
  4. To check the configuration, see Displaying Basic Connectivity Configurations.

Table 36: Configuring Basic Settings

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the System level in the configuration hierarchy.

  1. In the configuration editor hierarchy, select Configuration>View and Edit> Edit Configuration.
  2. Next to System, click Configure or Edit.

From the top of the configuration hierarchy, enter edit system.

Define the hostname of the router.

In the Host name box, type the hostname of the router—for example, routera.

Set the hostname. For example:

set host-name routera

Name the domain in which the router is located.

In the Domain name box, type the domain name of the router—for example, lab.router.net.

Set the domain name. For example:

set domain-name lab.router.net

Allow SSH remote access.

  1. In the Nested configuration section, next to Services, click Configure or Edit.
  2. Next to Ssh, click Configure or Edit.
  3. Click OK.
  4. Click OK a second time to return to the System level in the configuration editor hierarchy.

Set remote access for SSH:

set services ssh

Define root authentication for access to the router.

Note:

For readability, the entire key is not shown.

  1. In the Nested configuration section, next to Root authentication, click Configure or Edit.
  2. Next to Ssh rsa, click Add New Entry.
  3. In the Authorized key box, type the RSA password—for example, ssh-rsa AAAAB3Nza...D9Y2gXF9ac== root@routera.lab.router.net
  4. Click OK.
  5. Click OK a second time to return to the System level in the configuration editor hierarchy.

Set the root password. For example:

set root-authentication ssh-rsa “ssh-rsa AAAAB3Nza...D9Y2gXF9ac== root@routera.lab.router.net”

Define the time zone the router is located in.

In the Time zone list, select the time zone for your router—for example, America/Los_Angeles.

Set the time zone. For example:

set time-zone America/Los_Angeles

Define the NTP server that NTP requests can be sent to.

  1. In the Nested configuration section, next to Ntp, click Configure or Edit.
  2. Next to Server, click Add New Entry.
  3. In the Address box, type the NTP server's IP address—for example, 10.148.2.21
  4. Click OK.
  5. Click OK a second time to return to the System level in the configuration editor hierarchy.

Set the address of the NTP server. For example:

set ntp server 10.148.2.21

Define the DNS server that receives DNS requests.

  1. Next to Name server, click Add New Entry.
  2. In the Address box, type the address of the DNS server—for example, 10.148.2.32.
  3. Click OK.

Set the address of the DNS server. For example:

set name-server 10.148.2.32

Add each domain that the router belongs to.

  1. Next to Domain search, click Add New Entry.
  2. In the Value box, type the name of the domain in which the router is located—for example, lab.router.net.
  3. Click OK.
  4. Next to Domain search, click Add New Entry.
  5. In the Value box, type the name of another domain that the router belongs to—for example, router.net.
  6. Click OK.

Set the domains to be searched. For example:

set domain-search lab.router.net

set domain-search router.net

Define the backup router to be used when the router is booting or the routing protocol processes are not running.

In the Backup router section, next to Address, type the IP address of the backup router—for example, 192.168.2.44.

Set the address for the backup router. For example:

set backup router address 192.168.2.44

Define the IP address for lo0.0.

  1. In the configuration editor hierarchy, next to Interfaces, click Configure or Edit.
  2. In the Interface table, locate the lo0 row and click Unit.
  3. In the Unit table, click 0, and in the Family section next to Inet, click Configure or Edit.
  4. To delete the existing IP address, click the Discard button. Select the Delete Configuration Below This Point radio button from the next display.
  5. Next to Address, click Add new entry.
  6. In the Source box, type the address and prefix length for the loopback interface—for example, 172.16.1.24/32.
  7. Click OK.
  1. Exit the system level of the hierarchy:

    exit

  2. From the top of the configuration hierarchy, enter edit interfaces.
  3. Delete the existing IP address:

    delete lo0 unit 0 family inet address.

  4. Set the IP address and prefix length of lo0.0. For example:

    set lo0 unit 0 family inet address 172.16.1.24/32.

Define the IP address for fe-0/0/0.

  1. In the configuration editor hierarchy, next to Interfaces, click Configure or Edit.
  2. In the Interface table, locate the fe–0/0/0 row and click Unit.
  3. In the Unit table, click 0, and in the Family section next to Inet, click Configure or Edit.
  4. To delete the existing IP address, click the Discard button. Select the Delete Configuration Below This Point radio button from the next display.
  5. Next to Address, click Add new entry.
  6. In the Source box, type the address and prefix length for the management interface—for example, 192.168.1.1/24.
  7. Click OK.
  1. Delete the existing IP address:

    delete fe-0/0/0 unit 0 family inet address.

  2. Set the IP address and prefix length of fe-0/0/0. For example:

    set fe-0/0/0 unit 0 family inet address 192.168.1.1/24


[Contents] [Prev] [Next] [Index] [Report an Error]