Linux - NetworkingThis 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.
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.
Distribution: Redhat 9.0 was but now like Fedora Core 2
Posts: 57
Rep:
Static IP Address
Hi
Although I am studying an IT degree, I am still pretty new to all of this.
My question is in regard to static IP addresses. How do I get a static IP address so that i can run a full time web server? IS this something I need to get from my ISP or is it something I have to apply to another organisation for?
Talk to your ISP. If you're on cable/DSL chances are you've been assigned one, but they'll probably yell at you for running servers ... but what they don't know can't hurt them right?
Most Australian ADSL providers dont issue static IP's. Some will assign you one if you ask, and charge you $20 a month or so for it. Others only allow it on their business plans.
I use TPG how ever, with unlimited downloads and a static IP standard, as well as allowing servers, its good value at $70/mo for 256k and $80/mo for 512k
Other than that you can buy a domain, then signup with www.dyndns.org who can have that domain pointed to your dynamic IP, with in about 5 seconds of updating thier database with the new IP, via a client program running on your computer.
I have use it with one of the subdomains they provide free. And it was very stable and reliable. I have a static IP now, so its not much of a concern with me.
One of my instructors uses with with his Telstra ADSL connection and speaks very highly of it.
Distribution: Redhat 9.0 was but now like Fedora Core 2
Posts: 57
Original Poster
Rep:
I might try that then. I am with Telstra and they want to charge me ADSL Subscription + $20 per month + 20c per Mb Dowload from what I can read.
This may be a stupid question, but when I have 2 computers on the same router, does each computer have a seperate IP address or do they share the same when on the net?
Last edited by bytebrowser; 06-14-2003 at 06:52 PM.
Distribution: Redhat 9.0 was but now like Fedora Core 2
Posts: 57
Original Poster
Rep:
yeah that's right, but what i don't understand is that the external IP address will point at the router, but from there how do things happen? ie. how will the outside world know to go to the linux box directly. is there some concatinated IP address like 144.139.135.89.192.168.0.1 or how does it work?
its a setup called NAT (Network Adress Translation) i think in the packets that it sends, it encapsulates the internal IP, so when the packets are sent back, it knows what internal IP to forward the data on to. try doing a google search for NAT or Network Adress Translation.
You will need to setup port forwarding on your router though. You want the router for forward all requests made on port 80 to go to ur linux box. port 80 is the standard http port.
Network Address Translation quite literaly means what it says.
192.168.*.* networks do not exist on the internet. This means yo can use them internally without clashing with a real internet site.
The downside of this is that if you send a packet to an internet host with a source address of 192.168.0.1, which will get there as the internet does not check source addresses of packets, the host will have no way of responding to you as the network you appear to be comming from doesn't exist.
So we have to use NAT to pretend that you are comming from a real network.
When an inside (your lan) host sends packets to an outside (the internet) host the source address of the packets is edited so that what used to read 192.168.0.34 now reads 144.139.135.89.
Outside hosts can now respond to the globally unique address and because the NAT box (your router) builds a translation table to keep track of outgoing sessions it can translate the destination address of the packets comming back.
So NAT does the job, however Incomming connections now have a problem.
No one can HTTP to your inside address as it doesn't exist from the internets point of view. Of course they can connect to your real global address, but because your router doesn't have a port 80 listener, anyone trying to HTTP to your global address won't succeed. Unless you tell your router to forward requests for this port to somewhere else (i.e your inside web server). Once you tell the router where port 80 connect requests are sent, it will NAT and forward the request to the inside host.
(some routers have management access via port 80 which you may need to turn off as it may override any port forwarding you configure).
It has a section on nat and how to configure it. You can do it all from a browser page by the looks of it. The way I read it, you need to enable nat on the PPPoE interface, then add a 0.0.0.0 nat entry which takes care of the dynamic address problem.
Also if you only have one externally accessible server then simply add a default server entry to your server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.