OpenWrt Forum Archive

Topic: Problem setting up tagging VLAN on WAN-interface

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I need to set up an additional tagged VLAN on the WAN interface of an WRT54g V2.2. The VLAN ID is 100. Unfortunately it doesn't work as I'm expecting.

What I have tried is adding some lines to /etc/config/network

#### WAN configuration
config interface        wan
        option ifname   "eth0.1"
        option proto    dhcp

#### Switches
config interface        switches
        option ifname   "eth0.100"
        option proto    static
        option ipaddr   192.168.232.111
        option netmask  255.255.255.0

This sets up an eth0.100 interface, IP is assigned correctly. But I cannot ping into the 192.168.232-Net.

Is there any hint, you can give me on this?

Sincerely,
TheDOC

You didn't mention if you are able to ping the ip address "192.168.232.111" from another workstation connected to the router.  You also didn't mention if you updated the firewall script to include your new interface.

If you can ping 192.168.232.111 but not 192.168.232.xxx from a workstation, then most likely you might need this line in your /etc/init.d/firewall script.

[ -z "$WAN2" ] || iptables -A FORWARD -i $LAN -o $WAN2 -j ACCEPT

Where $LAN is your lan interface (eth0.0)  and $WAN2 (eth0.100)  is your new interface. 

Hope that might help.

The discussion might have continued from here.