用户操作:
1、修改root用户密码:
初次登录的root密码为空,
set system root-authentication plain-text-password
2、建立用户并授权
admin@jr1# show system login
user admin {
uid 2001;
class super-user;
authentication {
encrypted-password "$1$R/PFK63M$3wOC.GG17IiIGtUpyz9921"; ## SECRET-DATA
}
}
设置系统名称:
admin@jr1# set system host-name ?
Possible completions: Hostname for this router
[edit]
admin@jr1#
设置域名:
admin@jr1# set system domain-name
设置DNS服务器:
admin@jr1# set system name-server
开TELNET,SSH,FTP
admin@jr1# set system services ?
Possible completions:
<[Enter]> Execute this command
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
> database-replication Database replication configuration
> dhcp-local-server Dynamic Host Configuration Protocol server configuration
> finger Allow finger requests from remote systems
> flow-tap-dtcp Configure DTCP-based Flow-tap service > ftp Allow FTP file transfers //FTP开启,为先前建立的用户名,缺省目录/var/home/XXX,但没有限制为FTP的ROOT目录
> netconf Allow NETCONF connections
> outbound-ssh Initiate outbound SSH connection
> service-deployment Configuration for Service Deployment (SDXD) management application > ssh Allow ssh access //开SSH服务,有些JUNOS的版本不支持SSHD服务,命令能配,但提示/usr/sbin/sshd不存在。
> subscriber-management Subscriber management configuration
> subscriber-management-helper Subscriber management helper configuration
> telnet Allow telnet login //开启TELNET服务,TELNET不 允许root登录。
> xnm-clear-text Allow clear text-based JUNOScript connections
> xnm-ssl Allow SSL-based JUNOScript connections
| Pipe through a command
[edit]
admin@jr1#
时间配置:
查看系统时间:
admin@jr1# run show system uptime
Current time: 2015-05-27 00:15:36 GMT+8
System booted: 2015-05-26 23:05:03 GMT+8 (01:10:33 ago)
Protocols started: 2015-05-26 23:07:42 GMT+8 (01:07:54 ago)
Last configured: 2015-05-26 23:00:02 GMT+8 (01:15:34 ago) by admin
12:15AM up 1:11, 1 user, load averages: 0.07, 0.03, 0.01
[edit]
admin@jr1#
设置时区:
admin@jr1# set system time-zone ?
设置时间:
admin@jr1# run set date ?
Possible completions: