Sunday, July 30, 2017

How to Configure VLAN, DHCP server with L3 interface IP on a VLAN & routing provision at Juniper Switch

####### Step BY Step Configuration of VLAN, DHCP server with Vlan IP & routing ###############

Creating Vlans 
-------------------------------------------
root# set vlans BRK_WiFi_MGMT vlan-id 150
root# set vlans BRK_WiFi_AP_LV5 vlan-id 151
root# set vlans BRK_WiFi_SP vlan-id 180

Assigning Ports/interfaces as a Access port for Vlans
------------------------------------------------
root#set interfaces ge-0/0/0 unit 0 family ethernet-switching port-mode access vlan members 180
root#set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode access vlan members 180

root#set interfaces ge-0/0/2 unit 0 family ethernet-switching port-mode access vlan members 150
root#set interfaces ge-0/0/3 unit 0 family ethernet-switching port-mode access vlan members 150

root#set interfaces ge-0/0/4 unit 0 family ethernet-switching port-mode access vlan members 151
root#set interfaces ge-0/0/5 unit 0 family ethernet-switching port-mode access vlan members 151

Assigning Ports/interfaces as a Trunk port

------------------------------------------------------
root#set interfaces ge-0/0/6 unit 0 family ethernet-switching port-mode trunk vlan members all
root#set interfaces xe-0/1/0 unit 0 family ethernet-switching port-mode trunk vlan members all

Creating DHCP Pool with IP range
----------------------------------------------
root#set system services dhcp pool 192.168.150.0/24 address-range low 192.168.150.10 high 192.168.150.100
root#set system services dhcp pool 192.168.151.0/24 address-range low 192.168.151.10 high 192.168.151.100

Assign IP to logical l3-interface of each VLAN 
------------------------------------------------------------
root#set interfaces vlan unit 150 family inet address 192.168.150.2/24
root#set vlans BRK_WiFi_MGMT l3-interface vlan.150

root#set interfaces vlan unit 151 family inet address 192.168.151.2/24
root#set vlans BRK_WiFi_AP_LV5 l3-interface vlan.151

root#set interfaces vlan unit 180 family inet address 10.180.180.2/24
root#set vlans BRK_WiFi_SP l3-interface vlan.180

Creating default route & provisioning inter VLAN routing
-------------------------------------------------------------------------------------
root#set system services dhcp pool 192.168.150.0/24 router 192.168.150.2
root#set system services dhcp pool 192.168.151.0/24 router 192.168.151.2

N.B. These two gateway IP addresses which are assigned on VLAN's L3 logical interfaces act as DHCP server IP addresses.


Add DNS server address
----------------------------------
root#set system services dhcp pool 192.168.150.0/24 name-server 192.168.150.xxx

Verify DHCP Status
----------------------------
root>show system services dhcp statistics
root>show system services dhcp binding


root> show configuration

No comments:

Post a Comment