6ca07c5c90
RFC3527 link selection sub-option is used to select the "uplink" interface of dhcrelay in cases where the DHCP server does not know how to reach the dhcrelay based on the DHCP range. This can happen in weird network configurations like Mesh networks. Signed-off-by: Bruno Randolf <br1@einfach.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@38447 3c298f89-4303-0410-b956-a3cf2f4a3e73
28 lines
743 B
Plaintext
28 lines
743 B
Plaintext
|
|
config dhcrelay ipv4
|
|
option 'enabled' '0'
|
|
|
|
# IP address of the server
|
|
option 'dhcpserver' '192.0.2.10'
|
|
|
|
# network interfaces to listen on (e.g. lan or wan)
|
|
option 'interfaces' ''
|
|
|
|
# What to do about packets that already have a relay option:
|
|
# 'append': Forward and append our own relay option
|
|
# 'replace': Forward, but replace theirs with ours (default)
|
|
# 'forward': Forward without changes
|
|
# 'discard': Don't forward
|
|
option 'relay_mode' ''
|
|
|
|
# enable RFC3527 link selection sub-option and use the IP address of
|
|
# the specified network interface as "uplink" IP address (e.g. wan)
|
|
option 'link_selection' ''
|
|
|
|
config dhcrelay ipv6
|
|
# option dhcpserver '2001:db8:1::1'
|
|
option upper 'eth1'
|
|
list lower 'eth0.2'
|
|
list lower 'eth0.3'
|
|
|