文档编制序号:[KK8UY-LL9IO69-TTO6M3-MTOL89-FTT688]JuniperE交换机配置操作手册目录TOC\o"1-3"1.总体概述32.软件操作42.1.通过Console线缆连接Juniper设备42.2.设备启动52.3.设备重启52.4.JUNOS升级52.5.密码恢复63.JUNOSCLI模式84.Juniper设备的基本配置95.EX路由交换机初始配置向导EZSETUP116.端口配置117.VLAN配置128.VLAN路由端口(RVI)的配置139.路由配置14总体概述本文档为JuniperNetworks,Inc.编写。用于说明JuniperEX基本命令配置。更多的信息请参考下面的网站:软件操作JUNOS软件是专门为互联网设计的第一种路由交换操作系统。它运行在Juniper网络公司的所有T-系列、M-系列和J-系列路由器和EX系列路由交换机上,而且目前正被部署在全球最大、增长最迅速的网络中。Junos使用FreeBSD内核,模块化的设计,提供卓越的故障恢复能力并确保能够简单地集成IPv6、MPLS等新功能。JUNOS软件提供的全套具有工业强度的路由
协议
离婚协议模板下载合伙人协议 下载渠道分销协议免费下载敬业协议下载授课协议下载
、灵活的策略语言,可以高效地扩展以支持很大数量的网络接口和路由。基于标准的JUNOS软件可以支持互联网路由协议,同时控制路由器、交换机及其接口并实现对各种规模的网络的系统管理。简便易用的界面使您可以配置路由协议和接口属性、监控路由、检测并排除协议和网络连接故障。本节将描述JUNOS的一些应急操作,这些操作都会影响设备的正常功能,操作时请谨慎使用:动通过Console线缆连接Juniper设备使用下面的步骤连接路由器的Console接口:准备好Juniper设备自带的Console线缆(如果没有的话,请准备两个DB9-RJ45转接头和一条RJ45-RJ45反转线)将Console线缆的DB9插头一头插到PC或者笔记本电脑的COM口上,另外一端插到Juniper设备的CONSOLE口上。。打开计算机中的终端软件工具。例如:CRT或者Windows自带的超级终端。设置如下:端口:选择第二步中Console线缆插入到PC上的端口,通常为COM1或者COM2波特率:9600数据位:8位停止位:1位流控:无打开配置到的CRT或者超级终端,按“Enter”键,屏幕出现登陆的提示符,即连接成功。如果没有显示,请检查线缆或者终端的配置是否正确。如果出现任何现场无法解决的问题,请寻求JuniperTAC的帮助,参阅。设备启动加电启动Juniper设备。系统第一次启动建议通过Console端口登陆。启动完成后,看看到login提示符,输入用户名为root,缺省密码是空。进入系统后输入cli命令进入Junoscommandlineinterface,可以进行设备调试。如下例:login:rootPassword:Terminaltype[vt100]yroot%cliroot>设备重启Juniper设备重启必须按照下面的步骤进行操作:用console设备连接到Juniper设备的CONSOLE端口上。使用具有足够权限的用户名和密码登陆CLI命令行界面。在提示符下输入下面的命令:user@host>requestsystemreboot等待console设备的输出,确认Juniper设备软件已经重新启动。JUNOS升级Juniper设备JUNOS软件升级必须按照下面的步骤进行操作:用console设备连接到Juniper设备的CONSOLE端口上。下载新的JUNOS软件,放置到FTP服务器上。将新的JUNOS软件复制到Juniper设备上,使用下面的命令:user@host>filecopyftp://username:passwordfilename/var/tmp/filename升级前,执行下面的命令备份旧的软件及设定:user@host>requestsystemsnapshot安装新的JUNOS软件:user@host>requestsystemsoftwareaddsourcereboot其中source参数为通过上一步骤保存在系统中的文件,如:密码恢复如果Juniper设备的Root密码丢失,而且没有其他的超级用户权限,那么就需要执行密码恢复,该操作需要中断Juniper设备的正常功能。要进行密码恢复,请按照下面操作进行:重新启动Juniper设备。在启动过程中,console上出现下面的提示的时候,按任意键中断正常启动方式,然后再进入单用户状态:Hit[Enter]tobootimmediately,oranyotherkeyforcommandprompt.Booting[kernel]in9seconds...
okboot–s执行密码恢复:在以下提示文字后输入recoveryEnterfullpathnameofshellor'recovery'forrootpasswordrecoveryorRETURNfor/bin/sh:recoveryNOTE:OnceintheCLI,youwillneedtoenterconfigurationmodeusingNOTE:the'configure'commandtomakeanyrequiredchanges.Forexample,NOTE:toresettherootpassword,type:NOTE:configureNOTE:setsystemroot-authenticationplain-text-passwordNOTE:(enterthenewpasswordwhenasked)NOTE:commitNOTE:exitNOTE:exitNOTE:WhenyouexittheCLI,youwillbeaskedifyouwanttorebootNOTE:thesystemStartingCLI...root>进入配置模式,删除root密码:root>configureEnteringconfigurationmode[edit]root#deletesystemroot-authenticationroot@router#commitcommitcomplete[edit]root@router#exitExitingconfigurationmoderoot@kenny>exitRebootthesystem[y/n]yTerminated重新启动后,配置新的root密码。Juniper设备恢复正常。JUNOSCLI模式设备启动,登录进入系统后输入cli,即可进入JUNOSCLI模式,可进行设备调试。JUNOSCLI有两种模式:用户模式和配置模式,区分方法是他们的提示符不一样:用户模式user@host>#用户模式在用户模式下可以显示路由器的配置、端口状态、路由信息等,它的提示符是>号。登录后输入cli即进入路由器的用户模式:host(ttyp6)login:rootPassword:---JUNOS9.1R1.8built2007-07-0700:49:05UTCroot@host%cliroot@host>配置模式user@host##配置模式通过在用户模式使用edit命令进入配置模式,它的提示符是#号:root@host>editEnteringconfigurationmode[edit]root@host#配置生效和保存Juniper设备配置保存可以有两种方式:命令直接生效和保存:用命令commit生效和保存配置root@host#commitcommitcomplete[edit]root@host#需要确认的命令生效和保存:分两步完成,用命令commitconfirm保存配置后,不在固定时间(缺省为10分钟)内用commit命令确认,则系统自动回退原有配置,请注意:root@host#commitconfirmedcommitconfirmedwillbeautomaticallyrolledbackin10minutesunlessconfirmedcommitcomplete#commitconfirmedwillberolledbackin10minutes[edit]root@host#commitcommitcomplete[edit]root@host#Juniper设备的基本配置配置路由器设备名user@host#setsystemhostnamehostname#配置设备名root@host>editEnteringconfigurationmode[edit]root@host#setsystemhost-nameDEMO[edit]root@DEMO#commit配置路由器Telnet服务user@host#setsystemservicestelnet#配置telnet服务root@host#setsystemservicestelnetPossiblecompletions:<[Enter]>Executethiscommandconnection-limitMaximumnumberofallowedconnections(1..250)rate-limitMaximumnumberofconnectionsperminute(1..250)|Pipethroughacommand[edit]root@host#setsystemservicestelnet[edit]root@host#commit配置路由器FTP服务user@host#setsystemservicesftp#配置FTP服务root@host#setsystemservicesftpPossiblecompletions:<[Enter]>Executethiscommandconnection-limitMaximumnumberofallowedconnections(1..250)rate-limitMaximumnumberofconnectionsperminute(1..250)|Pipethroughacommand[edit]root@host#setsystemservicesftp[edit]root@host#commit配置DNS服务器user@host#setsystemname-serverdns-address#配置模式通过在用户模式使用edit命令进入配置模式:root@host#[edit]root@host#commitEX路由交换机初始配置向导EZSETUP在第一次登录系统后,直接输入ezsetup命令进入初始配置向导,在此向导中,顺序输入:系统名称hostname系统密码是否启用Telnet服务是否启用SSH服务交换机管理模式:带外/带内用缺省VLAN"default"管理缺省VLAN的地址和网关系统时间和日期系统时区保存配置即可方便完成路由交换机初始配置端口配置配置物理端口user@host#setinterfacege-slot/pic/portdescriptiondescription#配置端口描述user@host#setinterfacege-slot/pic/portmtumtu-number#配置端口MTUuser@host#setinterfacege-slot/pic/portspeedport-speed#配置端口速率user@host#setinterfacege-slot/pic/portduplexport-duplex#配置端口双工root@host>editEnteringconfigurationmode[edit]root@host#setinterfacesge-3/0/0description“to_BJ-4200-1”[edit]root@host#setinterfacesge-3/0/0mtu1400[edit]root@host#setinterfacesge-3/0/0speed1000[edit]root@host#setinterfacesge-3/0/0duplexfull[edit]root@host#commitVLAN配置配置VLANuser@host#setinterfacesnameunit0familyethernet-switchingport-modeaccess|trunk#配置端口的VLAN模式(trunk或access)user@host#setinterfacesnameunit0familyethernet-switchingvlanmembersall|number#配置trunk端口的允许通过的VLANuser@host#setvlansvlan-namevlan-idnumber#配置VLANuser@host#setvlansvlan-nameinterfaceinterface_name或是:user@host#setinterfacesinterface-nameunit0familyethernet-switchingvlanmembersvlan-nameorvlan-id#添加端口到特定VLANuser@host#showvlansvlan-namedetail#查看VLAN信息root@host>editEnteringconfigurationmode[edit]root@host#setvlanssalesvlan-id100[edit]root@host#setvlanssalesinterfacege-0/0/1#or[edit]root@host#setinterfacesge-0/0/1unit0familyethernet-switchingvlanmemberssales[edit]root@host#commitVLAN路由端口(RVI)的配置配置VLAN路由端口user@host#setinterfacesvlanunitnumberfamilyinetaddress#配置RVI端口和地址user@host#setvlansvlan_namel3-interfacevlan.unit-number#绑定RVI端口到某个VLANuser@host#showvlansuser@host#showinterfaceterseuser@host#showEthernet-switchinginterface#查看VLAN和端口信息root@host>editEnteringconfigurationmode[edit]root@host#[edit]root@host#setvlanssalesl3-interfacevlan.100[edit]root@host#commit路由配置配置静态路由user@host#setrouting-optionsstaticroutenetwork/masknext-hopaddress#配置静态路由root@host>editEnteringconfigurationmode[edit]root@host#[edit]root@host#commit配置静态路由user@host#setrouting-optionsstaticroutenetwork/masknext-hopaddress#配置静态路由root@host>editEnteringconfigurationmode[edit]root@host#[edit]root@host#commit欢迎下载交流!【最新资料,WORD文档,可编辑修改】