d5a3380c65
Type: test Ticket: VPP-1893 Change-Id: Ib6ffd00e73f7110bf9e702f4a0fd5c68395d6786 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
27 lines
927 B
Plaintext
27 lines
927 B
Plaintext
create host-interface name vpp
|
|
set interface ip addr host-vpp 192.168.10.2/24
|
|
set interface state host-vpp up
|
|
|
|
create host-interface name priv
|
|
set interface ip addr host-priv 192.168.3.1/24
|
|
set interface state host-priv up
|
|
|
|
ikev2 profile add pr1
|
|
ikev2 profile set pr1 auth shared-key-mic string Vpp123
|
|
ikev2 profile set pr1 id local fqdn vpp.home
|
|
ikev2 profile set pr1 id remote fqdn roadwarrior.vpn.example.com
|
|
|
|
ikev2 profile set pr1 traffic-selector local ip-range 192.168.3.0 - 192.168.3.255 port-range 0 - 65535 protocol 0
|
|
ikev2 profile set pr1 traffic-selector remote ip-range 192.168.5.0 - 192.168.5.255 port-range 0 - 65535 protocol 0
|
|
|
|
event-logger clear
|
|
trace add af-packet-input 100
|
|
|
|
create ipip tunnel src 192.168.10.2 dst 192.168.10.1
|
|
ikev2 profile set pr1 tunnel ipip0
|
|
ip route add 192.168.5.0/24 via 192.168.10.1 ipip0
|
|
set interface unnumbered ipip0 use host-vpp
|
|
|
|
ikev2 set liveness 10 2
|
|
ikev2 set logging level 4
|