Hi
Can anyone give me the correct switch setup for using 2 wan's.
The router is TL-MR3200 with extroot on a 2 Gb USB stick - and presently with one wan it works like a charm.
But I do have to wan's and would like to benefit from this :-)
My present sw, network and dmesg is listed below - please let me know, if any more info is needed.
I have been fighting some days with this now, but seems to always just loose contact with the router and have to reset/reinstall.
I have tried some of the cookbooks on this forum without luck.
Thank you in advance for any help.
# opkg list-installed
base-files - 68-r26685
blkid - 1.41.12-1
block-mount - 0.2.0-5
busybox - 1.18.4-1
collectd - 4.10.2-2
collectd-mod-interface - 4.10.2-2
collectd-mod-load - 4.10.2-2
collectd-mod-rrdtool - 4.10.2-2
collectd-mod-wireless - 4.10.2-2
crda - 1.1.1-1
dnsmasq - 2.57-1
dropbear - 0.53.1-3
firewall - 2-24
hotplug2 - 1.0-beta-4
ip - 2.6.35-3
iptables - 1.4.10-2
iptables-mod-conntrack - 1.4.10-2
iptables-mod-conntrack-extra - 1.4.10-2
iptables-mod-ipopt - 1.4.10-2
iptables-mod-nat - 1.4.10-2
iptables-utils - 1.4.10-2
iw - 0.9.22-1
kernel - 2.6.37.6-1
kmod-ath - 2.6.37.6+2011-04-06-3
kmod-ath9k - 2.6.37.6+2011-04-06-3
kmod-ath9k-common - 2.6.37.6+2011-04-06-3
kmod-button-hotplug - 2.6.37.6-3
kmod-cfg80211 - 2.6.37.6+2011-04-06-3
kmod-crc-ccitt - 2.6.37.6-1
kmod-crc16 - 2.6.37.6-1
kmod-crypto-aes - 2.6.37.6-1
kmod-crypto-arc4 - 2.6.37.6-1
kmod-crypto-core - 2.6.37.6-1
kmod-fs-ext4 - 2.6.37.6-1
kmod-fs-mbcache - 2.6.37.6-1
kmod-input-core - 2.6.37.6-1
kmod-input-gpio-keys-polled - 2.6.37.6-1
kmod-input-polldev - 2.6.37.6-1
kmod-ipt-conntrack - 2.6.37.6-1
kmod-ipt-conntrack-extra - 2.6.37.6-1
kmod-ipt-core - 2.6.37.6-1
kmod-ipt-ipopt - 2.6.37.6-1
kmod-ipt-nat - 2.6.37.6-1
kmod-ipt-nathelper - 2.6.37.6-1
kmod-leds-gpio - 2.6.37.6-1
kmod-ledtrig-usbdev - 2.6.37.6-1
kmod-mac80211 - 2.6.37.6+2011-04-06-3
kmod-nls-base - 2.6.37.6-1
kmod-ppp - 2.6.37.6-1
kmod-pppoe - 2.6.37.6-1
kmod-scsi-core - 2.6.37.6-1
kmod-usb-core - 2.6.37.6-1
kmod-usb-ohci - 2.6.37.6-1
kmod-usb-storage - 2.6.37.6-1
kmod-usb2 - 2.6.37.6-1
libblkid - 1.41.12-1
libc - 0.9.32-68
libgcc - linaro-68
libip4tc - 1.4.10-2
libiwinfo - 13
libltdl - 2.4-1
liblua - 5.1.4-7
libnl-tiny - 0.1-2
libpthread - 0.9.32-68
librrd1 - 1.0.50-1
libuci - 2011-03-27.2-1
libuci-lua - 2011-03-27.2-1
libuuid - 1.41.12-1
libxtables - 1.4.10-2
lua - 5.1.4-7
luci - 0.10+svn6989-1
luci-app-firewall - 0.10+svn6989-1
luci-app-initmgr - 0.10+svn6989-1
luci-app-multiwan - 0.10+svn6989-1
luci-app-statistics - 0.10+svn6989-1
luci-i18n-english - 0.10+svn6989-1
luci-lib-core - 0.10+svn6989-1
luci-lib-ipkg - 0.10+svn6989-1
luci-lib-lmo - 0.10+svn6989-1
luci-lib-nixio - 0.10+svn6989-1
luci-lib-sys - 0.10+svn6989-1
luci-lib-web - 0.10+svn6989-1
luci-mod-admin-core - 0.10+svn6989-1
luci-mod-admin-full - 0.10+svn6989-1
luci-sgi-cgi - 0.10+svn6989-1
luci-theme-base - 0.10+svn6989-1
luci-theme-openwrt - 0.10+svn6989-1
mtd - 15
multiwan - 1.0.19-1
opkg - 618-1
ppp - 2.4.4-16
ppp-mod-pppoe - 2.4.4-16
rrdtool1 - 1.0.50-1
swap-utils - 2.13.0.1-4
swconfig - 7
uci - 2011-03-27.2-1
uhttpd - 22
wireless-tools - 29-4
wpad-mini - 20110402-1
zlib - 1.2.5-1
=================================================================================
network:
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 ifname eth0
option type bridge
option proto static
option ipaddr 10.9.8.1
option netmask 255.255.255.0
config interface wan
option ifname eth1
option proto dhcp
config switch eth0
option enable_vlan 1
config switch_vlan
option device eth0
option vlan 1
option ports "0 1 2 3 4"
==============================================================================================
And dmesg says:
Linux version 2.6.37.6 (openwrt@OpenWRTBuild) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #1 Sat Apr 16 01:26:36 MST 2011
prom: fw_arg0=00000008, fw_arg1=a1f87fb0, fw_arg2=a1f88470, fw_arg3=00000004
MyLoader: sysp=f0f0f0f0, boardp=f0f0f0f0, parts=f0f0f0f0
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
SoC: Atheros AR7241 rev 1
Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802b9ce0, node_mem_map 81000000
Normal zone: 64 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 8128 pages, LIFO batch:0
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: board=TL-MR3220 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29368k/32768k available (2024k kernel code, 3400k reserved, 384k data, 172k init, 0k highmem)
SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:80
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is TP-LINK TL-MR3220
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
pci 0000:00:00.0: [168c:ff1c] type 0 class 0x000200
pci 0000:00:00.0: fixup device configuration
pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0000ffff 64bit]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: PME# disabled
pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x1000ffff 64bit] (PCI address [0x10000000-0x1000ffff])
PCI: mapping irq 72 to pin1@0000:00:00.0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
PCI: CLS 0 bytes, default 32
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: found w25q32, expected m25p80
m25p80 spi0.0: w25q32 (4096 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x3fe000
Searching for RedBoot partition table in spi0.0 at offset 0x3ff000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000160000 : "kernel"
0x000000160000-0x0000003f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=2BB000, len=135000
0x0000002bb000-0x0000003f0000 : "rootfs_data"
0x0000003f0000-0x000000400000 : "art"
0x000000020000-0x0000003f0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: Found an AR7240 built-in switch
eth1: Atheros AG71xx at 0xb9000000, irq 4
eth1: connected to PHY at ag71xx-mdio:04 [uid=004dd041, driver=Generic PHY]
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 172k freed
input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
Button Hotplug driver version 0.4.1
eth0: link up (1000Mbps/Full duplex)
Registered led device: tl-mr3x20:green:system
Registered led device: tl-mr3x20:green:qss
Registered led device: tl-mr3x20:green:3g
JFFS2 notice: (365) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 15 of xref (0 dead, 2 orphan) found.
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: new high speed USB device using ar71xx-ehci and address 2
scsi0 : usb-storage 1-1:1.0
scsi 0:0:0:0: Direct-Access UDISK PDU01_2G 75G2.0 0.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 4030463 512-byte logical blocks: (2.06 GB/1.92 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
eth0: link down
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
br-lan: port 1(eth0) entering forwarding state
Compat-wireless backport release: compat-wireless-2011-03-30-6-g6a250de
Backport based on wireless-testing.git master-2011-04-06
cfg80211: Calling CRDA to update world regulatory domain
PCI: Setting latency timer of device 0000:00:00.0 to 64
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Registered led device: ath9k-phy0
ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xb0000000, irq=72
cfg80211: World regulatory domain updated:
cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: Calling CRDA for country: US
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
cfg80211: Regulatory domain changed to country: US
cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
eth1: link up (100Mbps/Full duplex)
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (461 buckets, 1844 max)
xt_time: kernel timezone is -0000
ar71xx-wdt: enabling watchdog timer
eth1: link down
eth1: link up (100Mbps/Full duplex)
br-lan: port 1(eth0) entering forwarding state
eth0: link down
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
eth1: link down
eth0: link up (1000Mbps/Full duplex)
eth0: link down
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
br-lan: port 1(eth0) entering forwarding state
eth1: link up (100Mbps/Full duplex)
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
br-lan: port 2(wlan0) entering forwarding state
eth1: link up (10Mbps/Half duplex)
eth1: link up (100Mbps/Full duplex)
eth1: link down
eth1: link up (100Mbps/Full duplex)