changing default route

Marcin Jessa lists at yazzy.org
Tue May 16 15:08:27 UTC 2006


On Tue, 16 May 2006 16:42:23 +0200
"OxY" <oxy at field.hu> wrote:

> but bridging needs ipfw (or pf) and with heavy traffic
> it needs lots of cpu.

No, bridging does not need any firewalling.
Run something like:
ifconfig bridge0 create
ifconfig bridge0 addm em0 addm em1
ifconfig bridge0 inet 12.23.34.45 netmask 255.255.255.0

Or put to rc.conf:
cloned_interfaces="bridge0"
ifconfig_bridge0="inet 12.23.34.45 netmask 255.255.255.0 addm em0
addm em1 up"

And please stop top posting.

Marcin.

> ----- Original Message ----- 
> From: "Marcin Jessa" <lists at yazzy.org>
> To: "OxY" <oxy at field.hu>
> Cc: <freebsd-net at freebsd.org>
> Sent: Tuesday, May 16, 2006 4:31 PM
> Subject: Re: changing default route
> 
> 
> > On Tue, 16 May 2006 15:53:38 +0200
> > "OxY" <oxy at field.hu> wrote:
> > 
> >> any other solution?
> >> can i solve it with static routing?
> > 
> > Create a bridge interface, assign both the nics as it's members and
> > assign the IP to it.
> > 
> > Marcin.
> > 
> >> ----- Original Message ----- 
> >> From: "Charles Swiger" <cswiger at mac.com>
> >> To: "OxY" <oxy at field.hu>
> >> Cc: <freebsd-net at freebsd.org>
> >> Sent: Tuesday, May 16, 2006 1:10 AM
> >> Subject: Re: changing default route
> >> 
> >> 
> >> > On May 15, 2006, at 7:04 PM, OxY wrote:
> >> >> have two interfaces with the same ip, em0 connected to another  
> >> >> server with crosslink, em1 is the public, can be reached from
> >> >> the internet connected to a switch.
> >> > 
> >> > Don't do that.  Use bridging instead, if appropriate.
> >> > 
> >> > -- 
> >> > -Chuck
> >> >
> >> _______________________________________________
> >> freebsd-net at freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> >> To unsubscribe, send any mail to
> >> "freebsd-net-unsubscribe at freebsd.org"
> > _______________________________________________
> > freebsd-net at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-net
> > To unsubscribe, send any mail to
> > "freebsd-net-unsubscribe at freebsd.org"


More information about the freebsd-net mailing list