Skip to content

Example: interop1: ike1 with sha1

Alt text


hostname r1
vrf def v1
 rd 1:1
int eth1
 vrf for v1
 ipv4 addr
 ipv6 addr 1234::1 ffff::
crypto ipsec ips
 group 01
 cipher des
 hash sha1
 seconds 3600
 bytes 67108864
 key tester
 role init
 isakmp 1
 protected ipv4
int tun1
 tunnel vrf v1
 tunnel prot ips
 tunnel mode ipsec
 tunnel source ethernet1
 tunnel destination
 vrf for v1
 ipv4 addr
 ipv6 addr 4321::1 ffff::


hostname r2
ip routing
ipv6 unicast-routing
interface gigabit1
 ip address
 ipv6 address 1234::2/64
 no shutdown
crypto isakmp policy 10
 encryption des
 hash sha
 authentication pre-share
 group 1
 lifetime 3600
crypto isakmp key tester address
crypto ipsec transform-set ts1 esp-des esp-sha-hmac
 mode tunnel
crypto ipsec profile pr1
 set security-association lifetime seconds 3600
 set security-association lifetime kilobytes 65536
 set transform-set ts1
interface tunnel1
 ip address
 tunnel source gigabit1
 tunnel destination
 tunnel mode ipsec ipv4
 tunnel protection ipsec profile pr1
r1 tping 100 10 vrf v1
r1 tping 100 120 vrf v1
  1. Install ContainerLab as described here
  2. Fetch intop1-ike107 file
  3. Launch ContainerLab intop1-ike107.yml topology:

   containerlab deploy --topo intop1-ike107.yml  
4. Destroy ContainerLab intop1-ike107.yml topology:

   containerlab destroy --topo intop1-ike107.yml  
5. Copy-paste configuration for each node in the lab topology

  1. Fetch or compile freeRtr rtr.jar file.
    You can grab it here
  2. Fetch intop1-ike107.tst file here
  3. Launch intop1-ike107.tst test:

   java -jar ../../rtr.jar test tester intop1-ike107 path ./ temp ./ wait
4. Destroy freeRtr intop1-ike107.tst test:

   Ctrl-C (In freeRtr test window)