Re: FW: Configuring down one alias brings down all aliases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





I tried to use "ip", as suggested, but it allows me to only _list_ the 
address type (primary/secondary), not _set_ the type specifically.

bash# ip -V             
ip utility, iproute2-ss010824

bash# ip addr ls dev eth1.5
5: eth1.5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop 
    link/ether 00:02:b3:11:0f:38 brd ff:ff:ff:ff:ff:ff
    inet 1.2.3.4/24 scope global eth1.5
    inet 1.2.3.5/24 scope global secondary eth1.5

bash# ip addr add 1.2.3.6/24 dev eth1.5 primary
Error: either "local" is duplicate, or "primary" is a garbage.

>From ip_cref.ps in the iproute2 rpm, page 14,
"Address flags are set by the kernel and cannot be changed 
administratively."

-- 
Umesh



On Fri, 1 Nov 2002, Dheeraj Pandey wrote:

  > Straight from the horse's mouth :)
  > 
  > Dheeraj
  > 
  > -----Original Message-----
  > From: David S. Miller [mailto:davem@redhat.com]
  > Sent: Friday, November 01, 2002 2:18 AM
  > To: dheeraj@Zambeel.com
  > Cc: linux-net@vger.kernel.org
  > Subject: Re: Configuring down one alias brings down all aliases
  > 
  > 
  >    From: Dheeraj Pandey <dheeraj@Zambeel.com>
  >    Date: Thu, 31 Oct 2002 18:40:05 -0800
  > 
  >    One of us here are trying to remove IP aliases from an eth interface.
  > Doing
  >    a "ifconfig ethx:ALIAS down" seems to bring down all other aliases
  > which had
  >    IP in the same subnet. Before I dig into the code to figure out why,
  > will
  >    s'one help me understand the rationale behind this?
  > 
  > To get the behavior you want, add the aliases using the "ip" command,
  > and give each alias the "primary" attribute.
  > 

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux