doc/demo: Explicitly add route to guest

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-04-22 13:35:38 +02:00
parent 5f21a77737
commit 89478bd251

View file

@ -64,6 +64,7 @@ ipv6_passt="$(ipv6_mangle "${ipv6_addr}")"
ndp_setup "${ipv6_passt}" ndp_setup "${ipv6_passt}"
ip -n passt addr add "${ipv6_passt}/$(ipv6_mask "${ipv6_addr}")" dev veth_passt ip -n passt addr add "${ipv6_passt}/$(ipv6_mask "${ipv6_addr}")" dev veth_passt
ip addr add "${ipv6_addr}" dev veth_passt ip addr add "${ipv6_addr}" dev veth_passt
ip route add "${ipv6_passt}" dev veth_passt
passt_ll="$(ipv6_ll_addr "veth_passt")" passt_ll="$(ipv6_ll_addr "veth_passt")"
main_ll="$(get_token "link/ether" $(ip -o li sh veth_passt))" main_ll="$(get_token "link/ether" $(ip -o li sh veth_passt))"
ip neigh add "${passt_ll%%/*}" dev veth_passt lladdr "${main_ll}" ip neigh add "${passt_ll%%/*}" dev veth_passt lladdr "${main_ll}"