Set static IP on Ubuntu Core
I'm new to Ubuntu Core. On first login I selected the option:
Will use DHCP for IPv4
Now I'd like to change my machine to use a static IP to be easier to log in remotely.
I ran sudo console-conf
on the machine (over ssh, if relevant). This gives me the option to select Use a static IPv4 configuration
, which I do.
This gives me the fields subnet
, address
, gateway,
name servers, and
search domains`. What should I set for these fields? I would like my IP address to be 192.168.1.101. It is currently 192.168.1.13 from DHCP. My chosen IP address is pretty arbitrary, but I'm going to have a group of computers that I'd like to have the IP addresses 192.168.1.1XX.
I'm used to setting my subnet to 255.255.255.0
, but I get the error message: should be in CIDR form (xx.xx.xx.xx/yy)
. I'm not sure what this means or how to fix it. When I try adding /24
at the end of the subnet, the error message goes away and I get a new error message: '192.168.1.101' is not contained in '255.255.255.0/24'
.
Update:
Here is a screenshot of the error messages
networking ubuntu-core static-ip nmcli
add a comment |
I'm new to Ubuntu Core. On first login I selected the option:
Will use DHCP for IPv4
Now I'd like to change my machine to use a static IP to be easier to log in remotely.
I ran sudo console-conf
on the machine (over ssh, if relevant). This gives me the option to select Use a static IPv4 configuration
, which I do.
This gives me the fields subnet
, address
, gateway,
name servers, and
search domains`. What should I set for these fields? I would like my IP address to be 192.168.1.101. It is currently 192.168.1.13 from DHCP. My chosen IP address is pretty arbitrary, but I'm going to have a group of computers that I'd like to have the IP addresses 192.168.1.1XX.
I'm used to setting my subnet to 255.255.255.0
, but I get the error message: should be in CIDR form (xx.xx.xx.xx/yy)
. I'm not sure what this means or how to fix it. When I try adding /24
at the end of the subnet, the error message goes away and I get a new error message: '192.168.1.101' is not contained in '255.255.255.0/24'
.
Update:
Here is a screenshot of the error messages
networking ubuntu-core static-ip nmcli
2
Welcome to AskUbuntu!CIDR
notation is used for the IP address, not the netmask, have you tried192.168.1.101/24
?
– Mr Shunz
Sep 8 '18 at 6:34
Thanks @MrShunz. I tried adding the CIDR to the IP address but it won't let me type in the/
character. I attached a screenshot of the error message, in case it helps anyone.
– tsteiner
Sep 8 '18 at 13:40
1
For the subnet, please try:192.168.1.0/24
Reference: askubuntu.com/questions/1015632/…
– chili555
Sep 8 '18 at 15:27
add a comment |
I'm new to Ubuntu Core. On first login I selected the option:
Will use DHCP for IPv4
Now I'd like to change my machine to use a static IP to be easier to log in remotely.
I ran sudo console-conf
on the machine (over ssh, if relevant). This gives me the option to select Use a static IPv4 configuration
, which I do.
This gives me the fields subnet
, address
, gateway,
name servers, and
search domains`. What should I set for these fields? I would like my IP address to be 192.168.1.101. It is currently 192.168.1.13 from DHCP. My chosen IP address is pretty arbitrary, but I'm going to have a group of computers that I'd like to have the IP addresses 192.168.1.1XX.
I'm used to setting my subnet to 255.255.255.0
, but I get the error message: should be in CIDR form (xx.xx.xx.xx/yy)
. I'm not sure what this means or how to fix it. When I try adding /24
at the end of the subnet, the error message goes away and I get a new error message: '192.168.1.101' is not contained in '255.255.255.0/24'
.
Update:
Here is a screenshot of the error messages
networking ubuntu-core static-ip nmcli
I'm new to Ubuntu Core. On first login I selected the option:
Will use DHCP for IPv4
Now I'd like to change my machine to use a static IP to be easier to log in remotely.
I ran sudo console-conf
on the machine (over ssh, if relevant). This gives me the option to select Use a static IPv4 configuration
, which I do.
This gives me the fields subnet
, address
, gateway,
name servers, and
search domains`. What should I set for these fields? I would like my IP address to be 192.168.1.101. It is currently 192.168.1.13 from DHCP. My chosen IP address is pretty arbitrary, but I'm going to have a group of computers that I'd like to have the IP addresses 192.168.1.1XX.
I'm used to setting my subnet to 255.255.255.0
, but I get the error message: should be in CIDR form (xx.xx.xx.xx/yy)
. I'm not sure what this means or how to fix it. When I try adding /24
at the end of the subnet, the error message goes away and I get a new error message: '192.168.1.101' is not contained in '255.255.255.0/24'
.
Update:
Here is a screenshot of the error messages
networking ubuntu-core static-ip nmcli
networking ubuntu-core static-ip nmcli
edited Sep 8 '18 at 13:39
tsteiner
asked Sep 8 '18 at 3:47
tsteinertsteiner
7115
7115
2
Welcome to AskUbuntu!CIDR
notation is used for the IP address, not the netmask, have you tried192.168.1.101/24
?
– Mr Shunz
Sep 8 '18 at 6:34
Thanks @MrShunz. I tried adding the CIDR to the IP address but it won't let me type in the/
character. I attached a screenshot of the error message, in case it helps anyone.
– tsteiner
Sep 8 '18 at 13:40
1
For the subnet, please try:192.168.1.0/24
Reference: askubuntu.com/questions/1015632/…
– chili555
Sep 8 '18 at 15:27
add a comment |
2
Welcome to AskUbuntu!CIDR
notation is used for the IP address, not the netmask, have you tried192.168.1.101/24
?
– Mr Shunz
Sep 8 '18 at 6:34
Thanks @MrShunz. I tried adding the CIDR to the IP address but it won't let me type in the/
character. I attached a screenshot of the error message, in case it helps anyone.
– tsteiner
Sep 8 '18 at 13:40
1
For the subnet, please try:192.168.1.0/24
Reference: askubuntu.com/questions/1015632/…
– chili555
Sep 8 '18 at 15:27
2
2
Welcome to AskUbuntu!
CIDR
notation is used for the IP address, not the netmask, have you tried 192.168.1.101/24
?– Mr Shunz
Sep 8 '18 at 6:34
Welcome to AskUbuntu!
CIDR
notation is used for the IP address, not the netmask, have you tried 192.168.1.101/24
?– Mr Shunz
Sep 8 '18 at 6:34
Thanks @MrShunz. I tried adding the CIDR to the IP address but it won't let me type in the
/
character. I attached a screenshot of the error message, in case it helps anyone.– tsteiner
Sep 8 '18 at 13:40
Thanks @MrShunz. I tried adding the CIDR to the IP address but it won't let me type in the
/
character. I attached a screenshot of the error message, in case it helps anyone.– tsteiner
Sep 8 '18 at 13:40
1
1
For the subnet, please try:
192.168.1.0/24
Reference: askubuntu.com/questions/1015632/…– chili555
Sep 8 '18 at 15:27
For the subnet, please try:
192.168.1.0/24
Reference: askubuntu.com/questions/1015632/…– chili555
Sep 8 '18 at 15:27
add a comment |
1 Answer
1
active
oldest
votes
Thanks to @MrShunz and @chili555 in the comments. These are the settings that worked for me:
Subnet: 192.168.1.0/24
Address: 192.168.1.101
Gateway: 192.168.1.1
Name servers: 8.8.8.8
Thanks for your answer, I kept trying 255.255.255.0/24 instead of 192.168.1.0/24
– deej
10 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1073244%2fset-static-ip-on-ubuntu-core%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks to @MrShunz and @chili555 in the comments. These are the settings that worked for me:
Subnet: 192.168.1.0/24
Address: 192.168.1.101
Gateway: 192.168.1.1
Name servers: 8.8.8.8
Thanks for your answer, I kept trying 255.255.255.0/24 instead of 192.168.1.0/24
– deej
10 hours ago
add a comment |
Thanks to @MrShunz and @chili555 in the comments. These are the settings that worked for me:
Subnet: 192.168.1.0/24
Address: 192.168.1.101
Gateway: 192.168.1.1
Name servers: 8.8.8.8
Thanks for your answer, I kept trying 255.255.255.0/24 instead of 192.168.1.0/24
– deej
10 hours ago
add a comment |
Thanks to @MrShunz and @chili555 in the comments. These are the settings that worked for me:
Subnet: 192.168.1.0/24
Address: 192.168.1.101
Gateway: 192.168.1.1
Name servers: 8.8.8.8
Thanks to @MrShunz and @chili555 in the comments. These are the settings that worked for me:
Subnet: 192.168.1.0/24
Address: 192.168.1.101
Gateway: 192.168.1.1
Name servers: 8.8.8.8
answered Sep 8 '18 at 18:51
tsteinertsteiner
7115
7115
Thanks for your answer, I kept trying 255.255.255.0/24 instead of 192.168.1.0/24
– deej
10 hours ago
add a comment |
Thanks for your answer, I kept trying 255.255.255.0/24 instead of 192.168.1.0/24
– deej
10 hours ago
Thanks for your answer, I kept trying 255.255.255.0/24 instead of 192.168.1.0/24
– deej
10 hours ago
Thanks for your answer, I kept trying 255.255.255.0/24 instead of 192.168.1.0/24
– deej
10 hours ago
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1073244%2fset-static-ip-on-ubuntu-core%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Welcome to AskUbuntu!
CIDR
notation is used for the IP address, not the netmask, have you tried192.168.1.101/24
?– Mr Shunz
Sep 8 '18 at 6:34
Thanks @MrShunz. I tried adding the CIDR to the IP address but it won't let me type in the
/
character. I attached a screenshot of the error message, in case it helps anyone.– tsteiner
Sep 8 '18 at 13:40
1
For the subnet, please try:
192.168.1.0/24
Reference: askubuntu.com/questions/1015632/…– chili555
Sep 8 '18 at 15:27