How to route between two bridge interfaces? The 2019 Stack Overflow Developer Survey Results...

Solving overdetermined system by QR decomposition

Did the new image of black hole confirm the general theory of relativity?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?

Match Roman Numerals

Using dividends to reduce short term capital gains?

How do spell lists change if the party levels up without taking a long rest?

Why can't devices on different VLANs, but on the same subnet, communicate?

Identify 80s or 90s comics with ripped creatures (not dwarves)

Why can I use a list index as an indexing variable in a for loop?

Can each chord in a progression create its own key?

How to read αἱμύλιος or when to aspirate

Why doesn't shell automatically fix "useless use of cat"?

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

Single author papers against my advisor's will?

Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)

Make it rain characters

My body leaves; my core can stay

Can the DM override racial traits?

60's-70's movie: home appliances revolting against the owners

Why are PDP-7-style microprogrammed instructions out of vogue?

What can I do if neighbor is blocking my solar panels intentionally?

Presidential Pardon

Is an up-to-date browser secure on an out-of-date OS?



How to route between two bridge interfaces?



The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
2019 Community Moderator Election ResultsRouting packets between networks with iptablesiptables routingHow do I route bittorrent through a second interface?Setup permanent bridge for dynamic network devices from lxc container?Two LXC containers using two different physical network interfacesIPTables for packet routing with two wifi networksHow to connect 2 virtual bridges so traffic goes from one to the other?Routing packets to a container that has a destination that is an interface's IP, stopped working in recent kernels:How to route traffic from br0 to tun0 when tun0 is not the default route of the systemNAT box with two external interfaces and two network namespaces





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







-1















So I have a total of two bridges.
One has the 10.0.0.1/24 subnet (br0), and the other has the 10.1.0.1/8 subnet (br1).



I want to setup an NGINX reverse proxy that would run on a container connected to br1, which will be proxying a server connected to br0.



However, when I simply attempt to ping from a LXC container on br0 to br1, the commands fail with messages like 'No route to host'.



How can I properly configure iproute and iptables so that packets between the two bridges are routed between them?










share|improve this question









New contributor




donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Perhaps the concept you are looking for is "router"?

    – 0xSheepdog
    9 hours ago


















-1















So I have a total of two bridges.
One has the 10.0.0.1/24 subnet (br0), and the other has the 10.1.0.1/8 subnet (br1).



I want to setup an NGINX reverse proxy that would run on a container connected to br1, which will be proxying a server connected to br0.



However, when I simply attempt to ping from a LXC container on br0 to br1, the commands fail with messages like 'No route to host'.



How can I properly configure iproute and iptables so that packets between the two bridges are routed between them?










share|improve this question









New contributor




donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Perhaps the concept you are looking for is "router"?

    – 0xSheepdog
    9 hours ago














-1












-1








-1








So I have a total of two bridges.
One has the 10.0.0.1/24 subnet (br0), and the other has the 10.1.0.1/8 subnet (br1).



I want to setup an NGINX reverse proxy that would run on a container connected to br1, which will be proxying a server connected to br0.



However, when I simply attempt to ping from a LXC container on br0 to br1, the commands fail with messages like 'No route to host'.



How can I properly configure iproute and iptables so that packets between the two bridges are routed between them?










share|improve this question









New contributor




donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












So I have a total of two bridges.
One has the 10.0.0.1/24 subnet (br0), and the other has the 10.1.0.1/8 subnet (br1).



I want to setup an NGINX reverse proxy that would run on a container connected to br1, which will be proxying a server connected to br0.



However, when I simply attempt to ping from a LXC container on br0 to br1, the commands fail with messages like 'No route to host'.



How can I properly configure iproute and iptables so that packets between the two bridges are routed between them?







iptables bridge lxc iproute lxd






share|improve this question









New contributor




donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 7 hours ago







donghakim187













New contributor




donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 10 hours ago









donghakim187donghakim187

63




63




New contributor




donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Perhaps the concept you are looking for is "router"?

    – 0xSheepdog
    9 hours ago



















  • Perhaps the concept you are looking for is "router"?

    – 0xSheepdog
    9 hours ago

















Perhaps the concept you are looking for is "router"?

– 0xSheepdog
9 hours ago





Perhaps the concept you are looking for is "router"?

– 0xSheepdog
9 hours ago










1 Answer
1






active

oldest

votes


















0














After some digging around and experimentation with the 'ip route' command, a simple



'route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.0.0.1'



on the LXC container connected to br1 solved the problem!






share|improve this answer








New contributor




donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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
    });


    }
    });






    donghakim187 is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f512112%2fhow-to-route-between-two-bridge-interfaces%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









    0














    After some digging around and experimentation with the 'ip route' command, a simple



    'route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.0.0.1'



    on the LXC container connected to br1 solved the problem!






    share|improve this answer








    New contributor




    donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      After some digging around and experimentation with the 'ip route' command, a simple



      'route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.0.0.1'



      on the LXC container connected to br1 solved the problem!






      share|improve this answer








      New contributor




      donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        After some digging around and experimentation with the 'ip route' command, a simple



        'route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.0.0.1'



        on the LXC container connected to br1 solved the problem!






        share|improve this answer








        New contributor




        donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        After some digging around and experimentation with the 'ip route' command, a simple



        'route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.0.0.1'



        on the LXC container connected to br1 solved the problem!







        share|improve this answer








        New contributor




        donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 6 hours ago









        donghakim187donghakim187

        63




        63




        New contributor




        donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        donghakim187 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






















            donghakim187 is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            donghakim187 is a new contributor. Be nice, and check out our Code of Conduct.













            donghakim187 is a new contributor. Be nice, and check out our Code of Conduct.












            donghakim187 is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f512112%2fhow-to-route-between-two-bridge-interfaces%23new-answer', 'question_page');
            }
            );

            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







            Popular posts from this blog

            Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

            The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

            Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...