Results 1 to 8 of 8
Thread: Assigning an IP
-
08-27-2005, 05:00 PM #1Retired Moderator
- Join Date
- Apr 2005
- Posts
- 3,499
Assigning an IP
Hey guys,
I just finished setting up a new pc in my home network for file backups. It's running CentOS 3.5. Its on my main home network, which is connected to a Linksys router.
Now I had this thing running fine, and then the IP changed and screwed up my backup system.
So I am looking for a guide or tutorial or something on how to give this server a static IP. Can anyone help me?
Thanks in advance,
-
08-27-2005, 05:07 PM #2Aspiring Evangelist
- Join Date
- Jul 2004
- Posts
- 379
Release your DHCP table and turn everything off including the router. Turn on your router. Turn on the backup system. This way it is assigned the first ip (assumably 192.168.1.100). Just make sure the backup system is always on and it will always be assigned 100. I have tried to make it keep the IP although I think the max you can do is a day before it expires.
-
08-27-2005, 05:22 PM #3Web Hosting Master
- Join Date
- Apr 2004
- Posts
- 1,834
Re: Assigning an IP
Originally posted by adb22791
So I am looking for a guide or tutorial or something on how to give this server a static IP. Can anyone help me?
Hit the Advanced tap, then Static Routing tab.
Make your Static entry
Destination Lan IP: 192.168.1.200 (above DHCP IP's)
Subnet Mask : 255.255.255.0
Default Gateway 192.168.1.1
And add this setting to hit Nic interface on your server, and you will be live.
You can setup port forwarding so anything that comes in over a certain port is forwarded to this IP, typically guys that run webservers over cable will port forward port 80 to their static IP on their LAN.██ Ray Womack @ atOmicVPS LTD
██ Linux & Windows Cloud Hosting Solutions Powered by OnApp
██ Fully Managed [Shared] ► [Reseller] ► [Cloud VPS] ► [Dedicated]
██ Featuring the atOmicSTACK™ ● Speed ● Performance ● Reliability
-
08-27-2005, 05:29 PM #4Retired Moderator
- Join Date
- Apr 2005
- Posts
- 3,499
Thanks PSF, I'll give that a try.
-
08-27-2005, 08:23 PM #5Retired Moderator
- Join Date
- Apr 2005
- Posts
- 3,499
Ok, my Linksys router control panel looks a bit different from yours.
When I got to static routing I have these fields:
Destination LAN IP:
Subnet Mask:
Default Gateway:
Interface: (WAN or LAN&Wireless)
I'm guessing I should put in...
Destination LAN IP: 192.168.1.200
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
Interface: LAN & Wireless
Am I right or wrong?
Thanks again,
-
08-27-2005, 08:42 PM #6Web Hosting Master
- Join Date
- Apr 2004
- Posts
- 1,834
yes, probably, usually, there is a setting to declare which IP's are assigned by DHCP, I just picked a high one, it us usually the first 50 or 100 IP's, so therefore, the.200 in the range can be statically assigned without conflicting with the DHCP IP's. I hope that makes sense.
██ Ray Womack @ atOmicVPS LTD
██ Linux & Windows Cloud Hosting Solutions Powered by OnApp
██ Fully Managed [Shared] ► [Reseller] ► [Cloud VPS] ► [Dedicated]
██ Featuring the atOmicSTACK™ ● Speed ● Performance ● Reliability
-
08-27-2005, 10:18 PM #7Web Hosting Master
- Join Date
- Mar 2005
- Location
- NY USA
- Posts
- 839
Sounds to me you need to set the IP of the server...
Typing 'setup' at the command line as root will bring up the "Text Mode Setup Utility" with several options including "Network Configuration"
Choose "Network Configuration
"Would you like to setup networking?"
Yes, of course you do
Uncheck the box that says "Use dynamic IP configuration"
Enter the settings you want below depending on your IP address/gateway/netmask/dns
Or edit it manually
pico /etc/sysconfig/network-scripts/ifcfg-eth0
it should look something like this
[root@LVPS1 root]# more /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=66.199.***.***
NETMASK=255.255.255.***
GATEWAY=66.199.***.***
[root@LVPS1 root]#EZZI.net - A Service of Access Integrated Technologies Inc
Running data centers, nationwide data network, and world-wide VoIP network.
http://www.EZZI.net sales@ezzi.net
-
08-28-2005, 02:00 AM #8Temporarily Suspended
- Join Date
- Feb 2004
- Location
- USA
- Posts
- 1,572
Re: Assigning an IP
Originally posted by adb22791
Hey guys,
I just finished setting up a new pc in my home network for file backups. It's running CentOS 3.5. Its on my main home network, which is connected to a Linksys router.
Now I had this thing running fine, and then the IP changed and screwed up my backup system.
So I am looking for a guide or tutorial or something on how to give this server a static IP. Can anyone help me?
Thanks in advance,
if you have dynamic ip, try using this tool,
http://www.no-ip.org
http://www.no-ip.com/downloads.php?page=linux
http://www.no-ip.com/guides.php/id/13
Enjoy
Cheers,