![Juniper JUNOS OS 10.3 - SOFTWARE Manual Download Page 2996](http://html.mh-extra.com/html/juniper/junos-os-10-3-software/junos-os-10-3-software_manual_20327932996.webp)
In this example, you configure DHCP option 82 on the EX Series switch. The switch
connects to the DHCP server on interface
ge-0/0/8
. The DHCP clients connect to the
switch on interfaces
ge-0/0/1
,
ge-0/0/2
, and
ge-0/0/3
. The switch, server, and clients
are all members of the
employee
VLAN.
Configuration
To configure DHCP option 82:
CLI Quick
Configuration
To quickly configure DHCP option 82, copy the following commands and paste them
into the switch terminal window:
set ethernet-switching-options secure-access-port vlan employee dhcp-option82
set ethernet-switching-options secure-access-port vlan employee dhcp-option82 circuit-id
prefix hostname
set ethernet-switching-options secure-access-port vlan employee dhcp-option82 circuit-id
use-vlan-id
set ethernet-switching-options secure-access-port vlan employee dhcp-option82 remote-id
set ethernet-switching-options secure-access-port vlan employee dhcp-option82 remote-id
prefix mac
set ethernet-switching-options secure-access-port vlan employee dhcp-option82 remote-id
use-string employee-switch1
set ethernet-switching-options secure-access-port vlan employee dhcp-option82 vendor-id
Step-by-Step
Procedure
To configure DHCP option 82:
1.
Specify DHCP option 82 for the
employee
VLAN:
[edit ethernet-switching-options secure-access-port]
user@switch#
set vlan employee
dhcp-option82
2.
Configure a prefix for the circuit ID suboption (the prefix is always the hostname of
the switch):
[edit ethernet-switching-options secure-access-port]
user@switch#
set vlan employee dhcp-option82 circuit-id
prefix
hostname
3.
Specify that the circuit ID suboption value contains the VLAN ID rather than the
VLAN name (the default):
[edit ethernet-switching-options secure-access-port]
user@switch#
set vlan employee dhcp-option82 circuit-id
use-vlan-id
4.
Specify that the remote ID suboption be included in the DHCP option 82 information:
[edit ethernet-switching-options secure-access-port]
user@switch#
set vlan employee dhcp-option82
remote-id
5.
Configure a prefix for the remote ID suboption (here, the prefix is the MAC address
of the switch):
[edit ethernet-switching-options secure-access-port]
user@switch#
set vlan employee dhcp-option82 remote-id
prefix
mac
6.
Specify that the remote ID suboption value contains a character string (here, the
string is
employee-switch1
):
[edit ethernet-switching-options secure-access-port]
user@switch#
set vlan employee dhcp-option82 remote-id
use-string
employee-switch1
Copyright © 2010, Juniper Networks, Inc.
2900
Complete Software Guide for Junos
®
OS for EX Series Ethernet Switches, Release 10.3
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...