LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   networking with Mandrake 8.1 (https://www.linuxquestions.org/questions/linux-networking-3/networking-with-mandrake-8-1-a-41647/)

sambanewbie 01-15-2003 09:14 PM

networking with Mandrake 8.1
 
I am trying to set my other pc up as a router for one other computer. I have managed to get access to the internet on the linux box but I am having proplems getting an IP assigned for my windows pc.

I am running 2 network cards on the linux box and a patch cord going to the network card on the windows pc.

the errors that I am receiving on the linux box are as follows:

1. IP conflict with eth1
2. Firewall is installed may have to do manual cofiguration
3. I don't totally know what I am doing.

Can someone help

manpreetnehra 01-15-2003 09:32 PM

One thing I will like to know is whether you have a static IP assigned to your external interface

rioguia 01-16-2003 11:05 AM

Quote:

proplems getting an IP assigned for my windows pc
if i'm correct, you can just assign your windows pc a private IP address. your ISP has probably assigned you one static IP address. it appears that you have two nics on your linux box (eth0 and eth1) because you want linux to share its connection with the windows pc. eth0 is connected to your ISP/Internet; eth1 is connected to your windows pc.

the static address should only be assigned to your eth0 on your linux box (to confirm, open a terminal as root and type ifconfig -a). eth1 on your linux box and your windows pc do not need a public IP address. you can just assign them a private IP address. for linux, configure your second nic by typing (ifconfig eth1 192.168.0.1 netmask 255.255.255.0), and then add a default gateway from eth1 to eth0 by typing /sbin/route add default gw xxx.xxx.xxx.xxx where xxx equals whatever your IP address is).

for help, see http://www.linuxheadquarters.com/how...rkconfig.shtml

now your linux network interfaces are ready to forward internet traffic when you enable forwarding. see http://www.netfilter.org/ this is where you will edit your firewall with iptables to enable forwarding etc.

then tell your windows box that its new ip address is 192.168.0.2 and its new gateway is 192.168.0.1 (you should be able to just leave the dns servers as they are).

hope this helps


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