Command to Change IP Address in Linux
RegisterLogin
Command to Change IP Address in Linux
Post Description: if you have a webune linux dedicated server, this command is useful if you ever need to change your servers ip address with just one command from the terminal shell.
Tags: command, to, change, ip, address, in, linux
This Post Was Posted On Feb 28, 2010 By Webune Support #3184
Post Description: if you have a webune linux dedicated server, this command is useful if you ever need to change your servers ip address with just one command from the terminal shell.
Tags: command, to, change, ip, address, in, linux
This Post Was Posted On Feb 28, 2010 By Webune Support #3184
Command to Change IP Address in Linux by Webune Support
lets say for example, i want to set the ip address of my ETH0 to 192.168.0.101 and a netmask of 255.255.255.0 i can use this command:
SHELL COMMAND:
ifconfig eth0 up 192.168.0.101 netmask 255.255.255.0 i
after you have set your configuration, you can restart your network:
SHELL COMMAND:
/etc/init.d/network restart
another way is to send this command if you have a RedHat, Fedora or CentOS server:
SHELL COMMAND:
setup
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Sat Dec 24, 2011 6:43 pm
Powered by: Webune Forums V3
Powered by: Webune Forums V3