JuniperEX交换机配置操作手册.doc_第1页
JuniperEX交换机配置操作手册.doc_第2页
JuniperEX交换机配置操作手册.doc_第3页
JuniperEX交换机配置操作手册.doc_第4页
JuniperEX交换机配置操作手册.doc_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

juniper networks 1 juniper ex 交换机配置操作手册交换机配置操作手册 juniperjuniper networks.networks. 2009/32009/3 juniper networks 2 目录目录 1.总体概述总体概述3 2.软件操作软件操作4 2.1.通过 console 线缆连接 juniper 设备4 2.2.设备启动5 2.3.设备重启5 2.4.junos 升级 5 2.5.密码恢复6 3.junos cli 模式模式 .8 4.juniper 设备的基本配置设备的基本配置 .9 5.ex 路由路由交换机初始配置向导交换机初始配置向导 ezsetup11 6.端口配置端口配置11 7.vlan 配置配置12 8.vlan 路由端口路由端口(rvi)的配置的配置 13 9.路由配置路由配置14 juniper networks 3 1. 总体概述总体概述 本文档为juniper networks, inc.编写。用于说明juniperex基本命令配置。 更多的信息请参考下面的网站: juniper:/ juniper networks 4 2.软件操作软件操作 junos 软件是专门为互联网设计的第一种路由交换操作系统。它运行在 juniper 网络公司 的所有 t-系列、m-系列和 j-系列路由器和 ex 系列路由交换机上,而且目前正被部署在全球 最大、增长最迅速的网络中。junos 使用 freebsd 内核,模块化的设计,提供卓越的故障恢 复能力并确保能够简单地集成 ipv6、mpls 等新功能。junos 软件提供的全套具有工业强度 的路由协议、灵活的策略语言,可以高效地扩展以支持很大数量的网络接口和路由。 基于标 准的 junos 软件可以支持互联网路由协议,同时控制路由器、交换机及其接口并实现对各种 规模的网络的系统管理。简便易用的界面使您可以配置路由协议和接口属性、监控路由、检测 并排除协议和网络连接故障。 本节将描述 junos 的一些应急操作,这些操作都会影响设备的正常功能,操作时请谨慎 使用: 通过 console 线缆连接路由器 设备重启 设备启动 junos 升级 密码恢复 2.1.通过通过 console 线缆连接线缆连接 juniper 设备设备 使用下面的步骤连接路由器的 console 接口: 1.准备好 juniper 设备自带的 console 线缆(如果没有的话,请准备两个 db9-rj45 转 接头和一条 rj45-rj45 反转线) 2.将 console 线缆的 db9 插头一头插到 pc 或者笔记本电脑的 com 口上,另外一端插 到 juniper 设备的 console 口上。 。 3.打开计算机中的终端软件工具。例如:crt 或者 windows 自带的超级终端。设置如 下: 端口:选择第二步中 console 线缆插入到 pc 上的端口,通常为 com 1 或者 com 2 波特率:9600 数据位:8 位 停止位:1 位 juniper networks 5 流控:无 4.打开配置到的 crt 或者超级终端,按“enter”键,屏幕出现登陆的提示符,即连接 成功。如果没有显示,请检查线缆或者终端的配置是否正确。 如果出现任何现场无法解决的问题,请寻求 juniper tac 的帮助,参阅寻求 jtac 帮助。 2.2.设备启动设备启动 加电启动 juniper 设备。系统第一次启动建议通过 console 端口登陆。 启动完成后,看看到 login 提示符,输入用户名为 root,缺省密码是空空。进入系统后输入 cli 命令进入 junos command line interface,可以进行设备调试。如下例: login: root password: terminal type? vt100 y root%cli root 2.3.设备重启设备重启 juniper 设备重启必须按照下面的步骤进行操作: 1.用 console 设备连接到 juniper 设备的 console 端口上。 2.使用具有足够权限的用户名和密码登陆 cli 命令行界面。 3.在提示符下输入下面的命令: userhost request system reboot 4.等待 console 设备的输出,确认 juniper 设备软件已经重新启动。 2.4.junos 升级升级 juniper 设备 junos 软件升级必须按照下面的步骤进行操作: 1.用 console 设备连接到 juniper 设备的 console 端口上。 2.下载新的 junos 软件,放置到 ftp 服务器上。 3.将新的 junos 软件复制到 juniper 设备上,使用下面的命令: juniper networks 6 4. userhost file copy ftp:/username:/filename /var/tmp/filename 5.升级前,执行下面的命令备份旧的软件及设定: userhost request system snapshot 6.安装新的 junos 软件: userhost request system software add source reboot 其中source参数为通过上一步骤保存在系统中的文件,如:/var/tmp/jinstall-ex- 9.1r1.8-domestic-signed.tgz 2.5.密码恢复密码恢复 如果 juniper 设备的 root 密码丢失,而且没有其他的超级用户权限,那么就需要执行密码 恢复,该操作需要中断 juniper 设备的正常功能。 要进行密码恢复,请按照下面操作进行: 1.重新启动 juniper 设备。 2.在启动过程中,console 上出现下面的提示的时候,按任意键中断正常启动方式,然 后再进入单用户状态: hit enter to boot immediately, or any other key for command prompt. booting kernel in 9 seconds. ok boot s 3.执行密码恢复:在以下提示文字后输入 recovery enter full pathname of shell or recovery for root password recovery or return for /bin/sh: recovery note: once in the cli, you will need to enter configuration mode using note: the configure command to make any required changes. for example, note: to reset the root password, type: note: configure note: set system root-authentication plain-text-password note: (enter the new password when asked) note: commit note: exit note: exit note: when you exit the cli, you will be asked if you want to juniper networks 7 reboot note: the system starting cli . root 4.进入配置模式,删除 root 密码: root configure entering configuration mode edit root# delete system root-authentication rootrouter# commit commit complete edit rootrouter# exit exiting configuration mode rootkenny exit reboot the system? y/n y terminated 5.重新启动后,配置新的 root 密码。juniper 设备恢复正常。 juniper networks 8 3. junos cli 模式模式 设备启动,登录进入系统后输入 cli,即可进入junos cli模式,可进行设备调试。 junos cli有两种模式:用户模式和配置模式,区分方法是他们的提示符不一样: 用户模式用户模式 userhost#用户模式 在用户模式下可以显示路由器的配置、端口状态、路由信息等,它的提示符是号。登录后输 入 cli即进入路由器的用户模式: example: host (ttyp6) login: root password: - junos 9.1r1.8 built 2007-07-07 00:49:05 utc roothost%cli roothost 配置模式配置模式 userhost#配置模式 通过在用户模式使用edit命令进入配置模式,它的提示符是#号: example: roothost edit entering configuration mode edit roothost # 配置配置生效和生效和保存保存 juniper设备配置保存可以有两种方式: 命令直接生效和保存:用命令commit生效和保存配置 example: roothost# commit commit complete juniper networks 9 edit roothost# 需要确认的命令生效和保存:分两步完成,用命令commit confirm保存配置后,不在固定时 间(缺省为10分钟)内用commit命令确认,则系统自动回退自动回退原有配置,请注意: example: roothost# commit confirmed commit confirmed will be automatically rolled back in 10 minutes unless confirmed commit complete # commit confirmed will be rolled back in 10 minutes edit roothost# commit commit complete edit roothost# 4. juniper 设备的基本配置设备的基本配置 配置路由器设备名配置路由器设备名 userhost# set system hostname hostname#配置设备名 example: roothost edit entering configuration mode edit roothost# set system host-name demo edit rootdemo# commit 配置路由器配置路由器 telnet 服务服务 userhost# set system services telnet#配置telnet服务 juniper networks 10 example: roothost# set system services telnet ? possible completions: execute this command connection-limit maximum number of allowed connections (1250) rate-limit maximum number of connections per minute (1250) | pipe through a command edit roothost# set system services telnet edit roothost# commit 配置路由器配置路由器 ftp 服务服务 userhost# set system services ftp#配置ftp服务 example: roothost# set system services ftp ? possible completions: execute this command connection-limit maximum number of allowed connections (1250) rate-limit maximum number of connections per minute (1250) | pipe through a command edit roothost# set system services ftp edit roothost# commit 配置配置 dns 服务器服务器 userhost# set system name-server dns-address#配置模式 通过在用户模式使用edit命令进入配置模式: example: roothost# set system name-server edit roothost# commit juniper networks 11 juniper networks 12 5. ex 路由路由交换机初始配置向导交换机初始配置向导 ezsetup 在第一次登录系统后,直接输入ezsetup命令进入初始配置向导,在此向导中,顺序输入: 系统名称系统名称hostname 系统密码系统密码 是否启用是否启用telnet服务服务 是否启用是否启用ssh服务服务 交换机管理模式交换机管理模式:带外带外/带内带内 用缺省用缺省vlan “default“ 管理管理 缺省缺省vlan的地址和网关的地址和网关 系统时间和日期系统时间和日期 系统时区系统时区 保存配置保存配置 即可方便完成路由交换机初始配置 6. 端口配置端口配置 配置物理端口配置物理端口 userhost#set interface ge-slot/pic/port description description #配置端口描述 userhost#set interface ge-slot/pic/port mtu mtu-number #配置端口mtu userhost#set interface ge-slot/pic/port speed port-speed #配置端口速率 userhost#set interface ge-slot/pic/port duplex port-duplex #配置端口双工 example: roothost edit entering configuration mode edit roothost# set interfaces ge-3/0/0 description “to_bj-4200-1” juniper networks 13 edit roothost# set interfaces ge-3/0/0 mtu 1400 edit roothost# set interfaces ge-3/0/0 speed 1000 edit roothost# set interfaces ge-3/0/0 duplex full edit roothost# commit 7. vlan 配置配置 配置配置 vlan userhost# set interfaces name unit 0 family ethernet-switching port-mode access|trunk #配置端口的vlan模式(trunk或access) userhost# set interfaces name unit 0 family ethernet-switching vlan members all|number #配置trunk端口的允许通过的vlan userhost#set vlans vlan-name vlan-id number #配置vlan userhost#set vlans vlan-name interface interface_name 或是: userhost#set interfaces interface-name unit 0 family ethernet-switching vlan members vlan-name or vlan-id #添加端口到特定vlan userhost# show vlans vlan-name detail #查看vlan信息 example: roothost edit entering configuration mode edit roothost# set vlans sales vlan-id 100 juniper networks 14 edit roothost# set vlans sales interface ge-0/0/1 #or edit roothost# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members sales edit roothost# 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 端口到某个 vlan userhost# sh

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论