LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-16-2004, 07:43 AM   #1
paulmedic555
Member
 
Registered: Apr 2004
Location: Greece
Distribution: Debian Etch/Sid-Gentoo
Posts: 56

Rep: Reputation: 15
setting a lan with 2 slackware pc


hi i have 2 slackware PC's and i want to connect them via LAN.i have a network card downloaded drivers for it ,insmod the driver ,use netconfig but i can't ping them any suggestions?
 
Old 06-16-2004, 08:01 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,203

Rep: Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705
You have to decide which one of the pc is the router then chmod +x /etc/rc.d/rc.ip_forward
do /etc/rc.d/rc.ip_forward start and see what happen

This is a first step for configure the pc to be a router, second is do a script for iptables, google for a script that suit your system, there are many for iptables
 
Old 06-16-2004, 08:03 AM   #3
Marsanghas
Member
 
Registered: Sep 2003
Location: Spijkenisse, Netherlands
Posts: 118

Rep: Reputation: 15
did you restart the network services ?
 
Old 06-16-2004, 01:56 PM   #4
paulmedic555
Member
 
Registered: Apr 2004
Location: Greece
Distribution: Debian Etch/Sid-Gentoo
Posts: 56

Original Poster
Rep: Reputation: 15
when i say " via lan" i mean siple lan connection: peer to peer!! No switch is present. Only 2 network cards in 2 different pcs!!
 
Old 06-16-2004, 02:10 PM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,203

Rep: Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705Reputation: 705
on the 2 machines :
/sbin/route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0

on a machine:
IP : 192.168.0.1
NETMASK : 255.255.255.0

on other :
IP : 192.168.0.2
NETMASK : 255.255.255.0
 
Old 06-16-2004, 02:45 PM   #6
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
You sure you got the right type of cable between the two?

You need a crossover cable yeh?

Steve
 
Old 06-16-2004, 09:49 PM   #7
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
yea sbing, if you dont have a hub or router or some type of appliance to plug the cables in to youll need a crossover cable not a patch cable. Check if the nic's link lights come on when the 2 are connected.

if you do have a appliance to plug into or are using a crossover cable give some more info ... check out keefaz's post ... the other stuff is a little far down the road if you just having problems pinging another machine.
 
Old 06-19-2004, 06:03 PM   #8
paulmedic555
Member
 
Registered: Apr 2004
Location: Greece
Distribution: Debian Etch/Sid-Gentoo
Posts: 56

Original Poster
Rep: Reputation: 15
ok i just find some drivers from the net for my NIC and finally worked thanks
 
  


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
Setting up LAN theblaze Linux - Networking 6 06-27-2006 03:13 AM
setting up lan impeteperry Ubuntu 1 11-18-2005 09:05 PM
Setting up a LAN Elbryan Debian 2 09-17-2005 07:42 PM
Setting up a LAN RagingIfrit Linux - Software 8 07-03-2004 10:19 PM
setting up lan futard Linux - Networking 5 06-19-2001 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration