Network setup with Netplan and bridges

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
3
down vote

favorite
1












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.







share|improve this question






















  • 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














up vote
3
down vote

favorite
1












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.







share|improve this question






















  • 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












up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





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.







share|improve this question














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.









share|improve this question













share|improve this question




share|improve this question








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
















  • 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















active

oldest

votes











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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

Unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst)

Running the scala interactive shell from the command line

Do not install recommended packages of dependencies