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.
Linux Networking

Avatar of undefined
Last Comment
alextoft

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ravenpl

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
alextoft

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.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes