Skip to contentSkip to conversation

Help: Bridge and NAT through same NIC?

Bridge Hotbelgo 1 participant 1 message Feb 8, 2007 Ethernet bridge

lore
Share & tools
lore

Hotbelgo

author
#0 lore raw

I am so out of my depth on this one, but I would welcome some help. I have the following network and did get it to work with m0n0wall (a BSD firewall) an option called "transparent bridge". I've switched to Clark Connect because of its support for content filtering, and installed bridge-utils.

I have a home network based a single WAN-facing NIC, eth0, that gets a public IP address from DHCP and two internal NICs:
- eth1: that provides simple NAT for several PCs
- eth2: a cable set-top-box that needs an IP address from a specific,
and separate, DHCP server (that checks MAC addresses so that only STBs can connect to it).

The diagram summarises:

Internet --- DHCP server ------ eth0 ------- eth1 ---- Home network

             (public IP)     |            |
                             |            |
TV-content --DHCP (server) ---            -- eth2 ---- TV set-top box

(Private IP)

I tried to set up a bridge of eth0 and eth2 using:
ifconfig eth0 0.0.0.0
ifconfig eth2 0.0.0.0
brctl addbr mybridge
brctl addif mybridge eth2
brctl addif mybridge eth0
ifconfig mybridge up

But that did not enable my STB to connect and meanwhile I had of course lost connectivity for the PCs.

HB