![jow](/assets/img/avatar_default.png)
Add more options to dhcrelay UCI and init script: - enabled - interfaces: Listen interfaces - relay_mode: What to do about packets that already have a relay option Also mark /etc/config/dhcrelay as conffile Signed-off-by: Bruno Randolf <br1@einfach.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@38446 3c298f89-4303-0410-b956-a3cf2f4a3e73
25 lines
576 B
Plaintext
25 lines
576 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' ''
|
|
|
|
|
|
config dhcrelay ipv6
|
|
# option dhcpserver '2001:db8:1::1'
|
|
option upper 'eth1'
|
|
list lower 'eth0.2'
|
|
list lower 'eth0.3'
|
|
|