bt ~ # ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:03:11:0B
inet addr:192.168.1.24 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe03:110b/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:89485 errors:0 dropped:0 overruns:0 frame:0
TX packets:117393 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27761491 (26.4 MiB) TX bytes:15161867 (14.4 MiB)
Interrupt:9 Base address:0×1080
You can change ip address using ifconfig command itself. To set IP address 192.168.1.25, enter command:
# ifconfig eth0 192.168.1.25 netmask 255.255.255.0 up
# ifconfig eth0
PS://make sure no 1 are using 192.168.1.25 at your LAN.
To make permanent changes to IP address you need to edit configuration file according to your Linux distribution.
Also See:
No user commented in " howto: Linux change IP address "
Follow-up comment rss or Leave a TrackbackLeave A Reply