Tuesday, May 06, 2014

Enfore IPv4 on Oracle Linux instead op IPv6

When installing Oracle Linux server in a quick and dirty way and you boot your system the first time after the installation you will notice that it can be very well that you do not have a network interface while you might expect this. You might also note that it by default would like to use IPv6 instead of IPv4 which you still might require. The solution for getting this resolved is quite easy. However, remember, this blogpost acts more as a quick reference for myself for making changes to my test machines for internal testing and this should be done in a more proper manner when creating a real server for use within your company.

To ensure that your network interface (eth0) will start by default edit the following file:
/etc/sysconfig/network-scripts/ifcfg-eth0

Ensure you have the below line in this file:
ONBOOT=yes

This will ensure your server will start your network interface on boot. To ensure you will have IPv4 enabled and not IPv6 you can edit the following file:
/etc/sysconfig/network

Ensure you have the below line in this file:
NETWORKING_IPV6=no

This should ensure all is set to use your server as a test server by executing a ifconfig eth0 down and a ifconfig eth0 up you will bounce your network interface and you are good to go.