How to route between two bridge interfaces? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionRouting 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

Why are there no cargo aircraft with "flying wing" design?

Overriding an object in memory with placement new

Error "illegal generic type for instanceof" when using local classes

Are two submodules (where one is contained in the other) isomorphic if their quotientmodules are isomorphic?

Identify plant with long narrow paired leaves and reddish stems

Why was the term "discrete" used in discrete logarithm?

Why is my conclusion inconsistent with the van't Hoff equation?

How to find out what spells would be useless to a blind NPC spellcaster?

Identifying polygons that intersect with another layer using QGIS?

What LEGO pieces have "real-world" functionality?

Why did the Falcon Heavy center core fall off the ASDS OCISLY barge?

Can a non-EU citizen traveling with me come with me through the EU passport line?

What does the "x" in "x86" represent?

Fundamental Solution of the Pell Equation

Why do we bend a book to keep it straight?

Why is "Consequences inflicted." not a sentence?

How widely used is the term Treppenwitz? Is it something that most Germans know?

String `!23` is replaced with `docker` in command line

What does the word "veer" mean here?

Storing hydrofluoric acid before the invention of plastics

ListPlot join points by nearest neighbor rather than order

3 doors, three guards, one stone

Output the ŋarâþ crîþ alphabet song without using (m)any letters

What would be the ideal power source for a cybernetic eye?



How to route between two bridge interfaces?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionRouting 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
    Apr 12 at 14:01

















-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
    Apr 12 at 14:01













-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 Apr 12 at 15:54







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 Apr 12 at 13:45









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
    Apr 12 at 14:01

















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

    – 0xSheepdog
    Apr 12 at 14:01
















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

– 0xSheepdog
Apr 12 at 14:01





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

– 0xSheepdog
Apr 12 at 14:01










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 Apr 12 at 16:54









        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

            getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

            Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

            Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.