Replace '''eth0''' with the name of your Ethernet interface.
Replace '''eth0''' with the name of your Ethernet interface.
+
+
====macOS====
+
----
+
To set up a Static IP on a macOS follow the steps, you must first press '''"Apple" logo''' button in the top left corner and select "'''System Preferences...'''".
+
+
+
[[File:Static IP on mac OS settings button.png]]
+
+
+
[[File:Static IP on mac OS system preferences button.png]]
+
----
+
When in the '''System Preferences''' window, click '''Network''':
+
+
+
[[File:Static IP on mac OS Network button.png]]
+
----
+
Next, on the left side of Network settings window, right-click on the Network connection associated with your Ethernet adapter and on the right side of Network settings window select '''Manually''' in the '''"Configure IPv4:"''' option field:
+
+
+
[[File:Static IP on mac OS system network settings.png]]
+
----
+
Finally, enter a static IP for your PC (e.g., '''192.168.1.1''') and Subnet mask - '''255.255.255.0''' then press '''"Apply"''' for saving the changes: