Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure Juniper EX2200 switch

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to configure the Juniper EX2200 switch. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

CISCO and HUAWEI switches are generally used in a lot of projects, while Juniper switches are generally used less. A juniper switch EX2200 has been transferred from elsewhere in a project of the unit, which needs to be debugged and tested. Generally speaking, the switch model is different, the command line and configuration will be different, because this switch has not been used before, its configuration and commands are not clear, so first look for information to be familiar with, and then operate.

Juniper EX2200 switch is a layer 2 and layer 3 switch, and its layer 3 protocol only supports static routing and RIP. The Juniper EX2200 switch can be configured either by CLI (command-line interface) command line or by web browser interface.

Since this switch has been configured before, it is necessary to empty the original configuration first. We first use the console terminal to connect to the configuration. The CLI command line has two modes: user mode and configuration mode. The prompt for user mode is >, and the prompt for configuration mode is #. Enter configure or edit in user mode to enter configuration mode.

First, empty the original configuration

After using the configuration cable Console connection (note the parameter 9600, 8, none, 1, none), there is a prompt:

Amnesiac (ttyu0)

Login: root

Password:

Log in successfully after entering the corresponding password

-JUNOS 10.4R3.4 built 2011-09-06 10:28:55 UTC

After logging in, a root@:RE:0% prompt appears, and enter cli to enter command line configuration mode.

Root@:RE:0%

Root@:RE:0% cli

Root > configure

Entering configuration mode

[edit]

Root#

Now we are in configuration mode.

Root# load factory-default loads the default configuration

Warning: activating factory configuration

[edit]

Note: the ROOT password is empty by default, so you need to set the superpipe password.

Root# set system root-authentication plain-text-password sets the password of superpipe

New password:

Retype new password:

[edit]

Root# commit submission takes effect

Commit complete

[edit]

Root#

At this point, we have cleared the original configuration.

2. Set alarm alarm

Shortly after you turn on the switch, you will find a red light on the LCD on the front panel of the switch. Don't worry because the MGMT port (that is, the management port) is not connected to the network cable. You can manually close the ALARM of the management port and use this command in juniper:

# set chassis alarm management-ethernet link-down ignore

# commit

The lamp slowly turned into an orange.

Add one more order

# set chassis alarm ethernet link-down ignore # set all ports not to generate alarm

(note: link-down can detect the status of the port. If the alarm alarm of the port link down is set, it is better to disable the unused port to avoid frequent alarms.)

Add:

# set chassis alarm ethernet link-down red # set all ports to generate alarms

III. VLAN configuration

The logical port of the Juniper switch is implemented through the unit logical unit. Unit 0 is the default logical port, and all references to layer 2 / layer 3 ports refer to unit 0. For example, for the physical port ge-0/0/0, the logical ports used by the layer 2 and layer 3 protocols, such as ge-0/0/0.0,IP address information and VLAN information, are configured under ge-0/0/0.0, and in the JUNIPER switch command configuration. You can use the TAB key and the space bar to complete the parameters, and the two keys play the same role in completing the system parameters.

For example: now create a VLAN 10 with the name test, and the gateway is set to 192.168.1.1, which belongs to the VLAN.

Configuration steps:

(1) create a VLAN

Root@ex2200# edit vlans test # New vlan name is test

Root@ex2200# set vlan-id 10 # set vlan id

Root@ex2200# set description "Test VLAN" # set vlan description

Root@ex2200# set mac-limit 20 sets the number of mac, with a range of (1.. 65535), which is usually not configured.

Root@ex2200# set mac-table-aging-time 600 # "set mac time to Live (seconds), range is (60-1000000)"

Root@ex2200# set l3-interface vlan.10 # "will bind layer 3 logical subports"

Root@ex2200# set interface ge-0/0/1.0 # "add Ports to VLAN"

Root@ex2200# set interface ge-0/0/2.0 # "add Ports to VLAN"

(2) create three-layer logical subports

Root@ex2200# top # "back to the outermost menu"

Root@ex2200# set interfaces vlan unit 10 family inet address 192.168.1.1 Plus 24 # setup Gateway

(3) modify the switch port to access mode and add it to the newly created VLAN

Root@ex2200# top # "back to the outermost menu"

Root@ex2200# set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode access

Root@ex2200# set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members 10

Root@ex2200# set interfaces ge-0/0/2 unit 0 family ethernet-switching port-mode access

Root@ex2200# set interfaces ge-0/0/2 unit 0 family ethernet-switching vlan members 10

(4) commit submission:

Root@ex2200#commit

(5) Delete VLAN:

