ip route get to 192.0.1.254 | grep eth1 && ip route del 192.0.1.0/24 via 192.1.2.45 dev eth1 2>/dev/null
192.0.1.254 via 192.1.2.45 dev eth1 src 192.1.2.23 uid 0 
east #
 ip route get to 192.0.3.254 | grep eth1 && ip route del 192.0.3.0/24 via 192.1.2.254 dev eth1 2>/dev/null
192.0.3.254 via 192.1.2.254 dev eth1 src 192.1.2.23 uid 0
east #
 #new subnet
east #
 ip addr show dev eth0 | grep 192.0.22.254 || ip addr add 192.0.22.254/24 dev eth0
east #
 /testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add northnet-eastnet
"northnet-eastnet": added IKEv1 connection
east #
 ipsec auto --add westnet-eastnet
"westnet-eastnet": added IKEv1 connection
east #
 echo "initdone"
initdone
east #
 ../../guestbin/wait-for-pluto.sh '^[^|].* #2: IPsec SA established'
"westnet-eastnet" #2: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
east #
 ../../guestbin/wait-for-pluto.sh '^[^|].* #4: IPsec SA established'
"northnet-eastnet" #4: IPsec SA established tunnel mode {ESP=>0xESPESP <0xESPESP xfrm=AES_CBC_128-HMAC_SHA1_96 DPD=passive}
east #
 ipsec whack --trafficstatus
#4: "northnet-eastnet", type=ESP, add_time=1234567890, inBytes=168, outBytes=168, maxBytes=2^63B, id='@north'
#2: "westnet-eastnet", type=ESP, add_time=1234567890, inBytes=168, outBytes=168, maxBytes=2^63B, id='@west'
east #
 ip -s link show ipsec1
X: ipsec1@eth1: <NOARP,UP,LOWER_UP> mtu 1500 state UNKNOWN
    RX:  bytes packets errors dropped  missed   mcast           
           336       4      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
           336       4      0       0       0       0 
east #
 ip rule show
0:	from all lookup local
32766:	from all lookup main
32767:	from all lookup default
east #
 ip route show table 50
Error: ipv4: FIB table does not exist.
Dump terminated
east #
 ip route
default via 192.1.2.254 dev eth1
192.0.1.0/24 dev ipsec1 scope link
192.0.2.0/24 dev eth0 proto kernel scope link src 192.0.2.254
192.0.3.0/24 dev ipsec1 scope link
192.0.22.0/24 dev eth0 proto kernel scope link src 192.0.22.254
192.1.2.0/24 dev eth1 proto kernel scope link src 192.1.2.23
east #
 
