What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

[SOLVED] Need help with "ip route"

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.
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
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Back
Top