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.

link|improve this question
feedback

migrated from stackoverflow.com Jun 5 '10 at 6:17

This question came from our site for professional and enthusiast programmers.

1 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.

link|improve this answer
I need eth1 to be mute, no IP at all, probably i could set in /etc/network/interfaces address to 0.0.0.0 – Lopoc Jun 4 '10 at 9:15
1  
@Lopoc: If you want eth1 to be disabled completely, you may try to leave only interfaces you need to be up in /etc/network/interfaces: auto lo eth0. If you want your interface to reject all incoming connections you may use iptables, ipfw. – Yasir Arsanukaev Jun 4 '10 at 9:36
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.