LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-16-2006, 10:57 AM   #1
wildb5
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
Red face problem connecting 2 pc both on mandrake 10.1


Hello all,im a newbee on this great OS call linux as you can see my subject,i need to no the best way to make a good network,cable is connect straith to eth0 and eth1 connect tru the other pc,net is working ok for the first one but eth1 out for the other pc cant work,can someone tell me how to fix my probleme,tkx
 
Old 04-16-2006, 01:25 PM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by wildb5
Hello all,im a newbee on this great OS call linux as you can see my subject,i need to no the best way to make a good network,cable is connect straith to eth0 and eth1 connect tru the other pc,net is working ok for the first one but eth1 out for the other pc cant work,can someone tell me how to fix my probleme,tkx
Hi,
do you just want to have LAN connection between two machines or internet access too for the second machine ???

for just LAN connection read this http://www.gnulinuxclub.org/index.ph...=303&Itemid=31

and for having internet connection too on the second machine, one way is to configure "shorewall" on the first machine.

regards
 
Old 04-17-2006, 01:56 AM   #3
pvs
Member
 
Registered: Jan 2005
Location: Lviv, Ukraine
Distribution: Something self-made
Posts: 69

Rep: Reputation: 16
eth1 means "second network adapter"
1) do you really have 2 network adapters ?
2) if 1 then: maybe yo are still connecting to eth0 ?
 
Old 04-17-2006, 03:49 AM   #4
r-t
Member
 
Registered: Oct 2004
Location: Manchester UK
Distribution: Arch, Fedora
Posts: 54

Rep: Reputation: 15
You will need to connect the two machines together with a crossover cable from an Ethernet card (whether onboard or plug-in) on one machine to an Ethernet card on the other machine. A second card on one machine should be connected to your modem.

This is confirmed by a thread on a Hong Kong Debian forum which reads (this is only my second post here so I cannot provide the link):


"... first computer has two ethernet ports and one of the port is connected to an ADSL modem. The other ethernet port of the first computer is connected to the second computer via a crossover ethernet cable. The first computer can have access to the internet but not the second computer.

In Debian Sarge, how should I set both computer up so that the second computer can share the internet access as well as the printer service of the first computer? (the first computer is connected to a printer via the USB port, has both CUPS server and client installed and can print successfully)"

"... I installed the ipmasq (for ip masquading), assigned the IP address of 192.168.0.1 and netmask of 255.255.255.0 and Broadcast address of 192.168.0.255 to the internal NIC (the ethernet port connecting to the second computer) of the first computer, then I assigned the IP address of 192.168.0.2, netmask 255.255.255.0 and gateway 192.168.0.1 to the second computer. Then both the first and second computer received the internet and I could ping the first computer from the second computeer and vice versa.

For the CUPS, I have installed CUPS client and server to both computer, then I changed the /etc/cups/cupsd.conf of the first computer so that it broadcasts its service to other local computers and allows access of its printer from other computers, then the second printer could also print from the first computer's printer."


Hope this provides enough for you to at least do a web search for the forum. Someone using Fedora also writes in the thread.

I think though that some experts may say that this method is insecure, but, anyway, I'd be very interested to know if it works for others.

You may like to know, if you didn't already, that Debian has something called FAI, which looks as if it may be useful.

Last edited by r-t; 04-17-2006 at 04:09 AM.
 
Old 04-17-2006, 01:34 PM   #5
pslave
LQ Newbie
 
Registered: Apr 2006
Location: Finland
Distribution: Tukaani / Slackware
Posts: 16

Rep: Reputation: 0
Do you have ip_forwarding switched on?
Dunno about Debian but in my distrubion /etc/rc.d/rc.ip_forward
would resolve that problem.
 
Old 04-17-2006, 09:21 PM   #6
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
I think mandrake is RedHat based anyway, but you can just use the command
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
to activate ip forwarding, or make a simple script to do that at boot time.
 
Old 04-18-2006, 11:45 AM   #7
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
lol....
we are discussing it among ourselves and the thread starter is even not responding.
 
  


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
Connecting using Mandrake 10.1 community MiKraa Linux - Networking 2 10-24-2004 09:25 AM
problem connecting mandrake 10.0 with NTL lunarossa84 Linux - Networking 2 09-18-2004 12:26 AM
Connecting to Internet with Mandrake suwandy_chandra Linux - Newbie 2 03-07-2004 03:35 AM
problem connecting to network with mandrake 9.1 Donchima Linux - Networking 0 10-19-2003 11:45 AM
Connecting Mandrake via an NT Server zain Linux - Networking 0 05-07-2001 03:22 AM

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

All times are GMT -5. The time now is 10:05 AM.

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