-
JUNOS
命令手册及中文解释
user@host>
运行模式
CLI
提示符
user@host#
配置模式提示符
configure
进入配置模式
lci
进入
CLI
补全
空格
?
查询命令
show inte**ce terse
查看接口
show
inte**ce terse | except fe-
查看除
< br>fe-
的接口
show
inte**ce terse | match se-3
只查看
< br>se-3
接口
show
inte**ce | last
显示上一屏数据
show inte**ces terse | count
显示输出行数
show
inte**ces lo0 | display set
结果通道
edit system
set host-name host
set
domain-name
set root-authentication
plain-text-password
unit number
单元被用来标识物理接口的逻辑部分
circuit identifier
电路标识则是指逻辑隧道和电路
show log file-name
显示日志文件内容
show syslog
系统日志
顶层配置元素
system
:包括系统通用管理参数(主机名,验证信息,访问方式,日志等)
inte**ces:
接口配置
protocols:
路由协议配置
policy-
options:
路由策略配置
fi
rewall:
无状态数据包过滤器和策略器
snmp:SNMP
配置
排他锁配置
configure
exclusive
确保其他用户能进行修改
configure private
可为用户提供他们自己的候选配置
[edit] **
编辑模式
lab@J-9# edit inte**ces se-1/0/0
[edit inte**ces se-1/0/0]
接口<
/p>
se-1/0/0
编辑模式
lab@J-9#edit unit 0
[edit
inte**ces se-1/0/0 unit 0]
接口
0
编辑模式
lab@J-9#set
family inet address 10.210.1.1/30
设置
IP
地址
[edit inte**ces se-1/0/0 unit 0]
lab@J-9#show
family inet
{
address 10.219.1.1/30;
}
[edit inte**ces
se-1/0/0 unit 0]
lab@J-9#delete family
inet address 10.210.1.1/30
[edit
inte**ces se-1/0/0 unit 0]
lab@J-9#show
family inet;
[edit inte**ces
se-1/0/0 unit 0]
lab@J-9#delete family
inet
删除
family inet,
在接口上禁止所有
IPv4
处理
所有信息都删除
[edit
inte**ces se-1/0/0 unit 0]
lab@J-9#show
[edit inte**ces se-1/0/0 unit 0]
lab@J-9#
[edit inte**ces
se-1/0/0 unit 0]
lab@J-9#up
进入上一层
[edit
inte**ces se-1/0/0]
lab@J-9#top
返回顶层
[edit]
lab@J-9#set inte**ces se-1/0/0 unit 0
family inet address 10.210.1.1/30
在
顶层设
置
IPv4
地址
[edit]
lab@J-9#delete
inte**ces se-1/0/0 unit 0 family inet address
10.210.1.1/30
在顶层删除
< br>IPv4
地址
[edit]
lab@J-9#show inte**ces
可分层查看
se-1/0/0{
unit 0;
}
run show inte**ce
terse run
命令允许你在配置模式下执行操作的命令
set neighbor 192.168.1.1
配置一个新邻居
deactivate neighbor 192.168.1.1
停用此邻居
activate
neighbor 192.168.1.1
激活此邻居
deactivate group internal
停用整个组
deactivate
bgp
停用整个协议
把对
fe-2/0/1
的配置移到
fe-2/0/0
rename
inte**ces fe-2/0/1 to fe-2/0/0
commit
备份配置变成活动配置
copy inte**ces fe-2/0/1 to fe-3/0/1
拷贝配置
rename
address 10.14.243.238/28 to address
10.14.250.1/28
重命名地址
rollback n
恢复以前的配置
版本号范围是
0
到
49
,最近保存
的版本号是
0
,就是当前活动配置的拷贝,最老的配置自
p>
动保存在版本
49
中
set unit 240 family inet
address 10.14.250.17/28 primary
设
10.14.250.17/28
为主
IP
commit check
检查修改,而无需实际提交修改
commit at 23:00
在将来每一计划提交
commit
confirmed 1
在一分钟的时间内确认修改,否则将撤销修改
commit and-quit
在确定修改的同时,执行有权限的模式
rollback
撤销修改
rollback
显示已保存文件名列表
show |
compare rollback 2
比较候选配置和先前配置
rollback 2
载入已保存的配置
fe
快速以太网接口
ge
千兆以太网接口
so
SONET
接口
t3 DS3
接口
ct3-0/2/3
FPC 0/PIC 2/
端口
3 <
/p>
(端口从
0
开始计数)
< br>
fxp0:
带外快速以太网接口,用于管理
M
系列和
T
系列路由器<
/p>
inet:IPv4
配置
inet6:IPv6
配置