In my structure I have a VLAN called 172, which is exclusive to communication between the iSCSI storage and the blades of the server. The VLAN is configured in two Dell PowerConnect M8024 switches, which are connected to the blades. The ports are in trunk mode.
I have RHEL 7.6 installed in 2 Dell PowerEdge blades, where I configure the p3p1 and p3p2 interfaces as follow:
/etc/sysconfig/network-scripts/p3p1 DEVICE=p3p1 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes /etc/sysconfig/network-scripts/p3p2 DEVICE=p3p2 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes
The VLAN are defined in the following files:
File: /etc/sysconfig/network-scripts/ifcfg-p3p1.172 DEVICE=p3p1.172 BOOTPROTO=none ONBOOT=yes IPADDR=172.16.0.38 NETMASK=255.255.255.0 GATEWAY=172.16.0.254 VLAN=yes File: /etc/sysconfig/network-scripts/ifcfg-p3p2.172 DEVICE=p3p2.172 BOOTPROTO=none ONBOOT=yes IPADDR=172.16.0.38 NETMASK=255.255.255.0 GATEWAY=172.16.0.254 VLAN=yes
After I edit those files and restart the network service with the command
systemctl restart network.service
the VLAN tagging works and I'm able to ping other hosts in the network, but if I restart the machine, the VLAN tagging does not work anymore, becoming impossible to ping other hosts . If I check the files and the IFs on 'nmtui' they all there and active, correctly configured.
Some files get additional info after sometime, but I guess it's normal:
FILE: /etc/sysconfig/network-scripts/ifcfg-p3p1.172 DEVICE=p3p1.172 BOOTPROTO=none ONBOOT=yes IPADDR=172.16.0.38 NETMASK=255.255.255.0 GATEWAY=172.16.0.254 VLAN=yes TYPE=Vlan PHYSDEV=p3p1 VLAN_ID=172 REORDER_HDR=yes GVRP=no MVRP=no PROXY_METHOD=none BROWSER_ONLY=no PREFIX=24 DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no NAME="Vlan p3p1.172" UUID=fb214dde-368b-3d9c-9c1a-e8f1c5e9deb7
The only way to make it work again is deleting the VLAN IF files (p3p1.172 and p3p2.172), restart the network service, then recreate those files and restart the network service. Again, if I reboot, it stops working.
The switch config is OK as far as I can see.
Anyone has any idea why this happens? Is there other files that might get overwritten during restart?
Thanks in advance.