WiFi with static IP configuration
I want to connect to my home wifi, which has a static IP configuration.
I Have tried to set up the connection both using the GUI of network manager and by editing the network interface file, but in neither case I managed to connect to the internet.
The specifics of the configuration are:
- IP address: 10.149.40.49
- Netmask: 255.255.255.0
- Gateway: 10.149.40.1
- DNS: 10.149.32.2, 10.156.33.53
I know that this configuration works because I managed to connect to the internet using these parameters with both my phone and my other server running arch.
But when I try to connect with my ubuntu server, I do successfully connect to the WiFi but i cannot resolve or ping any website.
No problem arises when I try to connect to non-static networks.
I am clueless on how to fix this, any help would be greatly appreciated.
$ ip route
default via 10.149.32.2 dev wlp5s0 proto static metric 600
10.149.32.2 dev wlp5s0 proto static scope link metric 600
10.149.40.0/24 dev wlp5s0 proto kernel scope link src 10.149.40.49 metric 600
169.254.0.0/16 dev wlp5s0 scope link metric 1000
networking network-manager internet static-ip
|
show 2 more comments
I want to connect to my home wifi, which has a static IP configuration.
I Have tried to set up the connection both using the GUI of network manager and by editing the network interface file, but in neither case I managed to connect to the internet.
The specifics of the configuration are:
- IP address: 10.149.40.49
- Netmask: 255.255.255.0
- Gateway: 10.149.40.1
- DNS: 10.149.32.2, 10.156.33.53
I know that this configuration works because I managed to connect to the internet using these parameters with both my phone and my other server running arch.
But when I try to connect with my ubuntu server, I do successfully connect to the WiFi but i cannot resolve or ping any website.
No problem arises when I try to connect to non-static networks.
I am clueless on how to fix this, any help would be greatly appreciated.
$ ip route
default via 10.149.32.2 dev wlp5s0 proto static metric 600
10.149.32.2 dev wlp5s0 proto static scope link metric 600
10.149.40.0/24 dev wlp5s0 proto kernel scope link src 10.149.40.49 metric 600
169.254.0.0/16 dev wlp5s0 scope link metric 1000
networking network-manager internet static-ip
Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.
– Elio Monaco
Feb 19 at 23:58
The output of something likeip route
might be helpful as well
– steeldriver
Feb 20 at 0:08
Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.
– Elio Monaco
Feb 20 at 0:08
@ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.
– Terrance
Feb 20 at 0:09
@Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04
– Elio Monaco
Feb 20 at 0:21
|
show 2 more comments
I want to connect to my home wifi, which has a static IP configuration.
I Have tried to set up the connection both using the GUI of network manager and by editing the network interface file, but in neither case I managed to connect to the internet.
The specifics of the configuration are:
- IP address: 10.149.40.49
- Netmask: 255.255.255.0
- Gateway: 10.149.40.1
- DNS: 10.149.32.2, 10.156.33.53
I know that this configuration works because I managed to connect to the internet using these parameters with both my phone and my other server running arch.
But when I try to connect with my ubuntu server, I do successfully connect to the WiFi but i cannot resolve or ping any website.
No problem arises when I try to connect to non-static networks.
I am clueless on how to fix this, any help would be greatly appreciated.
$ ip route
default via 10.149.32.2 dev wlp5s0 proto static metric 600
10.149.32.2 dev wlp5s0 proto static scope link metric 600
10.149.40.0/24 dev wlp5s0 proto kernel scope link src 10.149.40.49 metric 600
169.254.0.0/16 dev wlp5s0 scope link metric 1000
networking network-manager internet static-ip
I want to connect to my home wifi, which has a static IP configuration.
I Have tried to set up the connection both using the GUI of network manager and by editing the network interface file, but in neither case I managed to connect to the internet.
The specifics of the configuration are:
- IP address: 10.149.40.49
- Netmask: 255.255.255.0
- Gateway: 10.149.40.1
- DNS: 10.149.32.2, 10.156.33.53
I know that this configuration works because I managed to connect to the internet using these parameters with both my phone and my other server running arch.
But when I try to connect with my ubuntu server, I do successfully connect to the WiFi but i cannot resolve or ping any website.
No problem arises when I try to connect to non-static networks.
I am clueless on how to fix this, any help would be greatly appreciated.
$ ip route
default via 10.149.32.2 dev wlp5s0 proto static metric 600
10.149.32.2 dev wlp5s0 proto static scope link metric 600
10.149.40.0/24 dev wlp5s0 proto kernel scope link src 10.149.40.49 metric 600
169.254.0.0/16 dev wlp5s0 scope link metric 1000
networking network-manager internet static-ip
networking network-manager internet static-ip
edited Feb 20 at 0:30
Elio Monaco
asked Feb 19 at 23:45
Elio MonacoElio Monaco
12
12
Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.
– Elio Monaco
Feb 19 at 23:58
The output of something likeip route
might be helpful as well
– steeldriver
Feb 20 at 0:08
Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.
– Elio Monaco
Feb 20 at 0:08
@ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.
– Terrance
Feb 20 at 0:09
@Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04
– Elio Monaco
Feb 20 at 0:21
|
show 2 more comments
Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.
– Elio Monaco
Feb 19 at 23:58
The output of something likeip route
might be helpful as well
– steeldriver
Feb 20 at 0:08
Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.
– Elio Monaco
Feb 20 at 0:08
@ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.
– Terrance
Feb 20 at 0:09
@Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04
– Elio Monaco
Feb 20 at 0:21
Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.
– Elio Monaco
Feb 19 at 23:58
Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.
– Elio Monaco
Feb 19 at 23:58
The output of something like
ip route
might be helpful as well– steeldriver
Feb 20 at 0:08
The output of something like
ip route
might be helpful as well– steeldriver
Feb 20 at 0:08
Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.
– Elio Monaco
Feb 20 at 0:08
Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.
– Elio Monaco
Feb 20 at 0:08
@ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.
– Terrance
Feb 20 at 0:09
@ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.
– Terrance
Feb 20 at 0:09
@Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04
– Elio Monaco
Feb 20 at 0:21
@Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04
– Elio Monaco
Feb 20 at 0:21
|
show 2 more comments
1 Answer
1
active
oldest
votes
You can try the following (exchange wlp5s0 with your interface name):
Flush your configuration: sudo ip addr flush wlp5s0
Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0
Add a default route via your gateway: sudo ip route add default via 10.149.40.1
Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
nameserver 10.149.32.2
nameserver 10.156.33.53
All these settings will be lost after reboot.
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%2f1119680%2fwifi-with-static-ip-configuration%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
You can try the following (exchange wlp5s0 with your interface name):
Flush your configuration: sudo ip addr flush wlp5s0
Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0
Add a default route via your gateway: sudo ip route add default via 10.149.40.1
Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
nameserver 10.149.32.2
nameserver 10.156.33.53
All these settings will be lost after reboot.
add a comment |
You can try the following (exchange wlp5s0 with your interface name):
Flush your configuration: sudo ip addr flush wlp5s0
Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0
Add a default route via your gateway: sudo ip route add default via 10.149.40.1
Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
nameserver 10.149.32.2
nameserver 10.156.33.53
All these settings will be lost after reboot.
add a comment |
You can try the following (exchange wlp5s0 with your interface name):
Flush your configuration: sudo ip addr flush wlp5s0
Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0
Add a default route via your gateway: sudo ip route add default via 10.149.40.1
Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
nameserver 10.149.32.2
nameserver 10.156.33.53
All these settings will be lost after reboot.
You can try the following (exchange wlp5s0 with your interface name):
Flush your configuration: sudo ip addr flush wlp5s0
Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0
Add a default route via your gateway: sudo ip route add default via 10.149.40.1
Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
nameserver 10.149.32.2
nameserver 10.156.33.53
All these settings will be lost after reboot.
answered Feb 20 at 9:37
AlexOnLinuxAlexOnLinux
463110
463110
add a comment |
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%2f1119680%2fwifi-with-static-ip-configuration%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
Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.
– Elio Monaco
Feb 19 at 23:58
The output of something like
ip route
might be helpful as well– steeldriver
Feb 20 at 0:08
Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.
– Elio Monaco
Feb 20 at 0:08
@ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.
– Terrance
Feb 20 at 0:09
@Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04
– Elio Monaco
Feb 20 at 0:21