/testing/guestbin/swan-prep
east #
 ifconfig eth0 0.0.0.0 down
east #
 ifconfig eth1 178.62.253.21 netmask 255.255.192.0
east #
 ifconfig eth1:1 10.8.0.1 netmask 255.255.255.0
east #
 ifconfig eth1:2 10.9.0.1 netmask 255.255.255.0
east #
 route add default gw 178.62.192.1
east #
 # add many routes
east #
 sh ./ips.sh
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec addconn --verbose test
opening file: /etc/ipsec.conf
loading named conns: test
resolving family=IPv4 src=<defaultroute> gateway=<defaultroute> peer <any>
  seeking GATEWAY
    query GETROUTE+REQUEST+ROOT+MATCH
  opening non-blocking netlink socket
  sent 28 byte netlink message
  reading into 32768 byte buffer
  processing 3772 byte response
    parsing route entry (RTA payloads)
      RTA_TABLE=254
      RTA_GATEWAY=178.62.192.1
      using src=<unset-address> prefsrc=<unset-address> gateway=178.62.192.1 dst=<unset-address> dev='eth1' priority=-1 pref=-1 table=254
      found gateway(host_nexthop): 178.62.192.1
  reading into 32768 byte buffer
  processing 30420 byte response
  reading into 32768 byte buffer
  processing 20 byte response
    DONE
  please-call-again: src=<defaultroute> gateway=178.62.192.1
resolving family=IPv4 src=<defaultroute> gateway=178.62.192.1 peer <any>
  seeking PREFSRC
    query GETROUTE+REQUEST
    add RTA_DST 178.62.192.1 (host->nexthop)
  opening non-blocking netlink socket
  sent 36 byte netlink message
  reading into 32768 byte buffer
  processing 104 byte response
    parsing route entry (RTA payloads)
      RTA_TABLE=254
      RTA_DST=178.62.192.1
      RTA_PREFSRC=178.62.253.21
      using src=<unset-address> prefsrc=178.62.253.21 gateway=<unset-address> dst=178.62.192.1 dev='eth1' priority=-1 pref=-1 table=254 +cacheinfo +uid
      found prefsrc(host_addr): 178.62.253.21
  success: src=178.62.253.21 gateway=178.62.192.1
resolving family=IPv4 src=<any> gateway=<not-set> peer 178.62.253.21
  seeking NOTHING
"test": added IKEv2 connection
east #
 echo "initdone"
initdone
east #
 
