How to disable IPv6 on Linux

Question: I notice that one of my applications is trying to establish a connection over IPv6. But since our local network is not able to route IPv6 traffic, the IPv6 connection times out, and the application falls back to IPv4, which causes unnecessary delay. As I don’t have any need for IPv6 at the moment, […]
Continue reading…

 

How to configure a static IP address on CentOS 7

Question: On CentOS 7, I want to switch from DHCP to static IP address configuration with one of my network interfaces. What is a proper way to assign a static IP address to a network interface permanently on CentOS or RHEL 7? If you want to set up a static IP address on a network […]
Continue reading…

 

How to configure static DNS on CentOS or Fedora

Question: On CentOS, I am getting an IP address assigned by DHCP. However, I want to use public DNS servers (e.g., Google DNS), not those assigned by a DHCP server. In general, how can I configure DNS servers statically on CentOS or Fedora? If you want to hard-code DNS servers to use on CentOS or […]
Continue reading…