LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-23-2007, 01:13 PM   #1
Compliant
LQ Newbie
 
Registered: Jan 2006
Location: UK
Distribution: Debian, ubuntu
Posts: 11

Rep: Reputation: 0
Ubuntu server DHCP troubles.


The main problem is probably going to be me and the fact that this is the first time that I am trying to use a command line only operating system.

But anyway, I have installed Ubuntu server 6.06 LTS on my once server 2003 box. The primary NIC is eth1 that comes up on boot and receives the DHCP information from my ISP. (Usually there is a hardware firewall there but I have removed it for the time being to make life easier with the server install.)

The problem being is that I cant seem to get the secondary NIC (eth0) to come up at boot and act as the DHCP server for my internal network. I'm sure that the problem lies in /etc/network/interfaces or /etc/dhcpd.conf. I just cant for the life of me figure out the correct config for them.

What I would like to end up with is the web/ftp/mail servers running on eth1 and the internal network running from eth0.(obviously with internet access,SSH server and SAMBA server)

Thanks in advance.

Last edited by Compliant; 04-23-2007 at 01:45 PM.
 
Old 04-24-2007, 01:35 PM   #2
rocket777
Member
 
Registered: Apr 2007
Posts: 31

Rep: Reputation: 15
Don't know about your version, but in mine, I've found a few things.

First, note with ifconfig which or both came up. I can't tell from your post if you have got this far, so I'll assume you didn't and go thru the places I'd look.

Check your /etc/iftab

here's an example:
-----------------
# This file assigns persistent names to network interfaces.
# See iftab(5) for syntax.

eth0 mac 00:50:ba:f3:c2:d5 arp 1
eth1 mac 00:02:e3:10:dd:e3 arp 1
-------------------------


Next, what is found at boot time, check out /var/log/dmesg, scan for eth

eth0: RealTek RTL-8029 found at 0xd000, IRQ 11, 00:50:BA:F3:C2:d5

(Make sure the mac addresses agree with what you have in iftab, but frankley, I'm not sure which files are conf's that the gui uses vs. which ones are strictly command line. Likewise, I don't what triggers network/interfaces as I can't entirely get that working myself. So, I resort to some command line options, like these: )

Then, after you log in, try:

ifdown ethX
ifup ethX (for X = 0 and 1)

See which of these works, (you may not need the ifdown, but in my case, the system was out of sync and thought they were up, when they were not - ifdown reset that)

Last, if the above works, you can place them in /etc/rc.local to get them to work at boot time.

Verify with ifconfig to see that both are up.

Once you have these up and running, then you can move on to the dhcp server, but that's something someone else will have to assist with.

Hope I've been of some help.
 
  


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
No IP address from DHCP server on Ubuntu 6.06, 6.1, Knoopix, Fedoce 5 and SuSE 10.1 MatWab Linux - Wireless Networking 8 06-19-2007 05:44 PM
more madwifi + atheros troubles DHCP! jb2006 Linux - Wireless Networking 1 03-30-2006 09:22 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
DHCP Troubles Dark_Helmet Linux - Networking 8 01-30-2003 01:19 PM
dhcp troubles? Kaptiv8 Linux - Networking 1 11-19-2001 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:45 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