Skip to content

Commit

Permalink
bpf/init.sh: changing netmask from 112 to 96 in IPv6
Browse files Browse the repository at this point in the history
Since we changed the host ID to be on bits 64 to 96, the networking mask
of the init.sh should be /96 for IPv6 routes to cilium interface.

Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm committed Feb 10, 2017
1 parent 9f2cb4b commit c3582df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bpf/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ ip addr add $HOST_IP/128 dev $HOST_DEV1

ip route del $ADDR/128 dev $HOST_DEV1 2> /dev/null || true
ip route add $ADDR/128 dev $HOST_DEV1
ip route del $ADDR/112 via $ADDR 2> /dev/null || true
ip route add $ADDR/112 via $ADDR
ip route del $ADDR/96 via $ADDR 2> /dev/null || true
ip route add $ADDR/96 via $ADDR

V4RANGE=$(echo $V4ADDR | sed 's/.[0-9].[0-9]$/.0.0/')
ip route del $V4RANGE/16 via $V4ADDR 2> /dev/null || true
Expand Down

0 comments on commit c3582df

Please sign in to comment.