To create a new base configuration, perform the following tasks:
First, you need to log in to the router's console interface and open the CLI in configuration mode:
Amnesiac <ttyd0>
login: root
root@% cli
root>
root> configure
[edit]
root#
Next, configure the management interface to the network:
[edit]
root# set system host-name host-name
[edit]
root# set system host-name “host name”
[edit]
root# set system name-server address
[edit]
root# set system domain-name domain-name
[edit]
root# set interfaces fxp0 unit 0 family inet address address/prefix-length
[edit]
root# set system backup-router address
[edit]
root# root# set routing-options static route remote-subnet next-hop destination retain no-readvertise
[edit]
set system services telnet
Once you have added the management port to the network, you need to set up one or more administrator accounts. These accounts will be used to log in to the management interface.
[edit]
root# set system root-authentication plain-text-password
New password: password
Retype new password: password
[edit]
root# set system login user user-name authentication plain-text-password
New Password: password
Retype new password: password
[edit]
root# set system login user user-name class super-user
Now that you have updated the router configuration file, you need to commit the configuration and reboot the router.
root# show
## Last changed: 2008-08-27 22:30:42 UTC
version 9.3B1.5;
system {
host-name tp8;
domain-name subnet.juniper.net;
backup-router 192.168.71.254;
root-authentication {
encrypted-password "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx."; ## SECRET-DATA
}
name-server {
192.168.5.68;
172.17.28.101;
}
login {
user regress {
class super-user;
authentication {
encrypted-password "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; ## SECRET-DATA
}
}
}
services {
telnet;
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
fxp0 {
unit 0 {
family inet {
address 192.128.69.205/21;
}
}
}
}
routing-options {
static {
route 172.16.0.0/12 {
next-hop 192.168.71.254;
retain;
no-readvertise;
}
route 192.168.0.0/16 {
next-hop 192.168.71.254;
retain;
no-readvertise;
}
}
}
[edit]
root# commit
commit complete
![]() |
Note: If you receive an error message after your commit, you can review your configuration using the show command. If you find an error, you can delete incorrect entries using the delete command. |
[edit]
root# exit
Exiting configuration mode
root>
root> request system reboot
Reboot the system ? [yes, no] <no> yes