TC01: DUT1 and DUT2 route over GREoIPv4 tunnel between two TG links |
DUT1: sw_interface_set_flags sw_if_index 1 admin-up sw_interface_set_flags sw_if_index 3 admin-up sw_interface_dump sw_interface_add_del_address sw_if_index 3 192.168.1.1/24 sw_interface_add_del_address sw_if_index 1 192.168.0.1/24 gre_add_del_tunnel src 192.168.1.1 dst 192.168.1.2 sw_interface_set_flags sw_if_index 5 admin-up sw_interface_add_del_address sw_if_index 5 172.16.0.1/24 ip_add_del_route 192.168.2.0/24 via 172.16.0.2 sw_if_index 5 resolve-attempts 10 count 1 DUT2: sw_interface_set_flags sw_if_index 1 admin-up sw_interface_set_flags sw_if_index 3 admin-up sw_interface_dump sw_interface_add_del_address sw_if_index 3 192.168.1.2/24 sw_interface_add_del_address sw_if_index 1 192.168.2.1/24 ip_neighbor_add_del sw_if_index 1 dst 192.168.2.100 mac fa:16:3e:f7:92:c8 gre_add_del_tunnel src 192.168.1.2 dst 192.168.1.1 sw_interface_set_flags sw_if_index 5 admin-up sw_interface_add_del_address sw_if_index 5 172.16.0.2/24 |
TC02: DUT encapsulates IPv4 into GREoIPv4 tunnel - GRE header verification |
DUT1: sw_interface_set_flags sw_if_index 2 admin-up sw_interface_set_flags sw_if_index 1 admin-up sw_interface_dump sw_interface_add_del_address sw_if_index 1 192.168.1.1/24 sw_interface_add_del_address sw_if_index 2 192.168.0.1/24 ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:8c:0b:8f gre_add_del_tunnel src 192.168.1.1 dst 192.168.1.2 sw_interface_set_flags sw_if_index 5 admin-up sw_interface_add_del_address sw_if_index 5 172.16.0.1/24 ip_add_del_route 192.168.2.0/24 via 172.16.0.2 sw_if_index 5 resolve-attempts 10 count 1 DUT2: no VAT command executed |
TC03: DUT decapsulates IPv4 from GREoIPv4 tunnel - IPv4 header verification |
DUT1: sw_interface_set_flags sw_if_index 2 admin-up sw_interface_set_flags sw_if_index 1 admin-up sw_interface_dump sw_interface_add_del_address sw_if_index 1 192.168.1.1/24 sw_interface_add_del_address sw_if_index 2 192.168.0.1/24 ip_neighbor_add_del sw_if_index 2 dst 192.168.0.100 mac fa:16:3e:11:f1:2f gre_add_del_tunnel src 192.168.1.1 dst 192.168.1.2 sw_interface_set_flags sw_if_index 5 admin-up sw_interface_add_del_address sw_if_index 5 172.16.0.1/24 DUT2: no VAT command executed |
TC04: DUT encapsulates IPv4 into GREoIPv4 different tunnels - GRE header verification |
DUT1: sw_interface_set_flags sw_if_index 2 admin-up sw_interface_set_flags sw_if_index 1 admin-up sw_interface_dump create_loopback sw_interface_set_flags sw_if_index 5 admin-up sw_interface_add_del_address sw_if_index 1 192.168.1.1/24 sw_interface_add_del_address sw_if_index 2 192.168.0.1/24 sw_interface_add_del_address sw_if_index 5 10.0.0.1/32 ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:8c:0b:8f ip_add_del_route 10.0.0.2/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1 ip_add_del_route 10.0.0.3/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1 gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.2 sw_interface_set_flags sw_if_index 6 admin-up gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.3 sw_interface_set_flags sw_if_index 7 admin-up sw_interface_add_del_address sw_if_index 6 172.16.0.1/24 sw_interface_add_del_address sw_if_index 7 172.16.1.1/24 ip_add_del_route 192.168.2.0/24 via 172.16.0.2 sw_if_index 6 resolve-attempts 10 count 1 ip_add_del_route 192.168.3.0/24 via 172.16.1.2 sw_if_index 7 resolve-attempts 10 count 1 DUT2: no VAT command executed |
TC05: DUT re-encapsulates IPv4 GRE into other GRE tunnel - GRE header verification |
DUT1: sw_interface_set_flags sw_if_index 2 admin-up sw_interface_set_flags sw_if_index 1 admin-up sw_interface_dump create_loopback sw_interface_set_flags sw_if_index 5 admin-up sw_interface_add_del_address sw_if_index 1 192.168.1.1/24 sw_interface_add_del_address sw_if_index 2 192.168.0.1/24 sw_interface_add_del_address sw_if_index 5 10.0.0.1/32 ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:8c:0b:8f ip_add_del_route 10.0.0.2/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1 ip_add_del_route 10.0.0.3/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1 gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.2 sw_interface_set_flags sw_if_index 6 admin-up gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.3 sw_interface_set_flags sw_if_index 7 admin-up sw_interface_add_del_address sw_if_index 6 172.16.0.1/24 sw_interface_add_del_address sw_if_index 7 172.16.1.1/24 ip_add_del_route 192.168.2.0/24 via 172.16.0.2 sw_if_index 6 resolve-attempts 10 count 1 ip_add_del_route 192.168.3.0/24 via 172.16.1.2 sw_if_index 7 resolve-attempts 10 count 1 DUT2: no VAT command executed |
TC06: DUT do not process GRE with wrong tunnel destination IP |
DUT1: sw_interface_set_flags sw_if_index 2 admin-up sw_interface_set_flags sw_if_index 1 admin-up sw_interface_dump create_loopback sw_interface_set_flags sw_if_index 5 admin-up sw_interface_add_del_address sw_if_index 1 192.168.1.1/24 sw_interface_add_del_address sw_if_index 2 192.168.0.1/24 sw_interface_add_del_address sw_if_index 5 10.0.0.1/32 ip_neighbor_add_del sw_if_index 2 dst 192.168.0.100 mac fa:16:3e:11:f1:2f ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:8c:0b:8f ip_add_del_route 10.0.0.2/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1 ip_add_del_route 10.0.0.3/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1 gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.2 sw_interface_set_flags sw_if_index 6 admin-up gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.3 sw_interface_set_flags sw_if_index 7 admin-up sw_interface_add_del_address sw_if_index 6 172.16.0.1/24 sw_interface_add_del_address sw_if_index 7 172.16.1.1/24 DUT2: no VAT command executed |