megnlingling 发表于 2018-7-27 11:47:22

Juniper 路由器基本配置

1. 路由器基本配置  请注意:JUNIPER路由器命令不是即时生效的,而是需要通过commit命令来使的命令生效,如果是双的路由引擎,则需要通过commit synchronize来使得命令生效并让配置在两个路由引擎(RE)里同步
  配置路由器设备名
  user@host# set system hostname hostname #配置设备名
  配置路由器root帐户密码和新建帐户
  为root帐户设置密码
  root# set system root-authentication plain-text-password 然后回车,并输入密码两次
  新建用户名为lab的帐户,并设定密码

  root# set system login user lab>  配置路由器Telnet服务
  user@host# set system services telnet
  #配置telnet服务
  配置路由器FTP服务
  user@host# set system services ftp
  #配置FTP服务
  配置DNS服务器
  user@host# set system name-server dns-address
  #配置模式, 通过在用户模式使用edit命令进入配置模式:
  配置本地超级用户

  user@host# set system login user username>  #配置用户级别
  user@host# set system login user username authentication plain-text-password
  #配置密码
  2. 端口配置
  配置Loopback端口
  user@host#set interface lo0 description description
  #配置端口描述
  user@host#set interface lo0 unit 0 family inet address ip-address
  #配置IP地址
  user@host#set interface lo0 unit 0 family iso address iso-address
  #配置ISO地址
  配置POS端口
  user@host#set interface so-slot/pic/port description description
  #配置端口描述
  user@host#set interface so-slot/pic/port mtu mtu-number
  #配置端口MTU
  user@host#set interface so-slot/pic/port hold-time up ms down ms
  #配置端口up/down的damping时间
  user@host#set interface so-slot/pic/port encapsultation ppp
  #配置端口封装为PPP
  user@host#set interface so-slot/pic/port sonet-options fcs
  #配置端口FCS的位数
  user@host#set interface so-slot/pic/port sonet-options payload-scrambler
  #配置端口打开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
  #配置端口FCS的位数
  user@host#set interface so-slot/pic/port unit 0 family inet address ip-address
  #配置IP地址
  user@host#set interface so-slot/pic/port unit 0 family iso
  #端口允许运行ISIS
  user@host#set interface so-slot/pic/port unit 0 family mpls
  #端口允许运行mpls
  配置GE端口
  user@host#set interface ge-slot/pic/port description description
  #配置端口描述
  user@host#set interface so-slot/pic/port mtu mtu-number
  #配置端口MTU
  user@host#set interface so-slot/pic/port hold-time up ms down ms
  #配置端口up/down的damping时间
  user@host#set interface ge-slot/pic/port unit 0 family inet address ip-address
  #配置IP地址
  user@host#set interface ge-slot/pic/port unit 0 family iso
  #端口允许运行ISIS
  3. 协议独立路由属性的配置(静态路由,汇聚路由,本地AS号码,router-id等属性)
  配置路由器Router-ID
  user@host# set routing-options router-id router-id
  #配置Router-ID
  配置路由器的AS号码
  user@host# set routing-options autonomous-system as-number
  #配置AS号码
  配置静态路由
  user@host# set routing-options static route network/mask next-hop address
  #配置静态路由
页: [1]
查看完整版本: Juniper 路由器基本配置