From: Alexandru Dragoi <alex@zoomnet.ro>
To: "antonio.dibacco" <antonio.dibacco@aruba.it>
Cc: netfilter@lists.netfilter.org
Subject: Re: Cannot route through an if without ip
Date: Sun, 14 May 2006 13:04:51 +0300 [thread overview]
Message-ID: <446700C3.8060407@zoomnet.ro> (raw)
In-Reply-To: <20060514080905.18403.qmail@mx1.aruba.it>
antonio.dibacco wrote:
>
> I have an ethernet (eth1) without any assigned ip, nevertheless I
> would like to route through this IF but issueing the following command
> gives an error:
> route add -net 192.168.1.0 dev eth1
> If the same IF has an address the command will be correctly executed.
> Why?
>
You can't do that. If you know the mac of the other router, do domething
like:
#ip ro add 172.20.20.20/32 dev eth1 scope link
#arp -s 172.20.20.20 <mac>
#ip ro add 192.168.1.0/24 via 172.20.20.20.20
So .. this just show why you can't just route throught an ethernet
device, unless you "want" to do some multicast flood.
next prev parent reply other threads:[~2006-05-14 10:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-14 8:09 Cannot route through an if without ip antonio.dibacco
2006-05-14 10:04 ` Alexandru Dragoi [this message]
2006-05-14 12:00 ` Pascal Hambourg
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=446700C3.8060407@zoomnet.ro \
--to=alex@zoomnet.ro \
--cc=antonio.dibacco@aruba.it \
--cc=netfilter@lists.netfilter.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