Secondary ip address nonfunctional in 2.6.14

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

 




Hi,

I am facing issue with secondary ip addresses in 2.6.14 kernel after setting the proc entry “promote_secondaries” to 1.

Code to set proc entry “promote_secondaries.

net.ipv4.conf.default.promote_secondaries = 1

cat /proc/sys/net/ipv4/conf/bond1/promote_secondaries
1

Problem statement:-
Secondary ip addresses become non functional after deleting the primary ip address. Even self ping to secondary ip address does not work.
I can not see this issue with secondary ip address in 2.6.27 kernel.

Query: -
It is a known issue in 2.6.14 kernel? Is there any configuration options that needs to be set for secondary ip addresses to be functional in 2.6.14?


Add IP address on bond1 interface:-

ip add add 10.1.2.3/24 dev bond1
ip add add 10.1.2.4/24 dev bond1
ip add add 10.1.2.5/24 dev bond1
ip add add 10.1.2.6/24 dev bond1
ip add add 10.1.2.7/24 dev bond1


ip add show bond1
12: bond1: <BROADCAST,MULTICAST,MASTER,UP> mtu 1500 qdisc noqueue
    link/ether 00:80:f9:8b:b6:f8 brd ff:ff:ff:ff:ff:ff
    inet 172.25.0.3/16 brd 172.25.255.255 scope global bond1
    inet 10.1.2.3/24 scope global bond1
    inet 10.1.2.4/24 scope global secondary bond1
    inet 10.1.2.5/24 scope global secondary bond1
    inet 10.1.2.6/24 scope global secondary bond1
    inet 10.1.2.7/24 scope global secondary bond1
    inet6 fe80::200:ff:fe00:0/64 scope link
       valid_lft forever preferred_lft forever


Delete the primary IP address:
 ip add delete 10.1.2.3/24 dev bond1
 ip add show bond1
12: bond1: <BROADCAST,MULTICAST,MASTER,UP> mtu 1500 qdisc noqueue
    link/ether 00:80:f9:8b:b6:f8 brd ff:ff:ff:ff:ff:ff
    inet 172.25.0.3/16 brd 172.25.255.255 scope global bond1
    inet 10.1.2.4/24 scope global bond1
    inet 10.1.2.5/24 scope global secondary bond1
    inet 10.1.2.6/24 scope global secondary bond1
    inet 10.1.2.7/24 scope global secondary bond1
    inet6 fe80::200:ff:fe00:0/64 scope link
       valid_lft forever preferred_lft forever

Ping output:
ping 10.1.2.4
PING 10.1.2.4 (10.1.2.4) 56(84) bytes of data.
64 bytes from 10.1.2.4: icmp_seq=1 ttl=64 time=0.033 ms
64 bytes from 10.1.2.4: icmp_seq=2 ttl=64 time=0.026 ms

--- 10.1.2.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.026/0.029/0.033/0.006 ms


Rest of the secondary ip addresses are not pingable.


ping 10.1.2.5
PING 10.1.2.5 (10.1.2.5) 56(84) bytes of data.
From 10.1.2.4 icmp_seq=1 Destination Host Unreachable
From 10.1.2.4 icmp_seq=2 Destination Host Unreachable

--- 10.1.2.5 ping statistics ---
4 packets transmitted, 0 received, +2 errors, 100% packet loss, time 3000ms
, pipe 2

ping 10.1.2.6
PING 10.1.2.6 (10.1.2.6) 56(84) bytes of data.
From 10.1.2.4 icmp_seq=1 Destination Host Unreachable
From 10.1.2.4 icmp_seq=2 Destination Host Unreachable
From 10.1.2.4 icmp_seq=3 Destination Host Unreachable

--- 10.1.2.6 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3002ms
, pipe 3


ping 10.1.2.7
PING 10.1.2.7 (10.1.2.7) 56(84) bytes of data.
From 10.1.2.4 icmp_seq=1 Destination Host Unreachable
From 10.1.2.4 icmp_seq=2 Destination Host Unreachable
From 10.1.2.4 icmp_seq=3 Destination Host Unreachable
From 10.1.2.4 icmp_seq=4 Destination Host Unreachable

--- 10.1.2.7 ping statistics ---
5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3999ms
, pipe 4

Thanks and Regards,
Harshada Senad
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux