fusillator
New Around Here
Hi all I'm trying to figure out the commands to separate vlan on ASUSWRT-Merlin RT-AC87U 380.62-1
This is the actual configuration
****:/tmp/home/root# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_PLUS_VID_NO_PAD
vlan1 | 1 | eth0
vlan2 | 2 | eth0
****:/tmp/home/root# robocfg show
Switch: enabled
Port 0: 1000FD enabled stp: none vlan: 2 jumbo: off mac: ****
Port 1: 1000FD enabled stp: none vlan: 1 jumbo: off mac: ****
Port 2: DOWN enabled stp: none vlan: 1 jumbo: off mac: ****
Port 3: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 4: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 8: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
VLANs: BCM5301x enabled mac_check mac_hash
1: vlan1: 1 2 3 5 7t
2: vlan2: 0 7
1045: vlan1045: 0 1t
1046: vlan1046: 2 4t 5 7
1047: vlan1047: 1 2t 5t 7t
1099: vlan1099: 1 5 8u
1100: vlan1100: 1 4t 7t 8t
1101: vlan1101: 2 3 7 8t
1102: vlan1102: 3t 4 5t 7t
1103: vlan1103: 2 3t 4 7 8u
***:/tmp/home/root# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.305a3a6d7720 yes vlan1
eth1
I read other post on this topic but I've a few questions
I don't get why the vlan interfaces are both on the phisical device eth0 in the defaul setup, eth0 is the wan interface.
I would have done
vconfig eth1 vlan1
and not
vconfig eth0 vlan1
I would like create two different broadcast domain with different network address
If I lauched the following commands via shell
robocfg vlan 1 "1t 2 3 5 7t"
robocfg vlan 11 ports "1t 7t"
to redifine vlan 1 and create a new vlan 11, the bridge configuration would get lost? I would disconnected from ssh?
My idea is connect the router to a trunk port of a switch by port 1
The port 7 should be the kernel port, used for management purpose and to set up the network layer.
Then I would setup the router ip on the new network
ifconfig vlan11 $ip_new_network ... up
Can I route the ip traffic via the virtual device vlan11, without bridging it to a phisical device?
I remember from bridge howto that you can't use the same phisical device on different bridge definition..
Then I would do
vconfig eth1 vlan11
but in the default conf they would do
vconfig eth0 vlan11
Thanks for the patience
Luca
This is the actual configuration
****:/tmp/home/root# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_PLUS_VID_NO_PAD
vlan1 | 1 | eth0
vlan2 | 2 | eth0
****:/tmp/home/root# robocfg show
Switch: enabled
Port 0: 1000FD enabled stp: none vlan: 2 jumbo: off mac: ****
Port 1: 1000FD enabled stp: none vlan: 1 jumbo: off mac: ****
Port 2: DOWN enabled stp: none vlan: 1 jumbo: off mac: ****
Port 3: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 4: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
Port 8: DOWN enabled stp: none vlan: 1 jumbo: off mac: 00:00:00:00:00:00
VLANs: BCM5301x enabled mac_check mac_hash
1: vlan1: 1 2 3 5 7t
2: vlan2: 0 7
1045: vlan1045: 0 1t
1046: vlan1046: 2 4t 5 7
1047: vlan1047: 1 2t 5t 7t
1099: vlan1099: 1 5 8u
1100: vlan1100: 1 4t 7t 8t
1101: vlan1101: 2 3 7 8t
1102: vlan1102: 3t 4 5t 7t
1103: vlan1103: 2 3t 4 7 8u
***:/tmp/home/root# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.305a3a6d7720 yes vlan1
eth1
I read other post on this topic but I've a few questions
I don't get why the vlan interfaces are both on the phisical device eth0 in the defaul setup, eth0 is the wan interface.
I would have done
vconfig eth1 vlan1
and not
vconfig eth0 vlan1
I would like create two different broadcast domain with different network address
If I lauched the following commands via shell
robocfg vlan 1 "1t 2 3 5 7t"
robocfg vlan 11 ports "1t 7t"
to redifine vlan 1 and create a new vlan 11, the bridge configuration would get lost? I would disconnected from ssh?
My idea is connect the router to a trunk port of a switch by port 1
The port 7 should be the kernel port, used for management purpose and to set up the network layer.
Then I would setup the router ip on the new network
ifconfig vlan11 $ip_new_network ... up
Can I route the ip traffic via the virtual device vlan11, without bridging it to a phisical device?
I remember from bridge howto that you can't use the same phisical device on different bridge definition..
Then I would do
vconfig eth1 vlan11
but in the default conf they would do
vconfig eth0 vlan11
Thanks for the patience
Luca
Last edited: