how do I find config info for simple 2 computer lan
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
how do I find config info for simple 2 computer lan
I hope to use mandrake control center to set up a simple 2 'puter lan. I dont need to share an internet connection at this time.
I am almost completely ignorant of the command line though I am learning slowly.
I have looked at a hundred post hoping to find link to info I need. Hopefully I have absorbed some info that will help me in the future but for now I still havent found the basic info I need.
The help file in Mandrake tells me to get the basic info I need from my System Administrator. Unfortunately that is me.
The mandrake wizard for a lan connection has "auto config IP" selected by default, and ask for me to supply; Zeroconf hostname, http and ftp proxies.
There is also a "configure lan" button. It asks for me to supply; IP address, netmask, boot protocol and dhcp client.
one computer - mandrake 9.2 eth0- on board sis900
other computer -mandrake 9.2 eth0- on board RTL 8139
What markings on my cat6 cable do I need to look at to make sure its the right cable?
Thanks in advance, any help in finding the info I need will be greatly appreciated.
First if you're going to connect the 2 computers directly (with know hub or switch) you'll need a crossover cable. I don't know of any standard markings that indicate that a cable is a crossover cable. Most network cables are not crossover cables so your unlikely to find one lying around unless you either bought or made it for that purpose.
Next you need to decide on an IP addressing range and IP addresses for each computer. To simplify things I suggest the following arrangement :
machine A :
common to both machines:
netmask : 255.255.255.0
broadcast address : 192.168.1.255
network address : 192.168.1.0
(you may or may not need the last 2 parameters)
I can't help you much with the graphical Mandrake configuration utilities because I'm not currently running Mandrake. On each machine you will need to turn automatic IP configuration off (this would require a DHCP server which you don't have). You should then be asked for the IP address and the netmask (and possibly the other 2 parameters). You don't need to specify a default gateway because you don't have access to any other network.
Still I am pretty much at a loss. Me being an extreme newbie I certainly was afraid to post in any other catagory, but should I ask the moderator or such if I may post original question in Mandrake specific site seeing as I want/need to use Gui config tools as much as possible?
And thanks again.
OK these are quick and dirty instructions:
hook the 2 PCs up with the cable(make sure its a crossover cable)
go to DrakConnect in Mandrake Control Center, turn on expert mode(lol)
ip address: 192.168.1.1
boot protocol: static
started on boot: yes
dhcp client: (leave blank)
run to the next PC and do the same but change the ip address to 192.168.1.2
and that's it :-)
to test if its working use "ping <ip address of other pc>"
if you get ping response then you've done it.
K that either means you made a mistake when entering these ip configurations or that there's a problem with the physical connection, run /sbin/ifconfig to double check the configuration and make sure the leds on the back of the NICs are on.
You should be able to get a ping response when you ping yourself.
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.081
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.066
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.066
And here are some lines when I ping the other box
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2 Destination Host Unreachable
My cards are "on board " and I dont see any leds
When I bought the cable I told the man specifically that I wanted only to connect two computers directly together, similar to what I had done with a parallel cable,win98se and the" direct cable connection" program
He gave me what he said I needed, a cat6 cable, but I dont know for sure if its cross or straight. The packaging is long gone. Do you know of markings I could look for on the cable to identify witch type it is? Its a 50' cable and I dont want to go buy another one if it isnt needed.
Thanks again Demonbane.
Continued graditude to all those who help us newbies
Last edited by toastermaker; 10-28-2003 at 08:16 AM.
As far as I can tell your interface configurations and routing tables are correct. I've compared them to mine and everything checks. This would seem to suggest a cable problem.
Except there's one thing I don't understand. That's why you're seeing host unreachable messages when you ping. If I disconnect my cable, which should simulate using a straight-through cable between 2 PC's, I don't get that. I don't see any replies at all.
There is one more thing I suggest you try. Again you're going to use Drake Config for this so I can't help with the details. Try to specify 192.168.1.1 as the GATEWAY parameter for the machine of that address and 192.168.1.2 on the other machine. Once you've done this, do whatever is needed so the changes take effect (rebooting if necessary). Then redo the route -n command. There should now e an additional default root that looks like this in the list :
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Theoretically this shouldn't be necessary and for me the LAN works fine without a default route. But then I'm running a 2.6 kernel and it's conceivable that for some reason your kernel needs this to be happy.
I hope this is an improvement over what tcpdump was doing before ( just sitting there waiting )
Thanks tgflynn and Demonbane.
Continued gratitude to all those who help us newbies
I didnt see your most recent responces till I went to check this post.
I will use your latest ideas to help troubleshoot unless before then I see where my latest info I posted changes the direction I should go in.
Last edited by toastermaker; 10-28-2003 at 03:53 PM.
As far as the cable question goes I don't know of any cheap easy way to tell whether its straight-through or crossover.
There are cable testers that will tell you but they're expensive.
You could do it yourself by finding an RJ45-DB9 adaper kit. These have little wires that you can use to map the RJ45 signals to DB-9 signals any way you want. You could use the wires with straps and an ohmeter to find out how it's wired. I wouldn't call this easy though and I don't know if those adapters are easy to find.