1

How to set static IP address for host in local network?

I have a several PCs connected in network via wi-fi.

Each of this PCs have local IP address (like 192.168.1.2).

After rebooting IP address can be different 192.168.1.2 or 192.168.1.3 and etc.

sibipi
  • 11
  • 2

1 Answers1

1

we assume you want to assign ip to eth0. you can assign ip from terminal like this :

sudo ifconfig eth0 192.168.0.1 netmask 255.255.255.0