How to Disable IPv6 on linux

[root@server ~]# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.31.1.100 netmask 255.255.255.0 broadcast 172.31.1.255 inet6 2a01:4f8:c0c:1537::2 prefixlen 64 scopeid 0x0 inet6 fe80::5054:a2ff:fe01:df66 prefixlen 64 scopeid 0x20 ether 52:54:a2:01:df:66 txqueuelen 1000 (Ethernet) RX packets 4807270 bytes 944177390 […]