View Single Post
  #1 (permalink)  
Old 04-27-2007, 06:25 PM
chiku's Avatar
chiku chiku is offline
Member
User
 
Join Date: Feb 2005
OS: Fedora
Posts: 80
Thanks: 7
Thanked 1 Time in 1 Post
Rep Power: 6
chiku is on a distinguished road
Lightbulb Howto change ip address in Linux

Ok this one of those tricky question and answer is use ifconfig command:

Display current IP address
Code:
ifconfig eth0
ifconfig -a
Set new IP to 192.168.1.10
Code:
ifconfig eth0 192.168.1.10
Set new IP to 192.168.1.10 with netmask
Code:
ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
See A detailed and step by step howto :
Howto Red hat enterprise Linux 5 configure the network card | Frequently Asked Questions
__________________
There's no place like 127.0.0.1
Reply With Quote