LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-26-2007, 02:35 AM   #1
jim_naisium
Member
 
Registered: Jul 2006
Posts: 74

Rep: Reputation: 15
Setting up DHCP server...


Hi,

I just installed Ubuntu 7.10 server version, I currently have a Slackware box running my network with ETH0 = WAN to the cable modem and ETH1 = LAN to my internal network and sharing the internet connection as well.

How do I set this up in Ubuntu? the folders/files are close between the two versions of Linux but not close enough to just copy everything from one PC to the other.

Any help would be appreciated.
 
Old 10-27-2007, 05:46 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You definitely don't want to just copy the config files from one machine to the other; that is not going to go well.

But that said, the configuration itself is the same as it was on Slackware, so it should be pretty easy to replicate the server if you know the configuration well enough. Unless you aren't the one who setup the Slackware machine in the first place?
 
Old 10-28-2007, 11:04 PM   #3
jim_naisium
Member
 
Registered: Jul 2006
Posts: 74

Original Poster
Rep: Reputation: 15
Hi thanks for replying,

I set it up but I had a lot of help from another posting here, I was able to modify the configuration scripts and was able to port some things over. The DHCP server part of it is working but the server itself is not even able to surf now and could before I started trying to do this.

Somehow I think it is giving ETH0 it's own IP address instead of letting ETH0 get an IP address from the Slackware server that is still running the network even though I have ETH0 set to DHCP instead of STATIC.

Oh duh, I just figured out the problem, I had the static address of ETH1 the same IP as ETH1 of the Slackware box, odd that I didn't get any errors though. I changed the third octal of Ubuntu's ETH1's IP to something else and rebooted.

ETH0 IS getting its IP from the Slackware box, the Ubuntu server can surf now, will post more later...
 
Old 10-30-2007, 01:11 AM   #4
jim_naisium
Member
 
Registered: Jul 2006
Posts: 74

Original Poster
Rep: Reputation: 15
DHCP is working and handing out IP addresses to the client PCs on the network, I am able to surf on the server but the PCs on the LAN are not able to surf.

Any suggestions?
 
Old 10-30-2007, 05:24 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
The default gateway and/or DNS values are probably not correct on the DHCP clients. Can a LAN machine ping an Internet IP? Can they resolve hostnames?
 
Old 11-02-2007, 02:07 AM   #6
jim_naisium
Member
 
Registered: Jul 2006
Posts: 74

Original Poster
Rep: Reputation: 15
If the Client PC is plugged into the cable that eventually gets its IP address from the Slackwhere server everything is fine.

If the Client PC is plugged into the cable that eventually gets its IP address (192.168.20.x) from the Ubuntu server it can ping the Ubuntu server by IP address and DNS name (which is on the ETH1 network card), it can also ping the IP address on the ETH0 network card that is coming from the Slackware server via DHCP (192.168.1.x).

But it cannot ping the default gateway of the Slackware server by IP or DNS name (192.168.1.1) which is odd since DHCP info is coming down that same cable.

I think I have something configured wrong I'm just not sure what.
 
Old 11-03-2007, 12:26 AM   #7
jim_naisium
Member
 
Registered: Jul 2006
Posts: 74

Original Poster
Rep: Reputation: 15
Never mind...

I gave up trying to do this manually and installed "Firestarter", went through the configuration and the LAN is working fine now. One oddity though is that it is assigning IP addresses backwards instead of forwards like Windows networks do, it started at x.x.x.253 with my PC, then another PC received x.x.x.252.

Anyway, thanks for the help.

Command line = sudo apt-get install firestarter
 
  


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
Setting Up My First DHCP Server nko Linux - Networking 8 09-02-2006 04:22 PM
Setting up a DHCP server blazted Linux - Newbie 6 01-28-2005 03:10 AM
setting up dhcp server? help please!!!! lumbrjackedpcj Linux - Networking 7 10-06-2004 11:01 PM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 AM
Setting up a DHCP server. jgaraas Linux - Networking 10 06-17-2003 08:23 AM

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

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