Ubuntu 18.04 Server Static IP issues
up vote
0
down vote
favorite
I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1
has been disabled. After re-enabling with sudo ifconfig eno1 up
, it fails to get a IPv4 ip address.
I setup the static ip using the new netplan system (config below), and had it working with this configuration, but I no longer see netplan installed (sudo netplan apply
yields netplan: command not found
).
To summarize, two issues:
- the interface was disabled and no longer gets IPv4
- netplan is no longer installed?
Contents of /etc/netplan/01-netcfg.yaml
:
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
addresses: [192.168.1.5/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1]
I know it is probably not a network issue as I am able to use other computers (albiet via dhcp) just fine.
networking server 18.04 static-ip netplan
add a comment |Â
up vote
0
down vote
favorite
I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1
has been disabled. After re-enabling with sudo ifconfig eno1 up
, it fails to get a IPv4 ip address.
I setup the static ip using the new netplan system (config below), and had it working with this configuration, but I no longer see netplan installed (sudo netplan apply
yields netplan: command not found
).
To summarize, two issues:
- the interface was disabled and no longer gets IPv4
- netplan is no longer installed?
Contents of /etc/netplan/01-netcfg.yaml
:
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
addresses: [192.168.1.5/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1]
I know it is probably not a network issue as I am able to use other computers (albiet via dhcp) just fine.
networking server 18.04 static-ip netplan
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1
has been disabled. After re-enabling with sudo ifconfig eno1 up
, it fails to get a IPv4 ip address.
I setup the static ip using the new netplan system (config below), and had it working with this configuration, but I no longer see netplan installed (sudo netplan apply
yields netplan: command not found
).
To summarize, two issues:
- the interface was disabled and no longer gets IPv4
- netplan is no longer installed?
Contents of /etc/netplan/01-netcfg.yaml
:
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
addresses: [192.168.1.5/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1]
I know it is probably not a network issue as I am able to use other computers (albiet via dhcp) just fine.
networking server 18.04 static-ip netplan
I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1
has been disabled. After re-enabling with sudo ifconfig eno1 up
, it fails to get a IPv4 ip address.
I setup the static ip using the new netplan system (config below), and had it working with this configuration, but I no longer see netplan installed (sudo netplan apply
yields netplan: command not found
).
To summarize, two issues:
- the interface was disabled and no longer gets IPv4
- netplan is no longer installed?
Contents of /etc/netplan/01-netcfg.yaml
:
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
addresses: [192.168.1.5/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1]
I know it is probably not a network issue as I am able to use other computers (albiet via dhcp) just fine.
networking server 18.04 static-ip netplan
edited Jun 2 at 18:50
asked Jun 2 at 18:45
Snappawapa
2351315
2351315
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
It seems that netplan has been uninstalled for some reason.
Run these commands to re-install netplan:
sudo apt update
sudo apt install netplan.io
Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml
should be processed.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
It seems that netplan has been uninstalled for some reason.
Run these commands to re-install netplan:
sudo apt update
sudo apt install netplan.io
Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml
should be processed.
add a comment |Â
up vote
0
down vote
It seems that netplan has been uninstalled for some reason.
Run these commands to re-install netplan:
sudo apt update
sudo apt install netplan.io
Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml
should be processed.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
It seems that netplan has been uninstalled for some reason.
Run these commands to re-install netplan:
sudo apt update
sudo apt install netplan.io
Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml
should be processed.
It seems that netplan has been uninstalled for some reason.
Run these commands to re-install netplan:
sudo apt update
sudo apt install netplan.io
Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml
should be processed.
answered Jun 5 at 6:10
user822833
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043010%2fubuntu-18-04-server-static-ip-issues%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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