Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-11-2004, 12:30 AM
|
#1
|
Member
Registered: Sep 2003
Distribution: slackware
Posts: 85
Rep:
|
networking adsl sharing usb ( many questions)
i am looking seriously at getting adsl the company i have chosen has
free usb modem i have found a generic usb modem linux driver that is suposed to support the dsl-200 modem.
i want to share a connection between the flat next running windows 98 (and possibly another computer) i
am running slackware 9.1 (kernel 2.6.1 & 2.4.22). the modem is a d-link dsl-200 i want to use a pentium II 233mhz computer as the server is there any chance if the linux driver doesnt work as well as expected i.e hanging slow connection ect i could use windows 2000 as the server
and slackware & win98 as the clients i know this seems ridiculous but the setup fees are to much already and i have no real networking experience i cannot afford an ethernet modem for the time being.
what i want to achieve is have the 2 or 3 clients connected to the server dividng the bandwidth evenly e.g 1.5 Mps with 500 Kbs each between 3. I know I have a long road ahead of me is it possible to practice with my existning dial up using ip masqerade and samba howto's will this info still be benificial relavent to adsl.
if anyone has any advice for me that would be great i need some howto's
i will keep posting on this topic as i know more and have any success or obsticles thanx in advance.
ps i meant to post this in linux networking not wireless networking if a moderator could move it i would appreaciate it thanx
Last edited by david_ross; 01-11-2004 at 07:55 AM.
|
|
|
01-11-2004, 12:06 PM
|
#2
|
Member
Registered: Oct 2003
Posts: 47
Rep:
|
I'm a little confuse but..
What you really want is an external DSL router/modem. Call your potential DSL provider and ask them about it. They usually use NAT. All you have to do is use DHCP behind for your clients and it works. It is also very secure.
|
|
|
01-12-2004, 04:56 PM
|
#3
|
Member
Registered: Sep 2003
Distribution: slackware
Posts: 85
Original Poster
Rep:
|
if i have a dsl router modem will i still beable to control the traffic using a linux box you will have to excuse me but i havent any experience wilth networking and dont know much about adsl hardware but i heard if you get an adsl router modem and use it on a lan server it will conflict with the server as both will attempt to control traffic what i really want do do is controll bandwidth is there an easy way to do that with a router modem or would i be better of vontrolling the traffice with the linux box
Last edited by oobe; 01-12-2004 at 07:00 PM.
|
|
|
01-12-2004, 09:33 PM
|
#4
|
Member
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
|
2000 using ICS
The short answer to your question about using Win2000 as the server is, Yes.
You would enable Internet Connection Sharing on your PPPoE connection you create in Win2000. This will probably be done using a proprietary client your IPS will give you.
Once ICS is enabled it will automatically set your NIC's IP address to 192.168.0.1 and enable a DHCP server on that interface.
Set your clients to get an IP through DHCP and you're ready to roll.
Your Win2000 machine will pass DNS queries too, so no worries w/ your /etc/resolv.conf.
Hope this helps!
MrKnisely
|
|
|
01-12-2004, 10:31 PM
|
#5
|
Member
Registered: Sep 2003
Distribution: slackware
Posts: 85
Original Poster
Rep:
|
so i would set my slakcware box to resolve 192.168.0.1 and confiure its nic tp as 192.168.0.2 or somthing how what file would i put it io thought it would be /etc/resolv.conf
|
|
|
01-13-2004, 09:19 AM
|
#6
|
Member
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
|
Settings for Slackware...
If you are using your Win2000 box as the gateway for your network to the internet and you have enabled Internet Connection Sharing on it your client configuration would be simple:
Set your interfaces on your clients to recieve their addressing via DHCP. This will pass the propper settings (IP add, mask, DNS, Gateway, etc) to your clients without you needing to manually configure them.
If you need assistance as to how to set your Slackware machine's NIC to DHCP, you'll have to get a Slackwear guy to respond; I've never worked with that flavor. I'd assume it would either be in /etc/networks or /etc/sysconfig/network-scripts/ifcfg-ethX (X being your eth0, eth1, etc).
Hope this helps!
MrKnisely
|
|
|
01-13-2004, 09:28 AM
|
#7
|
Member
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
|
More on the Win2000 box....
To the best of my knowlege you will not be able to do any bandwidth flow control/throtteling with you Win2000 box. It is simply acting as a basic router.
What you are wanting to do with controlling bandwidth is a function within Microsoft's ISA Server. ISA is a large and EXPENSIVE product that is not user friendly to operate, and it runs on Win2000 Server; it's not what you want to use.
I'd say your best bet to get done what you actually want to do is to use a Linux box as your Gateway and scrap the Win2k idea. Win2k simply does not have the functionality to do anything but route.
MrKnisely
|
|
|
01-16-2004, 08:20 AM
|
#8
|
Member
Registered: Sep 2003
Distribution: slackware
Posts: 85
Original Poster
Rep:
|
the win2k idea isnt that good i know i have bought a book on tcp/ip and am reading will post back to let you know how i go when i finally get my dsl service i only wanted know about win2k as i dont have the money yet for a ethernet adsl modem and the usb one is free and dont anticpate having much success with the usb modem under linux from what i have read i have found some documantation on the usb modem that was translated from french it says it works with a set of certain drivers but it doesnt work well this would only be a temporay arroangment if it happens at all.
|
|
|
01-18-2004, 09:24 AM
|
#9
|
Member
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
|
Win2000 will be functional
Windows 2K will work as your network gateway for the time being. It's really just that you will not be able to implement your bandwidth throtteling plan.
There isn't really any nead to read up on TCP/IP except for your own benefit. The Win2K solution will take care of it all for you.
Once you have installed your USB "modem" you will have a new connection listed in your "Network and Dial-up Connections." Right click on this new connection and choose "Properties." Go to the Sharing tab and click the check box that will enable "Internet Connection Sharing."
This will set your Win2K's IP address to 192.168.0.1 automatically and start a DHCP server on your Win2K machine.
Now all you need to do on your clients is make shure they are plugged into the network and that their NIC settings are set to get and IP address via DHCP. That's all.
Now, when your Slackware machine boots it will broadcast for and IP address. The Win2K machine will then assign and IP address to it and it will know how to get out to the internet. It's that simple.
There is no need to dig more deeply into the TCP/IP stack for this project.
Hope this helps!
MrKnisely
|
|
|
01-21-2004, 08:11 PM
|
#10
|
Member
Registered: Sep 2003
Distribution: slackware
Posts: 85
Original Poster
Rep:
|
Re: Win2000 will be functional
thank you were very helpfull i was just wondering about
Quote:
Originally posted by charon79m
Now all you need to do on your clients is make shure they are plugged into the network and that their NIC settings are set to get and IP address via DHCP. That's all.
Now, when your Slackware machine boots it will broadcast for and IP address. The Win2K machine will then assign and IP address to it and it will know how to get out to the internet. It's that simple.
|
how do i set the clients ip or will win2k assign the ip automatically would i just do somthing like ifconfig 192.168.0.2 eth0 up or somthing in rc.local this connection will be static if that makes it easier
|
|
|
01-21-2004, 09:06 PM
|
#11
|
Member
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
|
Client Configuration
By default your NIC's on your clients should be set to get their IP addresses automaticaly via DHCP.
You can simply make shure they are plugged into the network then boot the system and run ifconfig to see if you got an ip address.
If you want to set your addresses manually you can use the ifconfig command but the context would be:
ifconfig eth0 192.168.0.2
This is only setting the IP address though. There are other settings that will need to be set in order to get your machine out to the internet via your Win2000 router... and you will need to input these settings each time you reboot. Just use DHCP unless you're willing to learn what you are actually doing.
MrKnisely
|
|
|
01-29-2004, 10:37 PM
|
#12
|
Member
Registered: Sep 2003
Distribution: slackware
Posts: 85
Original Poster
Rep:
|
i did it i have saved enough money and placed an order a week ago will be waiting for them to make a direct debit. I ordered a dratek 2500 we with a 4 port router so sharing a connection should be easy now will let you know how it went thank to everyone
cheers
Last edited by oobe; 01-29-2004 at 11:03 PM.
|
|
|
All times are GMT -5. The time now is 06:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|