A virtual LAN is any broadcast domain that is partitioned and isolated in a computer network at the data link layer. VLAN’s enable a network manager to logically section a local area network into totally different broadcast domains.

Some reasons to form VLANs are:

A local area network has over two hundred devices.
A local area network features a great deal of broadcast traffic.

Here we are discussing how to add a new VLAN to the JunOS based switches and assign an IP address to it.

1. Login to the switch, use SSH to login to the switch. If SSH is not configured on the device please go through the below documentation to configure access method to the Juniper device.

# ssh user@ip-address

https://www.juniper.net/documentation/en_US/release-independent/junos/topics/task/configuration/ex-series-initial-configuration-setting-up-cli.html

2. SSH will login to the terminal with operation mode enabled or we can use the “cli” command to change to the operation mode. The operational mode is to get the details about the current configuration of the switch and need to switch to the configuration mode to make changes to the switch configuration.

Use “edit” command to the switch to the configuration mode from the operation mode. The command prompt sign will change from right angle bracket (>) to a pound sign (#).

juniper-1> edit
Entering configuration mode

{master:0}[edit]
juniper -1#

3. Creating the VLAN requires a VLAN name and the VLAN id. VLAN id and a name are required to uniquely identify the VLANs. Following is an example to create a VLAN with name VLAN-10 and VLAN id 10

juniper-1# set vlans vlan-10 vlan-id 10

4. VLAN need to be associated with a physical interface to route the traffic. VLANs can be assigned to interfaces in many ways and following is a simple method to assign a physical interface xe-0/0/07 to the vlan-10

juniper-1# set vlans vlan-10 interface xe-0/0/07

5. Assigning an IP block enables the clients to communicate through the VLAN. Following example assigns an IP block 10.10.0.0/24 to the VLAN vlan-10.

juniper-1# set vlan unit 0 family inet address 10.10.0.1/24

6. After the changes made to the configuration, commit the changes to the active configuration.

juniper-1# commit and-quit

Configuration pointers for VLANs

After making a VLAN, all users are connected to the interfaces allotted to the VLAN and they will communicate with one another, but not with the users on other interfaces within the network. To set up communication between VLANs, you want to set up a routed VLAN interface (RVI). The number of VLANs supported per switch varies for every switch. Use the command set vlans id vlan-id ? to find the utmost range of VLANs allowed on a switch. If a switch configuration exceeds the counseled VLAN member, you will see a warning message when you commit the configuration.

[tagline_box backgroundcolor=”description=” shadow=”no” shadowopacity=”0.7″ border=”1px” bordercolor=”” highlightposition=”top” content_alignment=”left” link=”” linktarget=”_self” modal=”” button_size=”” button_shape=”” button_type=”” buttoncolor=”” button=”” title=”” description=”If you have any queries on how to configure VLANs in Junos feel free to leave us a message and our representative will get back to you.

” margin_top=”50px” margin_bottom=”” animation_type=”slide” animation_direction=”left” animation_speed=”0.3″ class=”” id=””]

    [/tagline_box]