JuniperEX交换机配置操作手册.doc

上传人:仙人指路1688 文档编号:2400420 上传时间:2023-02-17 格式:DOC 页数:14 大小:205.50KB
返回 下载 相关 举报
JuniperEX交换机配置操作手册.doc_第1页
第1页 / 共14页
JuniperEX交换机配置操作手册.doc_第2页
第2页 / 共14页
JuniperEX交换机配置操作手册.doc_第3页
第3页 / 共14页
JuniperEX交换机配置操作手册.doc_第4页
第4页 / 共14页
JuniperEX交换机配置操作手册.doc_第5页
第5页 / 共14页
点击查看更多>>
资源描述

《JuniperEX交换机配置操作手册.doc》由会员分享,可在线阅读,更多相关《JuniperEX交换机配置操作手册.doc(14页珍藏版)》请在三一办公上搜索。

1、JuniperEX交换机配置操作手册Juniper Networks.2009/3目录1.总体概述32.软件操作42.1.通过Console线缆连接Juniper 设备42.2.设备启动52.3.设备重启52.4.JUNOS升级52.5.密码恢复63.JUNOS CLI模式84.JUNIPER设备的基本配置95.EX路由交换机初始配置向导EZSETUP116.端口配置117.VLAN配置128.VLAN路由端口(RVI)的配置139.路由配置141. 总体概述本文档为Juniper Networks, Inc.编写。用于说明JuniperEX基本命令配置。更多的信息请参考下面的网站:Junip

2、er:2. 软件操作JUNOS软件是专门为互联网设计的第一种路由交换操作系统。它运行在Juniper网络公司的所有T-系列、M-系列和J-系列路由器和EX系列路由交换机上,而且目前正被部署在全球最大、增长最迅速的网络中。Junos 使用 FreeBSD 内核,模块化的设计,提供卓越的故障恢复能力并确保能够简单地集成 IPv6、MPLS 等新功能。JUNOS软件提供的全套具有工业强度的路由协议、灵活的策略语言,可以高效地扩展以支持很大数量的网络接口和路由。 基于标准的JUNOS软件可以支持互联网路由协议,同时控制路由器、交换机及其接口并实现对各种规模的网络的系统管理。简便易用的界面使您可以配置路

3、由协议和接口属性、监控路由、检测并排除协议和网络连接故障。本节将描述JUNOS的一些应急操作,这些操作都会影响设备的正常功能,操作时请谨慎使用:n 通过Console线缆连接路由器n 设备重启n 设备启动n JUNOS升级n 密码恢复2.1. 通过Console线缆连接Juniper 设备使用下面的步骤连接路由器的Console接口:1. 准备好Juniper设备自带的Console线缆(如果没有的话,请准备两个DB9-RJ45转接头和一条RJ45-RJ45反转线)2. 将Console线缆的DB9插头一头插到PC或者笔记本电脑的COM口上,另外一端插到Juniper设备的CONSOLE口上。

4、3. 打开计算机中的终端软件工具。例如:CRT或者Windows自带的超级终端。设置如下:n 端口:选择第二步中Console线缆插入到PC上的端口,通常为COM 1或者COM 2n 波特率:9600n 数据位:8位n 停止位:1位n 流控:无4. 打开配置到的CRT或者超级终端,按“Enter”键,屏幕出现登陆的提示符,即连接成功。如果没有显示,请检查线缆或者终端的配置是否正确。如果出现任何现场无法解决的问题,请寻求Juniper TAC的帮助,参阅寻求JTAC帮助。2.2. 设备启动加电启动Juniper设备。系统第一次启动建议通过Console端口登陆。启动完成后,看看到 login提示

5、符,输入用户名为 root,缺省密码是空。进入系统后输入 cli 命令进入Junos command line interface,可以进行设备调试。如下例:login: rootPassword:Terminal type? vt100 yroot%cliroot2.3. 设备重启Juniper设备重启必须按照下面的步骤进行操作:1. 用console设备连接到Juniper设备的CONSOLE端口上。2. 使用具有足够权限的用户名和密码登陆CLI命令行界面。3. 在提示符下输入下面的命令:userhost request system reboot4. 等待console设备的输出,确认J

6、uniper设备软件已经重新启动。2.4. JUNOS升级Juniper设备 JUNOS软件升级必须按照下面的步骤进行操作:1. 用console设备连接到Juniper设备的CONSOLE端口上。2. 下载新的JUNOS软件,放置到FTP服务器上。3. 将新的JUNOS软件复制到Juniper设备上,使用下面的命令:4. userhost file copy ftp:/username:password /var/tmp/filename5. 升级前,执行下面的命令备份旧的软件及设定:userhost request system snapshot6. 安装新的JUNOS软件:userhos

7、t request system software add source reboot 其中source参数为通过上一步骤保存在系统中的文件,如:/var/tmp/jinstall-ex-9.1R1.8-domestic-signed.tgz2.5. 密码恢复如果Juniper设备的Root密码丢失,而且没有其他的超级用户权限,那么就需要执行密码恢复,该操作需要中断Juniper设备的正常功能。要进行密码恢复,请按照下面操作进行:1. 重新启动Juniper设备。2. 在启动过程中,console上出现下面的提示的时候,按任意键中断正常启动方式,然后再进入单用户状态:Hit Enter to

8、boot immediately, or any other key for command prompt.Booting kernel in 9 seconds.ok boot s3. 执行密码恢复:在以下提示文字后输入recoveryEnter full pathname of shell or recovery for root password recovery or RETURN for /bin/sh: recoveryNOTE: Once in the CLI, you will need to enter configuration mode usingNOTE: the co

9、nfigure command to make any required changes. For example,NOTE: to reset the root password, type:NOTE: configureNOTE: set system root-authentication plain-text-passwordNOTE: (enter the new password when asked)NOTE: commitNOTE: exitNOTE: exitNOTE: When you exit the CLI, you will be asked if you want

10、to rebootNOTE: the systemStarting CLI . root4. 进入配置模式,删除root密码:root configure Entering configuration modeeditroot# delete system root-authentication rootrouter# commit commit completeeditrootrouter# exit Exiting configuration moderootkenny exit Reboot the system? y/n yTerminated5. 重新启动后,配置新的root密码。J

11、uniper设备恢复正常。3. JUNOS CLI模式设备启动,登录进入系统后输入 cli,即可进入JUNOS CLI模式,可进行设备调试。JUNOS CLI有两种模式:用户模式和配置模式,区分方法是他们的提示符不一样:用户模式userhost#用户模式在用户模式下可以显示路由器的配置、端口状态、路由信息等,它的提示符是号。登录后输入 cli即进入路由器的用户模式:xample: host (ttyp6)login: rootPassword: - JUNOS 9.1R1.8 built 2007-07-07 00:49:05 UTCroothost%cliroothost配置模式userho

12、st#配置模式通过在用户模式使用edit命令进入配置模式,它的提示符是#号:Example: roothost edit Entering configuration modeeditroothost #配置生效和保存Juniper设备配置保存可以有两种方式:命令直接生效和保存:用命令commit生效和保存配置Example: roothost# commit commit complete editroothost# 需要确认的命令生效和保存:分两步完成,用命令commit confirm保存配置后,不在固定时间(缺省为10分钟)内用commit命令确认,则系统自动回退原有配置,请注意:Ex

13、ample: roothost# commit confirmedcommit confirmed will be automatically rolled back in 10 minutes unless confirmedcommit complete# commit confirmed will be rolled back in 10 minuteseditroothost# commit commit complete editroothost# 4. Juniper设备的基本配置配置路由器设备名userhost#set system hostname hostname#配置设备名

14、Example: roothost edit Entering configuration mode editroothost# set system host-name DEMO editrootDEMO# commit 配置路由器Telnet服务userhost#set system services telnet#配置telnet服务Example: roothost# set system services telnet ?Possible completions: Execute this command connection-limit Maximum number of allo

15、wed connections (1.250) rate-limit Maximum number of connections per minute (1.250) | Pipe through a commandeditroothost# set system services telneteditroothost# commit 配置路由器FTP服务userhost#set system services ftp#配置FTP服务Example: roothost# set system services ftp ? Possible completions: Execute this c

16、ommand connection-limit Maximum number of allowed connections (1.250) rate-limit Maximum number of connections per minute (1.250) | Pipe through a commandeditroothost# set system services ftp editroothost# commit配置DNS服务器userhost#set system name-server dns-address#配置模式通过在用户模式使用edit命令进入配置模式:Example: r

17、oothost# set system name-server 192.168.1.1 editroothost# commit5. EX路由交换机初始配置向导EZSETUP在第一次登录系统后,直接输入ezsetup命令进入初始配置向导,在此向导中,顺序输入: 系统名称hostname 系统密码 是否启用Telnet服务 是否启用SSH服务 交换机管理模式:带外/带内 用缺省VLAN default 管理 缺省VLAN的地址和网关 系统时间和日期 系统时区 保存配置即可方便完成路由交换机初始配置6. 端口配置配置物理端口userhost#set interface ge-slot/pic/po

18、rt description description#配置端口描述userhost#set interface ge-slot/pic/port mtu mtu-number#配置端口MTUuserhost#set interface ge-slot/pic/port speed port-speed#配置端口速率userhost#set interface ge-slot/pic/port duplex port-duplex#配置端口双工Example: roothost edit Entering configuration modeeditroothost# set interface

19、s ge-3/0/0 description “to_BJ-4200-1” editroothost# set interfaces ge-3/0/0 mtu 1400editroothost# set interfaces ge-3/0/0 speed 1000editroothost# set interfaces ge-3/0/0 duplex fulleditroothost# commit 7. VLAN配置配置VLANuserhost# set interfaces name unit 0 family ethernet-switching port-mode access|tru

20、nk#配置端口的VLAN模式(trunk或access)userhost# set interfaces name unit 0 family ethernet-switching vlan members all|number#配置trunk端口的允许通过的VLANuserhost#set vlans vlan-name vlan-id number#配置VLANuserhost#set vlans vlan-name interface interface_name 或是:userhost#set interfaces interface-name unit 0 family ethern

21、et-switching vlan members vlan-name or vlan-id#添加端口到特定VLANuserhost# show vlans vlan-name detail #查看VLAN信息Example: roothost edit Entering configuration modeeditroothost# set vlans sales vlan-id 100editroothost# set vlans sales interface ge-0/0/1#oreditroothost# set interfaces ge-0/0/1 unit 0 family e

22、thernet-switching vlan members sales editroothost# commit 8. VLAN路由端口(RVI)的配置配置VLAN路由端口userhost# set interfaces vlan unit number family inet address x.x.x.x/yy#配置RVI端口和地址userhost# set vlans vlan_name l3-interface vlan.unit-number#绑定RVI端口到某个VLANuserhost# show vlansuserhost# show interface terseuserho

23、st# show Ethernet-switching interface#查看VLAN和端口信息Example: roothost edit Entering configuration modeeditroothost# set interface vlan unit 100 family inet 192.168.3.254/24editroothost# set vlans sales l3-interface vlan.100editroothost# commit 9. 路由配置配置静态路由userhost# set routing-options static route net

24、work/mask next-hop address#配置静态路由Example: roothost edit Entering configuration modeeditroothost# set routing-options static route 192.168.1.0/24 next-hop 59.43.17.2editroothost# commit 配置静态路由userhost# set routing-options static route network/mask next-hop address#配置静态路由Example: roothost edit Entering configuration modeeditroothost# set routing-options static route 192.168.1.0/24 next-hop 59.43.17.2editroothost# commit

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 建筑/施工/环境 > 项目建议


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号