LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-23-2005, 02:23 PM   #1
Pyr00
LQ Newbie
 
Registered: Feb 2005
Location: KS
Distribution: Suse Pro 9.2
Posts: 9

Rep: Reputation: 0
Internet sharing through router


I have a Windows XP system connecting through a USB cellphone as a modem. It connects at 1015kbps!! for 15 dollars a month and since we live in the country, it has become our primary internet connection.
I have a router and the XP and my SUSE 9.2 system both using static IP adresses.
XP 192.168.8.4
SUSE 192.168.8.3
Router 192.168.8.1
Both XP and SUSE are connected to LAN ports on the router.It has a WAN port , but i didn't think i could use it since i would be connecting a computer and not a modem.



My problem is that I don't know what to do in SUSE to get internet working. I have connected using the cellphone on the SUSE box and that works fine, but when i try to get the internet connection through the router it doesn't work.


hopefully thats clear and I didn't forget anything
Thanks
 
Old 02-23-2005, 02:29 PM   #2
floog
Member
 
Registered: Oct 2004
Posts: 65

Rep: Reputation: 15
Re: Internet sharing through router

Holy Guacamole that sounds truly awesome.
Never heard of this before.

Questions: Are you using any special software on the WinBox to connect to the net using the cellphone.

Do you know if the protocol used to connect is DHCP?


Quote:
Originally posted by Pyr00
I have a Windows XP system connecting through a USB cellphone as a modem. It connects at 1015kbps!! for 15 dollars a month and since we live in the country, it has become our primary internet connection.
I have a router and the XP and my SUSE 9.2 system both using static IP adresses.
XP 192.168.8.4
SUSE 192.168.8.3
Router 192.168.8.1
Both XP and SUSE are connected to LAN ports on the router.It has a WAN port , but i didn't think i could use it since i would be connecting a computer and not a modem.



My problem is that I don't know what to do in SUSE to get internet working. I have connected using the cellphone on the SUSE box and that works fine, but when i try to get the internet connection through the router it doesn't work.


hopefully thats clear and I didn't forget anything
Thanks
 
Old 02-23-2005, 02:30 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Most importantly, you'll need to enable Internet Connection Sharing on the XP box. Then you should be able to get online.
 
Old 02-23-2005, 07:25 PM   #4
Pyr00
LQ Newbie
 
Registered: Feb 2005
Location: KS
Distribution: Suse Pro 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
I am using dial up connection manager or whatever default program XP uses to dial up. It is a dynamic IP,but does I don't know if that means it's using DHCP....

And I do have internet connection sharing enabled on the XP box , but I just tried it again and internet still didn't come up.And now, although I don't remember changing anything, I can't ping the XP box from the SUSE box, although i can ping the SUSE from the XP....It says PING 192.168.8.4 (192.168.8.4) 56(84) bytes of data. (and then something like) can't complete. sndmsg disabled.
I can ping the router from the SUSE box, and the XP box can ping itself...

So I should be ok plugging the XP box with internet into a LAN port and not the WAN port?

sorry ,that's really confusing but I don't know how to state it better.
Thanks
 
Old 02-23-2005, 07:27 PM   #5
Pyr00
LQ Newbie
 
Registered: Feb 2005
Location: KS
Distribution: Suse Pro 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
Oh, and just so you know, I really haven't done any software settings in SUSE. I've put down the IP, and the default gateway as the router and I tried the default gateway as the computer with internet, neither worked. But that is all I have done in SUSE. I feel like i should have some more settings to set , but I wouldn't know what they are.

Thanks
 
Old 02-23-2005, 07:40 PM   #6
bareego
Member
 
Registered: Nov 2003
Location: Brisbane, Australia
Distribution: Crux 2.0
Posts: 66

Rep: Reputation: 15
Basically what you have to set on the clients are 2 settings once you can ping the router (the XP box running ICS)

The lan IP of the router is your Gateway/default route.
I guess Suse has some GUI tool to set it, in CLI it would be something like
Code:
route add default gw 192.168.8.4
The way you use your router at the moment it just acts as a switch, not a router.
So what you tell your computer is to send all the packets that are not for the local lan to the internet.
Because the machine who actually acts as a router is your XP machine you use it's IP as your Gateway.

After setting this you should be able to ping internet addresses like eg 203.2.75.12 from the suse box.

Secondly your computer has to know the IP of a computer that acts as a DNS server, which means it will translate
URLs (eg www.yahoo.com) into an IP. Without this you won't be able to browse webpages.

Find out what the primary/secondary DNS of your internet service provider (ISP) is and put those 2 IPs into the right place
in the SuSe GUI tools. If you wanted to use the CLI instead you could also edit the file /etc/resolv.conf
In there put 2 lines with the DNS IPs (xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy) of your ISP as follows :

Code:
nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy
After that you should be able to ping eg www.yahoo.com and browse the web.
Tell us how you went.

Cheers
Newbee

PS: You could also use the router as a router but then you'll have to setup the router as such and do some more changes.

Last edited by bareego; 02-23-2005 at 07:43 PM.
 
Old 02-23-2005, 07:50 PM   #7
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
Your IP Range has Changed

When you enable Internet Connection Sharing, your LAN interface on your XP box automatically changes to 192.168.0.1 and it enables a DHCP server on your XP box.

Suse will need to be readdressed to a 192.168.0.X address with a Default Gateway of 192.168.0.1. DNS should be pointed to a public DNS server, or to the XP box. That should get you out to the Internet.

It is also good to note that you may be breaking the terms of service of your cell connection. I have looked into this solution through Verizon and Sprint in this area, and they both say that you cannot provide service to other machines.

Hope this helps.

MrKnisely
 
Old 02-23-2005, 08:33 PM   #8
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
Quote:
Most importantly, you'll need to enable Internet Connection Sharing on the XP box. Then you should be able to get online.
Can you elaborate on this? Because in this config it makes absolutely no sense to set ICS.


he has touter connected to the network and two boxes (independently connected to the router)
Quote:
I have a router and the XP and my SUSE 9.2 system both using static IP adresses.
XP 192.168.8.4
SUSE 192.168.8.3
Router 192.168.8.1
Both XP and SUSE are connected to LAN ports on the router
In other words maybe you have not understand the configuration.

SuSE NIC config:
IP address 192.168.8.3
Gateway 192.168.8.1
mask 255.255.255.0

edit /etc/resolv.conf and add
nameserver ip.address.of_your_primary_DNS_server
nameserver ip.address.of_your_secondary_DNS_server

IP addresses of your DNS you can get from windows box (or call admin)

That is all no ICS or any other magic.


forgot:
this one is wrong too:
Quote:
route add default gw 192.168.8.4
flush SuSE routing table.

Last edited by broch; 02-23-2005 at 08:35 PM.
 
Old 02-23-2005, 09:34 PM   #9
Pyr00
LQ Newbie
 
Registered: Feb 2005
Location: KS
Distribution: Suse Pro 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
Ok, so i think i do need ICS on ,cuz i have the internet going through a computer to the router, not from a modem to a router. But anywayz ,maybe i was wrong earlier, but i REALLLY thought i could ping the XP from the SUSE, but i can't at all, i can ping every possible which way except from SUSE to XP.
so let me explain stuff over again and see if i can make it clearer

My router
IP 192.168.8.1
dhcp disabled


XP Box
ICS enabled, firewall off, USB modem with dynamic IP
IP 192.168.8.4
Gateway: i have tried blank and 192.168.8.1


I have a suse box with its settings at
IP 192.168.8.2
Gateway: i have tried both 192.168.8.4 , and 192.168.8.1
dns 68.28.82.11
68.28.90.11


with those settings, i can't ping the XP box from SUSE, but i can ping everthing else from everywhere.

sssorrry , and thanks.
 
Old 02-23-2005, 10:15 PM   #10
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
Quote:
Ok, so i think i do need ICS on ,cuz i have the internet going through a computer to the router, not from a modem to a router.
so is SuSE connected to the commputer or router? In the first post you have stated that suse is connected to the router so what is it?


what is your config?
internet <-> windows <-> router <-> SuSE
or SuSe
internet <->router <
windows xp

in the first situation windows has two NICs
one with dynamic IP address connested to the internet
second cart with static adress connected to the router. So first you need to configure router so it will connect properly with windows. It is guite simple.

Anyway, if SuSE is connected to the router, then for SuSE router's IP address is gateway.
I suspect that right now you have mess instead of network connection

If SuSE is connected to the net through router then using windows IP address as a gateway makes no sense. SuSE will care less how router is connected, however if you did not properly configure router then connction will fail.

Quote:
XP Box
ICS enabled, firewall off, USB modem with dynamic IP
IP 192.168.8.4
Gateway: i have tried blank and 192.168.8.1
this statement only suggest misconfiguration. If windows works as a router, then for windows gateway is the external address from LAN.

you shoud have
modem <-> NIC1(dynamic IP, mask, external gateway on your LAN) -windows-NIC2 (IP192.168.4) <->router (IP address 192.168.8.1, gateway 192.168.1.4, mask) <->NIC-SuSE ip address 192.168.1.8.2, gateway 192.168.8.1, mask)
all should have DNS
68.28.82.11
68.28.90.11
 
Old 02-23-2005, 10:35 PM   #11
Pyr00
LQ Newbie
 
Registered: Feb 2005
Location: KS
Distribution: Suse Pro 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
Ok.
My XP box has a USB modem as its internet source
It has one NIC connected to the router
I now have its gateway to the routers IP(192.168.8.1)

My SUSE box needs to get internet from the XP computer, so I plugged it into the router. My SUSE box has a gateway of 192.168.8.1 as well now.

so i guess my configuration would be
internet <-> windows <-> router <-> SuSE
because XP has the internet connection.
Sorry if I didn't do the other stuff you said, the thing I got out of it that applied was to change my gateways to the router, which i did.
But anyways, i still can't get internet.
I think the first thing i need to fix is the fact that i can't ping the XP machine FROM SUSE but i can ping SUSE from XP.
Thanks for the patience
 
Old 02-23-2005, 10:38 PM   #12
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
what is gateway address in your Windows box?
 
Old 02-23-2005, 10:40 PM   #13
Pyr00
LQ Newbie
 
Registered: Feb 2005
Location: KS
Distribution: Suse Pro 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
right now it is 192.168.8.1 but like 5 minutes ago it was set to nothing
 
Old 02-23-2005, 10:45 PM   #14
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
this may help
http://www.windowsnetworking.com/articles_tutorials/w2kusbip.html
 
Old 02-23-2005, 10:53 PM   #15
Pyr00
LQ Newbie
 
Registered: Feb 2005
Location: KS
Distribution: Suse Pro 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks but i get the impression thats for connecting computers with a USB cable and integrating it to an ethernet network. Shouldn't i just be able to treat the cell phone as a normal modem, it shows up in windows XP as a USB modem, and has all the same traits as a modem or ethernet card.

i wont be back till tommorow, thanks for the help ,sorry im so difficult
 
  


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
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
Sharing a connection with a router. KohlyKohl SUSE / openSUSE 4 12-21-2004 11:58 AM
DSL Ethernet USB Combo Router + Internet Sharing kenny_zzz Linux - Networking 0 02-28-2004 03:05 AM
File sharing and internet sharing mullet Linux - Networking 1 10-14-2003 01:30 PM
Sharing Internet through Linksys Router ! SuseBoy Linux - Networking 2 09-01-2003 02:09 PM

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

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