I've got a router based on OpenWRT that won't allow me to configure a VLAN tag on the WAN port because the option doesn't in the GUI. I already have PPPoE configured via the GUI, but I can't remove my ISP router yet because of this stupid VLAN tag.
I've been poking around in the settings on the router via SSH, but I'm not familiar enough with the config files on OpenWRT to figure out how to set this up. I'm redacting the public MACs and public IPs except for the last couple characters.
Here's the output from ifconfig:
agl0 Link encap:Ethernet HWaddr 00:00:00:00:00:EA
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX bytes:14530959960 (13.5 GiB) TX bytes:198193536546 (184.5 GiB)eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:EC
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX bytes:202848415365 (188.9 GiB) TX bytes:16292967227 (15.1 GiB)eth0-pppoe Link encap:Point-to-Point Protocol
inet addr:000.000.000.109 P-t-P:000.000.000.15 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX bytes:199064187918 (185.3 GiB) TX bytes:14271041659 (13.2 GiB)eth1 Link encap:Ethernet HWaddr 02:E8:D8:52:33:01
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)ifb0 Link encap:Ethernet HWaddr 2A:2E:94:12:BC:BA
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX bytes:202682619406 (188.7 GiB) TX bytes:202682619406 (188.7 GiB)
Here's the info from /etc/config/network:
config interface 'lan'
option ifname 'agl0'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option conntrack '1'
option macaddr '00:00:00:00:00:EA'
option ipaddr '192.168.1.1'
option mtu '1500'config interface 'wan'
option ifname 'eth0'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option proto 'pppoe'
option username 'REDACTED'
option password 'REDACTED'
option no_pmtu '0'
option macaddr '00:00:00:00:00:EC'
option metric '10'
option ipv6 '0'
option hostname 'REDACTED'
option conntrack '1'
option maxfail '3'
option redial_timeout '30'
option mtu_fix '1'
option pppoe_mtu '1492'
option sip_alg '1'
list dns '8.8.8.8'
list dns '1.1.1.1'
option ignore_isp_dns '1'
option debug 'yes'config globals 'globals'
option ula_prefix 'REDACTED'config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'config switch_vlan
option device 'switch0'
option vlan '0'
option ports '0 1 2 3 4 5'config interface 'vlan0'
option ifname 'agl0'
option macaddr '00:00:00:00:00:EA'
And the relevant information from ls -l /sys/class/net
lrwxrwxrwx 1 root root 0 Dec 31 1969 agl0 -> ../../devices/virtual/net/agl0
lrwxrwxrwx 1 root root 0 Dec 31 1969 eth0 -> ../../devices/virtual/net/eth0
lrwxrwxrwx 1 root root 0 Sep 25 08:39 eth0-pppoe -> ../../devices/virtual/net/eth0-pppoe
lrwxrwxrwx 1 root root 0 Dec 31 1969 eth1 -> ../../devices/virtual/net/eth1
I'm trying to follow the openWRT docs, but they seem to be written for configuring VLANs on the LAN side, not the wan side.