All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oscar Mechanic <oscar@ufomechanic.net>
To: lartc@vger.kernel.org
Subject: [LARTC] how to save iproute
Date: Tue, 01 Aug 2006 09:28:23 +0000	[thread overview]
Message-ID: <1154424503.4282.52.camel@OSCARLAPLIN> (raw)

Say if I have a few routes like this 

ip rule add from 19.21.12.12 lookup 200
ip route add default via 10.0.0.253
ip rule add to 13.1.2.2 lookup 201
ip route add default via 10.0.0.254
ip route add default via 10.0.0.254

How do I save them, I have looked through the list and have googled this
Q for some time and do not have an concrete answers. I have read that
you just save and rerun the command but that does not work as the "from
all to" is not valid it has to be the "to" without the "from all". I
have used multiple versions of iproute2 and still the same problem. I
written a script and put in many sed's to get around problems but its
nasty code. Surely someone solved this is there a "saveall" script or
bin that is distro independant. 

Thanks.



_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

                 reply	other threads:[~2006-08-01  9:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1154424503.4282.52.camel@OSCARLAPLIN \
    --to=oscar@ufomechanic.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.