# This test uses standard topology for testing gretap. See # mirror_gre_topo_lib.sh for more details. # # Test for "tc action mirred egress mirror" when the device to mirror to is a # gretap or ip6gretap netdevice. Expect that the packets come out encapsulated, # and another gretap / ip6gretap netdevice is then capable of decapsulating the # traffic. Test that the payload is what is expected (ICMP ping request or # reply, depending on test).
ip address add dev $swp3 192.0.2.129/28
ip address add dev $h3 192.0.2.130/28
ip address add dev $swp3 2001:db8:2::1/64
ip address add dev $h3 2001:db8:2::2/64
}
cleanup()
{
pre_cleanup
ip address del dev $h3 2001:db8:2::2/64
ip address del dev $swp3 2001:db8:2::1/64
ip address del dev $h3 192.0.2.130/28
ip address del dev $swp3 192.0.2.129/28
mirror_gre_topo_destroy
vrf_cleanup
}
test_span_gre_mac()
{
local tundev=$1; shift
local direction=$1; shift
local what=$1; shift
case "$direction" in
ingress) local src_mac=$(mac_get $h1); local dst_mac=$(mac_get $h2)
;;
egress) local src_mac=$(mac_get $h2); local dst_mac=$(mac_get $h1)
;;
esac
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.