Lines Matching full:ipv4
8 # configurations of bareudp (using IPv4 or IPv6 as underlay and transporting
9 # IPv4, IPv6 or MPLS packets on the overlay).
14 # is assigned an IPv4 and an IPv6 address. A host-route allows a veth to
18 # IPv4 and IPv6 addresses on their loopback device. Routes are added in NS0
20 # For IPv4 and IPv6 reachability tests, the route simply sets the peer's
31 # | * IPv4 address: 192.0.2.100/32 |
34 # | * IPv4 route: 192.0.2.103/32 reachable via 192.0.2.11 |
40 # | ^ * IPv4 address: 192.0.2.10, peer 192.0.2.11/32 |
52 # | * IPv4 address: 192.0.2.11, peer 192.0.2.10/32 |
62 # | ^ * IPv4 address: 192.0.2.21, peer 192.0.2.22/32 |
74 # | * IPv4 address: 192.0.2.22, peer 192.0.2.21/32 |
84 # | ^ * IPv4 address: 192.0.2.32, peer 192.0.2.33/32 |
95 # | * IPv4 address: 192.0.2.33, peer 192.0.2.32/32 |
99 # | * IPv4 address: 192.0.2.103/32 |
102 # | * IPv4 route: 192.0.2.100/32 reachable via 192.0.2.32 |
162 # * $3: the local IPv4 address to assign to this interface,
163 # * $4: the IPv4 address of the remote network interface,
186 # * add and IPv4 and an IPv6 address on each veth interface,
209 # Set up the IPv4, IPv6 and MPLS overlays.
233 ip netns exec "${NS1}" sysctl -qw net.ipv4.ip_forward=1
234 ip netns exec "${NS2}" sysctl -qw net.ipv4.ip_forward=1
241 ip netns exec "${NS1}" sysctl -qw net.ipv4.conf.all.rp_filter=0
242 ip netns exec "${NS2}" sysctl -qw net.ipv4.conf.all.rp_filter=0
243 ip netns exec "${NS1}" sysctl -qw net.ipv4.conf.default.rp_filter=0
244 ip netns exec "${NS2}" sysctl -qw net.ipv4.conf.default.rp_filter=0
325 # $IPV4, $IPV6, $MPLS_UC and $MULTIPROTO are inherited from the calling
340 if [ $IPV4 ]; then
341 ping_test_one "ping" "192.0.2.103" "IPv4 packets over ${UNDERLAY}${MODE}"
351 # Set up a bareudp overlay and run reachability tests over IPv4 and IPv6
362 local IPV4
367 "ipv4")
368 IPV4="ipv4"
378 IPV4=""
383 IPV4=""
390 readonly IPV4
398 # IPv4 over UDPv4
399 if [ $IPV4 ]; then
400 # Encapsulation instructions for bareudp over IPv4
401 tc -netns "${NS1}" filter add dev veth10 ingress protocol ipv4 \
405 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv4 \
413 # Encapsulation instructions for bareudp over IPv4
429 # Encapsulation instructions for bareudp over IPv4
440 # Test IPv4 underlay
444 # the IPv4 underlay, before setting up and testing the IPv6 underlay
448 # IPv4 over UDPv6
449 if [ $IPV4 ]; then
451 tc -netns "${NS1}" filter add dev veth10 ingress protocol ipv4 \
455 tc -netns "${NS2}" filter add dev veth23 ingress protocol ipv4 \
537 test_overlay ipv4 nomultiproto
539 test_overlay ipv4 multiproto