I have a TP-Link WR1043ND with 1 wan and 1 lan cables attached. The lan cable currently have 2 ips of two different network, using an alias. The two networks share the same switch.
I'd like the router to forward between the two. Currently the routers sends ICMP redirect to the first network telling the clients to go to the second network directly, which is impossible.
Could I create a second virtual nic in the same vlan and assign it the IP on the second network?
Thanks!
This is not specific to OpenWRT but works with any Linux 2.6 - based distro. Just disable the sending of ICMP redirects for your aliased interface (assumed eth0 for the code examples):
which would be effective until re-setting or reboot. To make the setting permanent add this line to /etc/sysctl.conf:
and run
sysctl -p
to reload the configuration.VLAN works using the GUI.
I created a nic using VLAN 3 with the IP I wanted for the second network.
Since linux supports STP only for bridging I needed dedicated wires for the second nic. Plugging the second nic in the same switch as the LAN made the network going down.