From: "Lloyd Standish" <lloyd@crnatural.net>
To: Andrew Beverley <andy@andybev.com>
Cc: "netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: can't set default route for virtual interface
Date: Tue, 27 Dec 2011 23:36:14 -0600 [thread overview]
Message-ID: <op.v66puobex1lyi3@debiandesk2.net> (raw)
In-Reply-To: <1325029381.1672.38.camel@steve-pc>
On Tue, 27 Dec 2011 17:43:01 -0600, Andrew Beverley <andy@andybev.com> wrote:
> On Tue, 2011-12-27 at 17:32 -0600, Lloyd Standish wrote:
>> + ip route add default via 192.168.2.1 table T1
>> RTNETLINK answers: No such process
>This normally means that the kernel doesn't think that 192.168.2.1 is a
> valid address. Is that IP address definitely set up by that point in the
> script?
Thanks for the heads-up - yes, 192.168.2.1 was set-up. After adding the "dev" as Brian Austin suggested, the route was added. :)
>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? I usually bring up interfaces with "ifup" when I can, since that sets the interface address specified in /etc/network/interfaces, whereas "ifconfig <if> up" doesn't.
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? 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.
--
Lloyd
next prev parent reply other threads:[~2011-12-28 5:36 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 [this message]
2011-12-28 10:21 ` Andrew Beverley
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=op.v66puobex1lyi3@debiandesk2.net \
--to=lloyd@crnatural.net \
--cc=andy@andybev.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox