LinuxQuestions.org
Visit Jeremy's Blog.
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 10-27-2005, 11:11 AM   #1
naveen_varma
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
how to share internet with XP


I have a pc running on Fedora, which is connected to net. i want to share internet with an XP pc.. i can ping both pcs, but i am not able to share net with the XP pc. somebody please help..

naveen
 
Old 10-27-2005, 11:52 AM   #2
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
what are you using to share the internet ?
iptables ?
also, what distro of linux are you using ? and what window manager or Desktop environment ?
are you giving the XP box a static ip or dhcp ?

let us know
 
Old 10-27-2005, 11:56 AM   #3
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Rep: Reputation: 31
the modem is attached to the pc (usb)?
or is a dsl modem-router?
 
Old 10-28-2005, 12:36 PM   #4
naveen_varma
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
It would b very helpful if you guys can tell me what should i use, i want to use the easiest way. My net connected pc is running on Fedora4, and i am using the Gnome environment. i have given the XP box a static ip- 192.168.0.2. .i have also given a static ip to the 2nd nic(netwoked to xp box) of the fedora box as-192.168.0.1..and i am using a dsl modem-route..

and thanks for ur invaluable replies..
 
Old 10-28-2005, 12:45 PM   #5
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
open a gnome-terminal, su to root and type ifconfig
copy the output and paste it in your next post,
also, type in route, and paste that in your next post.

also, it might be easiest to use firestarter, its a gnome application and it sets up a lot of this stuff for you.
thats what i use, anyway and its real easy, gui even.

let us know
 
Old 10-28-2005, 12:45 PM   #6
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Rep: Reputation: 31
Each pc should have a static route to the dsl-modem

For linux:
route add default gw <modem_ip>
for windows:
route add default gateway <modem_ip>
 
Old 10-28-2005, 02:34 PM   #7
bdogg
Member
 
Registered: Sep 2004
Location: Salt Lake City, UT
Distribution: Debian Sarge
Posts: 93

Rep: Reputation: 15
the EASIEST way would be to plug the windows box into the internet and share it's connection with the fedora box

If you want the fedora box on the internet, go to www.tldp.org and search for the howto on ip masquerading. It's old, but it still holds for the current 2.6 kernel I think. You can also do like the other guy said and use that gui....I never have....but gui's are easy
 
Old 10-28-2005, 05:05 PM   #8
poochdog
Member
 
Registered: Jul 2004
Location: United Kingdom
Distribution: Fedora Core 9
Posts: 141

Rep: Reputation: 15
You can use a program called firestarter, this provides everything you need to get an internet connection shared.

You can get it from here.
 
Old 10-31-2005, 07:32 AM   #9
naveen_varma
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
thank u guys for your great replies..
i have set it up with the fire starter..
thanx a lot...
 
Old 10-31-2005, 07:55 AM   #10
poochdog
Member
 
Registered: Jul 2004
Location: United Kingdom
Distribution: Fedora Core 9
Posts: 141

Rep: Reputation: 15
That's great to hear!
 
Old 12-23-2008, 02:21 AM   #11
arun panghal
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
ifconfig
eth0 Link encap:Ethernet HWaddr 00:1E:90:E8:B3:28
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21e:90ff:fee8:b328/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28117 errors:0 dropped:0 overruns:0 frame:0
TX packets:21078 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17597145 (16.7 MiB) TX bytes:3983647 (3.7 MiB)
Interrupt:201 Base address:0x2c00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2941 errors:0 dropped:0 overruns:0 frame:0
TX packets:2941 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4348796 (4.1 MiB) TX bytes:4348796 (4.1 MiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:117.201.64.219 P-t-P:117.201.64.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1
RX packets:16356 errors:0 dropped:0 overruns:0 frame:0
TX packets:16883 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:12995184 (12.3 MiB) TX bytes:2925800 (2.7 MiB)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to share internet? Dentist Linux - Networking 2 08-13-2009 03:50 PM
How to share internet Free-Blade Linux - Newbie 5 09-19-2004 05:10 AM
MD 10.0 and internet share fatcpu Mandriva 0 03-16-2004 06:43 PM
internet share raheelforme Linux - Networking 1 12-15-2003 03:46 PM
how to share internet ? gamefreak977 Red Hat 13 12-09-2003 12:12 PM

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

All times are GMT -5. The time now is 12:22 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration