IPV6 ip getting deleted after ping

Hi,

IPV6 ip is getting deleted after ping,

[root@mindlanf-6 ~]# ifconfig eth4 add 7878:12::10/64 up
[root@mindlanf-6 ~]# ifconfig eth4
eth4      Link encap:Ethernet  HWaddr 00:07:43:05:AA:29
          inet6 addr: fe80::207:43ff:fe05:aa29/64 Scope:Link
          inet6 addr: 7878:12::10/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:9000  Metric:1
          RX packets:24031645 errors:166 dropped:8087 overruns:0 frame:166
          TX packets:33924594 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9531309570 (8.8 GiB)  TX bytes:31712244556 (29.5 GiB)
          Interrupt:56 Memory:fb881000-fb881fff

=======================================

[root@mindnic-02 ~]# ifconfig eth4 add 7878:12::100/64 up
[root@mindnic-02 ~]# ifconfig eth4
eth4      Link encap:Ethernet  HWaddr 00:07:43:05:9F:7B
          inet6 addr: 7878:12::100/64 Scope:Global
          inet6 addr: fe80::207:43ff:fe05:9f7b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9937950108 errors:169919 dropped:0 overruns:0 frame:169919
          TX packets:17023336684 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1016781713179 (946.9 GiB)  TX bytes:23062364317367 (20.9 TiB)
          Interrupt:169 Memory:e8801000-e8801fff

[root@mindnic-02 ~]#

=========================================

[root@mindnic-02 ~]# ping6 7878:12::10
PING 7878:12::10(7878:12::10) 56 data bytes
64 bytes from 7878:12::10: icmp_seq=0 ttl=64 time=0.118 ms
64 bytes from 7878:12::10: icmp_seq=1 ttl=64 time=0.198 ms
64 bytes from 7878:12::10: icmp_seq=2 ttl=64 time=0.193 ms
64 bytes from 7878:12::10: icmp_seq=3 ttl=64 time=0.134 ms
64 bytes from 7878:12::10: icmp_seq=4 ttl=64 time=0.176 ms
64 bytes from 7878:12::10: icmp_seq=5 ttl=64 time=0.193 ms
64 bytes from 7878:12::10: icmp_seq=6 ttl=64 time=0.164 ms
64 bytes from 7878:12::10: icmp_seq=7 ttl=64 time=0.175 ms
64 bytes from 7878:12::10: icmp_seq=8 ttl=64 time=0.165 ms
64 bytes from 7878:12::10: icmp_seq=9 ttl=64 time=0.145 ms
64 bytes from 7878:12::10: icmp_seq=10 ttl=64 time=0.141 ms

==========================================

[root@mindlanf-6 ~]# ping6 7878:12::100
PING 7878:12::100(7878:12::100) 56 data bytes
64 bytes from 7878:12::100: icmp_seq=1 ttl=64 time=0.139 ms
64 bytes from 7878:12::100: icmp_seq=2 ttl=64 time=0.137 ms
64 bytes from 7878:12::100: icmp_seq=3 ttl=64 time=0.131 ms
64 bytes from 7878:12::100: icmp_seq=4 ttl=64 time=0.151 ms
64 bytes from 7878:12::100: icmp_seq=5 ttl=64 time=0.135 ms
64 bytes from 7878:12::100: icmp_seq=6 ttl=64 time=0.124 ms
64 bytes from 7878:12::100: icmp_seq=7 ttl=64 time=0.139 ms
64 bytes from 7878:12::100: icmp_seq=8 ttl=64 time=0.137 ms
64 bytes from 7878:12::100: icmp_seq=9 ttl=64 time=0.155 ms
64 bytes from 7878:12::100: icmp_seq=10 ttl=64 time=0.142 ms
64 bytes from 7878:12::100: icmp_seq=11 ttl=64 time=0.130 ms

==============================================

[root@mindlanf-6 ~]# ethtool eth4
Settings for eth4:
        Supported ports: [ AUI FIBRE ]
        Supported link modes:   10000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: No
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 10000Mb/s
        Duplex: Full
        Port: FIBRE
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: off
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: yes
[root@mindlanf-6 ~]# ifconfig eth4
eth4      Link encap:Ethernet  HWaddr 00:07:43:05:AA:29
          inet6 addr: fe80::207:43ff:fe05:aa29/64 Scope:Link
          inet6 addr: 7878:12::10/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:9000  Metric:1
          RX packets:24032308 errors:166 dropped:8087 overruns:0 frame:166
          TX packets:33924696 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9531366714 (8.8 GiB)  TX bytes:31712256832 (29.5 GiB)
          Interrupt:56 Memory:fb881000-fb881fff

now IPV6 ip got erased and ping will stop

[root@mindlanf-6 ~]# ifconfig eth4
eth4      Link encap:Ethernet  HWaddr 00:07:43:05:AA:29
          inet6 addr: fe80::207:43ff:fe05:aa29/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:9000  Metric:1
          RX packets:24032426 errors:166 dropped:8087 overruns:0 frame:166
          TX packets:33924717 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9531376502 (8.8 GiB)  TX bytes:31712259478 (29.5 GiB)
          Interrupt:56 Memory:fb881000-fb881fff

[root@mindlanf-6 ~]#

============================================

