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 #
 /testing/pluto/bin/wait-until-pluto-started
east #
 ipsec auto --add northnet-eastnet
002 added IKEv1 connection "northnet-eastnet"
east #
 ipsec auto --add westnet-eastnet
002 added IKEv1 connection "westnet-eastnet"
east #
 echo "initdone"
initdone
east #
 ipsec whack --trafficstatus
006 #4: "northnet-eastnet", type=ESP, add_time=1234567890, inBytes=168, outBytes=168, id='@north'
006 #2: "westnet-eastnet", type=ESP, add_time=1234567890, inBytes=168, outBytes=168, id='@west'
east #
 ip -s link show ipsec1
X: ipsec1@eth1: <NOARP,UP,LOWER_UP> mtu 1500 state UNKNOWN
    RX: bytes  packets  errors  dropped overrun 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 #
 ../bin/check-for-core.sh
east #
 if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi
east #
 
