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;
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
New contributor
add a comment |
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
New contributor
Perhaps the concept you are looking for is "router"?
– 0xSheepdog
Apr 12 at 14:01
add a comment |
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
New contributor
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
iptables bridge lxc iproute lxd
New contributor
New contributor
edited Apr 12 at 15:54
donghakim187
New contributor
asked Apr 12 at 13:45
donghakim187donghakim187
63
63
New contributor
New contributor
Perhaps the concept you are looking for is "router"?
– 0xSheepdog
Apr 12 at 14:01
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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!
New contributor
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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!
New contributor
add a comment |
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!
New contributor
add a comment |
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!
New contributor
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!
New contributor
New contributor
answered Apr 12 at 16:54
donghakim187donghakim187
63
63
New contributor
New contributor
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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
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
Perhaps the concept you are looking for is "router"?
– 0xSheepdog
Apr 12 at 14:01