Linux – Disable dhcp client over one interface

dhcplinuxnetworkingUbuntu

I'm encountering a problem on a sever with two ethernet interfaces(etho and eth1), it runs linux-ubuntu-server.
I need eth1 not make any dhcp request, becouse I need it to be only a listening interface, obviusly I need eth0 running normally.
So how can i disable any dhcpclient ation over eth1?

thank in advance.

Best Answer

Something like:

auto lo eth0 eth1

iface lo inet loopback

iface eth1 inet static
        address 192.168.32.130
        netmask 255.255.255.0
        gateway 192.168.32.1

in your /etc/network/interfaces config file will assign your eth1 a static IP address.