I need the know-how from other guys to solve my problem
After a couple of days of research, I don’t get it working. I'm desperately looking for some help to make it work.
Current Hardware: ASUS RT-AC66U
FW Version: 380.58_0
Current Network Setup: 1 port WAN; 4 port LAN with WIFI and a Guest WIFI 2.5 GHz; all setup via GUI, WAN Connection Type PPPoE
Current Scripts: See below
Goal: To have one separate VLAN/Subnet on one of the router ports with access to the internet. The network could be static. DHCP on this subnet is nice to have. To connect a mail/file-server to the chosen port.
Future Plans: To separate also the house control server at another port.
Retrieved Hardware Info via CLI (MAC's and IP's were changed to protect the innocent:
Start configuration:
# nvram show | grep vlan1
lan_ifnames=vlan1 eth1 eth2 wl0.1
vlan1hwname=et0
vlan1ports=1 2 3 4 8*
landevs=vlan1 wl0 wl1
# nvram show | grep vlan2
vlan2ports=0 8u
vlan2hwname=et0
# robocfg show
Switch: enabled gigabit
Port 0: 100FD enabled stp: none vlan: 2 jumbo: off mac: 00:00:00:00:00:01
Port 1: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:02
Port 2: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:03
Port 3: 100FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:04
Port 4: 10HD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:05
Port 8: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:06
VLANs: BCM53115 enabled mac_check mac_hash
1: vlan1: 1 2 3 4 8t
2: vlan2: 0 8u
# brctl show
Bridge name bridge id STP enabled interfaces
br0 8000.f07959d066c8 yes vlan1
eth1
eth2
wl0.1
-----------------------------------------------MY PAGE BREAK---------------------------------------------------------
After I have configured the standard GUI settings, I have implemented the script.
Target: /jffs/scripts/
File name: services-start
File content:
#!/bin/sh
PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PATH}"
## Remove port 2 from VLAN1
robocfg vlan 1 ports "1 3 4 8t"
## Create VLAN6 and add port 2
robocfg vlan 6 ports "2 8t"
## give vlans wan access
vconfig add et0 6
## activate vlans
ifconfig vlan6 up
## create bridge
brctl addbr br6
## add lan to bridge
brctl addif br6 vlan6
## assign ip addresses to bridge and activate them
ifconfig br6 192.168.2.1 netmask 255.255.255.0
ifconfig br6 up
## set interface groups/names into nvram
nvram set vlan1ports=”1 3 4 8*”
nvram set vlan6ports=”2 8*”
nvram set vlan6hwname=”et0”
nvram set lan6_ifnames="vlan6"
nvram set lan6_ifname="br6"
nvram commit
killall eapd
eapd
Also, they need to have proper permissions, set them with:
chmod a+rx /jffs/scripts/*
-----------------------------------------------MY PAGE BREAK---------------------------------------------------------
Configuration after restart:
# nvram show | grep vlan1
lan_ifnames=vlan1 eth1 eth2 wl0.1
vlan1hwname=et0
vlan1ports=1 3 4 8*
landevs=vlan1 wl0 wl1
# nvram show | grep vlan2
vlan2ports=0 8u
vlan2hwname=et0
# nvram show | grep vlan6
vlan6ports=2 8*
vlan6hwname=et0
lan6_ifnames=vlan6
# robocfg show
Switch: enabled gigabit
Port 0: 100FD enabled stp: none vlan: 2 jumbo: off mac: 00:00:00:00:00:01
Port 1: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:02
Port 2: DOWN enabled stp: none vlan: 6 jumbo: off mac: 00:00:00:00:00:03
Port 3: 100FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:04
Port 4: 10HD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:05
Port 8: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:06
VLANs: BCM53115 enabled mac_check mac_hash
1: vlan1: 1 3 4 8t
2: vlan2: 0 8u
6: vlan6: 2 8t
# brctl show
Bridge name bridge id STP enabled interfaces
br0 8000.f07959d066c8 yes vlan1
eth1
eth2
wl0.1
br6 8000.f07959d066c8 no vlan6
-----------------------------------------------MY PAGE BREAK---------------------------------------------------------
Then I have configured the fix ip address (192.168.2.100) on the notebook and I get a connection error in windows. The port is up and I see traffic on wireshark. I can’t ping the gateway 192.168.2.1. The interface receives the ping but doesn’t answer.
If I connect the notebook via eth1, eth2 or vlan1 I can ping 192.168.2.1. The configuration except port 2 works as with the standard configuration.
After a couple of days of research, I don’t get it working. I'm desperately looking for some help to make it work.
Current Hardware: ASUS RT-AC66U
FW Version: 380.58_0
Current Network Setup: 1 port WAN; 4 port LAN with WIFI and a Guest WIFI 2.5 GHz; all setup via GUI, WAN Connection Type PPPoE
Current Scripts: See below
Goal: To have one separate VLAN/Subnet on one of the router ports with access to the internet. The network could be static. DHCP on this subnet is nice to have. To connect a mail/file-server to the chosen port.
Future Plans: To separate also the house control server at another port.
Retrieved Hardware Info via CLI (MAC's and IP's were changed to protect the innocent:
Start configuration:
# nvram show | grep vlan1
lan_ifnames=vlan1 eth1 eth2 wl0.1
vlan1hwname=et0
vlan1ports=1 2 3 4 8*
landevs=vlan1 wl0 wl1
# nvram show | grep vlan2
vlan2ports=0 8u
vlan2hwname=et0
# robocfg show
Switch: enabled gigabit
Port 0: 100FD enabled stp: none vlan: 2 jumbo: off mac: 00:00:00:00:00:01
Port 1: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:02
Port 2: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:03
Port 3: 100FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:04
Port 4: 10HD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:05
Port 8: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:06
VLANs: BCM53115 enabled mac_check mac_hash
1: vlan1: 1 2 3 4 8t
2: vlan2: 0 8u
# brctl show
Bridge name bridge id STP enabled interfaces
br0 8000.f07959d066c8 yes vlan1
eth1
eth2
wl0.1
-----------------------------------------------MY PAGE BREAK---------------------------------------------------------
After I have configured the standard GUI settings, I have implemented the script.
Target: /jffs/scripts/
File name: services-start
File content:
#!/bin/sh
PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PATH}"
## Remove port 2 from VLAN1
robocfg vlan 1 ports "1 3 4 8t"
## Create VLAN6 and add port 2
robocfg vlan 6 ports "2 8t"
## give vlans wan access
vconfig add et0 6
## activate vlans
ifconfig vlan6 up
## create bridge
brctl addbr br6
## add lan to bridge
brctl addif br6 vlan6
## assign ip addresses to bridge and activate them
ifconfig br6 192.168.2.1 netmask 255.255.255.0
ifconfig br6 up
## set interface groups/names into nvram
nvram set vlan1ports=”1 3 4 8*”
nvram set vlan6ports=”2 8*”
nvram set vlan6hwname=”et0”
nvram set lan6_ifnames="vlan6"
nvram set lan6_ifname="br6"
nvram commit
killall eapd
eapd
Also, they need to have proper permissions, set them with:
chmod a+rx /jffs/scripts/*
-----------------------------------------------MY PAGE BREAK---------------------------------------------------------
Configuration after restart:
# nvram show | grep vlan1
lan_ifnames=vlan1 eth1 eth2 wl0.1
vlan1hwname=et0
vlan1ports=1 3 4 8*
landevs=vlan1 wl0 wl1
# nvram show | grep vlan2
vlan2ports=0 8u
vlan2hwname=et0
# nvram show | grep vlan6
vlan6ports=2 8*
vlan6hwname=et0
lan6_ifnames=vlan6
# robocfg show
Switch: enabled gigabit
Port 0: 100FD enabled stp: none vlan: 2 jumbo: off mac: 00:00:00:00:00:01
Port 1: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:02
Port 2: DOWN enabled stp: none vlan: 6 jumbo: off mac: 00:00:00:00:00:03
Port 3: 100FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:04
Port 4: 10HD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:05
Port 8: 1000FD enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:06
VLANs: BCM53115 enabled mac_check mac_hash
1: vlan1: 1 3 4 8t
2: vlan2: 0 8u
6: vlan6: 2 8t
# brctl show
Bridge name bridge id STP enabled interfaces
br0 8000.f07959d066c8 yes vlan1
eth1
eth2
wl0.1
br6 8000.f07959d066c8 no vlan6
-----------------------------------------------MY PAGE BREAK---------------------------------------------------------
Then I have configured the fix ip address (192.168.2.100) on the notebook and I get a connection error in windows. The port is up and I see traffic on wireshark. I can’t ping the gateway 192.168.2.1. The interface receives the ping but doesn’t answer.
If I connect the notebook via eth1, eth2 or vlan1 I can ping 192.168.2.1. The configuration except port 2 works as with the standard configuration.
Last edited: