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 01-24-2004, 10:29 PM   #1
Johnny2003
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Rep: Reputation: 0
Reinstalled Mandrake 9.2


I'm trying to get my internet shared between my dual boot system (WinXP and Mandrake 9.2 Linux, this being the host) and a laptop running WinXP. When in Windows I can access the internet from both computers and see files from both computers, although I am not interested in sharing files, at this time in Linux. When in Linux I can access the internet from Linux but I can not from the laptop thru my Linux box as I believe it is called. I tried playing with the internet connection sharing in the Mandrake Control Center but I have no luck. A couple of times I lost internet access all together. I have it back but only on the host. Can someone give me some newbie help? Here are some config files I believe may be helpful.

[root@localhost network-scripts]# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
MII_NOT_SUPPORTED=no
NEEDHOSTNAME=yes

[root@localhost network-scripts]# cat ifcfg-eth1
DEVICE=eth1
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
MII_NOT_SUPPORTED=no
NEEDHOSTNAME=yes

[root@localhost network-scripts]# cat ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

[root@localhost network-scripts]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:95:01:FD:52
inet addr:192.168.1.96 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:953 errors:0 dropped:0 overruns:0 frame:0
TX packets:1232 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:439250 (428.9 Kb) TX bytes:214191 (209.1 Kb)
Interrupt:11 Base address:0xc800

eth1 Link encap:Ethernet HWaddr 00:20:78:10:0C:1F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:215 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:15411 (15.0 Kb) TX bytes:1962 (1.9 Kb)
Interrupt:5 Base address:0xc400

eth1:9 Link encap:Ethernet HWaddr 00:20:78:10:0C:1F
inet addr:127.255.255.255 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0xc400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:271 errors:0 dropped:0 overruns:0 frame:0
TX packets:271 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:26807 (26.1 Kb) TX bytes:26807 (26.1 Kb)

I hope these are what is needed. I need to know what to do in both Linux and what to change in WinXP as well. I appreciate any and all help. Thank you.
 
Old 01-25-2004, 11:13 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
According to me, the easiest way is to use iptables: http://iptables-tutorial.frozentux.n...-tutorial.html
and a line command like that should work:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s laptop -o eth1 -j SNAT --to-source 192.168.1.96
 
  


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
reinstalled mandrake and no kmail simcox1 Mandriva 4 05-02-2005 08:14 AM
Just reinstalled Mandrake 9.2 and can't find Open Office chumley115 Linux - Newbie 7 06-27-2004 02:48 AM
Just reinstalled Mandrake 9.2 and I have no sound chumley115 Linux - Newbie 1 03-22-2004 03:45 AM
Just reinstalled Mandrake 9.2 and no printers won't work chumley115 Linux - Newbie 2 03-22-2004 12:40 AM
Reinstalled Mandrake 8.2 now super slow...... 1611AV Linux - Distributions 3 05-07-2002 10:02 PM

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

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