Create a connection with a fixed IP address

Asked by Victor Leser

The page on this subject "Create a connection with a fixed IP address" for 20.04 mentions in para 5. "Type in the IP Address and Gateway, as well as the appropriate Netmask." I wanted to do this for a IPv6 address for one of my computers.

The link to the documentation page is https://help.ubuntu.com/lts/ubuntu-help/net-fixed-ip-address.html.en

My first question is about Netmask, which is not shown on the relevant part of the Ubuntu 20.04 Settings page, where there is a box headed "Prefix". Should this replace the reference to Netmask?

The second question is about finding out the data to enter in the following:-

1 the Addresses boxes for IP address, Prefix, and Gateway,

2 the DNS box,

3 the Routes boxes for Address, Prefix, Gateway, and Metric.

I have tried to find them in the documentation and in askubuntu without success, and found lots of answers, but none that seemed to deal with my situation. So am asking if this could be added, or a reference given to some other source for a guide and explanation of how to obtain these pieces of information.

What I am looking for is a guide that I can use so I can follow the instructions in the documentation page and enter the information in the 9 boxes shown, including the tick-box at the bottom of the page labelled "Use this connection only for resources on its network".

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu ubuntu-docs Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#1
Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Why do you want to set a fixed IP address instead of DHCP?

For the confusion between "netmask" and "prefix":
In IPv4 the limits for directly reachable addresses are called "netmask", and its equivalent in IPv6 is called "prefix".

"The second question is about finding out the data to enter in the following: ..."

These data have to be defined by your network provider and depend on your local circumstances.
You have to ask your provider.

Revision history for this message
Victor Leser (redhill54) said :
#3

Hi

Thanks for your reply.

I wanted a fixed Ipv6 address for the reason explained in the quote below from the Ubuntu documentation.

"Most networks will automatically assign an IP address and other details to your computer when you connect to the network. These details can change periodically, but you might want to have a fixed IP address for the computer so you always know what its address is (for example, if it is a file server)."

I do have a fixed Full Stack Ipv4 address, set by my ISP. I do not know if that is enough to help the file server, or if having a fixed Ipv6 address would provide additional help.

I am not sure that it really is possible to have a fixed Ipv6 address, or even desirable, or that it will improve how the file server works, but do not like to feel that I cannot try it.

My lack of real technical knowledge is clear to me. I do understand that there are different addresses for my router's dealings with the internet, and the addresses for the network of my machines and the router. But I am not at all sure how to find the entries required in the Settings Network pages. So I thought I should ask the question.

Yours

Victor

Sent with ProtonMail secure email.

------- Original Message -------

On Tuesday, March 22nd, 2022 at 15:05, Manfred Hampl <email address hidden> wrote:

> Your question #701032 on ubuntu-docs in Ubuntu changed:
>
> https://answers.launchpad.net/ubuntu/+source/ubuntu-docs/+question/701032
>
> Manfred Hampl proposed the following answer:
>
> Why do you want to set a fixed IP address instead of DHCP?
>
> For the confusion between "netmask" and "prefix":
>
> In IPv4 the limits for directly reachable addresses are called "netmask", and its equivalent in IPv6 is called "prefix".
>
> "The second question is about finding out the data to enter in the
>
> following: ..."
>
> These data have to be defined by your network provider and depend on your local circumstances.
>
> You have to ask your provider.
>
> --
>
> If this answers your question, please go to the following page to let us
>
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/ubuntu-docs/+question/701032/+confirm?answer_id=1
>
> If you still need help, you can reply to this email or go to the
>
> following page to enter your feedback:
>
> https://answers.launchpad.net/ubuntu/+source/ubuntu-docs/+question/701032
>
> You received this question notification because you asked the question.

Can you help with this problem?

Provide an answer of your own, or ask Victor Leser for more information if necessary.

To post a message you must log in.