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