getting a windows box to share it's internet connection with…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: mike havens
Date:  
To: PLUG-discuss
Subject: getting a windows box to share it's internet connection with a linux box
I've been in a private discussion with another Plug member. We have kept it
private because it involves a windows box also but I thought you might like
to see it..... it adds to the knowledge base.

------
preface:
router- linksys broadband g router
desktop- old computer built in 97 running Linux
laptop- windows xp

I SOOOOO want to dump COX and Verizon so I got a magicjack and a sprint
broadband card. Guess what! It works like a champ:) Now I need to get my
linux box back online before i cancel things (thank goodness for the rebate
and return checks). I figured it would be an easy thing! Just move the
ethernet cord that runs from the router to the modem to run from the laptop
to the router. Guess I was wrng. Darn!

Here is what happens:
When I disconnect the cord from the router to the modem from the modem the
internet light on the router goes out. Then, after I connect said end to the

laptop the internet light goes on but it will not load any pages on the
desktop and it will not ping www.google.com so I suppose this means I have
no
connectivity. Hmmmmmmm.... I wonder! Is it set only to recieve? If that is
the problem how do I set it to send?

Thanks for any help you are willing to provide.

------
I figured out the problem.... I changed the network and so have to re-run
the
setup routine. The problem with that is that it is looking for the router
but
the router does not wish to be detected. I think the problem is that the
laptop is plugged into the internet jack and that is plugged into the
desktop. Does that make any sense?

------
You did in deed stumble upon the problem. The ethernet cable from the laptop

"MUST" get plugged into a local port on the router. The internet "WAN" port
is wired different and will not work that way. You then have to have the
laptop share the internet connection by setting the default gateway for the
windows box as the sprint card.

------
that means 2 ethernet cables out of the laptop? If that is the case I'll
need
a hub! Let me know if I am correct.

------
No.. Of I am understanding you right the wireless card (Sprint) is a pcmcia
card or USB. That is the new modem. No cord required, unless you have the
Sprint wireless on your home with Diamond shaped antenna, if thats the case
that antenna will go to a modem which gets plugged into the internet
port (WAN) on the router.

Start with all of the equipment you have, so far I know of 2 modems, one for

cox and one for sprint. I need to know which sprint modem you have.

One router is fine. Don't get a hub, don't even hook one up, they are slow
and
useless for this.

Then I understand the laptop and desktop will be networked together via the
router. This is where I need to know where the modem (internet connection)
comes in to play and how it is to be attached to the network. Either direct
connection to laptop or to a port on the router. If you send me a model #
from the sprint equipment, I can figure the rest.


------
I am going to try to explain this as simple as possible. If I lose you, let
me
know!

Laptop is Windows XP. Wireless card is connected to this machine. In
Control
Panel | Network Connections | select the Sprint wireless adapter | select
Properties

From here look for a tab named Sharing. You need to enable other computers
to
share your internet connection.

A good practice would be to set up static addresses or reserved addresses in

the router so neither the desktop or motebook change ip's.

Set the Linux box up to use the laptop as the gateway, and by all means
forget
about the Wan port on the router. You are connected locally only.


Once you select to share the internet connection, run the ipconfig /all
command in the windows command line. This gives the same output as ifconfig
in Linux.
On the Linux box you need to change the default gateway to the local address

of the sprint card. The ip address of the network card on the Linux box
should be on the same network as everything else, say 192.168.0.x,
192.168.0.x, 10.0.0.x, etc.. If it starts with a 169, you need to enable
dhcp
on the router, or make the ip static in network properties for that card.

