LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to setup LAN with Debian-Windows (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-setup-lan-with-debian-windows-222519/)

psa 08-26-2004 02:39 AM

How to setup LAN with Debian-Windows
 
hm.. i have debian on one computer & windows on the other.. the windows is the main computer as it has 2 NIC one connects to the network the other connects through the internet.. and the one with debian, i onlie have 1 NIC and it connects to the network... so how do i get internet for my debian computer?

btmiller 08-26-2004 02:48 AM

You'll need to enable Internet connection sharing on the Windows machine and then configure the Linux box so that the internal interface of the Windows machine is its default gateway. Assuming the internal IP of the Windows box is 10.0.0.1 and you wanted to assign the Linux box IP 10.0.0.2 the commands would be:

ifconfig eth0 10.0.0.2 up
route add default gw 10.0.0.1

and you should be set. You could put those commands into your rc.local file so they get executed at every boot, or consult your distro's documentation for the correct networking startup script to modify.

psa 08-26-2004 02:58 AM

weird... like i did that.. didnt work.... i have zonealarmpro on my windows system,. which is the one i'm using... and its like this

+ 192.168.0.0 is under the trusted network
but
+ 192.168.0.1 returned when i type ipconfig in the windows DOS


All times are GMT -5. The time now is 08:43 PM.