LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can you set Linux up on a Microsoft Home network? (https://www.linuxquestions.org/questions/linux-networking-3/can-you-set-linux-up-on-a-microsoft-home-network-67232/)

Stevetgn 06-22-2003 09:34 AM

Can you set Linux up on a Microsoft Home network?
 
I run 3 PC's at home all networked together using MS Windows XP. I'm really getting into Linux Mandrake & like it a lot. Can I setup a network using my main PC (dual boot) with ADSL as the gateway like it is when I boot into XP, but have the same setup when I boot into Linux without touching any setting on the other two PC's... Have I made sence? If so how do I di it?

Thanks in Advance

Steve:newbie: :Pengy:

david_ross 06-22-2003 09:40 AM

Yes you should be able to. Just make sure you set Mandrake and XP on the machine with ADSL to have the same ip address (there can't be a conflict since only one will ever be on).

Once you have Mandrake running with internet access itself you can add iptables rules to masquerade packets for the other machines (this is the equivalent of ICS on XP).

Stevetgn 06-22-2003 10:00 AM

whooh... Thanks for the reply but that went well over this newbies head. Any chance of the "thick as pig S@#t" version of what you said.

Thanks again.

Steve

nemesisza 06-22-2003 10:07 AM

Ok, let me attempt to provide some help here as I understoor what David_ross was saying.

1. Make sure that the IP address of the machine running Mandrake and sharing the ADSL connection are the same under both Operating Systems. If for instance your IP on Windows is 192.168.1.1, make sure it is that under mandrake as well.
What the user ment by there can be no conflict with IP is that you are only in one of the Operating Systems at any given time therefore that IP, 192.168.1.1, can not be in conflict.

2. If u are already sharing the ADSL connection between these 3 PCs at home, you are obviously using either "Internet Connection Sharing" or a third-party Proxy, NAT, Gateway. Linux comes with a powerful little tool called IPTables, which in its simplist form can share the ADSL connection with the rest of your home network. Check out http://www.iptables.org/ for more info on how to get that set up

Hey, if all else fails then just come back to the forum and ask more questions... That is what it is here for after all.

Good Luck.


Nemesis(ZA)

Stevetgn 06-22-2003 10:18 AM

Thanks Nemesis I try that

david_ross 06-22-2003 10:18 AM

No problem:
1)The machine with Mandrake and XP that is connected to ADSL:
1.a) Make sure that both Operating systems have the same IP address (since this is the gateway machine all other machines must know the IP - if they were different then the other machines would need to be changed when you changed OSs)
1.b) Make sure that Mandrake itself has internet access through adsl

2) Let your system forward ip packets edit /etc/sysctl.conf and change "net.ipc4.ip_forward=0" to "net.ipc4.ip_forward=1"

3) Set up your system to do masquerading:
3.a) The hard but proper way:
http://www.tldp.org/HOWTO/IP-Masquer...WTO/index.html
3.b) The easyier way (or so I'm told as I've never used it):
http://www.shorewall.net/

Depending on your version of Mandrake you may be able to use the "Internet Connection Sharing" Wizard in the Mandrake Control panel. This will replace the need for steps 2 & 3.

EDIT: I should really learn to touch type :rolleyes:

nemesisza 06-22-2003 01:18 PM

haha, there we go...
from the guru's mouth...
Good luck once again Stevetgn
Outie


Nemesis(ZA)


All times are GMT -5. The time now is 10:56 PM.