LinuxQuestions.org
Help answer threads with 0 replies.
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 10-07-2005, 06:05 AM   #1
Th3James
LQ Newbie
 
Registered: Jul 2005
Location: Sussex, England
Distribution: SUSE 9.3, Ubuntu Breezy
Posts: 14

Rep: Reputation: 0
Trying to setup up SUSE 9.3 as DHCP, But Client recieves no IP


Hi

I've just moved to university, taking both my PC, and my new IBM thinkpad, both running suse 9.3. The thing is i need the internet on both machines, and the university wants to charge me £95 for both machines. currently, i have the PC connected to the net, and i am trying to set it up as a DHCP server, to give the laptop internet access.
I have been following the novell: cool solutions Router How-to, but as yet i have had no success. The pc has two NICs, one setup to connect to the net, and one setp as the internal card to do DHCP.
However, when my laptop searches for an address, it gets to DHCP, and fails to find an address:

eth0 (DHCP) . . . . . no IP address yet . . . backgrounding

interestingly the activity light does not come on on either the internal card on the pc, or the laptop. i have tried this with a differnt laptop, and with differnt cables, and i get the same problem. Unfortunately, i have no idea how to precede with solving the problem!
This is my first post so apologies if ive made any mistakes

Thanks in advance

James
 
Old 10-07-2005, 06:19 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Does the connection work with static ip adresses?
I believe you should try to make it work without the dhcp first.
Make one adress 192.168.0.1/255.255.255.0 and one 192.168.0.2/255.255.255.0
See if they can ping each other.
 
Old 10-07-2005, 06:23 AM   #3
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
Set the second card on the pc and the laptop to have static internal network addresses (i.e. 192.168.XXX.XXX) and configure the server as a NAT gateway.

Put the internal ip address of the server into the gateway part of the laptops network config and the server will process all requests from the laptop and route them out over the uni's lan.
 
Old 10-07-2005, 06:39 AM   #4
Th3James
LQ Newbie
 
Registered: Jul 2005
Location: Sussex, England
Distribution: SUSE 9.3, Ubuntu Breezy
Posts: 14

Original Poster
Rep: Reputation: 0
Ive tried setting them up with private static addresses as you said but ping reports

Destination Host Unreachable

i tried this before with another laptop, and recieved the same error.
 
Old 10-07-2005, 06:55 AM   #5
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
Are you plugin the ethernet cable from the laptop straight to the PC or thru a switch?

If its straight to then you'll need a cross-over ethernet cable (some of the wires are crossed to map Tx to Rx and vice versa).
 
Old 10-08-2005, 08:12 AM   #6
Th3James
LQ Newbie
 
Registered: Jul 2005
Location: Sussex, England
Distribution: SUSE 9.3, Ubuntu Breezy
Posts: 14

Original Poster
Rep: Reputation: 0
OK, i thought i was using crossover cable, turns out it was straight thru

anyway, now i can get the machines to ping each other with static IPs.
i set it back up to do DHCP, but the the problem still remains, that the the laptop does not recieve an IP from the computer, DHCP still fails, and it backgrounds to find the address 192.168.0.2
However, when i do ifconfig, it tells me the ip address is 192.168.0.254, which is the highest address the DHCP server will give

if i do route -n on the laptop, it gives the gateway as 192.168.0.1, which is correct
 
Old 10-08-2005, 08:23 AM   #7
Th3James
LQ Newbie
 
Registered: Jul 2005
Location: Sussex, England
Distribution: SUSE 9.3, Ubuntu Breezy
Posts: 14

Original Poster
Rep: Reputation: 0
Hi

I've now got it working.
i can't ping google.com, which confused me, but it turns out i can't do that on the PC either, my packets are filtered. either way, i can now get on the internet on the laptop, thru the PC, i just can't ping anything other than the universities server, can anyone explain why this is, not that it matters really?

thanks
James
 
  


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
DHCP client gets wrong IP on reboot (SuSE 9.3) csdibiase Linux - Networking 3 08-07-2005 11:15 PM
manual setup of dhcp client pelgrimforever Linux - Newbie 6 09-04-2004 06:36 AM
DHCP - client setup Mandrake 9.2 ChrisHax Linux - Networking 1 08-07-2004 06:27 AM
Can't get IP on my SuSE client from Win2K Server DHCP... cdavidson Linux - Networking 1 06-19-2004 12:13 PM
ADSL modem & SUSE 9.0 DHCP client Embedded Linux - Networking 1 01-24-2004 05:48 AM

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

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