|
Navigate to the System level in the configuration
hierarchy.
|
- In the J-Web interface, select Configuration>View
and Edit> Edit Configuration.
- Next to System, click Configure or Edit.
|
From the [edit] hierarchy level, 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.
|
- In the Nested configuration section, next to Services,
click Configure or Edit.
- Next to Ssh, click Configure or Edit.
- Click OK.
- 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.
|
- In the Nested configuration section, next to Root authentication,
click Configure or Edit.
- Next to Ssh rsa, click Add New Entry.
- In the Authorized key box, type the RSA password—for
example, ssh-rsa AAAAB3Nza...D9Y2gXF9ac== root@routera.lab.router.net
- Click OK.
- 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.
|
- In the Nested configuration section, next to Ntp, click Configure or Edit.
- Next to Server, click Add New Entry.
- In the Address box, type the NTP server's IP address—for
example, 10.148.2.21
- Click OK.
- 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.
|
- Next to Name server, click Add New
Entry.
- In the Address box, type the address of the DNS server—for
example, 10.148.2.32.
- 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.
|
- Next to Domain search, click Add New
Entry.
- In the Value box, type the name of the domain in which
the router is located—for example, lab.router.net.
- Click OK.
- Next to Domain search, click Add
New Entry.
- In the Value box, type the name of another domain that
the router belongs to—for example, router.net.
- 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.
|
- In the configuration editor hierarchy, next to Interfaces,
click Configure or Edit.
- In the Interface table, locate the lo0 row and
click Unit.
- In the Unit table, click 0, and in
the Family section next to Inet, click Configure or Edit.
- To delete the existing IP address, click the Discard button.
Select the Delete Configuration Below This Point option
button from the next display.
- Next to Address, click Add new entry.
- In the Source box, type the address and prefix length for
the loopback interface—for example, 172.16.1.24/32.
- Click OK.
|
- From the [edit] hierarchy level, enter
edit interfaces
- Delete the existing IP address:
delete lo0 unit 0 family inet address
- 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 ge-0/0/0.
|
- In the configuration editor hierarchy, next to Interfaces,
click Configure or Edit.
- In the Interface table, locate the ge-0/0/0 row
and click Unit.
- In the Unit table, click 0, and in
the Family section next to Inet, click Configure or Edit.
- To delete the existing IP address, click the Discard button.
Select the Delete Configuration Below This Point option
button from the next display.
- Next to Address, click Add new entry.
- In the Source box, type the address and prefix length for
the management interface—for example, 192.168.1.1/24.
- Click OK.
|
- Delete the existing IP address:
delete ge-0/0/0 unit 0 family inet address.
- Set the IP address and prefix length of ge-0/0/0.
For example:
set ge-0/0/0 unit 0 family inet address 192.168.1.1/24
|