Ubuntu and Static IP Address
I'm trying to figure out how I can assign a static IP address to my default ethernet adapter eth0
- all attempts so far have been fruitless and ended up in frustration.
I am running Ubuntu 14.04.5 LTS on an NVIDIA Jetson TK1 ARM platform.
Ideally, I want the interface eth0
to assume an IP address such as 192.168.0.xxx
as per our company network scheme.
Using network-manager
, I've tried (and failed) to manually assign an IP address. However, checking with ifconfig
reports an altogether different IP which appears to be DHCP assigned (the IP address changes very regularly).
I have tried un-installing network manager and using the /etc/network/interfaces
file to statically assign an address to eth0
however following this, I get a lot of RTNETLINK answers: Network is unreachable
errors and no IP ever appears to be assigned to eth0
.
Why does network-manager
not seem to work in this instance? I have a vino
VNC server running on my Ubuntu TK1 platform and the only IP address which allows me to connect is the DHCP address allocated away from network-manager
Confused!
UPDATE
After re-visiting this, I'm no closer to figuring out what is going on.
What I have tried since the original message was posted:
- Disabled
network-manager
- Assigned an IP address on a different subnet to our company network so that the DHCP server cannot allocate it an IP address
- Set up a static IP address in
/etc/network/interfaces
with the following information
>
auto eth0
iface eth0 inet static
address 192.168.200.1
netmask 255.255.255.0
When I take the eth0
interface down and back up again, I see this static IP address assigned correctly. After a while, however, a lot of RTNETLINK answers: Network is unreachable
messages appear and the IP address disappears from eth0
network-manager ethernet dhcp ifconfig
add a comment |
I'm trying to figure out how I can assign a static IP address to my default ethernet adapter eth0
- all attempts so far have been fruitless and ended up in frustration.
I am running Ubuntu 14.04.5 LTS on an NVIDIA Jetson TK1 ARM platform.
Ideally, I want the interface eth0
to assume an IP address such as 192.168.0.xxx
as per our company network scheme.
Using network-manager
, I've tried (and failed) to manually assign an IP address. However, checking with ifconfig
reports an altogether different IP which appears to be DHCP assigned (the IP address changes very regularly).
I have tried un-installing network manager and using the /etc/network/interfaces
file to statically assign an address to eth0
however following this, I get a lot of RTNETLINK answers: Network is unreachable
errors and no IP ever appears to be assigned to eth0
.
Why does network-manager
not seem to work in this instance? I have a vino
VNC server running on my Ubuntu TK1 platform and the only IP address which allows me to connect is the DHCP address allocated away from network-manager
Confused!
UPDATE
After re-visiting this, I'm no closer to figuring out what is going on.
What I have tried since the original message was posted:
- Disabled
network-manager
- Assigned an IP address on a different subnet to our company network so that the DHCP server cannot allocate it an IP address
- Set up a static IP address in
/etc/network/interfaces
with the following information
>
auto eth0
iface eth0 inet static
address 192.168.200.1
netmask 255.255.255.0
When I take the eth0
interface down and back up again, I see this static IP address assigned correctly. After a while, however, a lot of RTNETLINK answers: Network is unreachable
messages appear and the IP address disappears from eth0
network-manager ethernet dhcp ifconfig
1
see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references
– Rinzwind
Jul 19 '17 at 9:47
2
What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.
– CatMan
Jul 19 '17 at 10:11
1
Please edit your question to add the result of these terminal commands:ifconfig
and also:cat /etc/network/interfaces
– chili555
Jul 19 '17 at 12:03
And also have you run service networkmanager stop or rebooted?
– jeroen
Jul 19 '17 at 15:55
I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly
– weblar83
Aug 3 '17 at 14:56
add a comment |
I'm trying to figure out how I can assign a static IP address to my default ethernet adapter eth0
- all attempts so far have been fruitless and ended up in frustration.
I am running Ubuntu 14.04.5 LTS on an NVIDIA Jetson TK1 ARM platform.
Ideally, I want the interface eth0
to assume an IP address such as 192.168.0.xxx
as per our company network scheme.
Using network-manager
, I've tried (and failed) to manually assign an IP address. However, checking with ifconfig
reports an altogether different IP which appears to be DHCP assigned (the IP address changes very regularly).
I have tried un-installing network manager and using the /etc/network/interfaces
file to statically assign an address to eth0
however following this, I get a lot of RTNETLINK answers: Network is unreachable
errors and no IP ever appears to be assigned to eth0
.
Why does network-manager
not seem to work in this instance? I have a vino
VNC server running on my Ubuntu TK1 platform and the only IP address which allows me to connect is the DHCP address allocated away from network-manager
Confused!
UPDATE
After re-visiting this, I'm no closer to figuring out what is going on.
What I have tried since the original message was posted:
- Disabled
network-manager
- Assigned an IP address on a different subnet to our company network so that the DHCP server cannot allocate it an IP address
- Set up a static IP address in
/etc/network/interfaces
with the following information
>
auto eth0
iface eth0 inet static
address 192.168.200.1
netmask 255.255.255.0
When I take the eth0
interface down and back up again, I see this static IP address assigned correctly. After a while, however, a lot of RTNETLINK answers: Network is unreachable
messages appear and the IP address disappears from eth0
network-manager ethernet dhcp ifconfig
I'm trying to figure out how I can assign a static IP address to my default ethernet adapter eth0
- all attempts so far have been fruitless and ended up in frustration.
I am running Ubuntu 14.04.5 LTS on an NVIDIA Jetson TK1 ARM platform.
Ideally, I want the interface eth0
to assume an IP address such as 192.168.0.xxx
as per our company network scheme.
Using network-manager
, I've tried (and failed) to manually assign an IP address. However, checking with ifconfig
reports an altogether different IP which appears to be DHCP assigned (the IP address changes very regularly).
I have tried un-installing network manager and using the /etc/network/interfaces
file to statically assign an address to eth0
however following this, I get a lot of RTNETLINK answers: Network is unreachable
errors and no IP ever appears to be assigned to eth0
.
Why does network-manager
not seem to work in this instance? I have a vino
VNC server running on my Ubuntu TK1 platform and the only IP address which allows me to connect is the DHCP address allocated away from network-manager
Confused!
UPDATE
After re-visiting this, I'm no closer to figuring out what is going on.
What I have tried since the original message was posted:
- Disabled
network-manager
- Assigned an IP address on a different subnet to our company network so that the DHCP server cannot allocate it an IP address
- Set up a static IP address in
/etc/network/interfaces
with the following information
>
auto eth0
iface eth0 inet static
address 192.168.200.1
netmask 255.255.255.0
When I take the eth0
interface down and back up again, I see this static IP address assigned correctly. After a while, however, a lot of RTNETLINK answers: Network is unreachable
messages appear and the IP address disappears from eth0
network-manager ethernet dhcp ifconfig
network-manager ethernet dhcp ifconfig
edited Aug 3 '17 at 14:52
weblar83
asked Jul 19 '17 at 9:37
weblar83weblar83
112
112
1
see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references
– Rinzwind
Jul 19 '17 at 9:47
2
What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.
– CatMan
Jul 19 '17 at 10:11
1
Please edit your question to add the result of these terminal commands:ifconfig
and also:cat /etc/network/interfaces
– chili555
Jul 19 '17 at 12:03
And also have you run service networkmanager stop or rebooted?
– jeroen
Jul 19 '17 at 15:55
I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly
– weblar83
Aug 3 '17 at 14:56
add a comment |
1
see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references
– Rinzwind
Jul 19 '17 at 9:47
2
What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.
– CatMan
Jul 19 '17 at 10:11
1
Please edit your question to add the result of these terminal commands:ifconfig
and also:cat /etc/network/interfaces
– chili555
Jul 19 '17 at 12:03
And also have you run service networkmanager stop or rebooted?
– jeroen
Jul 19 '17 at 15:55
I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly
– weblar83
Aug 3 '17 at 14:56
1
1
see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references
– Rinzwind
Jul 19 '17 at 9:47
see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references
– Rinzwind
Jul 19 '17 at 9:47
2
2
What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.
– CatMan
Jul 19 '17 at 10:11
What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.
– CatMan
Jul 19 '17 at 10:11
1
1
Please edit your question to add the result of these terminal commands:
ifconfig
and also: cat /etc/network/interfaces
– chili555
Jul 19 '17 at 12:03
Please edit your question to add the result of these terminal commands:
ifconfig
and also: cat /etc/network/interfaces
– chili555
Jul 19 '17 at 12:03
And also have you run service networkmanager stop or rebooted?
– jeroen
Jul 19 '17 at 15:55
And also have you run service networkmanager stop or rebooted?
– jeroen
Jul 19 '17 at 15:55
I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly
– weblar83
Aug 3 '17 at 14:56
I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly
– weblar83
Aug 3 '17 at 14:56
add a comment |
1 Answer
1
active
oldest
votes
setting up a static IP address can be done through the GUI in Ubuntu 18.04.
- Click your connection in top right menu bar.
- Click your connection and click
wired/wi-fi settings
- Click the settings icon on the
Wired/ Visible Networks
section. - In
addresses
:
- for
address
, you will need to enter the static IP address of your choice (eg.192.168.0.3
). - set
netmask
to255.255.255.0
. - set
gateway
to the IP address of your network gateway (most likely192.168.0.1
, which can be found on your gateway page, navigate to your forward-facing IP (whatsmyip) to get to this page).
- for
- In DNS section, set this to your target devices current IP address (
192.168.0.x
), also can be found by navigating to your external IP. - Next to DNS section, set the
Automatic
switch to off. - Click
Apply
. - Disconnect internet, connect again and navigate to gateway settings, your device should now have adopted the static IP (
192.168.0.3
) you set.
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%2f937639%2fubuntu-and-static-ip-address%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
setting up a static IP address can be done through the GUI in Ubuntu 18.04.
- Click your connection in top right menu bar.
- Click your connection and click
wired/wi-fi settings
- Click the settings icon on the
Wired/ Visible Networks
section. - In
addresses
:
- for
address
, you will need to enter the static IP address of your choice (eg.192.168.0.3
). - set
netmask
to255.255.255.0
. - set
gateway
to the IP address of your network gateway (most likely192.168.0.1
, which can be found on your gateway page, navigate to your forward-facing IP (whatsmyip) to get to this page).
- for
- In DNS section, set this to your target devices current IP address (
192.168.0.x
), also can be found by navigating to your external IP. - Next to DNS section, set the
Automatic
switch to off. - Click
Apply
. - Disconnect internet, connect again and navigate to gateway settings, your device should now have adopted the static IP (
192.168.0.3
) you set.
add a comment |
setting up a static IP address can be done through the GUI in Ubuntu 18.04.
- Click your connection in top right menu bar.
- Click your connection and click
wired/wi-fi settings
- Click the settings icon on the
Wired/ Visible Networks
section. - In
addresses
:
- for
address
, you will need to enter the static IP address of your choice (eg.192.168.0.3
). - set
netmask
to255.255.255.0
. - set
gateway
to the IP address of your network gateway (most likely192.168.0.1
, which can be found on your gateway page, navigate to your forward-facing IP (whatsmyip) to get to this page).
- for
- In DNS section, set this to your target devices current IP address (
192.168.0.x
), also can be found by navigating to your external IP. - Next to DNS section, set the
Automatic
switch to off. - Click
Apply
. - Disconnect internet, connect again and navigate to gateway settings, your device should now have adopted the static IP (
192.168.0.3
) you set.
add a comment |
setting up a static IP address can be done through the GUI in Ubuntu 18.04.
- Click your connection in top right menu bar.
- Click your connection and click
wired/wi-fi settings
- Click the settings icon on the
Wired/ Visible Networks
section. - In
addresses
:
- for
address
, you will need to enter the static IP address of your choice (eg.192.168.0.3
). - set
netmask
to255.255.255.0
. - set
gateway
to the IP address of your network gateway (most likely192.168.0.1
, which can be found on your gateway page, navigate to your forward-facing IP (whatsmyip) to get to this page).
- for
- In DNS section, set this to your target devices current IP address (
192.168.0.x
), also can be found by navigating to your external IP. - Next to DNS section, set the
Automatic
switch to off. - Click
Apply
. - Disconnect internet, connect again and navigate to gateway settings, your device should now have adopted the static IP (
192.168.0.3
) you set.
setting up a static IP address can be done through the GUI in Ubuntu 18.04.
- Click your connection in top right menu bar.
- Click your connection and click
wired/wi-fi settings
- Click the settings icon on the
Wired/ Visible Networks
section. - In
addresses
:
- for
address
, you will need to enter the static IP address of your choice (eg.192.168.0.3
). - set
netmask
to255.255.255.0
. - set
gateway
to the IP address of your network gateway (most likely192.168.0.1
, which can be found on your gateway page, navigate to your forward-facing IP (whatsmyip) to get to this page).
- for
- In DNS section, set this to your target devices current IP address (
192.168.0.x
), also can be found by navigating to your external IP. - Next to DNS section, set the
Automatic
switch to off. - Click
Apply
. - Disconnect internet, connect again and navigate to gateway settings, your device should now have adopted the static IP (
192.168.0.3
) you set.
answered 2 mins ago
jackw11111jackw11111
453112
453112
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%2f937639%2fubuntu-and-static-ip-address%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
1
see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references
– Rinzwind
Jul 19 '17 at 9:47
2
What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.
– CatMan
Jul 19 '17 at 10:11
1
Please edit your question to add the result of these terminal commands:
ifconfig
and also:cat /etc/network/interfaces
– chili555
Jul 19 '17 at 12:03
And also have you run service networkmanager stop or rebooted?
– jeroen
Jul 19 '17 at 15:55
I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly
– weblar83
Aug 3 '17 at 14:56