LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 04-19-2007, 01:25 PM   #1
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Rep: Reputation: 30
Connect laptop to desktop through network card and DHCP


Hi,

I can't seem to find a solution to my dilemma, so don't know if it's actually possible. I recently got a laptop(running Kubuntu Feisty) and what I want to do is connect it to my desktop PC (running openSUSE 10.1). The desktop has one network card sitting at eth0.

What I wanted to do was get a dhcp server running on the desktop listening on eth0 (openSUSE's dhcp setup didn't seem to work for me). After *much* mucking about I got dhcpd to listen on eth0 by running
Code:
dhcpd eth0
My dhcpd.conf file is pretty bare bones, it has the following:
Code:
ddns-update-style ad-hoc;

subnet 10.0.0.0 netmask 255.255.255.0 {
  range 10.0.0.3 10.0.0.20;
  option broadcast-address 10.0.0.255;
}
When I connect the two with a network cable, nothing happens. What am I doing wrong? (the laptop connects to other dhcp servers, so I don't think there is a problem on the laptop side)
 
Old 04-19-2007, 01:47 PM   #2
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
cabling??

Well for starters if you are just connecting a regular network patch cable between the two pc's it will never work because you need to use a crossover cable to allow duplex communication.

If you are using a crossover check to make sure that there are link lights on with both of the pc's

If you have no idea what a crossover cable is then go buy a cheap network switch or hub and use that instead.

If you are certain you have the cabling topology right then make sure you have the correct drivers and modules loaded for your network cards on both the systems as well as the dhcpd processes
 
Old 04-19-2007, 01:51 PM   #3
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by tekhead2
Well for starters if you are just connecting a regular network patch cable between the two pc's it will never work because you need to use a crossover cable to allow duplex communication.

If you are using a crossover check to make sure that there are link lights on with both of the pc's

If you have no idea what a crossover cable is then go buy a cheap network switch or hub and use that instead.

If you are certain you have the cabling topology right then make sure you have the correct drivers and modules loaded for your network cards on both the systems as well as the dhcpd processes

Ah! That'll be it then. It's a regular network cable. I'll hunt down a crossover cable then.

Thanks, I'll give it a try
 
  


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
A local wireless network for sharing files (linux desktop+linux laptop+mac laptop) whyatt Linux - Wireless Networking 1 11-01-2005 03:17 PM
How to Network Laptop to Desktop snobird Linux - Networking 4 05-25-2005 01:42 AM
DHCP - one network card? Echo Kilo Linux - Networking 3 12-19-2004 07:03 PM
Connect a Laptop at a campus Network alekoos Linux - Networking 2 04-26-2004 07:30 PM
dhcp server will not connect to laptop after laptop OS upgrade phamnewan Linux - Networking 0 06-21-2003 10:47 AM


All times are GMT -5. The time now is 01:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration