2024年4月27日发(作者:风林火山xp系统)
Juniper路由器常用命令表
配置模式
Cisco command
router>enable
router#config t
Juniper command
root% cli (提示符由%变为>)
start shell
root>configure
root#
root#edit system
{master}[edit system]
root#
Definition
第一次加电,由shell模式
转入用户命令行
进入shell模式
Entering configuration mode
System parameters
进入system配置菜单
执行此命令后,
set后可不加System
设置主机名 基本信息设置
hostname root#set system host-name X
root# commit
root@X#
ip domain-name
clock timezone
设置用户和密码 enable secret
#set domain-name
#set time-zone Asia/Shanghai
#set date 200707170947.00
#set root-authentication
plain-text-password
new password:
Retype new password:
配置域名
配置时区
设置时间
Username
privilege password
s名;
#set login class high idle-timeout 30
“high” 是clas
”all” 用户将拥有该
permissions all
router的全部权限
# set login user
(100..64000)
# set login user
ame 为admin;
#set login user admin full-name
Usern
;
network-admin uid 2001 class high
user id 为2001
class为high
plain-text-password
#set services telnet
# set services ftp
#set system servi
connection-limit 5
ces telne
设置telnet服务
设置ftp服务
net的最大连接数5
t
限制tel
设置telnet和ftp
服务
Line vty 0 4
ip ftp
syslog 服务配置
# set syslog user * any emergency
log信息都写到远程
#set system syslog host 202.96.103.73
所有sys
主机
any any
ice信息写在本地
#set system syslog file messages any
所有not
notice
NTP设置
rization信息写在本地
#set system syslog file messages
autho
authorization info
Cisco command
Juniper command
# set ntp boot-server 202.96.103.37
Definition
ntp server 配置
此处只能写ip不能为主机名
#set ntp server 202.96.103.37 c lient的配置
SNMP配置
#set snmp community keepalive
SNMP配置
authorization read-only
#edit interfaces
to NB 2.5Gb SDH" family inet
address 202.96.117.1/30
# set interfaces ge-0/0/1 link-mode
full-duplex
# set interfaces ge-0/0/1 speed 100m
#edit routing-options
静态路由配置
配置端口
端口数据设置 Interface
Ip address
Description
duplex
speed
# set so-1/0/0 unit 0 description "HZ
路由设置
其他命令
Ip route
wri
exit /quit
#set static route 61.130.49.0/24
静态路由配置
next-hop 202.96.113.52
#commit
#commit confirmed
#top
up
exit /quit
配置生效
配置生效测试,5分钟后系统
自动会滚,恢复原来配置。
帮助提示
返回顶级菜单,象unix 的“cd
/”
返回上一层配置层次,有点象
UNIX的 cd ..命令
如果在最上层,则退回到用
户模式,如果在配置层,则
退回到上一次edit进入之前
层次
#rollback n
命令来恢复commit以前的配
置 n表法前n次commit的备
份,最大49
loopback
terminal monitor
# rollback ?
>request support information
#set route-id 202.96.101.12
monitor start messages
可以显示每次commit的时间
,确定恢复那份配置
收集设备支持的信息
设本机的loopback
terminal no monitor monitor stop
Cisco command
查看设备信息命
show version
令
Show clock
Juniper command
>show version
>show system uptime
Definition
查看版本
显示当前时间,以及路由器
运行时间,路由进程运行时
间等信息
查看序列号
查看CPU
查看设备告警信息
查看详细的硬件温度及状态
信息
查看办卡信息
displays information about
a physical port device
show inventory
show processes cpu
sh environment all
show controller intfc
>show chassis hardware
>show chassis routing-engine
>show chassis alarms
>show chassis environment
# run show chassis fpc pic-status
show interfaces intfc
extensive
show logging show log messages
displays the status of
interfaces configured for IP
查看端口信息
show interfaces
Show ip int bri
>show interfaces
#run show interfaces ge-0/2/8 brief
>
show interfaces terse
查看配置信息
show ip route
show ip bgp
summary
show ip bgp
neighbors neigh
received-routes
show ip ospf
>show config
show route
show bgp summary
在用户模式下显示配置
查看路由表
show route receive-protocol
bgp neigh
show ospf neighbor
interface
Cisco command
show ip prefix-list
name
Juniper command
show policy name
Definition
# show | compare
ping 192.168.0.1
ping 192.168.1.254 rapid
ping 202.99.1.27 count 100 size 6000
Traceroute 192.168.1.254 source
配置的差异更新
Ping 5个
诊断工具
发布者:admin,转转请注明出处:http://www.yc00.com/xitong/1714167437a2394598.html
评论列表(0条)