LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-19-2006, 09:33 AM   #1
fipeso
Member
 
Registered: Apr 2005
Location: Finland, Nurmijärvi.
Distribution: Ubuntu 5.04 "Hoary Hedgehog"
Posts: 56

Rep: Reputation: 15
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.
 
Old 02-19-2006, 09:47 AM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
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.
 
Old 02-19-2006, 09:58 AM   #3
fipeso
Member
 
Registered: Apr 2005
Location: Finland, Nurmijärvi.
Distribution: Ubuntu 5.04 "Hoary Hedgehog"
Posts: 56

Original Poster
Rep: Reputation: 15
Thank you very much RobertP, I now got an IP on the LAN side nic
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot activate eth1 using ifup or using ifcfg-eth1 akay Linux - Hardware 10 12-16-2010 05:10 AM
eth1 down Krogen MEPIS 1 06-18-2005 07:09 AM
Routing between eth1 and eth1:1 cli_man Linux - Networking 3 04-05-2004 11:54 AM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration