ip -6 route command and route6-ens file output miss-match

Issues related to configuring your network
Post Reply
diwakar0304
Posts: 4
Joined: 2019/03/28 15:39:26

ip -6 route command and route6-ens file output miss-match

Post by diwakar0304 » 2019/03/28 16:20:30

HI,

I am facing a weird problem while loading routes from /etc/sysconfig/network-script/route6-ens160 file on new server deployed and now it is in production.


route mention in file
xxx5:2xx:axx:fxxx:1x:1xx:104:xx via xxxx:xxx:xxx:xxxx:xx::1 dev ens160

but after "systemctl restart network" or "de-activate/activate" from nmtui, its did not loads same route

#ip -6 route | grep xxx5:2xx:axx:fxxx:1x:1xx:104:xx
no output

but by checking in further

#ip -6 route | grep -i xxx5:2xx:axx:fxxx:1x:1xx
xxx5:2xx:axx:fxxx:1x:1xx:4:xx via xxxx:xxx:xxx:xxxx:xx::1 dev ens160 proto static metric 100 pref medium

Below are my observations:
7th octact of IPv6 for which route is added getting truncated.
When there are 4 characters in 7th octact , after restart it loads only last 2 characters.
And if there are 3 characters in 7th octact, after restart it loads only last 1 characters (As shown above).
But when there is 2 or less than 2 characters in 7th octact, then it loads perfectly.

This truncation is only observed on 7th octact of IPv6, not on any other octact.

BUT, if I execute below command to add route from CLI. It is a success
#ip -6 route add xxx5:2xx:axx:fxxx:1x:1xx:104:xx via xxxx:xxx:xxx:xxxx:xx::1 dev ens160


I am facing this issue on all routes which having 7th octact greater than 2 characters. like this I have more than 20 routes under trouble on more that 15 nodes running on below configurations.

# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
# uname -r
3.10.0-862.11.6.el7.x86_64
# lsmod
Module Size Used by
vmw_vsock_vmci_transport 30577 0
vsock 36452 1 vmw_vsock_vmci_transport
sunrpc 353310 1
dm_mirror 22289 0
dm_region_hash 20813 1 dm_mirror
dm_log 18411 2 dm_region_hash,dm_mirror
dm_mod 123936 2 dm_log,dm_mirror
sb_edac 32034 0
coretemp 13444 0
iosf_mbi 14990 0
crc32_pclmul 13133 0
ghash_clmulni_intel 13273 0
aesni_intel 189415 0
lrw 13286 1 aesni_intel
gf128mul 15139 1 lrw
glue_helper 13990 1 aesni_intel
ablk_helper 13597 1 aesni_intel
cryptd 20511 3 ghash_clmulni_intel,aesni_intel,ablk_helper
sg 40721 0
ppdev 17671 0
vmw_balloon 18094 0
pcspkr 12718 0
vmw_vmci 67081 1 vmw_vsock_vmci_transport
joydev 17389 0
i2c_piix4 22401 0
parport_pc 28205 0
shpchp 37047 0
parport 46395 2 ppdev,parport_pc
ip_tables 27126 0
xfs 1003971 2
libcrc32c 12644 1 xfs
sr_mod 22416 0
cdrom 42556 1 sr_mod
sd_mod 46322 4
crc_t10dif 12912 1 sd_mod
crct10dif_generic 12647 0
ata_generic 12923 0
pata_acpi 13053 0
drm_kms_helper 177166 0
syscopyarea 12529 1 drm_kms_helper
sysfillrect 12701 1 drm_kms_helper
sysimgblt 12640 1 drm_kms_helper
fb_sys_fops 12703 1 drm_kms_helper
ttm 99555 0
drm 397988 2 ttm,drm_kms_helper
ata_piix 35052 0
mptspi 22628 3
crct10dif_pclmul 14307 1
scsi_transport_spi 30732 1 mptspi
crct10dif_common 12595 3 crct10dif_pclmul,crct10dif_generic,crc_t10dif
libata 243070 3 pata_acpi,ata_generic,ata_piix
mptscsih 40150 1 mptspi
crc32c_intel 22094 1
mptbase 106036 2 mptspi,mptscsih
serio_raw 13434 0
i2c_core 63151 3 drm,i2c_piix4,drm_kms_helper
vmxnet3 53905 0
floppy 69432 0


Rest, interface configuration is perfectly fine and working in dual stack.
To add this route I have also tried with nmtui, but same result was observed.

Seeking help to identify the issue and correct it.

Please pardon me to hide the IPv6, as can not be surfaced in public forum.

diwakar0304
Posts: 4
Joined: 2019/03/28 15:39:26

Re: ip -6 route command and route6-ens file output miss-match

Post by diwakar0304 » 2019/04/02 09:31:47

Hi All,
Can any one tell me which service is responsible for parsing route6-ens files to load proper route in routing tables?
Is there any specific directive in any configuration responsible to enable that particular service to check and load correct routes mentioned under route6-ens files.

Thanks in advance.
Diwakar

diwakar0304
Posts: 4
Joined: 2019/03/28 15:39:26

Re: ip -6 route command and route6-ens file output miss-match

Post by diwakar0304 » 2019/04/07 06:57:30

Hi,

Still struggling with this issue. Please let me know if any more inputs require to start looking into this issue.

Experts help are really appreciated.

Thanks

Post Reply