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
IP-ADDRESS(8)							       Linux							     IP-ADDRESS(8)

NAME
ip-address - protocol address management SYNOPSIS
ip [ OPTIONS ] address { COMMAND | help } ip address { add | del } IFADDR dev STRING ip address { show | flush } [ dev STRING ] [ scope SCOPE-ID ] [ to PREFIX ] [ FLAG-LIST ] [ label PATTERN ] IFADDR := PREFIX | ADDR peer PREFIX [ broadcast ADDR ] [ anycast ADDR ] [ label STRING ] [ scope SCOPE-ID ] SCOPE-ID := [ host | link | global | NUMBER ] FLAG-LIST := [ FLAG-LIST ] FLAG FLAG := [ permanent | dynamic | secondary | primary | tentative | deprecated | dadfailed | temporary ] DESCRIPTION
The address is a protocol (IP or IPv6) address attached to a network device. Each device must have at least one address to use the corre- sponding protocol. It is possible to have several different addresses attached to one device. These addresses are not discriminated, so that the term alias is not quite appropriate for them and we do not use it in this document. The ip address command displays addresses and their properties, adds new addresses and deletes old ones. ip address add - add new protocol address. dev NAME the name of the device to add the address to. local ADDRESS (default) the address of the interface. The format of the address depends on the protocol. It is a dotted quad for IP and a sequence of hexa- decimal halfwords separated by colons for IPv6. The ADDRESS may be followed by a slash and a decimal number which encodes the net- work prefix length. peer ADDRESS the address of the remote endpoint for pointopoint interfaces. Again, the ADDRESS may be followed by a slash and a decimal number, encoding the network prefix length. If a peer address is specified, the local address cannot have a prefix length. The network prefix is associated with the peer rather than with the local address. broadcast ADDRESS the broadcast address on the interface. It is possible to use the special symbols '+' and '-' instead of the broadcast address. In this case, the broadcast address is derived by setting/resetting the host bits of the interface prefix. label NAME Each address may be tagged with a label string. In order to preserve compatibility with Linux-2.0 net aliases, this string must coincide with the name of the device or must be prefixed with the device name followed by colon. scope SCOPE_VALUE the scope of the area where this address is valid. The available scopes are listed in file /etc/iproute2/rt_scopes. Predefined scope values are: global - the address is globally valid. site - (IPv6 only) the address is site local, i.e. it is valid inside this site. link - the address is link local, i.e. it is valid only on this device. host - the address is valid only inside this host. ip address delete - delete protocol address Arguments: coincide with the arguments of ip addr add. The device name is a required argument. The rest are optional. If no arguments are given, the first address is deleted. ip address show - look at protocol addresses dev NAME (default) name of device. scope SCOPE_VAL only list addresses with this scope. to PREFIX only list addresses matching this prefix. label PATTERN only list addresses with labels matching the PATTERN. PATTERN is a usual shell style pattern. dynamic and permanent (IPv6 only) only list addresses installed due to stateless address configuration or only list permanent (not dynamic) addresses. tentative (IPv6 only) only list addresses which have not yet passed duplicate address detection. deprecated (IPv6 only) only list deprecated addresses. dadfailed (IPv6 only) only list addresses which have failed duplicate address detection. temporary (IPv6 only) only list temporary addresses. primary and secondary only list primary (or secondary) addresses. ip address flush - flush protocol addresses This command flushes the protocol addresses selected by some criteria. This command has the same arguments as show. The difference is that it does not run when no arguments are given. Warning: This command (and other flush commands described below) is pretty dangerous. If you make a mistake, it will not forgive it, but will cruelly purge all the addresses. With the -statistics option, the command becomes verbose. It prints out the number of deleted addresses and the number of rounds made to flush the address list. If this option is given twice, ip address flush also dumps all the deleted addresses in the format described in the previous subsection. EXAMPLES
ip address show dev eth0 Shows the addresses assigned to network interface eth0 ip addr add 2001:0db8:85a3::0370:7334/64 dev eth1 Adds an IPv6 address to network interface eth1 ip addr flush dev eth4 Removes all addresses from device eth4 SEE ALSO
ip(8) AUTHOR
Original Manpage by Michail Litvak <mci@owl.openwall.com> iproute2 20 Dec 2011 IP-ADDRESS(8)
All times are GMT -4. The time now is 04:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy