Jump to content

Bridge 2 LAN and seperate WLAN


edpr
 Share

Recommended Posts

Rediscovered the good ol' MK4 in a box at the attic!

Now I'd like to configure the wired connection as a bridge to eventually perform tcpdump on it. I'll also need to ssh into the box so I thought to use the wlan as AP.

lan0 and lan1 bridged as bridge0

wlan0 as `AP` with dhcp - completely seperated from lan0 and lan1

I've tried the config below but it doesn't work leaving the whole system unreachable. Any ideas and pointers?

Thanks in advance
EDPR

/etc/config/wireless

config wifi-device  radio0
        option type     mac80211
        option channel  11
        option hwmode   11ng
        option macaddr  00:c0:ca:6f:05:96
        option htmode   HT20
        list ht_capab   SHORT-GI-20
        list ht_capab   SHORT-GI-40
        list ht_capab   RX-STBC1
        list ht_capab   DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        # option disabled 1

config wifi-iface
        option device      radio0
        option network     lan
        option mode        ap
        option ssid        TEST
        option encryption  psk2
        option key         P@$$W0RD

/etc/config/network

config interface loopback
        option ifname   lo
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

config interface bridge0
        option ifname   eth0 eth1
        option type     bridge
        option proto    static
        option ipaddr   0.0.0.0
        option netmask  0.0.0.0

config interface lan
        option ifname   wlan0
        option type     bridge
        option proto    static
        option ipaddr   172.16.42.1
        option netmask  255.255.255.0
        option gateway  172.16.42.42
        option dns      8.8.8.8

#config switch_vlan
#       option device        eth0
#       option vlan        1
#       option ports        "0 1"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...