From: Andrew Beverley <andy@andybev.com>
To: Lloyd Standish <lloyd@crnatural.net>
Cc: "netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: can't set default route for virtual interface
Date: Wed, 28 Dec 2011 10:21:54 +0000 [thread overview]
Message-ID: <1325067714.1672.691.camel@steve-pc> (raw)
In-Reply-To: <op.v66puobex1lyi3@debiandesk2.net>
On Tue, 2011-12-27 at 23:36 -0600, Lloyd Standish wrote:
> >Have you tried *not* using ifconfig to set up your interfaces? You
> > should only be using iproute2.
>
> I've seen that mentioned before, and I'm confused. iproute2 means, for
> firewall code, "ip" and "tc" - is that right?
Yes, and "ip" can do everything that all the various net-tools commands
do.
> I usually bring up interfaces with "ifup" when I can
Ah, therein lies an interesting situation. ifup is pretty old too, and
makes calls to the ifconfig command, which is a real pain. However,
unless someone tells me otherwise, I'm not aware of a replacement for
it. There was a project a while ago called netconf, but this seems to
have died:
http://wiki.debian.org/netconf
> , since that sets the interface address specified in /etc/network/interfaces, whereas "ifconfig <if> up" doesn't.
That's the best way to do it with Debian.
> I notice that after adding the Debian "vlan" package, ifup and ifdown
> appear to bring virtual interfaces up and down OK. But ifup/down are
> not part of iproute2, right?
Yeah, correct. The most accepted way of doing it seems to be to use ifup
and ifdown to bring the physical interface up and down, and to do
everything else by adding "ip" commands into
your /etc/network/interfaces file using the
up/down/pre-up/pre-down/post-up/post-down options.
> Do you know of any vlan problem with
> ifup/down? Sometimes interfaces can't be taken down with "ifdown,"
> and I have to use ifconfig.
I get similar problems when adding IPV6 addresses, although I use "ip"
to sort it out manually ;-)
Anybody know what happened to netconf?
Andy
next prev parent reply other threads:[~2011-12-28 10:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-27 23:32 can't set default route for virtual interface Lloyd Standish
2011-12-27 23:43 ` Andrew Beverley
2011-12-28 5:36 ` Lloyd Standish
2011-12-28 10:21 ` Andrew Beverley [this message]
2011-12-29 11:27 ` Amos Jeffries
2011-12-29 15:39 ` Andrew Beverley
2011-12-29 15:53 ` Jan Engelhardt
2011-12-28 0:40 ` Brian Austin - Standard Universal
2011-12-28 0:42 ` Brian Austin - Standard Universal
2011-12-28 1:56 ` Lloyd Standish
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=1325067714.1672.691.camel@steve-pc \
--to=andy@andybev.com \
--cc=lloyd@crnatural.net \
--cc=netfilter@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.