netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hasso Tepper <hasso@estpak.ee>
To: Henrik Nordstrom <hno@marasystems.com>
Cc: Harald Welte <laforge@gnumonks.org>,
	Neil Horman <nhorman@redhat.com>,
	linux-net@vger.kernel.org, netdev@oss.sgi.com
Subject: Re: primary and secondary ip addresses
Date: Thu, 16 Dec 2004 13:02:42 +0200	[thread overview]
Message-ID: <200412161302.42357.hasso@estpak.ee> (raw)
In-Reply-To: <Pine.LNX.4.61.0412161103320.30452@filer.marasystems.com>

Henrik Nordstrom wrote:
> On Thu, 16 Dec 2004, Hasso Tepper wrote:
> > And why I can't even choose which address is primary?
>
> It is the first you add in a subnet.

Yes, but to change the primary I have remove old primary (and therefore all 
secondaries) and assign new primary to the interface and then all 
secondaries etc. I can't just tell "make this address which is secondary at 
the moment, primary".

> > Primary
> > =======
> >
> > Configure this address to be the primary address of the protocol on
> > the interface. If the logical unit has more than one address, the
> > primary address is used by default as the source address when packets
> > originate from the interface and the destination does not indicate
> > the subnet (ie. multicast destination for example).
>
> This is what the primary addresses is used for, indirectly via the
> automatically created route entries.

No. There is only one primary address per interface and it is used if 
destination address doesn't indicate which source address to use. Ie. if 
packet is sent over eth1 to the address 224.0.0.6 and eth1 has addresses 
192.168.0.1/24 and 10.10.10.1/24 which one choose for source address?

> > Preferred
> > =========
> >
> > Configure this address to be the preferred address on the interface.
> > If you configure more than one address on the same subnet, the
> > preferred source address is chosen by default as the source address
> > when you originate packets to destinations on the subnet.
>
> What is the difference from primary here?

This has same meaning as primary in the Linux. There is as many preferred 
addresses on the interfaces as there is subnets - every subnet has one 
preferred address. Preferred aadress is used if next hop indicates subnet - 
if packet is sent to the 192.168.0.2, 192.168.0.1 is used as source; if 
packet is sent to the 10.10.10.28, 10.10.10.1 is used as source.


-- 
Hasso Tepper
Elion Enterprises Ltd.
WAN administrator

  reply	other threads:[~2004-12-16 11:02 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <41912F7A.6000408@redhat.com>
     [not found] ` <Pine.LNX.4.61.0411100034320.10593@filer.marasystems.com>
2004-12-16  9:28   ` primary and secondary ip addresses Harald Welte
2004-12-16  9:53     ` Hasso Tepper
2004-12-16 10:07       ` Henrik Nordstrom
2004-12-16 11:02         ` Hasso Tepper [this message]
2004-12-16 16:02           ` Henrik Nordstrom
2004-12-17 15:10           ` Andrea G Forte
2004-12-17 15:27             ` Henrik Nordstrom
2004-12-17 15:58               ` Andrea G Forte
2004-12-17 16:39                 ` Henrik Nordstrom
2004-12-17 17:17                   ` Andrea G Forte
2004-12-17 19:17                     ` Henrik Nordstrom
2004-12-17 18:03                   ` Hasso Tepper
2004-12-17 18:37                     ` Martin A. Brown
2004-12-17 18:53                       ` Hasso Tepper
2004-12-17 19:25                         ` Henrik Nordstrom
2004-12-17 20:55                           ` Hasso Tepper
2004-12-17 20:54                       ` Andrea G Forte
2004-12-17 19:20                 ` David S. Miller
2004-12-17 19:48                   ` Henrik Nordstrom
2004-12-19 20:18                     ` jamal
2004-12-19 21:41                       ` Harald Welte
2004-12-19 22:02                         ` Thomas Graf
2004-12-19 22:59                           ` jamal
2004-12-19 23:56                             ` jamal
2004-12-20 13:55                               ` jamal
2004-12-20 14:29                                 ` Harald Welte
2005-04-12 10:54                                 ` Harald Welte
2005-05-08 12:31                                   ` Hasso Tepper
2005-05-26 18:11                                     ` Harald Welte
2005-05-26 18:21                                       ` Thomas Graf
2005-05-26 21:58                                       ` David S. Miller
2004-12-16 16:48     ` Paul Jakma

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=200412161302.42357.hasso@estpak.ee \
    --to=hasso@estpak.ee \
    --cc=hno@marasystems.com \
    --cc=laforge@gnumonks.org \
    --cc=linux-net@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    --cc=nhorman@redhat.com \
    /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).