Home | History | Annotate | Download | only in tunnel
      1 #!/bin/sh
      2 
      3 source lib/generic.sh
      4 
      5 TUNNEL_NAME="tunnel_test_ip"
      6 
      7 ts_log "[Testing add/del tunnels]"
      8 
      9 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
     10 ts_ip "$0" "Del GRE tunnel over IPv4" tunnel del $TUNNEL_NAME
     11 
     12 ts_ip "$0" "Add GRE tunnel over IPv6" tunnel add name $TUNNEL_NAME mode ip6gre local dead:beef::1 remote dead:beef::2
     13 ts_ip "$0" "Del GRE tunnel over IPv6" tunnel del $TUNNEL_NAME
     14 
     15