[root@mindnic-02 ~]# ping6 7878:12::10
PING 7878:12::10(7878:12::10) 56 data bytes
64 bytes from 7878:12::10: icmp_seq=0 ttl=64 time=0.118 ms
64 bytes from 7878:12::10: icmp_seq=1 ttl=64 time=0.198 ms
64 bytes from 7878:12::10: icmp_seq=2 ttl=64 time=0.193 ms
64 bytes from 7878:12::10: icmp_seq=3 ttl=64 time=0.134 ms
64 bytes from 7878:12::10: icmp_seq=4 ttl=64 time=0.176 ms
64 bytes from 7878:12::10: icmp_seq=5 ttl=64 time=0.193 ms
64 bytes from 7878:12::10: icmp_seq=6 ttl=64 time=0.164 ms
64 bytes from 7878:12::10: icmp_seq=7 ttl=64 time=0.175 ms
64 bytes from 7878:12::10: icmp_seq=8 ttl=64 time=0.165 ms
64 bytes from 7878:12::10: icmp_seq=9 ttl=64 time=0.145 ms
64 bytes from 7878:12::10: icmp_seq=10 ttl=64 time=0.141 ms
64 bytes from 7878:12::10: icmp_seq=11 ttl=64 time=0.212 ms
64 bytes from 7878:12::10: icmp_seq=12 ttl=64 time=0.111 ms
64 bytes from 7878:12::10: icmp_seq=13 ttl=64 time=0.158 ms
64 bytes from 7878:12::10: icmp_seq=14 ttl=64 time=0.246 ms
64 bytes from 7878:12::10: icmp_seq=15 ttl=64 time=0.163 ms
64 bytes from 7878:12::10: icmp_seq=16 ttl=64 time=0.195 ms
64 bytes from 7878:12::10: icmp_seq=17 ttl=64 time=0.203 ms
64 bytes from 7878:12::10: icmp_seq=18 ttl=64 time=0.196 ms
64 bytes from 7878:12::10: icmp_seq=19 ttl=64 time=0.236 ms
64 bytes from 7878:12::10: icmp_seq=20 ttl=64 time=0.199 ms
64 bytes from 7878:12::10: icmp_seq=21 ttl=64 time=0.182 ms
64 bytes from 7878:12::10: icmp_seq=22 ttl=64 time=0.171 ms
64 bytes from 7878:12::10: icmp_seq=23 ttl=64 time=0.213 ms
64 bytes from 7878:12::10: icmp_seq=24 ttl=64 time=0.137 ms
64 bytes from 7878:12::10: icmp_seq=25 ttl=64 time=0.203 ms
64 bytes from 7878:12::10: icmp_seq=26 ttl=64 time=0.170 ms
64 bytes from 7878:12::10: icmp_seq=27 ttl=64 time=0.159 ms
64 bytes from 7878:12::10: icmp_seq=28 ttl=64 time=0.145 ms
64 bytes from 7878:12::10: icmp_seq=29 ttl=64 time=0.154 ms
64 bytes from 7878:12::10: icmp_seq=30 ttl=64 time=0.200 ms
64 bytes from 7878:12::10: icmp_seq=31 ttl=64 time=0.140 ms
64 bytes from 7878:12::10: icmp_seq=32 ttl=64 time=0.147 ms
64 bytes from 7878:12::10: icmp_seq=33 ttl=64 time=0.205 ms
64 bytes from 7878:12::10: icmp_seq=34 ttl=64 time=0.134 ms
64 bytes from 7878:12::10: icmp_seq=35 ttl=64 time=0.142 ms
64 bytes from 7878:12::10: icmp_seq=36 ttl=64 time=0.178 ms
64 bytes from 7878:12::10: icmp_seq=37 ttl=64 time=0.214 ms
64 bytes from 7878:12::10: icmp_seq=38 ttl=64 time=0.201 ms

--- 7878:12::10 ping statistics ---
50 packets transmitted, 39 received, 22% packet loss, time 49005ms
rtt min/avg/max/mdev = 0.111/0.174/0.246/0.035 ms, pipe 2

what could be the reason for this, please help me resolve this issue.

Thanks,
Muzaffar

I'm not sure I understand what you describe nor what your question is. I can't see ping6 stopped. What I infer from your samples is that you add an IPv6 address on two different nodes (mindlanf-6 and mindnic-02). Deleting it from one node will keep the ping6 running, in accordance with what we see.

I am not deleting ipv6 adress, once we issue ping command from one client after some time automatically ip will be erased from that interface and ping will stop.

Not much of ipv6 experience i have, but here are some thoughts:

You are setting an IP manualy, have you disabled dhcp?
You are setting a 2nd ipv6 adress to your device.

          inet6 addr: fe80::207:43ff:fe05:aa29/64 Scope:Link
          inet6 addr: 7878:12::10/64 Scope:Global

To my eyes, the ipv6 you are setting, seems invalid (quite too short).

hth

I am not using any dhcp server here, I am assigning it statically.
same thing works for Redhat client but we are facing the issue on fedora OS

inet6 addr: 7878:12::10/64 Scope:Global

Its correct I.P,

is there anything which I need to enable..?

You probably have duplicate addresses on the interface. You can force Linux to disable duplicate address detection:

sysctl net.ipv6.conf.eth4.accept_dad=0
sysctl net.ipv6.conf.eth4.accept_dad=0

I tried adding this, but after 15 mins I.P is getting erased again..

Then you're probably running NetworkManager. Stop it, or use it to configure the interface.

Thank you for ur comments, after stopping the NetworkManager service it seems to be working. I am monitoring the behavior of the interface if it gives the same problem then I will update,

can you please clarify how it worked after disabling NetworkManager, any specific reason..?

NetworkManager configures an interface. You'd need to set it up rather than use ifconfig. It seems to apply its configuration periodically, in this case is nil.

So if you've a GUI and NetworkManager, just use it to set your static IP rather than ifconfig from the command line.

There is a command-line utility for NetworkManager, nmcli , but I tend to use a GUI on the desktop and no NetworkManager on a server so I've no experience to offer about it.