Posts: 161
Threads: 48
Joined: Jan 2004
Reputation:
0
ok first the sob story:
Boo hooo! I live on the worst block in the U.S. ever. power is always goin out on me at least once a month, so much for taking the uptime crown....
ok now the issue:
Everytime the power goes out my box's inet addr changes, sometimes it's 192.168.1.101 sometimes it's 102 sometimes 103. usually 103. I have a linksys router that sits between 3 computers and the cable modem, and it forwards the nessesary ports for me, but when the inet addr changes i have to go in and change the addy for every port on the router. This is a pain in the neck. Is there any way i can have one inet address that never changes, and if so how do i do it? Is it a router thing or something i should set up on the box itself? Any help would be greatly appreciated. :)
Posts: 53
Threads: 8
Joined: Dec 2003
Reputation:
0
Hello,
You currently use dhcp enabled network, you can setup a static ip address from class 192.168.0.0/24, that means 253 usable ips except gateway, network, broadcast. You will need to set manualy the ip,netmask,gateway and the dns servers (more than one).
if you use linux, you could do that easy, especialy redhat/fedora typing 'netconfig' command from a root terminal (then configure it for your needs). If you use other linux you could do :
ifconfig eth0 192.168.0.100 netmask 255.255.255.0
route add default gw 192.168.0.nr (where nr is the last digit of the gateway server)
echo "nameserver ns.provider.com" > /etc/resolve.conf
echo "nameserver ns2.provider.com" >> /etc/resolve.conf
I hope that helps you
Posts: 3,631
Threads: 899
Joined: Dec 2003
Reputation:
0
thanks Kobras !
moved topic to networking.
cheers
anyweb