mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Basic IPv6 support
This commit is contained in:
parent
f78c78c905
commit
2b5ac2fa37
4 changed files with 14 additions and 6 deletions
|
@ -29,6 +29,8 @@ _setup_macvlan() {
|
|||
uci -q set "network.$1.type=macvlan" # legacy
|
||||
}
|
||||
|
||||
#uci -q set "network.lan.ip6assign=64"
|
||||
|
||||
if [ "$(uci -q show network | grep wan)" = "" ]; then
|
||||
uci -q batch <<-EOF
|
||||
set network.wan1=interface
|
||||
|
@ -51,6 +53,10 @@ if [ "$(uci -q show network | grep wan)" = "" ]; then
|
|||
commit network
|
||||
add_list firewall.@zone[1].network=wan2
|
||||
commit firewall
|
||||
add network route6
|
||||
set network.@route6[-1].interface='eth0'
|
||||
set network.@route6[-1].target='2000::/3'
|
||||
commit network
|
||||
EOF
|
||||
_setup_macvlan wan1
|
||||
_setup_macvlan wan2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue