Einrichten von VLANs auf der WRT1900ac v1 Lede (Version 17.01.04)

1077
Kwang Lim

Ich habe gerade Lede 17.01.04 auf einem nicht benutzten Router WRT1900AC v1 installiert. Es läuft gut, aber ich möchte das Netzwerk in verschiedene Komponenten unterteilen, um meinen Bedürfnissen gerecht zu werden, z. B. Guest-WLAN, privates LAN, öffentliches LAN, IoT-Lan, IoT-WLAN usw.

In einige Forschung, fand ich ein Config - Beispiel, dass meine Bedürfnisse genau übereinstimmt, aber es ist für ein anderes Modell (WRT1200AC v1 / v2 WRT1900AC / WRT1900ACS v1). Der Autor bezieht sich auf das Umschalten von eth0 mit eth1, um an den WRT1900AC v1 zu passen. Wenn ich jedoch die Portspezifikationen des WRT1900AC v1 mit den im Beispiel angegebenen Spezifikationen vergleiche, sind die WAN-Ports 4 und 6 für VLAN2 unterschiedlich und ich bin besorgt, welche zu erstellen Vermutungen aus Angst, meinen Router zu mauern.

Ich suche daher Hilfe bei (1). Stellen Sie fest, ob dieses Beispiel tatsächlich mit der aktuellen Version von Lede und (2) funktioniert. Welche Änderungen müsste ich vornehmen, um sicherzustellen, dass die im Beispiel beschriebenen Ports entsprechend meinem WRT1900AC v1-Router korrekt übereinstimmen?

Im folgenden Beispiel ist die Netzwerkkonfiguration aufgeführt:

config switch option name 'switch0' option reset '1' option enable_vlan '1'  #wan port config switch_vlan option device 'switch0' option vlan '1' option vid '100' option ports '4 5t'  #port 1 config switch_vlan option device 'switch0' option vlan '2' option vid '2' option ports '3 6t'  #port 2 config switch_vlan option device 'switch0' option vlan '3' option vid '3' option ports '2 6t'  #port 3 config switch_vlan option device 'switch0' option vlan '4' option vid '4' option ports '1 6t'  #port 4 config switch_vlan option device 'switch0' option vlan '5' option vid '5' option ports '0 6t'  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 ' ( ...whatever your prefix is... ) '  #Lan on switch port 1 config interface 'lan' option force_link '1' option proto 'static' option netmask '255.255.255.0' option ipaddr '192.168.0.1' option ifname 'eth1.2'  #Another local network on switch port 2 config interface 'someothernetwork' option proto 'static' option ifname 'eth1.3' option ipaddr '192.168.8.1' option netmask '255.255.255.0'  #WAN on the wan port config interface 'wan' option ifname 'eth0.100' option proto 'dhcp'  #Wireless config interface 'wi' option type 'bridge' option _orig_ifname 'wlan0 wlan1' option _orig_bridge 'true' option proto 'static' option ipaddr '192.168.6.1' option netmask '255.255.255.0' 

Folgendes ist meine aktuelle Netzwerkkonfiguration:

config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0'  config interface 'lan' option type 'bridge' option ifname 'eth0' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0'   config interface 'wan' option ifname 'eth1' option proto 'dhcp'  config switch_vlan option device 'switch0' option vlan '1' option ports '0 1 2 3 5'  config switch option name 'switch0' option reset '1' option enable_vlan '1'  config switch_vlan option device 'switch0' option vlan '2' option ports '4 6' 

Jede Hilfe wäre dankbar.

0

0 Antworten auf die Frage