■
To configure an exact match:
host1(config)#
set dhcp vendor-option equals myword relay 192.168.7.7
■
To configure a partial match:
host1(config)#
set dhcp vendor-option starts-with abcd local-server
■
To configure the default action:
host1(config)#
set dhcp vendor-option default drop
■
To remove a configuration:
host1(config)#
no set dhcp vendor-option starts-with abcd local-server
Configuration Example—Using DHCP Relay Option 60 to Specify Traffic
Forwarding
You use the DHCP relay option 60 feature to specify the action performed on DHCP
client traffic. The DHCP relay uses the option 60 string in the client traffic to determine
what action to take with the incoming traffic.
The following example describes a sample procedure that creates three actions for
incoming DHCP client traffic, depending on the traffic’s option 60 string.
1.
Enable the DHCP relay. Do not specify an IP address when you configure DHCP
relay to support vendor-option strings.
host1(config)#
set dhcp relay
2.
Configure the action DHCP relay takes when the incoming traffic has an exact
option 60 string of myword. DHCP relay forwards this traffic to the DHCP server
with an IP address of 192.168.7.7.
host1(config)#
set dhcp vendor-option equals myword relay 192.168.7.7
3.
Configure the action DHCP relay takes when the incoming traffic has a partial
match, from left-to-right, with an option 60 string you have configured. For this
command, matching strings include a, ab, abc, and abcd. DHCP relay forwards
matching traffic to the DHCP server with IP address 192.168.15.2.
host1(config)#
set dhcp vendor-option starts-with abcd relay 192.168.15.2
4.
Configure the default option 60 action. DHCP relay takes this action when the
incoming traffic has an option 60 string that does not match any of the option
60 strings that you have configured. In this example, the traffic is sent to the
DHCP local server.
host1(config)#
set dhcp vendor-option default local-server
5.
(Optional) View your DHCP relay vendor-option configuration.
host1(config)#
run show dhcp vendor-option
Codes:
Configuring DHCP Relay and BOOTP Relay
■
499
Chapter 20: Configuring DHCP Relay
Содержание JUNOSE 11.0.X MULTICAST ROUTING
Страница 6: ...vi...
Страница 28: ...xxviii Table of Contents JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 36: ...xxxvi List of Tables JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 42: ...2 Managing Remote Access JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 204: ...164 Managing RADIUS and TACACS JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 274: ...234 CLI Commands Used to Modify RADIUS Attributes JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 292: ...252 Monitoring RADIUS Relay Server JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 336: ...296 RADIUS Client Terminate Reasons JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 368: ...328 Managing L2TP JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 408: ...368 Configuring the Weighted Load Balancing Method JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 444: ...404 PPP Accounting Statistics JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 492: ...452 Monitoring Operational Status within the Current VR Context JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 494: ...454 Managing DHCP JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 510: ...470 DHCP Local Server Configuration Tasks JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 528: ...488 Configuring the Router to Work with the SRC Software JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 556: ...516 Configuring DHCP Relay Proxy JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 616: ...576 Managing the Subscriber Environment JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 632: ...592 Subscriber Management Configuration Examples JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 636: ...596 Monitoring Active IP Subscribers Created by Subscriber Management JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 672: ...632 Monitoring Active IP Subscribers Created by Subscriber Management JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 674: ...634 Managing Subscriber Services JUNOSe 11 0 x Broadband Access Configuration Guide...
Страница 767: ...Part 7 Index Index on page 729 Index 727...
Страница 768: ...728 Index JUNOSe 11 0 x Broadband Access Configuration Guide...