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)