Ubuntu – How to set static IP address

networkingvirtualbox-networking

I have configured network adapter of guest Ubuntu to work in a bridged mode so I could ssh to it from the host machine.

The problem is that the guest Ubuntu ip address keep changing.

Even though it changes
within a very short range 192.168.0.4-10 it is still takes time to configure Putty and other programs each time.

Is there a way to make the guest Ubuntu ip address to be static?

My guest OS has the full GUI.

Best Answer

To give static ip address graphically

1.Go to network connections

2.Then edit the connections in the wired settings

3.Add the ip address for the system

Here are the images below

Network Connections

Network-connections![

If you are curious, You can find newly created connection from the above steps as configurations file at /etc/NetworkManager/system-connections