[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] OT Dual personality Server (network pass through)



brctl in the bridge-utils package

http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge

You can do this using the Fedora/Redhat sysconfig setup rather than
twiddling w/ brctl by hand, the advantage being that
/etc/init.d/network does the right thing. See that the bridge "device"
gets the IP address, and the ethernet devices are bound to the bridge:

/etc/sysconfig/network-scripts/ifcfg-br0:
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
NETMASK=255.255.255.0
GATEWAY=10.0.0.1
IPADDR=10.0.0.2

/etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
BRIDGE=br0

/etc/sysconfig/network-scripts/ifcfg-eth1:
DEVICE=eth1
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
BRIDGE=br0

I assume there are equivalents for Debian/Ubuntu network scripts, etc.

-- 
Dan Young <dyoung mesd k12 or us>
Multnomah ESD - Technology Services
503-257-1562



On Mon, Jun 14, 2010 at 3:58 PM, Robert Arkiletian <robark gmail com> wrote:
> I have 3 nics in a NATed gateway file server. Two nics (eth1, eth2)
> provide dhcp and nfs services to an internal subnet via a dedicated
> switch. The other nic (eth0) connects to an external WAN switch to
> provide net access to the systems in the subnet.
>
>                               --- eth1
> WAN switch eth0 --- |               SUBNET switch
>                               --- eth2
>
> Question:
> Is it possible to disable the NATing, nfs, dhcp and just somehow
> bridge the external WAN nic to the internal ones such that it's just a
> pass through? Basically having the server behave like a switch?
> Allowing the internal systems to join the network on the WAN. I know
> how to disable NAT, nfs and dhcp but not how to configure the nics.
>
> I know I could simply unplug eth1, eth2 from the server and plug them
> into the WAN switch but my goal is to script this so I don't have to
> physically plug and unplug network cables each time.
>
> Thanks
>
>
> --
> Robert Arkiletian
> Eric Hamber Secondary, Vancouver, Canada
>
> _______________________________________________
> K12OSN mailing list
> K12OSN redhat com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]