Juniper EX2200交换机配置

Juniper EX2200交换机配置Juniper EX2200交换机,是一款支持二层和三层的交换机,其三层协议只支持静态路由与RIP。

Juniper EX2200交换机可以采用CLI(command-line interface)命令行配置方式,也可以采用web浏览器界面配置方式。

由于此前这台交换机配置过,所以先要清空原有配置。

我们先用console终端连接上去配置。

CLI命令行有两种模式:用户模式和配置模式,用户模式的提示符是>,配置模式的提示符是#,在用户模式下输入configure或者edit可以进入配置模式。

一、清空原有配置使用配置线缆Console连接(注意参数9600,8,none,1,none)上去后,出现提示:Amnesiac (ttyu0)login: rootPassword:输入相应密码后成功登陆,— JUNOS 10.4R3.4 built 2011-09-06 10:28:55 UTC登录后出现root@:RE:0% 提示符,输入cli 进入命令行配置模式。

root@:RE:0%root@:RE:0% cliroot> configureEntering configuration mode[edit]root#现在进入了配置模式root# load factory-default 载入默认配置warning: activating factory configuration[edit]注:默认配置下ROOT密码为空,所以需要设超管密码root# set system root-authentication plain-text-password 设置超管密码New password:Retype new password:[edit]root# commit 提交生效commit complete[edit]root#至此,我们已经清掉了原有配置。

二、设置alarm告警开机后不久你会发现交换机前面的面板LCD上Alarm灯出现红色提示,不要担心这是因为MGMT口(即管理口)未接网线。

你可以手动关闭管理口的ALARM,在juniper中使用这条命令:#set chassis alarm management-ethernet link-down ignore#commit灯慢慢的变成了橙黄色。

再加一条命令#set chassis alarm ethernet link-down ignore #设置全部端口不产生告警(注意:link-down可以侦测端口的状态,如果设置了端口link down的alarm告警,则不用的端口最好disable,以避免频繁告警)补充:# set chassis alarm ethernet link-down red #设置全部端口产生告警三、VLAN配置Juniper 交换机的逻辑端口是通过unit逻辑单元来实现的,unit 0是默认的逻辑端口,所有引用到二层/三层端口都是引用unit 0,例如对于物理端口ge-0/0/0,其二层和三层协议用到的逻辑端口就是ge-0/0/0.0,IP地址信息、VLAN信息等都在ge-0/0/0.0下面配置,在JUNIPER交换机命令配置中,可以使用TAB键和空格键来进行参数的补全,在补全系统参数中两个键的作用是一样的。

例如:现在创建一个名字为test的VLAN 10,并且网关设置为192.168.1.1/24,ge-0/0/1属于该VLAN。

配置步骤:(1)创建VLANroot@ex2200# edit vlans test #新建vlan名称为testroot@ex2200# set vlan-id 10 #设置vlan idroot@ex2200# set description “Test VLAN” #设置vlan描述root@ex2200# set mac-limit 200 #设置mac数量,范围是(1..65535),通常可以不配置root@ex2200# set mac-table-aging-time 600 #”设置mac生存时间(秒),范围是(60-1000000) ”root@ex2200# set l3-interface vlan.10 #”将绑定三层逻辑子端口”root@ex2200# set interface ge-0/0/1.0 #”将端口加入到VLAN中”root@ex2200# set interface ge-0/0/2.0 #”将端口加入到VLAN中”(2)创建三层逻辑子端口root@ex2200# top #”回到最外层菜单”root@ex2200# set interfaces vlan unit 10 family inet address192.168.1.1/24 #设置网关(3)将交换机端口修改为access模式并加入到新创建的VLAN中root@ex2200# top #”回到最外层菜单”root@ex2200# set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode accessroot@ex2200# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members 10root@ex2200# set interfaces ge-0/0/2 unit 0 family ethernet-switching port-mode accessroot@ex2200# set interfaces ge-0/0/2 unit 0 family ethernet-switchingvlan members 10(4)commit提交:root@ex2200#commit(5)删除VLAN:由于一个VLAN创建之后,会被端口引用,可能还创建了三层端口,因此在删除vlan的时候需要把端口引用关闭同时删除三层vlan子端口,删除步骤如下:1.删除端口vlanroot@ex2200# toproot@ex2200# delete interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode accessroot@ex2200# delete interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members 10root@ex2200# delete interfaces ge-0/0/2 unit 0 family ethernet-switching port-mode accessroot@ex2200# delete interfaces ge-0/0/2 unit 0 family ethernet-switching vlan members 102.删除vlan对应的L3子端口root@ex2200# toproot@ex2200# delete interfaces vlan unit 103.删除vlan配置root@ex2200# toproot@ex2200# delete vlans test(6)配置TRUNK设置端口Trunk模式root@ex2200# top #回到最外层菜单root@ex2200# delete interfaces ge-0/0/1 unit 0 #”删除端口信息”root@ex2200# edit interfaces ge-0/0/1 unit 0 family ethernet-switching root@ex2200# set port-mode trunk #”设置端口为Trunk模式”root@ex2200# set vlan members 10 #”允许vlan 10通过”root@ex2200# set vlan members 20 #”允许vlan 20通过”root@ex2200# set vlan members all #”允许所有vlan通过”Trunk的删除禁止单个vlan通过:root@ex2200# top #”返回最外层菜单”root@ex2200# edit interfaces ge-0/0/1 unit 0 family ethernet-switching root@ex2200# delete vlan members 10 #”禁止vlan 10通过”删除端口Trunkroot@ex2200# top #”返回最外层菜单”root@ex2200# edit interfaces ge-0/0/1 unit 0 family ethernet-switching root@ex2200# delete port-mode trunk #”删除trunk”root@ex2200# delete vlan members #”删除端口下所有vlan”四、路由与一些维护命令Juniper EX2200当三层使用的时候可以配置静态路由和RIP动态路由。

#set routing-options static route 0/0 next-hop 192.168.3.254 设置默认路由,并将默认路由的下一跳指向192.168.3.254#commit 在juniper OS中,如果修改配置需要配置生效,必须使用commit命令。

如果要将Juniper交换机的配置从一台导到另一台上必须把juniper 的配置转换成SET 形式,可以使用下面命令。

root# show | display setset version 10.4R3.4set system root-authentication encrypted-password“$1$aK4nIAeS$gRagHhBfoWl2CJhHou4Ox0″交换机的一些简单维护命令:查看序列号show chassis hardware查看硬件show chassis hardware查看软件版本show version查看CPU show chassis routing-engineping命令 ping 192.168.1.254 rapid 快速ping某个地址查看设备告警信息 show chassis alarms查看详细的硬件温度及状态信息 show chassis environment重启交换机 request system reboot关闭交换机 request system halt注:在关闭交换机电源之前必须先利用命令关闭交换机VLAN三层互通的完整示例:set vlans sales vlan-id 100set vlans sales interface ge-0/0/0set vlans sales interface ge-0/0/1set vlans sales interface ge-0/0/2set vlans sales interface ge-0/0/3set vlans sales interface ge-0/0/4set vlans sales interface ge-0/0/5set vlans sales interface ge-0/0/6set vlans sales interface ge-0/0/7set vlans sales interface ge-0/0/8set vlans sales interface ge-0/0/9set vlans sales interface ge-0/0/10set vlans sales interface ge-0/0/11set interface vlan unit 100 family inet 192.168.192.97/27set vlans sales l3-interface vlan.100set vlans test vlan-id 200set vlans test interface ge-0/0/12set vlans test interface ge-0/0/13set vlans test interface ge-0/0/14set vlans test interface ge-0/0/15set vlans test interface ge-0/0/16set vlans test interface ge-0/0/17set vlans test interface ge-0/0/18set vlans test interface ge-0/0/19set vlans test interface ge-0/0/20set vlans test interface ge-0/0/21set vlans test interface ge-0/0/22set vlans test interface ge-0/0/23set interface vlan unit 200 family inet 192.168.192.29/27set vlans test l3-interface vlan.200set routing-options static route 192.168.1.0/24 next-hop 59.43.17.2静态路由。

合集下载

Juniper EX系列交换机命令行配置手册

Juniper EX系列交换机命令行配置手册

Juniper EX系列交换机命令行配置手册目录第一章交换机基础知识 (7)1.1认识J UNIPER交换机 (7)1.2J UNOS操作系统基础 (10)1.2.1 交换机配置模式 (10)1.2.2 交换机配置结构 (11)1.2.3 TAB和空格键的使用 (16)1.2.4 用户模式和配置模式show的区别 (17)1.2.5 如何将配置转换成set命令 (20)1.2.6 commit和rollback (21)1.3EX交换机命令菜单结构 (23)第二章操作指导 (36)2.1通过CONSOLE线连接交换机 (36)2.2 SYSTEM系统参数配置 (37)2.2.1设置root密码 (38)2.2.2设置主机名 (38)2.2.3设置DNS服务器 (38)2.2.4设置日期时间 (38)2.2.5设置NTP服务器 (39)2.2.6开启远程Telnet登陆服务 (39)2.2.7开启远程Ftp服务 (40)2.2.8开启远程ssh登陆 (40)2.2.9开启远程http登陆服务 (40)2.2.10添加/删除用户 (41)2.2.10.1添加用户 (41)2.2.10.2修改用户类别 (41)2.2.10.3 修改用户密码 (42)2.2.11用户权限设置 (42)2.3VLAN配置 (44)2.3.1 VLAN配置步骤 (44)2.3.2 VLAN配置规范要求 (45)2.3.3 添加VLAN (45)2.3.4 修改端口VLAN (47)2.3.5 删除VLAN (48)2.3.6 配置VLAN网关IP (48)2.4T RUNK配置 (48)2.4.1 Trunk配置步骤 (49)2.4.2如何设置Trunk (49)2.4.3允许/禁止VLAN通过Trunk (49)2.5端口配置 (49)2.5.1端口配置规范要求 (49)2.5.2修改端口速率 (50)2.5.3修改端口工作模式 (50)2.5.4修改端口为L3模式 (50)2.5.5 修改端口为L2模式 (51)2.6生成树配置 (51)2.6.1 RSTP协议概览 (51)2.6.2 MSTP协议概览 (54)2.6.3 STP配置实例(生成树) (56)2.6.4 RSTP配置实例(快速生成树) (57)2.6.5 MSTP配置实例(多生成树协议) (63)2.7端口捆绑 (68)2.7.1 端口捆绑步骤 (68)2.8ECMP负载均衡配置 (70)2.9路由协议配置 (72)2.9.1 静态路由配置 (72)2.9.1.1添加静态路由 (72)2.9.1.2 删除静态路由 (72)2.9.1.3调整静态路由优先值 (72)2.9.1.4设置备份静态路由 (72)2.9.1.5指定静态路由下一跳端口 (73)2.9.2 OSPF配置 (73)2.9.2.1 OSPF配置步骤 (73)2.9.2.2 OSPF配置实例(单区域) (77)2.9.2.3 OSPF路由过滤 (80)2.10端口镜像 (81)2.10.1 端口镜像的概述 (81)2.10.2 端口镜像的目的 (82)2.10.3 端口镜像的功能 (82)2.10.4 端口镜像工作原理 (82)2.10.5 端口输入输出流量镜像 (84)2.10.6 带过滤条件的端口镜像 (85)2.11端口MAC地址限制 (87)2.12端口广播风暴控制 (87)2.13VRRP虚拟路由冗余协议 (88)2.13.1 VRRP概览 (88)2.13.2 VRRP工作原理 (89)2.13.3 如何配置VRRP (90)2.14BFD配置(双向转发检测) (94)2.14.1 BFD概览 (94)2.14.2 BFD介绍 (95)2.14.3 BFD的报文格式 (95)2.14.4检测模式 (97)2.14.5发送周期及检测时间 (98)2.14.6参数修改 (99)2.14.7会话建立 (99)2.14.8BFD的标准化 (102)2.14.9OSPF中配置BFD (103)2.14.10静态路由中配置BFD (103)2.15交换机F IREWALL限制功能 (104)2.15.1限制IP地址 (104)2.15.2限制MAC地址 (105)2.16V IRTUAL-C HASSIS设置 (105)2.16.1VC知识 (106)2.16.2如何建立VC组 (107)2.16.3如何扩充VC组交换机 (109)2.16.4如何利用uplink链路组成VC (110)2.16.5如何对VC组进行切换 (113)2.17SNMP配置 (113)2.17.1SNMP协议概览 (113)2.17.2SNMP基本简介 (113)2.17.3配置SNMP (114)2.18S YSLOG配置 (116)第三章交换机维护操作 (116)3.1交换机启动和关闭 (116)3.1.1 交换机重启 (116)3.1.2交换机关闭 (116)3.2配置备份和恢复 (117)3.2.1 交换机文件备份 (117)3.2.2配置文件的恢复 (119)3.3如何升级交换机OS (119)3.4如何恢复出厂设置 (120)3.5密码恢复 (120)3.6日常维护命令 (122)3.6.1查看序列号show chassis hardware (123)3.6.2查看硬件show chassis hardware (123)3.6.3查看软件版本show version (123)3.6.4查看CPU show chassis routing-engine (123)3.6.5ping命令 (123)3.6.6查看设备告警信息 show chassis alarms (123)3.6.7查看详细的硬件温度及状态信息 show chassis environment (123)3.6.8查看接口VRRP状态信息show vrrp (123)第一章交换机基础知识1.1 认识Juniper交换机产品型号端口数端口类型PoE端口数最大电源容量(包括 PoE)EX 3200-24T 2410/100/1000B-T8190 (320) W EX 3200-24P 2410/100/1000B-T24190 (600) W EX 3200-48T 4810/100/1000B-T8190 (320) W EX 3200-48P 4810/100/1000B-T48190 (930) W产品型号端口数端口类型PoE端口数最大电源容量(包括 PoE)EX 4200-24T 24 10/100/1000B-T 8 190 (320) W EX 4200-24P 24 10/100/1000B-T 24 190 (600) W EX 4200-24F 24 100B-FX/1000B-X N/A 190 (190) WEX 4200-48T 48 10/100/1000B-T 8190 (320) WEX 4200-48P 48 10/100/1000B-T 48 190 (930) WEX 3200-48T前面面板EX 3200-48T 后面面板USBGbE管理口Console可插拔uplink模块LCD电源模块风扇模块RPS 连接头至少8 PoE端口EX 4200-48T 前面面板EX 4200-48T Rear ViewVCP (Virtual Chassis Port) 0 and1USB GbE管理口Console可插拔uplink模块LCD冗余可热插拔电源模块可插拔风扇模块至少8 PoE端口1.2 Junos操作系统基础Juniper交换机支持两种配置方式:采用命令行的CLI(command-line interface)配置方式,以及采用web浏览器界面JWeb配置方式。

Juniper EX2200交换机配置实战

Juniper EX2200交换机配置实战

昨天拿到一台juniper 的交换机EX2200,今天需要调试。

CISCO的路由器与交换机用的还是很多的,Juniper 的交换机还是第一次用。

所以还是先熟悉操作界面,查资料。

由于之前对juniper的路由器有一段时间的接触,再来看这个juiper交换机,感觉还是比较熟悉的,操作基本相同,只是路由器与交换机上还是有些差别的。

EX2200交换机,是支持二层和三层的一款低端交换机,三层协议只支持静态路由与RIP。

二层配置比较简单只要配置主机名,用户名和密码,管理等。

三层配置要配置VLAN,及VLAN间路由,以及路由协议等。

首先交换机上有4个SFP接口,客户正好需要四个SFP模块,我们给客户提供的模块是EX-SFP-1GE-SX,为了检查模块是否正常工作。

先检查root@JUNIPER_SW> show chassis hardwareHardware inventory:Item V ersion Part number Serial number DescriptionChassis CW EX2200-24T-4GRouting Engine 0 REV 12 750- CW EX2200 24-PortFPC 0 REV 12 750- CW EX2200 24-PortCPU BUILTIN BUILTIN FPC CPUPIC 0 BUILTIN BUILTIN 24x 10/100/1000 Base-T PIC 1 REV 12 750- CW 4x GE SFPXcvr 0 REV 02 740- AM1033SH896 SFP-SXXcvr 1 REV 02 740- AM1033SH895 SFP-SXXcvr 2 REV 02 740- AM1032SGYF0 SFP-SXXcvr 3 REV 02 740- AM1033SH8BT SFP-SXPower Supply 0 PS 100W ACFan Tray Fan Tray拨掉其中一个模块,显示如下:root@JUNIPER_SW> show chassis hardwareHardware inventory:Item V ersion Part number Serial number DescriptionChassis CW EX2200-24T-4GRouting Engine 0 REV 12 750- CW EX2200 24-PortFPC 0 REV 12 750- CW EX2200 24-PortCPU BUILTIN BUILTIN FPC CPUPIC 0 BUILTIN BUILTIN 24x 10/100/1000 Base-T PIC 1 REV 12 750- CW 4x GE SFPXcvr 0 REV 02 740- AM1033SH896 SFP-SXXcvr 1 REV 02 740- AM1033SH895 SFP-SXXcvr 2 REV 02 740- AM1032SGYF0 SFP-SXPower Supply 0 PS 100W ACFan Tray Fan Tray说明上面检查是正确的。

JuniperEX交换机端口镜像配置

JuniperEX交换机端口镜像配置

Example: Configuring Port Mirroring for Local Monitoring of Employee Resource Use on EX Series SwitchesEX Series switches allow you to configure port mirroring to send copies of packets to either a local interface for local monitoring or to a VLAN for remote monitoring. You can use port mirroring to copy these packets:∙Packets entering or exiting a port∙Packets entering a VLAN on EX2200, EX3200, EX4200, or EX4500 switches∙Packets exiting a VLAN on EX8200 switchesYou can analyze the mirrored traffic using a protocol analyzer application installed ona system connected to the local destination interface (or a running on a remotemonitoring station if you are sending mirrored traffic to an analyzer VLAN).This example describes how to configure an EX Series switch to mirror trafficentering interfaces connected to employee computers to an analyzer output interface on the same switch.This example describes how to configure local port mirroring:RequirementsThis example uses the following hardware and software components:∙Junos OS Release 9.0 or later for EX Series switches∙One EX Series switchBefore you configure port mirroring, be sure you have an understanding of portmirroring concepts.Overview and TopologyThis topic includes two related examples that describe how to mirror traffic entering ports on the switch to a destination interface on the same switch. The first example shows how to mirror all traffic entering the ports connected to employee computers.The second example shows the same scenario, but includes a filter to mirror only the employee traffic going to the Web.In this example, ge-0/0/0 and ge-0/0/1 serve as connections for employeecomputers.set firewall family ethernet-switching filter watch-employee term employee-to-web fromdestination-port 80set firewall family ethernet-switching filter watch-employee term employee-to-web then analyzer employee-web-monitorset interfaces ge-0/0/0 unit 0 family ethernet-switching filter input watch-employeeset interfaces ge-0/0/1 unit 0 family ethernet-switching filter input watch-employeeStep-by-Step ProcedureTo configure local port mirroring of employee-to-web traffic from the two portsconnected to employee computers:1.Configure the local analyzer interface:This output shows that the employee-monitor analyzer has a ratio of 1 (mirroring every packet, the default setting), a loss priority of low (set this option to high only when the analyzer output is to a VLAN), is mirroring the traffic entering the ge-0/0/0 and ge-0/0/1 interfaces, and sending the mirrored traffic to the ge-0/0/10interface.。

Juniper EX系列交换机

Juniper EX系列交换机

Air Flow
Front to back Back to front
• Wire-rate Performance on All Ports
Low power consumption – • Redundant Power & Fans <8W/10GbE port
EX4500-40F-BF
40
1/10GbE
# Ports 24 24 48
Port Type 10/100/1000B-T 10/100/1000B-T 10/100/1000B-T 10/100/1000B-T

PoE Ports 0 24 0 48
Fixed Uplinks 4 SFP 4 SFP 4 SFP 4SFP
PoE Ports 8 24 8
Max Power Consumption (incl. PoE) 190 (320) W 190 (600) W 190 (320) W
48
Copyright © 2009 Juniper Networks, Inc.
10/100/1000B-T

• Data Center Optimized
• • • Front-to-back and Back-to-front airflow (2 SKUs) Versatile mounting options Twinax/DAC support for ToR server access
• 10GbE Aggregation Switch
Copyright © 2009 Juniper Networks, Inc.

Management
9
EX4500 LINE OF 10GbE DATA CENTER SWITCHES

juniper交换机命令juniper交换机配置命令整理

juniper交换机命令juniper交换机配置命令整理

juniper交换机命令juniper 交换机配置命令整理导读:就爱阅读网友为您分享以下“juniper 交换机配置命令整理”的资讯,希望对您有所帮助,感谢您对 的支持!设置交换机名字set system host-name BaoGaoTing端口镜像set ethernet-switching-options analyzer debug input ingress interface ge-0/0/0.0set ethernet-switching-options analyzer debug input egress interface ge-0/0/0.0set ethernet-switching-options analyzer debug output interface ge-0/0/4.0Dual-partition的主要目的:解决异常断电设备无法启动的问题request system snapshot media internal slice alternate request system snapshot slice alternate //主备之间备份request system reboot slice alternate media internal // 指定从另外一个分区启动,下一次启动就会默认从上次启动的分区启动junos os,记忆功能QinQ 配置基本的set ethernet-switching-options dot1q-tunneling ether-type 0x8100 封装协议set vlans qinqvlan vlan-id 2821set vlans qinqvlan dot1q-tunnelingset interfaces ge-0/0/28 unit 0 family ethernet-switching vlan members 2821 上行端口set ethernet-switching-options dot1q-tunneling ether-type 0x8100set vlans cust1 vlan-id 100set vlans cust1 interface ge-0/0/1.0set vlans cust1 interface ge-0/0/2.0灵活的set ethernet-switching-options dot1q-tunneling ether-type 0x8100 ##set interfaces ge-0/0/27 unit 0 family ethernet-switching port-mode access ##下行端口set interfaces ge-0/0/27 unit 0 family ethernet-switching vlan members qinq ##用户Vlan为qinq 管理Vlan为Vlan600是透传上去的set interfaces ge-0/0/27 unit 0 family ethernet-switching vlan members vlan600 ** 注意点:一般情况下是不可以同时两个access的,--那样就做成trunk模式** 除非有一个vlan是dot1q-tunnel,而且需要tunnel vlan必须得有customer-vlan的,没有customer-vlan是无法提交成功的set vlans qinq vlan-id 4000 ##//灵活qinq,对于内层标签2-150的tag加上外层4000set vlans qinq interface ge-0/0/27.0set vlans qinq dot1q-tunneling customer-vlans 2-150接入交换机配置setinterfaces ge-0/1/1 unit 0 family ethernet-switching port-mode trunkset interfaces ge-0/1/1 unit 0 family ethernet-switching vlan members 2set interfaces ge-0/1/1 unit 0 family ethernet-switching native-vlan-id 600 **由于上联汇聚交换机的端口为Access口所以要透传的Vlan为native-Vlan##root用户名密码set system root-authentication encrypted-password &quot;$1$z2Z28Ixe$AScMP7uMvMHY3fy8dgtm11&quot; ##用户idset system login user juniper uid 2100 ##设置root用户为超级用户set system login user juniper class super-user##远程用户名和密码set system login user juniper authentication encrypted-password &quot;$1$qUdu0s0Z$vGS88V0jrjhsPnQOTF9oy/&quot; ##启用telnet set system services telnet connection-limit 10 set system services telnet rate-limit 10##端口模式为accesset interfaces ge-0/0/0 unit 0 family ethernet-switching port-mode access ##端口加入Vlan为600 set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members 600 ##端口为trunkset interfaces ge-0/1/0 unit 0 family ethernet-switching port-mode trunk ##允许通过Vlan为600 set interfaces ge-0/1/0 unit 0 family ethernet-switching vlan members 600 ##设置Vlan600的ip地址set interfaces vlan unit 600 family inet address 172.30.0.16/24 ##设置默认网关set routing-options static route 0.0.0.0/0 next-hop 172.30.0.1 ##开启Vlan的三层接口set vlans default l3-interface vlan.0 ##创建Vlan 名字为mgt id 为600 set vlans mgt vlan-id 600 ##开启Vlans mgt的三层接口set vlans mgt l3-interface vlan.600 ##开启Vlans mgt的三层接口set poe interface all X配置VLAN的L3接口地址set vlans name l3-interface vlan.xxset interface vlan xx unit xx family inet address x.x.x.x/24将某个交换端口添加到创建好的VLAN中set interface ge-0/0/x unit 0 family ethernet-switching port-mode access vlan members name 配置TRUNK端口set interface ge-0/0/23 unit 0 family ethernet-switching port-mode trunk native-vlan-id 1 vlan member xx预提交commit check清除LED灯报警clear alarm trafficclear alarm eventEX2200 ALARM告警灯亮红灯:show chassis alarmshow system alarmrequest system configuration rescue save/delete set chassis alarmmanagement-ethernet link-down ignore 管理口状态警告信息灯关闭set chassis alarm ethernet link-down ignore 交换机端口状态警告信息灯关闭igmp 开启set protocols igmp-snooping vlan alldeactivate protocols igmp-snooping开启生成树Set protocol stp恢复出厂设置load factory defaultDual-partition的主要目的:解决异常断电设备无法启动的问题request system snapshot media internal slice alternate //主备之间备份request system reboot slice alternate media internal // 指定从另外一个分区启动,下一次启动就会默认从上次启动的分区启动junos os,记忆功能dhcp 配置set system services dhcp pool 100.1.1.0/24 address-range low 100.1.1.10set system services dhcp pool 100.1.1.0/24 address-range high 100.1.1.200set system services dhcp pool 100.1.1.0/24 default-lease-time 7200set system services dhcp pool 100.1.1.0/24 router 100.1.1.254将端口设置为三层模式。

