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 04-25-2004, 04:09 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
Making a LAN


Been following the book from Paul Scheer. Trying to connect oldcomp to newcomp.
[dad1@trouble dad1]$ /sbin/route -v -e -n
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

How do I get at newcomp, set up similarly?
Something is missing here. Do I need to declare this computer as server or whatever. Do I need to givemyself access rights to newcomp.
Any tips anyone?
 
Old 04-25-2004, 05:02 AM   #2
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Any tips on setting up dhcp? I just downloaded the newest version.
Can't be that difficult to connect oldcomp to new comp over eth0?
I can connect to the net, and eth0 is active on boot!
 
Old 04-25-2004, 09:42 AM   #3
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
It should be quite easy. The easiest way is to give both machines network card static ip addresses, using ifconfig, like this :

ifconfig eth0 192.168.1.1 (on the first machine)

ifconfig eth0 192.168.1.2 (on the other machine)

and connecting the two machines with a crossover cable, from network card to network card. If you have a straight cat5 cable you will have trouble, you need a crossover cable for this. There's the lan all ready to go. Assuming you are using two linux machines. Perhaps you should post more detail as to what you are hoping to achieve and if the other computer is a windows box or not.
 
Old 04-25-2004, 11:48 AM   #4
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Well, thought it must be easy. I'll try it. You don't use dhcp yourself? I have a magazine, Linux User. It explained how to set up dhcp.conf. But I keep getting errors. I don't know what to put for host name, and it asks for dnns-update-style.
If I do it as you say, how do I actually get at newcomp from old comp? Is it sort of mounted under / somewhere, so that kde just sees it? What about access permissions from one comp to another. And more importantly, how do I get at oldcomp and the modem to access the net from newcomp, which is not on connected to the net directly.
I would like to get dhcp going, so that if I connect another comp up at some point, I just plug it in tell the net wizard to use dhcp, et voila.
Can anyone send me an example of a functioning dhcp.conf?
And what is dhcp.lease. dhcpd can't find it, and neither can locate. It's not there. Not on old or new comp.
New comp is the client I suppose, and runs on Mandrake. If I set it to dhcp, it asks for a host name. Is that the ip address of oldcomp, or it's name, trouble.oldcomp??
Thanks for any tips!
 
Old 04-26-2004, 12:23 PM   #5
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
dhcp is not needed for a two machine setup really. The internet sharing I just setup myself - here's the thread
http://www.linuxquestions.org/questi...hreadid=174275

Apart from that you can look into NFS for sharing partition/directories, or use things like ftp and ssh between the two machines.
 
  


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 Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM
machine has adsl ethernet modem, to make it gateway over lan do i need more lan cards b0nd Linux - Networking 2 10-04-2005 10:19 PM
simple lan making me feel the blues jinan Linux - Newbie 3 02-10-2005 11:58 AM
LAN interface on Gateway stops being able to send info to LAN intermittantly. BurnFEST Debian 2 11-01-2003 03:16 AM
Crystal LAN CS8920 LAN Driver for Red Hat 8.0 potlamurali Linux - Networking 3 02-07-2003 12:49 AM

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

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