LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to get a fixd IP on eth1 (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-get-a-fixd-ip-on-eth1-417153/)

fipeso 02-19-2006 09:33 AM

How to get a fixd IP on eth1
 
Hi,
Installed Ubuntu 5.10.
eth0 has dhcp from ADSL ok.
But how do I get to set an IP for eth1 ?
eth1 shall be the LAN side, and I plan to use dnsmasq to give LAN computers DHCP and DNS service.

But where do I configure the IP ?

Thank you.

RobertP 02-19-2006 09:47 AM

There is likely a GUI interface for this, but from the command line as root or using sudo,

sudo vim /etc/network/interfaces

append eth1 to the auto line

auto lo eth0 eth1

insert text like this afterward

iface eth1 inet static
address 192.168.137.254
netmask 255.255.255.0

man interfaces is your friend. Use dotted quads appropriate for your network.

fipeso 02-19-2006 09:58 AM

Thank you very much RobertP, I now got an IP on the LAN side nic :)


All times are GMT -5. The time now is 05:43 PM.