Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-20-2004, 03:24 PM   #1
LQ Newbie
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
Question Internet connection sharing help...using USB modem & Network card

I am running Mandrake v10...

I have a USB broadband modem, which i am using to connect to the internet which is working fine...

I also have a network card which i want to use to share my internet connection to the other PC's on my home network...

If i use the ifconfig -a command it shows 3 items...2 network cards, and a loopback adapter...

On 1 network card, it gives an IP address which i know is my USB broadband modem, and on the other network card it doesnt have an IP address...

This is where i get stuck, I am a very new user of linux so please be gentle...

Thanks in advance...

Old 04-20-2004, 04:45 PM   #2
LQ Newbie
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
Help Needed as well....

I am in the same boat as you were or are, did you ever find out how to get it to work? Thank you.
Old 04-20-2004, 04:59 PM   #3
LQ Newbie
Registered: Apr 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Not really m8...

I have looked though some other posts, and the only thing i could find was this...

At the command line type...
make load
ifconfig eth0 up

I am a complete novice (only installed linux yesterday), so this may be way off

I havent had a chance to try it yet...

Old 04-20-2004, 11:26 PM   #4
LQ Newbie
Registered: Mar 2004
Location: Oregon
Distribution: SlackWare 9.1
Posts: 2

Rep: Reputation: 0
i hope this helps

hello saw your reply im kinda new to linux my self and i use Slackware what kind of card are your trying to use a lan pci nic if so you need to set the ip address in slackware its ifconfig etho (for your first card your second replace etho with eth1) so when you open a shel you should type somthing like this
ifconfig -a eth1 thats sets your ipaddress for you local network on your card then just type ifconfig to see if the ip was set now to route the traffic between the 2 networks you should then type in the shell (make sure ipv4 is set up in your kernel as weel)next what you need to do is set up you linux box to do is route the traffic between the 2 networks to enable ipv4_forward on a runnning system in the shell you need to type this command echo 1 > /proc/sys/net/ipv4/ip_forward
to keep it up and ruuning after you shut down or send a HALT signel to the system you need to go into your /etc/rc.d/rcinet2. and change the line
IPV4_FORWARD=0 to IPV4_FORWARD=1 0 mean no routing 1 means yes to routing and hopefully that should do it now remember i use Slackware it might be different for you Distrabution of linux if this doesent work contact the people you got your distro from and also you8 should check your man pages that came with it that specificly deal with networking personaly i love this kinda stuff and im planing on going to college to get a degree in networking if you want let me know if this was helpfull and i hope it was asta
Old 04-22-2004, 03:16 PM   #5
LQ Newbie
Registered: Apr 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your help...i can now ftp and ping my Linux machine from my other windows machines and my xbox on my local network

But i still cannot share my internet connection

Where you said to do the following...

"you need to go into your /etc/rc.d/rcinet2. and change the line
IPV4_FORWARD=0 to IPV4_FORWARD=1 0 mean no routing 1 means yes to routing and hopefully that should do it"

...I havent got this file...'rcinet2.'...why haven't i got this file? (i guess i need to install something?)

Any help from anyone would be appreciated, as i think i am almost there...

Old 04-28-2004, 07:54 AM   #6
LQ Newbie
Registered: Apr 2004
Distribution: Redhat 9.0
Posts: 19

Rep: Reputation: 0

I am very new to linux myself.....however I have managed to set up Internet Connection sharing from my Linux box (which connects to the internet via 128k ISDN connection) to my Notebook running Windows XP. After reading LQ I managed to pick up quite a bit of info....however, searching in google I came across this site which tells u how exactly to set up IP Masquerade which is what u need.

Bacially I set up my Eth0 (on linux) with these settings
IP :
Subnet :
Gateway :

Windows with these :
IP :
Subnet :
Gateway :

Primary - Obtain from your ISP or from /etc/resolv.conf
Secondary - Obtain from your ISP or from /etc/resolv.conf

then after uv set up Masquerade as per the website, run /etc/rc.d/rc.firewall-2.* if thats your kernel. Make sure u set the devices in your rc.firewall-2.* script correctly :
ie .
echo " External Interface: $EXTIF"
echo " Internal Interface: $INTIF"

And u should have internet sharing. Hope this helps some.


Old 04-28-2004, 02:44 PM   #7
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
In windoze u may want to go to lan connections and also add proxy connections
ie ur linux ip address and ports 80 http 1080 socks...etc, if u r still having probs connecting


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
Setup Network & ADSL Connection (Internet Sharing) on SuSE 9.2 egcoder Linux - Networking 0 01-31-2005 07:47 PM
internet connection sharing through a modem... rosssax Linux - Networking 3 08-05-2004 11:02 PM
How do i install a network card/drivers or set up internet connection sharing? Daz155HGT Linux - Newbie 1 04-20-2004 06:22 PM
internet connection sharing with modem Sathe Linux - Networking 0 10-03-2001 10:00 AM
sharing internet connection(modem) linuxfan Linux - Networking 3 10-20-2000 05:53 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration