Menu

Bridging 2 LAN's on 2 Nodes

Nasier
2015-10-11
2015-12-09
  • Nasier

    Nasier - 2015-10-11

    Hello

    Can you suggest how do I go about bridging two LAN's on two nodes?

    The one node hosts a smtp server on the lan interface. The other node hosts a file server on the lan interface. I am hoping to join(bridge) these lan's. Hence when I specify one of these nodes as a exit point then users should be able to access the server on the other node as well.

    Would VLAN's or a VPN tunnel work best? Any other suggestions will be welcome.

    Thank You

     
  • Jannie Hanekom

    Jannie Hanekom - 2015-12-09

    Late response but here it is...

    I've don't yet fully understand the "bridging" option in MESHdesk. It's perhaps inappropriate, but a hack I've done recently is to add some commands to /etc/rc.local to manually add the LAN interface to the desired bridge.

    Notes:

    • You'd need to ensure that the interface (eth0) and network (br-ex_three) referenced in the "brctl" command are the ones you want. Use "brctl show" and "cat /etc/config/wireless" as your guide.
    • The 90 second delay at the start of the script is to give the MESHdesk scripts sufficient time to sort themselves out at bootup. If you don't wait long enough, MESHdesk will restart the network service after you've made your change, reverting the bridge to its default state
    • OpenWRT won't bring the interface up to allow it to be bridged unless there's an IP set on it. You can set any IP you like; you don't need to route traffic to that IP, it's simply there to allow the interface to come up and be added to the bridge.

    /bin/sleep 90
    /usr/sbin/brctl addif br-ex_three eth0
    /sbin/ifconfig eth0 192.168.1.1
    exit 0

     

Log in to post a comment.

MongoDB Logo MongoDB