netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Wilson-Lindberg <gwilson@spacex.com>
To: "netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: Multiple interfaces with the same IP address
Date: Wed, 7 Oct 2009 14:57:45 -0700	[thread overview]
Message-ID: <4ACD0ED9.10601@spacex.com> (raw)
In-Reply-To: <33be4bb30910071421s3410e8e4jdadedbc216de958a@mail.gmail.com>

Ok, I can use route to add the various IP addresses that are on each HDLC channel to the routing 
tables.  There are a lot of machines, but because the addresses are well known/formatted, generating 
the scripts automatically won't be to bad.  But how do I handle broadcast addresses such as 
172.16.255.255, 172.16.128.255, or 172.16.129.15 that need to go out all of the HDLC channels?

Oskar Berggren wrote:
> 2009/10/7 Rick Jones <rick.jones2@hp.com>:
>> Greg Wilson-Lindberg wrote:
>>> Rick Jones wrote:
>>> ...
>>>
> 
>> I have not fully parsed the manpage for the ip command, but it does have
>> tidbits which suggest being able to specify interfaces by name when
>> manipulating routing tables.  If that is correct you should be able to add
>> specific host routes pointing-out specific interface names if you are indeed
>> forced to put assign the same IP address to each of the HCLC interfaces on
>> the "gateway."
>>
> 
> Yes,
> 
>   ip route add x.x.x.x/x dev eth1
> 
> or similar works fine.
> 
> If you like, you can also use ip addr add x.x.x.x/32 dev eth1 to set
> an ip-address without having the kernel automatically install a subnet
> route. Then manage the routing tables complete by yourself.
> 
> /Oskar
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-10-07 21:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-07 19:36 Multiple interfaces with the same IP address Greg Wilson-Lindberg
2009-10-07 20:02 ` Rick Jones
2009-10-07 20:52   ` Greg Wilson-Lindberg
2009-10-07 21:15     ` Rick Jones
2009-10-07 21:21       ` Oskar Berggren
2009-10-07 21:57         ` Greg Wilson-Lindberg [this message]
2009-10-07 22:42           ` Rick Jones
2009-10-07 23:00             ` Greg Wilson-Lindberg

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=4ACD0ED9.10601@spacex.com \
    --to=gwilson@spacex.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;
as well as URLs for NNTP newsgroup(s).