LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2-PC network (without internet) (https://www.linuxquestions.org/questions/linux-networking-3/2-pc-network-without-internet-409966/)

unihiekka 01-31-2006 07:21 AM

2-PC network (without internet)
 
Hello!

I want to set up a tiny (TCP/IP?) network of a desktop and a laptop, both running on SuSE 9.3 Pro, without the use of internet. So, I want a cable from the desktop to go to the laptop. I believe one needs a cross cable or cross-over cable for that, which I can easily buy. But the trouble is, I am trying to learn :study: something of networking, but I don't know :confused: how to set up such a network. The idea is to use port 5555 for this network (because some programme needs it to be so). Can anybody help me (either YaST or console) step-by-step how to do it, or does there exist a tutorial for such a particular network.

Thanks a lot!

m2acis 01-31-2006 07:44 AM

I haven't used SuSE, but I can give you some basic guide to help you.

1) Correct - you need cross cable if you're connecting 2 computers directly
2) Choose IP's for both computers
for example 192.168.1.1 and 192.168.1.2 with netmask 255.255.255.0
3) Asign IP's to network interfaces (usualy eth0 for first ethernet adapter, but may wary depending on network card type)
Commands I would use on my computer is ...
#ifconfig eth0 192.168.1.1 netmask 255.255.255.0
on first computer
#ifconfig eth0 192.168.1.2 netmask 255.255.255.0
on second

that should work.

If this didn't help, then use google and search for keywords like "suse network yast configure" or similar and it should bring you to some help ;)


All times are GMT -5. The time now is 11:00 AM.