You are not logged in.

#1 2018-03-26 21:49:38

n1ghtmar3
Member
Registered: 2018-02-12
Posts: 7

[SOLVED] Problem with bridge

Hello! I have a linux box with two wired and one wireless NICs that acts as a media server. I also want it to act as a router. The problem is that wireless clients (and probably wired) cant talk to outer net.
Here's my network map:

(wan)─(router)─┬─(lan PCs)
               └[eth0]─(server)─[br0]─┬─[eth1]
                                      │
                                      └─[wlan0]

The bridge is created with netctl profile, hostapd handles the wireless connections, firewall is FireHOL.

Last edited by n1ghtmar3 (2018-03-27 00:07:39)

Offline

#2 2018-03-26 22:08:58

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: [SOLVED] Problem with bridge

n1ghtmar3 wrote:

I also want it to act as a router.

Bridge or Route, you can only do one.  Bridging joins the 2 networks at Layer 2 (both networks use the same IP subnet: eg, 192.168.1.0/24), Routing is a Layer 3 connection (each subnet has it's own subnet 192.168.1.0/24 and 192.168.2.0/24).

How have you addressed each network?

Offline

#3 2018-03-26 23:20:10

n1ghtmar3
Member
Registered: 2018-02-12
Posts: 7

Re: [SOLVED] Problem with bridge

Is it possible to do routing without a bridge, so that every computer in the entire lan could see each other?

Last edited by n1ghtmar3 (2018-03-26 23:22:39)

Offline

#4 2018-03-26 23:34:33

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: [SOLVED] Problem with bridge

n1ghtmar3 wrote:

Is it possible to do routing without a bridge

Yes. To route between those interfaces, you *have* to destroy the bridge.

n1ghtmar3 wrote:

so that every computer in the entire lan could see each other?

If you want them all on the same network (subnet) then you need the bridge; stop talking about routing.

fukawi2 wrote:

How have you addressed each network?

Offline

#5 2018-03-27 00:07:16

n1ghtmar3
Member
Registered: 2018-02-12
Posts: 7

Re: [SOLVED] Problem with bridge

Okay, i have added all three interfaces in a bridge with DHCP acquired IP, disabled the firewall, and everything works as i wanted. Thanks!

Offline

Board footer

Powered by FluxBB