路由器基本配置
请注意:JUNIPER路由器命令不是即时生效的,而是需要通过commit命令来使的命令生效,如果是双的路由引擎,则需要通过commit synchronize来使得命令生效并让配置在两个路由引擎(RE)里同步
配置路由器设备名user@host#
set system hostname hostname
#配置设备名 配置路由器root帐户密码和新建帐户root# set system root-authentication plain-text-password
然后回车,并输入密码两次 root# set system login user lab class super-user authentication plain-text-password 然后回车,并输入密码两次 配置路由器Telnet服务user@host#
set system services telnet
配置路由器FTP服务user@host#
set system services ftp
配置DNS服务器user@host#
set system name-server dns-address
#配置模式, 通过在用户模式使用edit命令进入配置模式: 配置本地超级用户user@host# set system login user username class super-user
user@host# set system login user username authentication plain-text-password
端口配置
配置Loopback端口user@host#set interface lo0 description description user@host#set interface lo0 unit 0 family inet address ip-address user@host#set interface lo0 unit 0 family iso address iso-address 配置POS端口user@host#set interface so-slot/pic/port description description
user@host#set interface so-slot/pic/port mtu mtu-number user@host#set interface so-slot/pic/port hold-time up ms down ms user@host#set interface so-slot/pic/port encapsultation ppp user@host#set interface so-slot/pic/port sonet-options fcs [32|16] user@host#set interface so-slot/pic/port sonet-options payload-scrambler user@host#set interface so-slot/pic/port sonet-options rfc-2615 #配置端口FCS 32,打开payload-scrambler,C2字节为0x16 user@host#set interface so-slot/pic/port sonet-options fcs [32|16] user@host#set interface so-slot/pic/port unit 0 family inet address ip-address
user@host#set interface so-slot/pic/port unit 0 family iso user@host#set interface so-slot/pic/port unit 0 family mpls
配置GE端口user@host#set interface ge-slot/pic/port description description
user@host#set interface so-slot/pic/port mtu mtu-number user@host#set interface so-slot/pic/port hold-time up ms down ms user@host#set interface ge-slot/pic/port unit 0 family inet address ip-address
user@host#set interface ge-slot/pic/port unit 0 family iso |