LinuxQuestions.org
Review your favorite Linux distribution.
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 01-15-2003, 09:14 PM   #1
sambanewbie
LQ Newbie
 
Registered: Nov 2002
Posts: 2

Rep: Reputation: 0
Unhappy 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
 
Old 01-15-2003, 09:32 PM   #2
manpreetnehra
Member
 
Registered: Jan 2003
Distribution: Mandrake,Redhat,NetBSD
Posts: 34

Rep: Reputation: 15
One thing I will like to know is whether you have a static IP assigned to your external interface
 
Old 01-16-2003, 11:05 AM   #3
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
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

Last edited by rioguia; 01-16-2003 at 04:12 PM.
 
  


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
Networking Mandrake 10.0 with XP WindowsVeteran Linux - Newbie 4 03-21-2004 05:27 AM
Mandrake 8.2 Networking MSIuser Linux - Networking 0 02-17-2004 05:23 PM
networking w/ mandrake 7... jamaican_jm Linux - Networking 4 09-15-2003 09:07 AM
Networking Mandrake and XP brishi Linux - Networking 3 03-01-2003 10:42 AM
Mandrake 7.2 networking Ermac6 Linux - Networking 2 06-13-2001 10:00 PM

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

All times are GMT -5. The time now is 04:06 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