------
Going to try to explain this one, forgive me if I use some techie words. I
know what I want to say, but I am not the best at teaching it sometimes...
:(
The default gateway (for the desktop) is the local address of the device
connecting to the wan (internet in this case). That said if the laptop has 2

ethernet adapters, one being wired (local) and the 2nd wireless (sprint
card)
the gateway address is the address of the "wired" adapter. All of the
re-routing to the internet is handled by Windows via Connection Sharing.
A non graphical image would look like this:
desktop (ip:192.168.100.2; netmask: 255.255.255.0; gateway: 192.168.100.1;
dns
(primary) 192.168.100.1>>>>>>
laptop eth0 (lan ip:192.168.100.1; netmask 255.255.255.0) wlan0 (wan ip:
xxx.xxx.xxx.xxx; netmask:255.255.255.xxx; gateway: xxx.xxx.xxx.xxx; primary
dns: xxx.xxx.xxx.xxx; secondary dns: xxx.xxx.xxx.xxx) All of the x's will be

replaced by numbers provided by Sprint. You do not have to worry about these

values as you do not want to change these.

So the image would look like this :
desktop>>>laptop (wired port)>>>laptop (wireless card)>>>internet
I am trying to put a nicer diagram together, if you need it.What distro are
you running on the desktop? If I remember right you are running windows on
the laptop and that is what is sharing the internet connection. Just think
of
the laptop as a router. Same principal different look and feel. The
connections and pointers all work the same the difference is the software.
Also I would make sure the desktop (if only connecting to internet via
laptop) has dhcp turned off. Then you can set the values to be the same no
matter what.
I will be around all day, feel free to email me when needed.

Mike

------
I thought the last set of number (192.168.1.xxx) had to be the same.

------
The local addresses can be anything. Because it is connection sharing and
not
a business class router the network address in your case is 192.168.1.xxx
The
last 3 numbers can be anythig from 1-254 as 0 and 255 are reserved. To see
the address of the wireless, ipconfig /all in windows should do it just
fine.
My bad on wlan0, got confused with Linux. The easiest way to get that info
is
open control panel | network settings (or for Vista: Network and Sharing
Center) | select Manage Network Connections | select sprint card | right
click | select status

All the info you need should be readable under details. The same holds true
for the wired connections. You can change the settings under properties |
Internet Protocol Version 4 (TCP/IPv4)

------
it doesn't seem to be like that......I got to network connections, right
click the sprint card, and then select status. It does give me two tabs
(general and details)..... I searched around and found where I can set a
static ip..... yipee! (192.168.1.103) Ohhhh.... I get it. BY luck of the
draw
I selected 'properties' . What are good DNS servers? ALso, I selected SLIP
for the type of dial up server I am calling. Did I do anything wrong?

------
I don't mean to confuse.... so sorry.
Also, you know how I said I set up a static ip address? Well, that didn't
seem
to work. It would not connect this morning until I set 'network connection|
sprint card|ip properties' to 'obtain an IP address automatically'
----
let me see the ipconfig and ifconfig settings on your boxes

----
C:\Documents and Settings\michael havens>ipconfig /all
Windows IP Configuration
        Host Name . . . . . . . . . . . . : bmike1-laptop
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Mixed
        IP Routing Enabled. . . . . . . . : Yes
        WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Network Bridge:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : MAC Bridge Miniport
        Physical Address. . . . . . . . . : E2-BC-0A-97-E3-14
        Dhcp Enabled. . . . . . . . . . . : No
         IP Address. . . . . . . . . . . . : 192.168.0.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        IP Address. . . . . . . . . . . . :
2002:441b:bedb:4:3447:3463:34e6:3c02
        IP Address. . . . . . . . . . . . :
2002:441b:bedb:4:e0bc:aff:fe97:e314
        IP Address. . . . . . . . . . . . : fec0::4:e0bc:aff:fe97:e314%2
        IP Address. . . . . . . . . . . . : fe80::e0bc:aff:fe97:e314%4
         Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%2
                                            fec0:0:0:ffff::2%2
                                            fec0:0:0:ffff::3%2
PPP adapter Sprint Mobile Broadband - Sierra Wireless:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
        Physical Address. . . . . . . . . : 00-53-45-00-00-00
        Dhcp Enabled. . . . . . . . . . . : No
         IP Address. . . . . . . . . . . . : 68.27.190.219
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . : 68.27.190.219
         DNS Servers . . . . . . . . . . . : 68.28.58.92
                                            68.28.50.91
        NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter Teredo Tunneling Pseudo-Interface:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Teredo Tunneling
Pseudo-Interface
        Physical Address. . . . . . . . . : 80-00-F7-BA-BB-E4-41-24
        Dhcp Enabled. . . . . . . . . . . : No
         IP Address. . . . . . . . . . . . : fe80::ffff:ffff:fffd%5
        Default Gateway . . . . . . . . . :
        NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter 6to4 Tunneling Pseudo-Interface:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : 6to4 Tunneling Pseudo-Interface
        Physical Address. . . . . . . . . : 44-1B-BE-DB
        Dhcp Enabled. . . . . . . . . . . : No
         IP Address. . . . . . . . . . . . : 2002:441b:bedb::441b:bedb
        Default Gateway . . . . . . . . . : 2002:c058:6301::c058:6301
        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                            fec0:0:0:ffff::2%1
                                             fec0:0:0:ffff::3%1
        NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter Automatic Tunneling Pseudo-Interface:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Automatic Tunneling
Pseudo-Interface
        Physical Address. . . . . . . . . : 44-1B-BE-DB
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : fe80::5efe:68.27.190.219%2
        Default Gateway . . . . . . . . . :
         DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                            fec0:0:0:ffff::2%1
                                            fec0:0:0:ffff::3%1
        NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter Automatic Tunneling Pseudo-Interface:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Automatic Tunneling
Pseudo-Interface
        Physical Address. . . . . . . . . : C0-A8-00-01
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : fe80::5efe:192.168.0.1%2
        Default Gateway . . . . . . . . . :
         DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%2
                                            fec0:0:0:ffff::2%2
                                            fec0:0:0:ffff::3%2
        NetBIOS over Tcpip. . . . . . . . : Disabled
C:\Documents and Settings\michael havens>



bmike1@1[~]$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:08:C7:CA:62:4B
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:150921 errors:0 dropped:0 overruns:0 frame:0
          TX packets:159737 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:51913431 (49.5 MiB)  TX bytes:22146900 (21.1 MiB)


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:697 errors:0 dropped:0 overruns:0 frame:0
          TX packets:697 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:727155 (710.1 KiB)  TX bytes:727155 (710.1 KiB)



"Michael Havens" <>

Ok, looks simple now..
IP address on linux box needs to be 192.168.0.2. The bcast should
automatically change to 192.168.0.255 and netmask should be left as is. The
gateway should be 192.168.0.1, if that don't work try 68.27.190.219.
You do not have to configure the dns servers in linux unless you want to.
They should be set up for automatic. If not use either the
192.168.0.1address or the addresses on the wireless card dns. This
will be in the
network settings on the linux box.

------
Yippeeeeeee. It works....... (etc)

--
:-)~MIKE~(-:
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss