Could someone tell me how to disable ipv6 auto-config on a specific network interface in CentOS?
The current situation is:
A PC has two network adapters eth0 and eth1 that are connecting to the same LAN, in which, IPv6 router is advertising an IPv6 prefix with NDRA (Neighbor Discovery Router Advertisements) packet. As a result, both eth0 and eth1 are configuring the IPv6 address with that prefix automatically.
But, I just want to enable ipv6 on eth1 and disable it on eth0. I've tried the following methods, but they don't work.
This will disable ipv6 on both eth0 and eth1.
Then, it doesn't work. I have restarted the network service already.