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.
I'm really new to this, but I would like to run Apache as a local web server for my little cluster of workstation running DHCP on a 4-port router (d-link). Apache (httpd.conf) wants a name/IP.
What is the trick here? Am I free to assign names behind my router (eeny, meanie, mynie, moe), or is there more to it than that?
OK, the d-link supports virtual servers. The help page indicates that I can get to the server (port 80?) from the WAN. I think that my DSL provider will block that, but I really want to run an internal server anyway.
How do I tell the Linux box what name to respond to on the LAN (inside the router)? (How do you put a DHCP IP number in the /etc/hosts file?)
Your name doesn't really matter on your LAN, because your computers won't be able to resolve that name to an IP unless all of them have your IP recorded in their hosts files. Windows computers I know do not refer to their host file most of the time, just go straight to the ISP. Linux computers will, but I don't see much point in putting a name in all of your LAN's computers.
Apache doesn't really care what your name is, it just responds to whatever's on port 80 or whatever you set it up as.
So if you really wanna put a server name into Apache, I'd just put your LAN IP.
For the other LAN computers to connect to the Apache computer, just type in the IP address unless there's a big problem with doing so.
I'm not a frequent user. Is it necessary for me to query the Apache server before I know what IP to point my browser to? This is what buggers me about DCHP. The computers on my LAN are a Mac (OS-9), Win-XP, and the FC2 server.
It looks like I will have to get used to logging into my router (admin passworded) to find out what IP numbers are in use today. I am really not excited about teaching my Mac user how to do this, just to see the web pages....
once you assign an IP to the mac address of the lan web server (192.168.0.111, for example), make the IP static. then all the computers on your network can always access the web server at that IP.
Last edited by synaptical; 08-09-2004 at 12:26 AM.
As I have admitted to being a newbie, "make the IP static" is like magic to me. Does FC2 have a wizard to help, or must I muddle through man "everything netlike" to find the obscure set of commands to do this?
as i said, it should be a setting in your router. i have one of the most basic d-link routers, dl-604, and it has the option to use the router as a DHCP server for the lan and to set IPs statically. maybe your router doesn't allow that, but afaik, most routers do allow it. read the documentation for your router, or post the model if you can't figure it out so someone can help you do it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.