Convert LAN port to WAN port with Buffalo router

Hello,

I've got a Buffalo WBMR-HP-G300H ADSL Modem Router. I don't use ADSL port, there router is connected to another router via a LAN port. So i try to convert one LAN port to WAN port. Here is my network configuration, but it failed. Can you help me ?

config switch eth0
        option vlan0    '0 1 3 5*'
        option vlan1    '2 5'

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

config interface 'wan'
        option ifname "eth0.1"
        option proto 'static'
        option ipaddr '192.168.0.45'
        option netmask '255.255.255.0'
        option dns '8.8.8.8 8.8.4.4'
        option gateway '192.168.0.254'

config interface 'lan'
        option ifname 'eth0.0'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.48.1'
        option netmask '255.255.255.224'

ifconfig return :

br-lan    Link encap:Ethernet  HWaddr 01:07:B7:E6:C8:FE
          inet addr:192.168.48.1  Bcast:192.168.48.31  Mask:255.255.255.224
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:203 errors:0 dropped:9 overruns:0 frame:0
          TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:17212 (16.8 KiB)  TX bytes:19936 (19.4 KiB)

eth0      Link encap:Ethernet  HWaddr 01:07:B7:E6:C8:FE
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0.0    Link encap:Ethernet  HWaddr 01:07:B7:E6:C8:FE 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:5116 (4.9 KiB)

eth0.1    Link encap:Ethernet  HWaddr 01:07:B7:E6:C8:FE
          inet addr:192.168.0.45  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:1512 (1.4 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:32242 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32242 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2218185 (2.1 MiB)  TX bytes:2218185 (2.1 MiB)

wlan0     Link encap:Ethernet  HWaddr 01:07:B7:E6:C8:FE
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:202 errors:0 dropped:0 overruns:0 frame:0
          TX packets:143 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:20034 (19.5 KiB)  TX bytes:27286 (26.6 KiB)
config switch eth0
        option vlan0    '0 1 3 5*'
        option vlan1    '2 5'

Then move any LAN port. Here's an example moving system port No. 3:

config switch eth0
        option vlan0    '0 1 5*'
        option vlan1    '2 3 5'

Thank you but this does not works for me :disappointed_relieved:

Have you tried Network > Switch in the web GUI?

It's much easier in my opinion.

No i don't have web GUI installed on this router.

Zero is not a valid VLAN number.

That looks like the very old syntax. What version of OpenWrt are you running?

1 Like

I use 12.09

You should upgrade to 18.06.2. Do not try to save settings. The firstboot should produce a default switch configuration which you can modify.

yes of course but I cannot. It's an old modem/router ADSL. It works fine since 5 years. Since 2 weeks I don't have ADSL connexion anymore but a new fiber connexion with a new router (Freebox mini 4K). So I try to connect my old Buffalo router to update it.

(sorry for my English)

Back in its day that was a rather powerful device. It still has enough memory to run 18.06 so you should upgrade.

Yes I should, if I can connect it to an other network via LAN port :slight_smile:

First undo your switch configuration so that all the ports are LAN ports again. You can either configure the LAN to be a client of your new main router, or upgrade it offline.

1 Like

Just intersecting here, as fibre suggests throughputs of 100 MBit/s or (even significantly) more. Your lantiq danube (single core, 333 MHz mips 24Kc) based router is very unlikely to cope with more than 30-35 MBit/s throughput at best - even using it as a mere AP might be stretching its hardware capabilities.

Yes but this is for a personal use.