From: Casper Gripenberg <casper.gripenberg@kotiportti.fi>
To: bridge@lists.linux-foundation.org
Subject: [Bridge] Bridge with DHCP IP address
Date: Sun, 06 Jan 2008 01:21:07 +0200 [thread overview]
Message-ID: <478010E3.3020409@kotiportti.fi> (raw)
Hi. I'm trying to run a bridge between my "internal"
network (eth1) and the external internet (eth0). I.e.
a very basic setup.
But I also want the bridge to have an IP address. I
read the docs here:
http://www.linux-foundation.org/en/Net:Bridge
Which say to set the forwarding delay to 0 and then run
dhclient on eth0:
# ifconfig eth0 0.0.0.0
# ifconfig eth1 0.0.0.0
# brctl setfd br0 0
# brctl addif br0 eth0
# dhclient eth0
# brctl addif br0 eth1
# ifconfig br0 up
The bridge works fine as a bridge, and eth0 gets
an IP address (although it takes a very long time
for the dhclient to aquire it).
But I can't reach the eth0 address from anywhere
except localhost. And I can't get out of the bridge
either to any other address..even though the routing
table it set up correctly I get destination unreachable
when I try to ping an external IP address from the
bridge box (logged in through the console).
What I want is for the bridge to have an IP address
and then I want to allow access to specific ports on
the bridge depending on if the packets are coming in
through eth0 or eth1. Is this possible to do?
Thanks.
Casper
next reply other threads:[~2008-01-05 23:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-05 23:21 Casper Gripenberg [this message]
2008-01-07 18:22 ` [Bridge] Bridge with DHCP IP address Srinivas M.A.
2008-01-07 18:33 ` David A. Ranch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=478010E3.3020409@kotiportti.fi \
--to=casper.gripenberg@kotiportti.fi \
--cc=bridge@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox