Default eth0 Configuration File in Ubuntu

In redhat, eth0 configuration files are available under /etc/sysconfig/network-scripts/ifcfg-eth0. But in ubuntu i have not found any default configuration file. I google it and found it is there in /etc/network/interfaces, But there is no configuration is there. So i have to know where is the default configuration place for eth0 in Ubuntu…?

On a Ubuntu desktop network is managed by network-manager i think by default.
If you want to control network manually, disable network manager first and then add your configuration to /etc/network/interfaces

Follow this guide, but don’t uninstall the network manager, just disable it.

http://xmodulo.com/disable-network-manager-linux.html

1 Like

If you still want dhcp, then replace with this and leave out all static settings:

auto eth0
    allow-hotplug eth0
    iface eth0 inet dhcp

Once you’re done, then just restart networking

/etc/init.d/networking restart

Thanks for helping. I understood.Then what is the role of /etc/NetworkManager/NetworkManager.conf file.