mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
static IPv6 for omr-6in4
This commit is contained in:
parent
3c34672ba1
commit
e00cf0f4f0
1 changed files with 9 additions and 0 deletions
|
@ -11,6 +11,15 @@ if [ "$(uci -q show network | grep omr6in4)" = "" ]; then
|
||||||
set network.omr6in4.ipaddr=10.255.255.2
|
set network.omr6in4.ipaddr=10.255.255.2
|
||||||
set network.omr6in4.peeraddr=10.255.255.1
|
set network.omr6in4.peeraddr=10.255.255.1
|
||||||
set network.omr6in4.gateway=fe80::a00:1
|
set network.omr6in4.gateway=fe80::a00:1
|
||||||
|
set network.omr6in4.ip6addr=fe80::a00:2
|
||||||
|
commit network
|
||||||
|
EOF
|
||||||
|
rm -f /tmp/luci-indexcache
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$(uci -q get network.omr6in4.ip6addr)" = "" ]; then
|
||||||
|
uci -q batch <<-EOF
|
||||||
|
set network.omr6in4.ip6addr=fe80::a00:2
|
||||||
commit network
|
commit network
|
||||||
EOF
|
EOF
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
|
|
Loading…
Reference in a new issue