Juniper EX 系列以太网交换机 说明书

Juniper EX 系列以太网交换机 说明书

Juniper EX 系列以太网交换机操作手册Version 1.0Copyright © 2008 Juniper Networks, Inc.Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册Juniper EX系列以太网交换机操作手册。

(完整版)JUNIPER_EX3200交换机配置

JUNIPER EX3200交换机配置1 Ex3200开机指导开机后:login: rootLast login: Fri Jan 17 22:21:55 on ttyd0--- JUNOS 7.2R3.3 built 2002-03-23 02:44:36 UTCTerminal type? [vt100] <enter>root@%注意使用root用户登录的情况下,输入帐号/密码以后,默认是进入shell模式的(而只有root用户帐号有这个现象),要输入cli命令进入用户模式:root@% cliroot>2 配置模式用户模式下输入configure命令进入配置模式,配置模式下可以对设备进行各种参数的配置root> configure[edit]root#2.1 设置root用户密码命令:set system root-authentication plain-text-password路由器初始化root用户是没有密码的,在第一次进行配置的时候必须要配置root密码才能commit成功。

密码采用字母+数字方式。

Example:lab@M7i_GZ# set system root-authentication plain-text-passwordNew password:Retype new password:2.2 添加系统用户命令:set system login user juniper uid 2000 <-设置用户名为juniper用户id为2000set system login user juniper class super-user <-设置juniper用户为超级用户set system login user juniper authentication plain-text-password <-设置juniper用户的密码2.3 设置主机名命令:set system host-name M7i_GZ <-设置主机名为M7i_GZ2.4 开启系统telnet服务命令:set system services telnet说明:系统默认是没有打开telnet功能的,只有打开telnet服务之后才能从网络上登陆到路由器。

JuniperEX2200交换机配置

Juniper EX2200交换机配置Juniper EX2200交换机,是一款支持二层和三层的交换机,其三层协议只支持静态路由与RIP。

Juniper EX2200交换机可以采用CLI(command-line interface)命令行配置方式,也可以采用web浏览器界面配置方式。

由于此前这台交换机配置过,所以先要清空原有配置。

我们先用console终端连接上去配置。

CLI命令行有两种模式:用户模式和配置模式,用户模式的提示符是>,配置模式的提示符是#,在用户模式下输入configure或者edit可以进入配置模式。

一、清空原有配置使用配置线缆Console连接(注意参数9600,8,none,1,none)上去后,出现提示:Amnesiac (ttyu0)login: rootPassword:输入相应密码后成功登陆,— JUNOS 10.4R3.4 built 2011-09-06 10:28:55 UTC登录后出现root@:RE:0% 提示符,输入cli 进入命令行配置模式。

root@:RE:0%root@:RE:0% cliroot> configureEntering configuration mode[edit]root#现在进入了配置模式root# load factory-default 载入默认配置warning: activating factory configuration[edit]注:默认配置下ROOT密码为空,所以需要设超管密码root# set system root-authentication plain-text-password 设置超管密码New password:Retype new password:[edit]root# commit 提交生效commit complete[edit]root#至此,我们已经清掉了原有配置。

二、设置alarm告警开机后不久你会发现交换机前面的面板LCD上Alarm灯出现红色提示,不要担心这是因为MGMT口(即管理口)未接网线。

Juniper 交换机配置教程


▪ Bridging is not supported on L3 sub-interfaces
for EX-series switches
Physical
Logical
L2 Trunk
L2 Trunk
ge-0/0/0.1
ge-0/0/2.1
ge-0/0/0.2
ge-0/0/2.1
3
Copyright © 2009 Juniper Networks, Inc.
default 0 1
orange 100 2
ge-0/0/0.0
blue
200 3
ge-0/0/1.0
purple
300 4
ge-0/0/2.0
7
Copyright © 2009 JuVnLipAerNNPetuwroprkles, Inc.
802.1Q TAGGED TRUNK LINKS
} } vlans {
orange { vlan-id 100;
} blue {
vlan-id 200; } }
VLAN Blue
Copyright © 2009 Juniper Networks, Inc.
INTER-VLAN ROUTING
Routed VLAN Interface (RVI)
vlan orange:
Admin state: Enabled
Tagging : 802.1Q Tag 100
Desription : None
Primary IP : None
Interfaces : 1. (Active = 1)
stp
: None
Tag
: None

JuniperEX系列交换机命令行配置手册

JuniperEX系列交换机命令行配置手册JuniperEX系列交换机命令行配置手册目录第一章交换机基础知识 (7)1.1认识J UNIPER交换机 (7)1.2J UNOS操作系统基础 (9)1.2.1 交换机配置模式 (9)1.2.2 交换机配置结构 (10)1.2.3 TAB和空格键的使用 (15)1.2.4 用户模式和配置模式show的区别 (16)1.2.5 如何将配置转换成set命令 (19)1.2.6 commit和rollback (20)1.3EX交换机命令菜单结构 (22)第二章操作指导 (35)2.1通过CONSOLE线连接交换机 (35)2.2 SYSTEM系统参数配置 (36)2.2.1设置root密码 (37)2.2.2设置主机名 (37)2.2.3设置DNS服务器 (37)2.2.4设置日期时间 (37)2.2.5设置NTP服务器 (38)2.2.6开启远程Telnet登陆服务 (38)2.2.7开启远程Ftp服务 (39)2.2.8开启远程ssh登陆 (39)2.2.9开启远程http登陆服务 (39)2.2.10添加/删除用户 (40)2.2.10.1添加用户 (40)2.2.10.2修改用户类别 (40)2.2.10.3 修改用户密码 (40)2.2.11用户权限设置 (41)2.3VLAN配置 (43)2.3.1 VLAN配置步骤 (43)2.3.2 VLAN配置规范要求 (44)2.3.3 添加VLAN (44)2.3.4 修改端口VLAN (46)2.3.5 删除VLAN (46)2.3.6 配置VLAN网关IP (47)2.4T RUNK配置 (47)2.4.1 Trunk配置步骤 (47)2.4.2如何设置Trunk (48)2.4.3允许/禁止VLAN通过Trunk (48)2.5端口配置 (48)2.5.1端口配置规范要求 (48)2.5.2修改端口速率 (49)2.5.3修改端口工作模式 (49)2.5.4修改端口为L3模式 (49)2.5.5 修改端口为L2模式 (50)2.6生成树配置 (50)2.6.1 RSTP协议概览 (50)2.6.2 MSTP协议概览 (53)2.6.3 STP配置实例(生成树) (54)2.6.4 RSTP配置实例(快速生成树) (55) 2.6.5 MSTP配置实例(多生成树协议) (61) 2.7端口捆绑 (66)2.7.1 端口捆绑步骤 (66)2.8ECMP负载均衡配置 (68)2.9路由协议配置 (70)2.9.1 静态路由配置 (70)2.9.1.1添加静态路由 (70)2.9.1.2 删除静态路由 (70)2.9.1.3调整静态路由优先值 (70)2.9.1.4设置备份静态路由 (70)2.9.1.5指定静态路由下一跳端口 (71) 2.9.2 OSPF配置 (71)2.9.2.1 OSPF配置步骤 (71)2.9.2.2 OSPF配置实例(单区域) (75) 2.9.2.3 OSPF路由过滤 (78)2.10端口镜像 (79)2.10.1 端口镜像的概述 (79)2.10.2 端口镜像的目的 (80)2.10.3 端口镜像的功能 (80)2.10.4 端口镜像工作原理 (80)2.10.5 端口输入输出流量镜像 (82) 2.10.6 带过滤条件的端口镜像 (83) 2.11端口MAC地址限制 (85)2.12端口广播风暴控制 (85)2.13VRRP虚拟路由冗余协议 (86)2.13.1 VRRP概览 (86)2.13.2 VRRP工作原理 (87)2.13.3 如何配置VRRP (88)2.14BFD配置(双向转发检测) (92) 2.14.1 BFD概览 (92)2.14.2 BFD介绍 (93)2.14.3 BFD的报文格式 (93)2.14.4检测模式 (95)2.14.5发送周期及检测时间 (96)2.14.6参数修改 (96)2.14.7会话建立 (97)2.14.8BFD的标准化 (100)2.14.9OSPF中配置BFD (100)2.14.10静态路由中配置BFD (101)2.15交换机F IREWALL限制功能 (101) 2.15.1限制IP地址 (102)2.15.2限制MAC地址 (102)2.16V IRTUAL-C HASSIS设置 (103)2.16.1VC知识 (103)2.16.2如何建立VC组 (104)2.16.3如何扩充VC组交换机 (106)2.16.4如何利用uplink链路组成VC (107) 2.16.5如何对VC组进行切换 (110)2.17SNMP配置 (110)2.17.1SNMP协议概览 (110)2.17.2SNMP基本简介 (110)2.17.3配置SNMP (111)2.18S YSLOG配置 (113)第三章交换机维护操作 (113)3.1交换机启动和关闭 (113)3.1.1 交换机重启 (113)3.1.2交换机关闭 (113)3.2配置备份和恢复 (114)3.2.1 交换机文件备份 (114)3.2.2配置文件的恢复 (116)3.3如何升级交换机OS (116)3.4如何恢复出厂设置 (117)3.5密码恢复 (117)3.6日常维护命令 (119)3.6.1查看序列号show chassis hardware (120)3.6.2查看硬件show chassis hardware (120)3.6.3查看软件版本show version (120)3.6.4查看CPU show chassis routing-engine (120)3.6.5ping命令 (120)3.6.6查看设备告警信息 show chassis alarms (120)3.6.7查看详细的硬件温度及状态信息show chassis environment (120)3.6.8查看接口VRRP状态信息show vrrp (120)第一章交换机基础知识1.1 认识Juniper交换机产品型号端口数端口类型PoE端口数最大电源容量(包括 PoE)EX 3200-24T 2410/100/1000B-T 8 190 (320) W EX 3200-24P 2410/100/1000B-T 24 190 (600) W EX 3200-48T 4810/100/1000B-T 8 190 (320) W EX 3200-48P 4810/100/1000B-T 48 190 (930) W产品型号端口数端口类型PoE端口数最大电源容量(包括 PoE)EX 4200-24T 24 10/100/1000B-T 8 190 (320) W EX 4200-24P 24 10/100/1000B-T 24 190 (600) W EX 4200-24F 24 100B-FX/1000B-X N/A 190 (190) WEX 4200-48T 48 10/100/1000B-T 8190 (320) WEX 4200-48P 48 10/100/1000B-T 48 190 (930) WEX 3200-48T前面面板EX 3200-48T 后面面板USBGbE管理口Console可插拔uplink模块LCD电源模块风扇模块RPS 连接头至少8 PoE端口EX 4200-48T 前面面板EX 4200-48T Rear ViewVCP (Virtual Chassis Port) 0 and1USB GbE管理口Console可插拔uplink模块LCD冗余可热插拔电源模块可插拔风扇模块至少8 PoE端口1.2 Junos操作系统基础Juniper交换机支持两种配置方式:采用命令行的CLI(command-line interface)配置方式,以及采用web浏览器界面JWeb配置方式。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档