Nylemor Solutions

showcase930x280-5.jpg

Blog

Change Ethernet IP in Linux

To show entire connections type:

ifconfig -a

To show only a specific connection:

ifconfig eth0

To Change ethernet ip address in linux machine just type the following fom the console:

ifconfig ethx xxx.xxx.xxx.xxx

where x represent a number

example: ifconfig eth0 192.168.1.2

To Change ethernet ip address/subnet in linux machine just type the following fom the console:

ifconfig ethx xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx

where x represents a number

example: ifconfig eth0 192.168.1.2 netmask 255.255.255.0

 

You are here Blogs