DHCP-server configuration tasks 302
SmartWare Software Configuration Guide 27 • DHCP configuration
Configure DHCP-relay
SmartNodes support the DHCP-Relay functionality. To avoid having a DHCP-Server in every subnet, Smart-
Nodes now can forward DHCP-Requests either directly to a DHCP-Server or to another DHCP-Relay. To
configure the relay, there is a profile type dhcp-relay. The minimum configuration of such a profile only needs
one IP where DHCP-Requests are sent to. Note that a SmartNode can be configured either as DHCP-Server
or as DHCP-Relay, but not both in parallel.
Create/Modify DHCP-Relay profile
To use a SmartNode as DHCP-Relay Agent, a dhcp-relay profile must be created. Some things you should
know about the Relay Agent profile:
• In order to create valid profile, a dhcp-relay profile must contain at least one destination IP.
• There is no limit of dhcp-relay profiles, but there is only one active profile at the time.
• Modification of the dhcp-relay profile currently in use can be made anytime. Changes are activated imme-
diately. When all destination IPs are removed the profile is considered invalid and the DHCP-Relay is shut
down.
Mode: Configure
Step Command Purpose
1 [name](cfg) #[no] profile dhcp-
relay name
Enter dhcp-relay profile mode. A new profile is created if
none with the given name exists.
2 [name] (pf-dhcpr)[name]#destina-
tion <ip-address>
or
[name] (pf-dhcpr)[name]#destina-
tion after <index> <ip-address>
or
[name] (pf-dhcpr)[name]#destina-
tion before <index> <ip-address>
or
[name] (pf-dhcpr)[name]#no desti-
nation <index>
Add or remove an IP-Address to the profile. The IP-
Address can be any kind of address, means uni-, mulit-, or
broadcast. Be aware that every DHCP- Request will be
relayed to all ip- addresses in the list in the order they
are listed. The DHCP-Relay profile is only valid if it con-
tains at least one destination IP. The maximum amount of
destinations is limited to 16.
3 [name] (pf-dhcpr)[name]#max-
hops <1...16>
or
[name] (pf-dhcpr)[name]#no max-
hops
Sets the max-hops a packet may have passed so far.
When a packet exceeds the max-hops limit, it is silently
discarded.
Max-hops is by default set to 4. This is an optional config-
uration command.
4 [name] (pf-dhcpr)[name]#traffic-
class <traffic-class>
Sets traffic class for DHCP packets. The traffic class may
be new or may already exist. This is an optional configu-
ration command.