set system root-authentication plain-text-password
//按提示为root设置新密码;
set system login user lab uid 2004 class super-user authentication plain-text-password
//创建lab用户,并按提示为超级用户lab设置密码;
set system host-name olive
//更改主机名,类似于Cisco的hostname命令
set system domain-name juniper.net
set interface fxp0 unit 0 family inet address 192.168.1.2/24
//设置接口ip地址
set routing-options static route default nexthop 192.168.1.1 retain no-readvertise
//设置默认路由
set system services ftp
set system services telnet
//开启ftp和telnet服务
设置完以后记得commit哦,不然配置是不会生效的^_^