Network setup with Netplan and bridges

Clash Royale CLAN TAG#URR8PPP up vote
3
down vote
favorite
I'm having an issue where any bridge I create with netplan doesn't get an address.
The following starts my NIC and I get a DHCP address:
network:
version: 2
ethernets:
enp0s3:
addresses:
dhcp4: true
optional: true
This will start a bridge, and it will show up in "ip a" but won't retrieve an IP address from my DHCP server:
network:
version: 2
ethernets:
enp0s3:
addresses:
dhcp4: false
optional: true
bridges:
br0:
interfaces: [enp0s3]
dhcp4: true
optional: true
I feel like either I'm missing something really simple here, or this whole Netplan thing was/is terrible.
server 18.04 network-bridge netplan
add a comment |Â
up vote
3
down vote
favorite
I'm having an issue where any bridge I create with netplan doesn't get an address.
The following starts my NIC and I get a DHCP address:
network:
version: 2
ethernets:
enp0s3:
addresses:
dhcp4: true
optional: true
This will start a bridge, and it will show up in "ip a" but won't retrieve an IP address from my DHCP server:
network:
version: 2
ethernets:
enp0s3:
addresses:
dhcp4: false
optional: true
bridges:
br0:
interfaces: [enp0s3]
dhcp4: true
optional: true
I feel like either I'm missing something really simple here, or this whole Netplan thing was/is terrible.
server 18.04 network-bridge netplan
Are you trying this in virtual box... ? Having the same issues with a static IP address assigned to the bridge. You will find you can get to it from the console, but not externally. (ssh) etc. I think there is a bug in that the physical interface is not actually routing.
â Mark Scott
Apr 29 at 18:34
Yes, in VirtualBox. I'm seeing a few other reports of VBox issues with bridges as well, so maybe this is the culprit.
â DemomanCA
Apr 29 at 20:32
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I'm having an issue where any bridge I create with netplan doesn't get an address.
The following starts my NIC and I get a DHCP address:
network:
version: 2
ethernets:
enp0s3:
addresses:
dhcp4: true
optional: true
This will start a bridge, and it will show up in "ip a" but won't retrieve an IP address from my DHCP server:
network:
version: 2
ethernets:
enp0s3:
addresses:
dhcp4: false
optional: true
bridges:
br0:
interfaces: [enp0s3]
dhcp4: true
optional: true
I feel like either I'm missing something really simple here, or this whole Netplan thing was/is terrible.
server 18.04 network-bridge netplan
I'm having an issue where any bridge I create with netplan doesn't get an address.
The following starts my NIC and I get a DHCP address:
network:
version: 2
ethernets:
enp0s3:
addresses:
dhcp4: true
optional: true
This will start a bridge, and it will show up in "ip a" but won't retrieve an IP address from my DHCP server:
network:
version: 2
ethernets:
enp0s3:
addresses:
dhcp4: false
optional: true
bridges:
br0:
interfaces: [enp0s3]
dhcp4: true
optional: true
I feel like either I'm missing something really simple here, or this whole Netplan thing was/is terrible.
server 18.04 network-bridge netplan
edited Apr 29 at 10:42
asked Apr 29 at 10:14
DemomanCA
164
164
Are you trying this in virtual box... ? Having the same issues with a static IP address assigned to the bridge. You will find you can get to it from the console, but not externally. (ssh) etc. I think there is a bug in that the physical interface is not actually routing.
â Mark Scott
Apr 29 at 18:34
Yes, in VirtualBox. I'm seeing a few other reports of VBox issues with bridges as well, so maybe this is the culprit.
â DemomanCA
Apr 29 at 20:32
add a comment |Â
Are you trying this in virtual box... ? Having the same issues with a static IP address assigned to the bridge. You will find you can get to it from the console, but not externally. (ssh) etc. I think there is a bug in that the physical interface is not actually routing.
â Mark Scott
Apr 29 at 18:34
Yes, in VirtualBox. I'm seeing a few other reports of VBox issues with bridges as well, so maybe this is the culprit.
â DemomanCA
Apr 29 at 20:32
Are you trying this in virtual box... ? Having the same issues with a static IP address assigned to the bridge. You will find you can get to it from the console, but not externally. (ssh) etc. I think there is a bug in that the physical interface is not actually routing.
â Mark Scott
Apr 29 at 18:34
Are you trying this in virtual box... ? Having the same issues with a static IP address assigned to the bridge. You will find you can get to it from the console, but not externally. (ssh) etc. I think there is a bug in that the physical interface is not actually routing.
â Mark Scott
Apr 29 at 18:34
Yes, in VirtualBox. I'm seeing a few other reports of VBox issues with bridges as well, so maybe this is the culprit.
â DemomanCA
Apr 29 at 20:32
Yes, in VirtualBox. I'm seeing a few other reports of VBox issues with bridges as well, so maybe this is the culprit.
â DemomanCA
Apr 29 at 20:32
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f1029623%2fnetwork-setup-with-netplan-and-bridges%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
Are you trying this in virtual box... ? Having the same issues with a static IP address assigned to the bridge. You will find you can get to it from the console, but not externally. (ssh) etc. I think there is a bug in that the physical interface is not actually routing.
â Mark Scott
Apr 29 at 18:34
Yes, in VirtualBox. I'm seeing a few other reports of VBox issues with bridges as well, so maybe this is the culprit.
â DemomanCA
Apr 29 at 20:32