LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2006, 05:44 PM   #1
Unicron
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Dapper)
Posts: 32

Rep: Reputation: 15
Configure eth2 on boot


I am using a ubuntu box as a router for my house. My problem is that I am the only person in my house with even a slight linux experience and so configuration of the router is solely down to me at the moment.
Its all working well but I have to manually configure eth2 after boot up with the IP address 192.168.2.1 as it doesnt do this automatically. eth0 (essentially the WAN connection) configures automatically from the modem. I would like eth2 to do the same as I want the router to be operational from boot up without manual setting up.
As eth2 isnt setting up on boot I have to start the DHCP server and DNS server.

Im sure there must be a configuration file to configure eth2 but I have done a few googles to no avail.

Thanks
 
Old 05-31-2006, 05:52 PM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
See /etc/network/interfaces (man interfaces)

Example,
auto eth2
iface eth2 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
dns-search localnet.home
dns-nameservers 127.0.0.1

Though I'm not sure what Ubuntu has changed compared to Real Debian, this should be the way to configure the interface.
 
Old 05-31-2006, 06:57 PM   #3
Unicron
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Dapper)
Posts: 32

Original Poster
Rep: Reputation: 15
Thankyou

Its exactly the same in ubuntu as in Debian, they havent changed anything.

This is a bit of a cheeky time, but I had my Masquerade script running on boot up, I think (if I remember right) I had a soft link from somewhere. I deleted this link when I realised everything wasnt running from boot. Now I cant find the page I used for the initial set up. Where should I place the script or place a link from? Ive looked up on google again several places have been mentioned which really confused me, can it go in any or is there a 'best' place for this?
 
  


Reply



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
need eth2 to be eth0 frkstein Linux - Networking 1 04-27-2005 07:17 PM
add eth2 varun_saa Mandriva 9 01-14-2005 09:04 AM
eth2 briankb713 Linux - Hardware 0 01-04-2005 08:28 PM
can't find eth2 device hamish Linux - Networking 4 12-03-2003 02:34 PM
eth0 eth1 and eth2 on boot sergiodemoura Linux - Newbie 4 12-03-2003 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:26 PM.

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