Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 recently added a dlink router between my comp and the modem so that i can have my comp and my xbox on the internet at the same time. however, i need to configure the router so that i can have people still access my site and to do this i need to know my ip address. how do i find it and how do i keep it from changing. thanks
Check your router's configuration page. It should tell you everything you need to know. Your router will have your external public IP address, and it probably has a DHCP server that hands out private IPs to computers on your internal LAN. You should be able to input your Linux box's IP and make sure it always gets the same internal IP, or simply assign your Linux box an IP outside the range given by DHCP on your subnet. You'll want to set up port forwarding between your router and your Linux box -- again, check the router configuration.
As for getting a permanent public IP address, if your ISP uses DHCP you can't unless you upgrAade to a plan with a static public IP.
i think the last guy got confused, what i need is the ip address of the linux box itself, that is the only thing i dont know. basically the linux equivelent of the ipconfig command from windows
Oh, well in that case ifconfig (one letter difference ). Your initial post was vague, though, as to which IP address you needed. You should be specific as to exactly what you need.
Use the redhat-network-config script to reconfigure a static IP address. Make sure it isn't in the range that would be assigned by the router's DHCP server.
Configure the router to forward the appropriate ports to the static IP address you assigned.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.