rshooper76
asked on
Linux - Change IP Address
I have a customer that is using a Toshiba Magnia SG20 as a web server. We need to change th IP Addrress on this server. Normally I woul log onto the console and do just that, but sinc ethere is no monitor and keyboard on this device, what is the best way for me to change the IP Address?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It is running Debian. I have used ifconfig commands to change this IP Address, but won't the IP Address change back when it's rebooted?
The answer is the /etc/network/interfaces for debian.
Look for the line that has the interface you want to change, most probably eth0, but it could be another (Please do a ifconfig and check!)
Here is how a static IP looks :
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
Look for the line that has the interface you want to change, most probably eth0, but it could be another (Please do a ifconfig and check!)
Here is how a static IP looks :
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
ASKER
I actually found this on my own, but goign to etc/network/interfaces is exactly what I did. Thanks.
Goodluck,
Rajen