octopus
Part of the Furniture
Need help with more reliable route rule.
I'm using this: ip route | grep ^46| awk '{print $1}'
But when/if "46" change it doesn't work.
I'm using this: ip route | grep ^46| awk '{print $1}'
But when/if "46" change it doesn't work.
Code:
octopus@OCTOPUS:/tmp/home/root# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
46.22x.xx.xxx h-4-xxx-1.axxx. 255.255.255.255 UGH 0 0 0 vlan2
155.4.xxx.x * 255.255.255.255 UH 0 0 0 vlan2
192.168.12.0 * 255.255.255.0 U 0 0 0 br0
155.4.xxx.x * 255.255.254.0 U 0 0 0 vlan2
10.129.0.0 * 255.255.0.0 U 0 0 0 tun11
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default h-4-xxx-1.axxx. 0.0.0.0 UG 0 0 0 vlan2
Code:
octopus@OCTOPUS:/tmp/home/root# ip route | grep ^46| awk '{print $1}'
46.22x.xx.xxx