retired TL-ER6020 for homenetwork
Hi there,
i found an reitred VPN Router and wanted to give it a try. i am currently a administrator trainee in germany and wanted to upgrade my homenetwork.
Following details what i want to achieve:
i have fiberglass connected via mediant.
i have a solarpannel that needs internet
i have 2 apartments, that need internet both with bandwidth limitation (apartment a 70% and b 30% or so)
they can be subnets, don't have to be.
now i tried the whole day different configs(at the end of the post)
i found a website that decrypts config.bin from tp link into .cfg and other way around. so i fiddled around with several ideas including and excluding firewalls, subnetting, vlans and more. i am down to even the most simple solution and still cant get it to work. maybe someone can give me a hint what i do wrong... i also tried it via webGUI, but find it very irritating since i am more used to consoles....
# Interfaces
# WAN1 (Mediant)
set interface wan1 ip-address dhcp
set interface wan1 enable
# WAN2 (Solaranlage)
set interface wan2 ip-address static
set interface wan2 ip-address 192.168.3.2
set interface wan2 subnet-mask 255.255.255.0
set interface wan2 gateway 192.168.3.1
set interface wan2 enable
# LAN Konfiguration (gemeinsames Netzwerk)
set interface lan ip-address 192.168.1.1
set interface lan subnet-mask 255.255.255.0
set interface lan enable
# Switch-Port-Zuweisung
set vlan id 1
set vlan port 1 mode access # LAN1
set vlan port 2 mode access # LAN2
set vlan port 3 mode management # Management-Port
set vlan id 1 enable
# DHCP Server
set dhcp-server enable
set dhcp-server lan pool start-ip 192.168.1.100
set dhcp-server lan pool end-ip 192.168.1.200
set dhcp-server lan lease-time 86400
# Bandwidth Control
set bandwidth-control enable
set bandwidth-control total-upstream 1000000
set bandwidth-control total-downstream 1000000
# Bandbreitenregelung
# LAN1: 70% der Bandbreite
add bandwidth-control rule src-ip 192.168.1.0/24 port 1 protocol all min-up 700000 min-down 700000 max-up 700000 max-down 700000 enable
# LAN2: 30% der Bandbreite
add bandwidth-control rule src-ip 192.168.1.0/24 port 2 protocol all min-up 300000 min-down 300000 max-up 300000 max-down 300000 enable
# Management-Port (LAN3)
# Kein Bandbreitenlimit und vollständiger Zugriff
add bandwidth-control rule src-ip 192.168.1.0/24 port 3 protocol all min-up 0 min-down 0 max-up 1000000 max-down 1000000 enable
# Save Configuration
save