ich versuche auf einem Linksys WRT1200ACv2 mit "OpenWrt Chaos Calmer 15.05.1" ein VLAN einzurichten.
Original /etc/config/network
Code: Alles auswählen
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 'fdaa:abc8:799c::/48'
config interface 'lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option gateway '217.0.117.92'
option dns '217.0.43.129'
option ipaddr '192.168.0.1'
config interface 'wan'
option ifname 'eth0'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option proto 'none'
config interface 'wan6'
option ifname 'eth0'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option proto 'pppoe'
option username 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
option password 'YYYYYYYYYYYYY'
Ein erster Versuch auf jedem LAN-Port ein anderes Netzwerk hinzubekommen, schlägt fehl.
VLAN /etc/config/network
Code: Alles auswählen
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 '10'
options ports '4 5'
#LAN Port 1
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '2'
options ports '3 6t'
#LAN Port 2
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
options ports '2 6t'
#LAN Port 3
config switch_vlan
option device 'switch0'
option vlan '4'
option vid '4'
options ports '1 6t'
#LAN Port 4
config switch_vlan
option device 'switch0'
option vlan '5'
option vid '5'
options ports '1 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 'fdaa:abc8:799c::/48'
# LAN on switch port 1
config interface 'lan'
option ifname 'eth1.2'
option force_link '1'
#option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option gateway '217.0.117.92'
option dns '217.0.43.129'
option ipaddr '192.168.0.1'
# LAN on switch port 2
config interface 'lan'
option ifname 'eth1.3'
option force_link '1'
#option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option gateway '217.0.117.92'
option dns '217.0.43.129'
option ipaddr '192.168.2.1'
config interface 'wan'
option ifname 'eth0'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option proto 'none'
config interface 'wan6'
option ifname 'eth0'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option proto 'pppoe'
option username 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
option password 'YYYYYYYY'
Ich bin dann so vorgegangen:
Code: Alles auswählen
# swconfig dev switch0 show
Global attributes:
enable_vlan: 0
Port 0:
mask: 0x004e: (0) 1 2 3 6
qmode: 0
status: link: down
link: 0
pvid: 0
Port 1:
mask: 0x004d: 0 (1) 2 3 6
qmode: 0
status: link: down
link: 0
pvid: 0
Port 2:
mask: 0x004b: 0 1 (2) 3 6
qmode: 0
status: link: down
link: 0
pvid: 0
Port 3:
mask: 0x0047: 0 1 2 (3) 6
qmode: 0
status: link: up, speed: 1000 Mbps, duplex: full
link: 1000
pvid: 0
Port 4:
mask: 0x0020: (4) 5
qmode: 0
status: link: up, speed: 1000 Mbps, duplex: full
link: 1000
pvid: 0
Port 5:
mask: 0x0010: 4 (5)
qmode: 0
status: link: up, speed: 1000 Mbps, duplex: full
link: 1000
pvid: 0
Port 6:
mask: 0x000f: 0 1 2 3 (6)
qmode: 0
status: link: up, speed: 1000 Mbps, duplex: full
link: 1000
pvid: 0
Code: Alles auswählen
swconfig dev switch0 set reset 1
Code: Alles auswählen
swconfig dev switch0 set enable_vlan 1
Code: Alles auswählen
# swconfig dev switch0 show
Global attributes:
enable_vlan: 1
Port 0:
mask: 0x004e: (0) 1 2 3 6
qmode: 0
status: link: down
link: 0
pvid: 0
Port 1:
mask: 0x004d: 0 (1) 2 3 6
qmode: 0
status: link: down
link: 0
pvid: 0
Grüße
Saxenpower