Juniper路由器常用命令表

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Juniper路由器常用命令表CiscocommandJunipercommandDefinition配置模式root%cli(提示符由%变为)第一次加电,由shell模式转入用户命令行startshell进入shell模式routerenablerootconfigureroot#Enteringconfigurationmoderouter#configtroot#editsystem{master}[editsystem]root#Systemparameters进入system配置菜单执行此命令后,set后可不加System基本信息设置hostnameroot#setsystemhost-nameXroot#commitroot@X#设置主机名ipdomain-name#setdomain-namezj.cn.net配置域名clocktimezone#settime-zoneAsia/Shanghai配置时区#setdate200707170947.00设置时间设置用户和密码enablesecret#setroot-authenticationplain-text-passwordnewpassword:Retypenewpassword:Usernameprivilegepassword#setloginclasshighidle-timeout30permissionsall“high”是class名;”all”用户将拥有该router的全部权限#setloginuseruser-nameuid(100..64000)Uid:userid#setloginuseruser-nameclassX#setloginuseradminfull-namenetwork-adminuid2001classhighplain-text-passwordUsername为admin;userid为2001;class为high设置telnet和ftp服务Linevty04#setservicestelnet设置telnet服务ipftp#setservicesftp设置ftp服务#setsystemservicestelnetconnection-limit5限制telnet的最大连接数5syslog服务配置#setsysloguser*anyemergency#setsystemsysloghost202.96.103.73anyany所有syslog信息都写到远程主机#setsystemsyslogfilemessagesanynotice所有notice信息写在本地#setsystemsyslogfilemessagesauthorizationinfoauthorization信息写在本地CiscocommandJunipercommandDefinitionNTP设置#setntpserver202.96.103.37client的配置#setntpboot-server202.96.103.37ntpserver配置此处只能写ip不能为主机名SNMP配置#setsnmpcommunitykeepaliveauthorizationread-onlySNMP配置端口数据设置Interface#editinterfaces配置端口IpaddressDescription#setso-1/0/0unit0descriptionHZtoNB2.5GbSDHfamilyinetaddress202.96.117.1/30duplex#setinterfacesge-0/0/1link-modefull-duplexspeed#setinterfacesge-0/0/1speed100m路由设置Iproute#editrouting-options静态路由配置#setstaticroute61.130.49.0/24next-hop202.96.113.52静态路由配置其他命令wri#commit配置生效#commitconfirmed配置生效测试,5分钟后系统自动会滚,恢复原来配置。??帮助提示#top返回顶级菜单,象unix的“cd/”up返回上一层配置层次,有点象UNIX的cd..命令exit/quitexit/quit如果在最上层,则退回到用户模式,如果在配置层,则退回到上一次edit进入之前层次#rollbackn命令来恢复commit以前的配置n表法前n次commit的备份,最大49#rollback?可以显示每次commit的时间,确定恢复那份配置requestsupportinformation收集设备支持的信息loopback#setroute-id202.96.101.12设本机的loopbackterminalmonitormonitorstartmessagesterminalnomonitormonitorstopCiscocommandJunipercommandDefinition查看设备信息命令showversionshowversion查看版本Showclockshowsystemuptime显示当前时间,以及路由器运行时间,路由进程运行时间等信息showinventoryshowchassishardware查看序列号showprocessescpushowchassisrouting-engine查看CPUshowchassisalarms查看设备告警信息shenvironmentallshowchassisenvironment查看详细的硬件温度及状态信息#runshowchassisfpcpic-status查看办卡信息showcontrollerintfcshowinterfacesintfcextensivedisplaysinformationaboutaphysicalportdeviceshowloggingshowlogmessages查看端口信息showinterfacesshowinterfaces#runshowinterfacesge-0/2/8briefShowipintbrishowinterfacestersedisplaysthestatusofinterfacesconfiguredforIP查看配置信息showconfig在用户模式下显示配置showiprouteshowroute查看路由表showipbgpsummaryshowbgpsummaryshowipbgpneighborsneighreceived-routesshowroutereceive-protocolbgpneighshowipospfinterfaceshowospfneighborCiscocommandJunipercommandDefinitionshowipprefix-listnameshowpolicyname#show|compare配置的差异更新诊断工具ping192.168.0.1ping192.168.1.254rapidPing5个ping202.99.1.27count100size6000Traceroute192.168.1.254source

1 / 4
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功