Link to home
Start Free TrialLog in
Avatar of traigo
traigo

asked on

Set Static IP address

Please excuse the total noob question, but I'm still learning.  I have Debian Sarge 3.1 installed and setup.  I installed MySQL and Apache-SSL to run a web application.  The application is setup, connected to the database, configured, and running properly.  SSL is also working.  I just need to get my IP to be static so I can set up the forwarding in my router.  How do I setup the IP address to be static 192.168.x.x (only 1 adapter).

Thanks,

Traigo

It's not difficult but I'll give out the 500 pts just for humoring me.
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You need to edit /etc/network/interfaces so it looks kinda like this:

address 192.168.1.123
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

or alternatively you could:

apt-get install webmin webmin-core

which installs a handy little sysadmin server which makes everything easy to configure via a browser.