Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use static IP with router? 1

Status
Not open for further replies.

redss

Programmer
Oct 20, 2002
195
I have a linux box I use occasionally as a web server for development - it is kept in the closet without a monitor attached, since I only access it through telnet/ftp etc. It is connected to my home network router.

Problem is, when I turn it on, it uses DHCP to get an ip address, which is often differs from the previous time. So I don't know what IP to use to telnet to it, unless I attempt telnetting to a range of IP's until I hit it.

Is there a better way to find its IP? Someone suggested setting it to use a static IP, but I don't know if my 4 port router will support a static IP on one of its ports.
 
What router? Most routers won't have a problem with a static IP address. Some models allow you to reserve a block of addresses, for others you just use a static IP address that is outside of the default range. For example, if your router is assigning 192.168.1.100 through 192.168.1.150, set your linux box to use a static address of 192.168.1.10 and you should be all set.
 
Thanks for responding! I have the Belken 4 port router. its web-based interface has a screen that lets me disable DHCP, but I can't find a screen that lets me assign an IP to each port sequentially. A friend told me I can just disable DHCP on both the router and in my windows network settings, where I can add an IP... but in that case I don't see how the router can find out what my workstations IP is...
 
You don't assign IP addresses to specific lan connection ports. According to the online manual for a F5D5231-4, Belkin has a section for IP pool starting address and IP pool ending address. It looks like the default is 192.168.2.2 - 192.168.2.100 If this is true of your router, just set the linux box to 192.168.2.101 and you should be all set. You don't have to disable DHCP, because this address is outside of the DHCP range. The router will know where to send the data - that's what it does.
 
The only proviso is the IP you provide must be on the same subnet (e.g. IP 192.168.2.x and SN mask 255.255.255.0).

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top