gluon-next-node: fix interface names
This commit is contained in:
parent
1044a446b8
commit
b6045bb1aa
@ -5,21 +5,21 @@ START=95
|
||||
|
||||
|
||||
start() {
|
||||
ip link add link br-mesh name local-node type macvlan
|
||||
ip link add link br-client name local-node type macvlan
|
||||
ip link set local-node address @next_node.mac@
|
||||
|
||||
ip address add @next_node.ip4@/32 dev local-node
|
||||
ip route add @prefix4@ dev br-freifunk
|
||||
ip route add @prefix4@ dev br-client
|
||||
|
||||
ip address add @next_node.ip6@/128 dev local-node
|
||||
ip route add @prefix6@ dev br-freifunk
|
||||
ip route add @prefix6@ dev br-client
|
||||
|
||||
ip link set local-node up
|
||||
}
|
||||
|
||||
stop() {
|
||||
ip route del @prefix4@ dev br-freifunk
|
||||
ip route del @prefix6@ dev br-freifunk
|
||||
ip route del @prefix4@ dev br-client
|
||||
ip route del @prefix6@ dev br-client
|
||||
ip link set local-node down
|
||||
ip link del local-node
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user