OpenWrt Forum Archive

Topic: Help setting up switch on my WBMR-HP-G300H

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I've installed openwrt (r31426) and I've worked out that none of the equipment connected directly to the 4 port switch on the back of my router are able to talk to one another. It's as if they are operating independently. If I ssh onto the router it can ping all of the equipment I have connected but if I go to one of the other computers it can ping the router and access the internet but it can't communicate with my other computers and it's the same on all of them.

I've had a quick google and I think I have to configure the switch to setup a VLAN which will "connect" them together but I've tried several different setups which either didn't work and/or disabled the lan interface and I had connect via wifi.

I've already bricked one router (see sig) and really, really don't want to do it again but I need to be able to have my equipment talk across the 4 port switch.

Can anyone assist.

Here's my current network config

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

config interface 'lan'
        option type 'bridge'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '10.0.0.1'
        option _orig_ifname 'eth0 wlan0'
        option _orig_bridge 'true'
        option ifname 'eth0'

config adsl-device 'adsl'
        option fwannex 'a'
        option annex 'a2p'

config interface 'wan'
        option _orig_ifname 'nas0'
        option _orig_bridge 'false'
        option proto 'pppoa'
        option encaps 'vc'
        option atmdev '0'
        option vci '38'
        option vpi '0'
        option username '?????????????'
        option password '??????????????'

Thx
Mark.

Build r32336

I have the same problem! Did you fix it? How?

No, still have same issue. Total radio silence on this issue

Fixed the problem:

just use these command:
swconfig dev eth0 vlan 1 set ports "0 1 2 3 4 5"
swconfig dev eth0 set apply

Tried it this morning and it's works perfectly.

Fantastic. You're a star.

smile:):)

Hmmm, could you think of a config including VLANs using swconfig? Anyone has an example?

The discussion might have continued from here.