Sponsored Content
Full Discussion: Cluster Suite IP-Aliasing
Operating Systems Linux Red Hat Cluster Suite IP-Aliasing Post 302429803 by jjinno on Tuesday 15th of June 2010 03:09:16 PM
Old 06-15-2010
Short answer: this is perfectly normal. What happened was that an IP address was added to the interface without a differentiating label.

Believe it or not, the "ifconfig" application is strongly discouraged because it has a tendency to dramatize situations like this. Smilie It would probably have been removed years ago if not for legacy support.

Anyway, if you want to understand a bit more about what is happening, take a look at this iproute2 documentation. They explain that although all alias addresses are secondary addresses, the inverse is not necessarily true.

Then try the following:
Code:
[root@uscltest2 ~]# ip addr show dev eth0
[root@uscltest2 ~]# ip addr add 10.200.218.86/24 broadcast 10.200.218.255 dev eth0
[root@uscltest2 ~]# ip addr
[root@uscltest2 ~]# ifconfig
[root@uscltest2 ~]# ip addr add 10.200.218.87/24 broadcast 10.200.218.255 label eth0:alias dev eth0
[root@uscltest2 ~]# ip addr
[root@uscltest2 ~]# ifconfig

You will notice that after the first add, the output of "ip addr" showed the address, but the output of "ifconfig" did not. Additionally, when you added a label the second time, the output of "ip addr" still shows the address, but the output of "ifconfig" also show our new label. (which only says "eth0:alias" because we told it to - it could literally be anything)

After this little demo, reset things to normal:
Code:
[root@uscltest2 ~]# ip addr del 10.200.218.86/24 dev eth0
[root@uscltest2 ~]# ip addr del 10.200.218.87/24 dev eth0

This User Gave Thanks to jjinno For This Post:
 

9 More Discussions You Might Find Interesting

1. Linux

RedHat Cluster Suite - multicast problem

Hi, I have a Redhat Cluster Suite with 2 nodes, using option "Multicast HeartBeating" on clumembd, whith default IP: 225.0.0.11 The cluster member names are: # grep node /etc/hosts 192.168.100.1 node1 192.168.100.2 node2 My problem is that the Multicast IP is relating to other network... (1 Reply)
Discussion started by: Livio
1 Replies

2. UNIX for Dummies Questions & Answers

Basic regarding aliasing

Hi All, One small request. In UNIX/LINUX we can have our own aliases in .bashrc file. My doubt is when we add a new alias and if it is tried in already opened terminals it will not work, may be it is not going to recognise. Bit when we use the same alias in new terminal it will work. I... (1 Reply)
Discussion started by: chanakyahere
1 Replies

3. UNIX for Dummies Questions & Answers

What is IP aliasing ?

Hi, Can anyone tell me what is IP aliasing ? I do not know if this is the right place for this thread !!. Thanks in advance, Gideon. (2 Replies)
Discussion started by: preethgideon
2 Replies

4. UNIX for Advanced & Expert Users

aliasing the TO name in Unix mails

HI All, I have a small question/clarification/doubt . Does anyone know how to provide alias in the mails that come from Unix servers. Like i have a Unix server that generates status mails every hour for a scheduled job , it sends me mails with status with the ID in from field as... (3 Replies)
Discussion started by: bsandeep_80
3 Replies

5. High Performance Computing

Solaris 10 - Cluster Suite 3.2 2/08 prob

Hi, I am relatively new to Sun Solaris. I am installing 2 node cluster and when I was installing cluster suite 3.2 2/08, it is giving me this error as "Conflict - Incomplete version detected". Please help me in this regard and also suggest me any valuable point to consider before going ahead... (3 Replies)
Discussion started by: hi2joshi
3 Replies

6. UNIX for Dummies Questions & Answers

How can I do aliasing in shellscript?

#Example.sh alias rmv 'sh Example2.sh' when i execute exapme.sh alias name not working. how i solve this problem?? (9 Replies)
Discussion started by: arun508.gatike
9 Replies

7. Homework & Coursework Questions

aliasing command

hi to all members in this forums .. Nice to meet you... i only have a questions about command utility of "dd": for example i will type: pico trial this is my file. and save it and type chmod a+x trial can there be a way that instead of typing: dd if=trial of=trial.copy conv=ucase... (3 Replies)
Discussion started by: marahtia
3 Replies

8. Red Hat

How can i configure fence_cisco_ucs with redhat cluster suite

HI How can i configure fence_cisco_ucs with redhat cluster suite. i was trying to configure fencing aganet with red ahat cluster suite i issued command # /usr/sbin/fence_vmware_soap -a 172.22.90.61 -l admin -p duc2Cisco -o reboot then i got below error: Failed: You have to... (0 Replies)
Discussion started by: bentech4u
0 Replies

9. Solaris

Directory Aliasing

Hello, I need to rediret the directory location at run time as:- If I type cd /dir1/dir2 then it should take me to /dir1/dir3 at run time. Inside dir1, both dir2 and dir3 directories are present. Could anyone guild me over it? Thanks Shubham (5 Replies)
Discussion started by: shubh05
5 Replies
IFCONFIG(8)						     Linux Programmer's Manual						       IFCONFIG(8)

NAME
ifconfig - configure a network interface SYNOPSIS
ifconfig [-v] [-a] [-s] [interface] ifconfig [-v] interface [aftype] options | address ... DESCRIPTION
Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed. If no arguments are given, ifconfig displays the status of the currently active interfaces. If a single interface argument is given, it displays the status of the given interface only; if a single -a argument is given, it displays the status of all interfaces, even those that are down. Otherwise, it configures an interface. Address Families If the first argument after the interface name is recognized as the name of a supported address family, that address family is used for decoding and displaying all protocol addresses. Currently supported address families include inet (TCP/IP, default), inet6 (IPv6), ax25 (AMPR Packet Radio), ddp (Appletalk Phase 2), ipx (Novell IPX) and netrom (AMPR Packet radio). OPTIONS
-a display all interfaces which are currently available, even if down -s display a short list (like netstat -i) -v be more verbose for some error conditions interface The name of the interface. This is usually a driver name followed by a unit number, for example eth0 for the first Ethernet inter- face. If your kernel supports alias interfaces, you can specify them with eth0:0 for the first alias of eth0. You can use them to assign a second address. To delete an alias interface use ifconfig eth0:0 down. Note: for every scope (i.e. same net with address/netmask combination) all aliases are deleted, if you delete the first (primary). up This flag causes the interface to be activated. It is implicitly specified if an address is assigned to the interface. down This flag causes the driver for this interface to be shut down. [-]arp Enable or disable the use of the ARP protocol on this interface. [-]promisc Enable or disable the promiscuous mode of the interface. If selected, all packets on the network will be received by the interface. [-]allmulti Enable or disable all-multicast mode. If selected, all multicast packets on the network will be received by the interface. metric N This parameter sets the interface metric. mtu N This parameter sets the Maximum Transfer Unit (MTU) of an interface. dstaddr addr Set the remote IP address for a point-to-point link (such as PPP). This keyword is now obsolete; use the pointopoint keyword instead. netmask addr Set the IP network mask for this interface. This value defaults to the usual class A, B or C network mask (as derived from the interface IP address), but it can be set to any value. add addr/prefixlen Add an IPv6 address to an interface. del addr/prefixlen Remove an IPv6 address from an interface. tunnel aa.bb.cc.dd Create a new SIT (IPv6-in-IPv4) device, tunnelling to the given destination. irq addr Set the interrupt line used by this device. Not all devices can dynamically change their IRQ setting. io_addr addr Set the start address in I/O space for this device. mem_start addr Set the start address for shared memory used by this device. Only a few devices need this. media type Set the physical port or medium type to be used by the device. Not all devices can change this setting, and those that can vary in what values they support. Typical values for type are 10base2 (thin Ethernet), 10baseT (twisted-pair 10Mbps Ethernet), AUI (exter- nal transceiver) and so on. The special medium type of auto can be used to tell the driver to auto-sense the media. Again, not all drivers can do this. [-]broadcast [addr] If the address argument is given, set the protocol broadcast address for this interface. Otherwise, set (or clear) the IFF_BROAD- CAST flag for the interface. [-]pointopoint [addr] This keyword enables the point-to-point mode of an interface, meaning that it is a direct link between two machines with nobody else listening on it. If the address argument is also given, set the protocol address of the other side of the link, just like the obsolete dstaddr key- word does. Otherwise, set or clear the IFF_POINTOPOINT flag for the interface. hw class address Set the hardware address of this interface, if the device driver supports this operation. The keyword must be followed by the name of the hardware class and the printable ASCII equivalent of the hardware address. Hardware classes currently supported include ether (Ethernet), ax25 (AMPR AX.25), ARCnet and netrom (AMPR NET/ROM). multicast Set the multicast flag on the interface. This should not normally be needed as the drivers set the flag correctly themselves. address The IP address to be assigned to this interface. txqueuelen length Set the length of the transmit queue of the device. It is useful to set this to small values for slower devices with a high latency (modem links, ISDN) to prevent fast bulk transfers from disturbing interactive traffic like telnet too much. NOTES
Since kernel release 2.2 there are no explicit interface statistics for alias interfaces anymore. The statistics printed for the original address are shared with all alias addresses on the same device. If you want per-address statistics you should add explicit accounting rules for the address using the ipchains(8) or iptables(8) command. Interrupt problems with Ethernet device drivers fail with EAGAIN (SIOCSIIFLAGS: Resource temporarily unavailable) it is most likely a interrupt conflict. See http://www.scyld.com/expert/irq-conflict.html for more information. FILES
/proc/net/socket /proc/net/dev /proc/net/if_inet6 BUGS
While appletalk DDP and IPX addresses will be displayed they cannot be altered by this command. SEE ALSO
route(8), netstat(8), arp(8), rarp(8), ipchains(8), iptables(8), ifup(8), interfaces(5). http://physics.nist.gov/cuu/Units/binary.html - Prefixes for binary multiples AUTHORS
Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> Alan Cox, <Alan.Cox@linux.org> Phil Blundell, <Philip.Blundell@pobox.com> Andi Kleen Bernd Eckenfels, <net-tools@lina.inka.de> net-tools 2007-12-02 IFCONFIG(8)
All times are GMT -4. The time now is 06:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy