KPN glasvezel i.c.m. openwrt
Poort 0 = wan (glasvezelmodem)
Poort 1 = experiabox
Poort 2 = IPTV
Poort 3 = VOIP
Poort 4 = Intern network
/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 ‘fd71:f624:1459::/48’
config interface ‘lan’
option ifname ‘eth0.1’
option type ‘bridge’
option proto ‘static’
option ipaddr ‘192.168.1.1’
option netmask ‘255.255.255.0’
option ip6assign ’60’
config interface ‘wan’
option ifname ‘eth0.6’
option proto ‘pppoe’
option username ‘xx-xx-xx-xx-xx-xx@internet’
option password ‘ppp’
option macaddr ‘xx:xx:xx:xx:xx:xx’
# option defaultroute ‘1’
# option peerdns ‘1’
config interface ‘wan6’
option ifname ‘@wan’
option proto ‘dhcpv6’
config switch
option name ‘switch0’
option reset ‘1’
option enable_vlan ‘1’
option blinkrate ‘2’
# Internal Computer VLAN,
# set UNTagged (x) to physical LAN port 4
config switch_vlan
option device ‘switch0’
option vlan ‘1’
option ports ‘4 5t’
# IPTV VLAN,
# set Tagged (xt) to physical LAN port 0 (WAN)
# set Tagged (xt) to physical LAN port 1 (EXPERIABOX)
# set UNTagged (x) to physical LAN port 2
config switch_vlan
option device ‘switch0’
option vlan ‘4’
option ports ‘0t 1t 2 5t’
# VOIP VLAN,
# set Tagged (xt) to physical LAN port 0 (WAN)
# set Tagged (xt) to physical LAN port 1 (EXPERIABOX)
# set UNTagged (x) to physical LAN port 3 for voip
config switch_vlan
option device ‘switch0’
option vlan ‘7’
option ports ‘0t 1t 3 5t’
# Internet VLAN, set Tagged (xt) to internal CPU for routing/NAT
config switch_vlan
option device ‘switch0’
option vlan ‘6’
option ports ‘0t 5t’
#psychical LAN PORT 0, set pvid to internet
config ‘switch_port’
option device ‘switch0’
option port ‘0’
option pvid ‘6’
# Physical LAN port 4, set PVID (Primary VLAN ID) to internal computer network
config switch_port
option device ‘switch0’
option port ‘4’
option pvid ‘1’
# Physical LAN port 3, set PVID (Primary VLAN ID) for VOIP
config switch_port
option device ‘switch0’
option port ‘3’
option pvid ‘7’
# Physical LAN port 2, set PVID (Primary VLAN ID) to IPTV
config switch_port
option device ‘switch0’
option port ‘2’
option pvid ’10’
# Internal CPU
config switch_port
option device ‘switch0’
option port ‘5’