Hi, I am using OpenWrt Chaos Calmer 15.05
When logged into my TP-Link (TL-WDR4300 v1) through Luci (git-15.248.30277-3836b45) the overview page reports the IPv4 WAN Status as follows:
eth0.1 Type: static
Address: 192.168.15.1
Netmask: 255.255.255.248
Gateway: 192.168.15.1
Connected: 1h 8m 18
The main problem is the WAN Interface should be eth0.3 which has an address of 192.168.0.16...
I wanted to isolate 2 of the ports so, using Luci, I:
-added vlan3
-created a new interface called lan_2.
-changed the physical settings for the wan interface to eth0.3
-changed the physical settings for the lan_2 interface to eth0.2
-created a new firewall zone lan2 -> wan [accept] [accept] [reject]
-moved port 1 to vlan3 (the new wan vlan)
-moved ports 4 and 5 to vlan2 (the new lan)
and restarted.. thats it.. so I am confused as to why it is reporting the wrong vlan for the wan.
I am relatively new to OpenWRT and I can not find the problem, or perhaps more accurately, can not recognize it when I am looking at it.
Any help would be greatly appreciated
Here are my config files for network, firewall, and dhcp:
root@Home:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdf4:70cb:fe2a::/48'
config interface 'lan_1'
option force_link '1'
option proto 'static'
option ipaddr '192.168.15.1'
option netmask '255.255.255.248'
option gateway '192.168.15.1'
option broadcast '192.168.15.7'
option _orig_ifname 'eth0.1 radio0.network1 radio1.network1'
option _orig_bridge 'true'
option ifname 'eth0.1'
config interface 'lan_2'
option proto 'static'
option ipaddr '192.168.15.9'
option netmask '255.255.255.248'
option broadcast '192.168.15.15'
option type 'bridge'
option _orig_ifname 'eth0.2'
option _orig_bridge 'true'
option ifname 'eth0.2'
option gateway '192.168.15.9'
config interface 'wan'
option proto 'dhcp'
option _orig_ifname 'eth0.3'
option _orig_bridge 'false'
option ifname 'eth0.3'
option delegate '0'
config interface 'wan6'
option proto 'dhcpv6'
option _orig_ifname 'eth0.3'
option _orig_bridge 'false'
option ifname 'eth0.3'
option reqaddress 'try'
option reqprefix 'auto'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
option mirror_source_port '0'
option mirror_monitor_port '0'
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
option ports '0t 2 3'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 1'
option vid '3'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '2'
option ports '0t 4 5'
root@Home:~# cat /etc/config/firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option name 'lan1'
option network 'lan_1'
option family 'ipv4'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
option network 'wan wan6'
config forwarding
option dest 'wan'
option src 'lan1'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option src_ip 'fe80::/10'
option src_port '547'
option dest_ip 'fe80::/10'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config include
option path '/etc/firewall.user'
config rule
option src 'wan'
option proto 'esp'
option target 'ACCEPT'
option dest 'lan1'
config rule
option src 'wan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
option dest 'lan1'
config zone
option input 'ACCEPT'
option output 'ACCEPT'
option name 'lan2'
option network 'lan_2'
option forward 'REJECT'
config forwarding
option dest 'wan'
option src 'lan2'
root@Home:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option localservice '1'
config dhcp 'lan_1'
option interface 'lan_1'
option leasetime '12h'
option dhcpv6 'server'
option ra 'server'
option start '2'
option limit '6'
option ra_management '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
config dhcp 'lan_2'
option interface 'lan_2'
option start '10'
option limit '5'
option leasetime '12h'
config host
option name 'Shop'
option mac 'c8:d3:a3:59:07:a9'
option ip '192.168.15.10'