hi all,
I have a WRT54GL and I would like to use it for link 2 LAN
The first one is a 192.168.1.x and the second one is a 10.10.10.x
I would use 2 switch port for the first and 2 for the second.
Follows the configuration
WRT54G #1
(lan 192.168.1.1)
(lan2 10.10.10.1)
/ \
/ \
PC IN LAN PC IN LAN
(192.168.1.4) (10.10.10.4)
/etc/config/network
#### LAN configuration
config interface lan
option type bridge
option ifname "eth0.0"
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
option gateway 192.168.1.1
option dns 151.99.125.1
config interface lan2
option ifname "eth0.2"
option proto static
option ipaddr 10.10.10.1
option netmask 255.255.255.0
config route
option interface lan
option target 10.10.10.0
option gateway 10.10.10.1
config route
option interface lan2
option target 192.168.1.0
option gateway 192.168.1.1
/etc/config/firewall
config 'defaults'
option 'syn_flood' '1'
option 'input' 'DROP'
option 'output' 'ACCEPT'
option 'forward' 'DROP'
config 'zone'
option 'name' 'lan'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'forward' 'ACCEPT'
config 'zone'
option 'name' 'lan2'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'forward' 'ACCEPT'
config 'forwarding'
option 'src' 'lan2'
option 'dest' 'lan'
config 'forwarding'
option 'src' 'lan'
option 'dest' 'lan2'
/etc/firewall.user
(ho aggiunto in fondo)
iptables -A forwarding_rule -i eth0.2 -o br-lan -j ACCEPT
iptables -A forwarding_rule -i br-lan -o eth0.2 -j ACCEPT
The WRT54GL ping all the PC, but the PCs don't ping each one!
Can you help me!?