Since a VLAN will be referenced by the port after it is created, and a layer-3 port may be created, you need to close the port reference and delete the layer-3 VLAN sub-port when deleting the vlan. Delete steps are as follows:

1. Delete Port vlan

Root@ex2200# top

Root@ex2200# delete interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode access

Root@ex2200# delete interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members 10

Root@ex2200# delete interfaces ge-0/0/2 unit 0 family ethernet-switching port-mode access

Root@ex2200# delete interfaces ge-0/0/2 unit 0 family ethernet-switching vlan members 10

two。 Delete the L3 subport corresponding to vlan

Root@ex2200# top

Root@ex2200# delete interfaces vlan unit 10

3. Delete vlan configuration

Root@ex2200# top

Root@ex2200# delete vlans test

(6) configure TRUNK

Set port Trunk mode

Root@ex2200# top # goes back to the outermost menu

Root@ex2200# delete interfaces ge-0/0/1 unit delete port information

Root@ex2200# edit interfaces ge-0/0/1 unit 0 family ethernet-switching

Root@ex2200# set port-mode trunk # "set Port to Trunk Mode"

Root@ex2200# set vlan members 10 # "allow vlan 10 to pass"

Root@ex2200# set vlan members 20 # "allow vlan 20 to pass"

Root@ex2200# set vlan members all # "allow all vlan to pass"

Deletion of Trunk

Prohibit a single vlan from passing:

Root@ex2200# top # "return to outermost menu"

Root@ex2200# edit interfaces ge-0/0/1 unit 0 family ethernet-switching

Root@ex2200# delete vlan members 10 # "prohibit vlan 10 from passing"

Delete Port Trunk

Root@ex2200# top # "return to outermost menu"

Root@ex2200# edit interfaces ge-0/0/1 unit 0 family ethernet-switching

Root@ex2200# delete port-mode trunk # "Delete trunk"

Root@ex2200# delete vlan members # "Delete all vlan under Port"

Routing and some maintenance commands

Juniper EX2200 can be configured with static routing and RIP dynamic routing when layer 3 is used.

# set routing-options static route 0 next-hop 192.168.3.254 set the default route and point the next hop of the default route to 192.168.3.254

# commit in juniper OS, if you need to modify the configuration to take effect, you must use the commit command.

If you want to import the configuration of a Juniper switch from one to another, you must convert the configuration of juniper to SET, you can use the following command.

Root# show | display set

Set version 10.4R3.4

Set system root-authentication encrypted-password "$1 $aK4nIAeS$gRagHhBfoWl2CJhHou4Ox0"

Some simple maintenance commands for the switch:

View serial number show chassis hardware

View hardware show chassis hardware

View the software version show version

View CPU show chassis routing-engine

Ping command ping 192.168.1.254 rapid Fast ping an address

View device alarm information show chassis alarms

View detailed hardware temperature and status information show chassis environment

Restart switch request system reboot

Shut down switch request system halt

Note: before powering off the switch, you must use the command to shut down the switch.

A complete example of VLAN layer 3 interworking:

Set vlans sales vlan-id 100

Set vlans sales interface ge-0/0/0

Set vlans sales interface ge-0/0/1

Set vlans sales interface ge-0/0/2

Set vlans sales interface ge-0/0/3

Set vlans sales interface ge-0/0/4

Set vlans sales interface ge-0/0/5

Set vlans sales interface ge-0/0/6

Set vlans sales interface ge-0/0/7

Set vlans sales interface ge-0/0/8

Set vlans sales interface ge-0/0/9

Set vlans sales interface ge-0/0/10

Set vlans sales interface ge-0/0/11

Set interface vlan unit 100 family inet 192.168.192.97/27

Set vlans sales l3-interface vlan.100

Set vlans test vlan-id 200

Set vlans test interface ge-0/0/12

Set vlans test interface ge-0/0/13

Set vlans test interface ge-0/0/14

Set vlans test interface ge-0/0/15

Set vlans test interface ge-0/0/16

Set vlans test interface ge-0/0/17

Set vlans test interface ge-0/0/18

Set vlans test interface ge-0/0/19

Set vlans test interface ge-0/0/20

Set vlans test interface ge-0/0/21

Set vlans test interface ge-0/0/22

Set vlans test interface ge-0/0/23

Set interface vlan unit 200 family inet 192.168.192.29/27

Set vlans test l3-interface vlan.200

Set routing-options static route 192.168.1.0 set routing-options static route 24 next-hop 59.43.17.2 static route

This is the end of the article on "how to configure the Juniper EX2200 switch". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report