
■
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
■
505
Chapter 20: Configuring DHCP Relay
Содержание JUNOSE 11.1.X - BROADBAND ACCESS CONFIGURATION GUIDE 6-4-2010
Страница 6: ...vi...
Страница 28: ...xxviii Table of Contents JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 36: ...xxxvi List of Tables JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 42: ...2 Managing Remote Access JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 208: ...168 Monitoring IPv6 Local Pool Statistics for DHCP Prefix Delegation JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 210: ...170 Managing RADIUS and TACACS JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 280: ...240 CLI Commands Used to Modify RADIUS Attributes JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 298: ...258 Monitoring RADIUS Relay Server JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 342: ...302 RADIUS Client Terminate Reasons JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 374: ...334 Managing L2TP JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 414: ...374 Configuring the Weighted Load Balancing Method JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 450: ...410 PPP Accounting Statistics JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 498: ...458 Monitoring Operational Status within the Current VR Context JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 500: ...460 Managing DHCP JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 516: ...476 DHCP Local Server Configuration Tasks JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 562: ...522 Configuring DHCP Relay Proxy JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 622: ...582 Managing the Subscriber Environment JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 638: ...598 Subscriber Management Configuration Examples JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 642: ...602 Monitoring Active IP Subscribers Created by Subscriber Management JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 678: ...638 Monitoring Active IP Subscribers Created by Subscriber Management JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 680: ...640 Managing Subscriber Services JUNOSe 11 1 x Broadband Access Configuration Guide...
Страница 773: ...Part 7 Index Index on page 735 Index 733...
Страница 774: ...734 Index JUNOSe 11 1 x Broadband Access Configuration Guide...