Chinaunix首页 | 论坛 | 博客
  • 博客访问: 728328
  • 博文数量: 256
  • 博客积分: 3502
  • 博客等级: 中校
  • 技术积分: 3988
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:13
文章分类

全部博文(256)

文章存档

2014年(11)

2013年(134)

2012年(111)

我的朋友

分类: 系统运维

2014-02-13 13:07:15

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 class super-user authentication plain-text-password 然后回车,并输入密码两次
配置路由器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 class super-user
#配置用户级别
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 [32|16]
#配置端口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 [32|16]
#配置端口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
#配置静态路由
阅读(1799) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~