aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/tests/ip/tunnel/add_tunnel.t
blob: 3f5a9d3c1acfc581dce677a1a3871c2cfcdf6ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

. lib/generic.sh

TUNNEL_NAME="tunnel_test_ip"

ts_log "[Testing add/del tunnels]"

ts_ip "$0" "Add GRE tunnel over IPv4" tunnel add name $TUNNEL_NAME mode gre local 1.1.1.1 remote 2.2.2.2
ts_ip "$0" "Del GRE tunnel over IPv4" tunnel del $TUNNEL_NAME

ts_ip "$0" "Add GRE tunnel over IPv6" tunnel add name $TUNNEL_NAME mode ip6gre local dead:beef::1 remote dead:beef::2
ts_ip "$0" "Del GRE tunnel over IPv6" tunnel del $TUNNEL_NAME