On 29.02.2012 17:47, unix wrote:
>
> For this, I need to somehow internally bridge NIC-A1 and NIC-A2 so
> when I run the x-over cable, NIC-B1 will be part of the same segment.
> Then I can assign IP to NIC-B1 and have my L2 connection via Server-A.
> Is this at all doable???
Certainly. You'll need to create a bridge interface on server A and add
NIC-A1 and NIC-A2 to the bridge. Assuming NIC-A1 and NIC-A2 are called
eth0 and eth1 respectively:
modprobe bridge
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
This assumes that your kernel has bridge support compiled as a module,
and that you have the bridge userspace tools installed (see
http://tldp.org/HOWTO/BRIDGE-STP-HOW...he-bridge.html).
The IP configuration on NIC-A1 must then be moved to the new bridge
interface (br0). Also, the commands above must be added to the startup
scripts of your Linux distribution.