最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 正文

Juniper路由器常用命令表

来源:动视网 责编:小OO 时间:2025-09-25 16:15:20
文档

Juniper路由器常用命令表

Juniper路由器常用命令表CiscocommandJunipercommandDefinition配置模式root%cli(提示符由%变为>)第一次加电,由shell模式转入用户命令行startshell进入shell模式router>enableroot>configureroot#Enteringconfigurationmoderouter#configtroot#editsystem{master}[editsystem]root#Systemparameters进入system配
推荐度:
导读Juniper路由器常用命令表CiscocommandJunipercommandDefinition配置模式root%cli(提示符由%变为>)第一次加电,由shell模式转入用户命令行startshell进入shell模式router>enableroot>configureroot#Enteringconfigurationmoderouter#configtroot#editsystem{master}[editsystem]root#Systemparameters进入system配

Juniper路由器常用命令表

Cisco commandJuniper command Definition    

配置模式root% cli   (提示符由%变为>)

第一次加电,由shell模式

转入用户命令行

start shell  进入shell模式

router>enable

root>configure

root#

Entering configuration mode
router#config t

root#edit system

{master}[edit system] 

root#

System parameters

进入system配置菜单

执行此命令后,

set后可不加System

基本信息设置hostnameroot#set system host-name X

root# commit 

root@X#

设置主机名
ip domain-name#set domain-name zj.cn.net配置域名
clock timezone#set time-zone Asia/Shanghai配置时区
#set date 200707170947.00       

设置时间
设置用户和密码enable secret#set root-authentication

plain-text-password

new password:

Retype new password: 

Username

privilege  password 

#set login class high idle-timeout 30 permissions all

“high” 是class名;

”all” 用户将拥有该

router的全部权限

# set login user  uid (100..000)

Uid: user id

# set login user  class X

#set login user admin full-name network-admin uid 2001 class high plain-text-password

Username 为admin;

user id 为2001;

class为high

设置telnet和ftp服务Line vty 0 4#set services telnet设置telnet服务
ip ftp# set services ftp设置ftp服务
#set system services telnet connection-limit 5

telnet的最大连接数5

syslog 服务配置

# set syslog user * any emergency
#set system syslog host 202.96.103.73 any any

所有syslog信息都写到远程主机

#set system syslog file messages any notice所有notice信息写在本地

#set system syslog file messages authorization infoauthorization信息写在本地

Cisco commandJuniper command Definition    

NTP设置

#set ntp server 202.96.103.37          

client的配置

# set ntp boot-server 202.96.103.37

ntp server 配置

此处只能写ip不能为主机名

SNMP配置#set snmp community keepalive authorization read-onlySNMP配置

端口数据设置Interface #edit interfaces  配置端口
Ip address

Description

# set so-1/0/0 unit 0 description "HZ to NB 2.5Gb SDH" family inet address 202.96.117.1/30

duplex# set interfaces ge-0/0/1 link-mode full-duplex

speed# set interfaces ge-0/0/1 speed 100m

路由设置Ip route #edit routing-options静态路由配置
#set static route 61.130.49.0/24 next-hop 202.96.113.52

静态路由配置
其他命令wri#commit    

配置生效
#commit confirmed配置生效测试,5分钟后系统自动会滚,恢复原来配置。

?     

帮助提示
#top返回顶级菜单,象unix 的“cd /”

up  返回上一层配置层次,有点象UNIX的 cd  ..命令

exit  /quitexit  /quit如果在最上层,则退回到用户模式,如果在配置层,则退回到上一次edit进入之前层次

#rollback n   命令来恢复commit以前的配置 n表法前n次commit的备份,最大49

# rollback ? 可以显示每次commit的时间,确定恢复那份配置

>request support information    

收集设备支持的信息
loopback#set route-id 202.96.101.12        

设本机的loopback

terminal monitormonitor start messages
terminal no monitormonitor stop
Cisco commandJuniper command Definition    

查看设备信息命令show version>show version     

查看版本
Show clock>show system uptime显示当前时间,以及路由器运行时间,路由进程运行时间等信息
show inventory>show chassis hardware

查看序列号
show processes cpu>show chassis routing-engine查看CPU

>show chassis alarms查看设备告警信息
sh environment all>show chassis environment查看详细的硬件温度及状态信息
# run show chassis fpc pic-status查看办卡信息
show controller intfcshow interfaces intfc extensivedisplays information about a physical port device
show loggingshow log messages
查看端口信息show interfaces>show interfaces
#run show interfaces ge-0/2/8 brief

Show ip int bri > show interfaces terse

displays the status of interfaces configured for IP
查看配置信息>show config 

在用户模式下显示配置
show ip routeshow route查看路由表
show ip bgp summaryshow bgp summary
show ip bgp neighbors neigh received-routesshow route receive-protocol bgp neigh
show ip ospf interfaceshow ospf neighbor
Cisco commandJuniper command Definition    

show ip prefix-list nameshow policy name
# show | compare配置的差异更新
诊断工具 

ping 192.168.0.1 
ping 192.168.1.254 rapidPing 5个

ping 202.99.1.27 count 100 size 6000

Traceroute 192.168.1.254 source

文档

Juniper路由器常用命令表

Juniper路由器常用命令表CiscocommandJunipercommandDefinition配置模式root%cli(提示符由%变为>)第一次加电,由shell模式转入用户命令行startshell进入shell模式router>enableroot>configureroot#Enteringconfigurationmoderouter#configtroot#editsystem{master}[editsystem]root#Systemparameters进入system配
推荐度:
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top