Search…
Switching
TIP OpenWiFi 2.0
Switching Features Remain Under Test
TIP OpenWiFi use of the OpenWrt operating system combined with new virtual data plane present in all images for 2.0 major release and the uCentral data model make it possible to include PoE access switching as a cloud managed component of the OpenWiFi stack.
Nightly builds include supported switch platforms.
Currently the list of features for switching include:
  • IEEE 802.1Q VLAN
    • Port based Untagged
    • Tagged trunk
  • IEEE 802.1ad Q-inQ
  • VxLAN
  • PoE Auto Power
  • Port Mirroring / Monitor
  • Link Aggregation
  • Link Layer Discovery Protocol
  • Port Speed Control

Configuring a Switch

All ports needs to be specified for link negotiation to occur. In the below example, the "ethernet" section defines the physical port. The "interfaces" configuration will cause the physical port to negotiate. Effectively removal of a "select-ports" for a physical port in any or all "interfaces" is the equivalent of an interface in shutdown state.
1
"ethernet": [
2
{
3
"select-ports": [
4
"WAN1"
5
],
6
"speed": 1000,
7
"duplex": "full"
8
},
9
{
10
"select-ports": [
11
"WAN2"
12
],
13
"speed": 1000,
14
"duplex": "full"
15
},
16
{
17
"select-ports": [
18
"WAN3"
19
],
20
"speed": 1000,
21
"duplex": "full"
22
},
23
{
24
"select-ports": [
25
"WAN4"
26
],
27
"speed": 1000,
28
"duplex": "full"
29
},
30
{
31
"select-ports": [
32
"WAN5"
33
],
34
"speed": 1000,
35
"duplex": "full"
36
},
37
{
38
"select-ports": [
39
"WAN6"
40
],
41
"speed": 1000,
42
"duplex": "full"
43
},
44
{
45
"select-ports": [
46
"WAN7"
47
],
48
"speed": 1000,
49
"duplex": "full",
50
"vlan-tag": "auto"
51
},
52
{
53
"select-ports": [
54
"WAN8"
55
],
56
"speed": 1000,
57
"duplex": "full",
58
"vlan-tag": "auto"
59
},
60
{
61
"select-ports": [
62
"WAN9"
63
],
64
"speed": 1000,
65
"duplex": "full"
66
},
67
{
68
"select-ports": [
69
"WAN10"
70
],
71
"speed": 1000,
72
"duplex": "full"
73
},
74
{
75
"select-ports": [
76
"WAN11"
77
],
78
"speed": 1000,
79
"duplex": "full"
80
},
81
{
82
"select-ports": [
83
"WAN12"
84
],
85
"speed": 1000,
86
"duplex": "full"
87
}
88
],
Copied!
Without any "interfaces" defined, the ifconfig on the switch will return eth0, lan1, lo as an output. When adding "interfaces" additional ports become active and also visible.
1
"interfaces": [
2
{
3
{
4
"name": "VLAN-30-Ports",
5
"role": "downstream",
6
"services": [ "lldp" ],
7
"vlan": {
8
"id": 30,
9
"proto": "802.1q"
10
},
11
"ethernet": [
12
{
13
"select-ports": [
14
"WAN7", "WAN8"
15
]
16
}
17
]
18
}
Copied!
Vlan-Id 30 has been assigned to interfaces 7 and 8 on the switch. Traffic is isolated among participating ports.

Ifconfig output example

1
# ifconfig
2
down1v30 Link encap:Ethernet HWaddr 90:3C:B3:39:C0:C1
3
inet6 addr: fe80::923c:b3ff:fe39:c0c1/64 Scope:Link
4
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
5
RX packets:79 errors:0 dropped:0 overruns:0 frame:0
6
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
7
collisions:0 txqueuelen:1000
8
RX bytes:22135 (21.6 KiB) TX bytes:1036 (1.0 KiB)
9
10
eth0 Link encap:Ethernet HWaddr 90:3C:B3:39:C0:C0
11
inet6 addr: fe80::923c:b3ff:fe39:c0c0/64 Scope:Link
12
UP BROADCAST RUNNING MULTICAST MTU:1504 Metric:1
13
RX packets:31617 errors:0 dropped:0 overruns:0 frame:0
14
TX packets:7479 errors:0 dropped:0 overruns:0 carrier:0
15
collisions:0 txqueuelen:1000
16
RX bytes:4293282 (4.0 MiB) TX bytes:1228185 (1.1 MiB)
17
Interrupt:24 Memory:c000000-bb00a3ff
18
19
lan1 Link encap:Ethernet HWaddr 90:3C:B3:39:C0:C1
20
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
21
RX packets:27321 errors:0 dropped:69 overruns:0 frame:0
22
TX packets:5445 errors:0 dropped:0 overruns:0 carrier:0
23
collisions:0 txqueuelen:1000
24
RX bytes:2893034 (2.7 MiB) TX bytes:825702 (806.3 KiB)
25
26
lan7 Link encap:Ethernet HWaddr 90:3C:B3:39:C0:C7
27
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
28
RX packets:2204 errors:0 dropped:0 overruns:0 frame:0
29
TX packets:507 errors:0 dropped:0 overruns:0 carrier:0
30
collisions:0 txqueuelen:1000
31
RX bytes:421385 (411.5 KiB) TX bytes:100251 (97.9 KiB)
32
33
lan8 Link encap:Ethernet HWaddr 90:3C:B3:39:C0:C8
34
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
35
RX packets:1241 errors:0 dropped:0 overruns:0 frame:0
36
TX packets:496 errors:0 dropped:0 overruns:0 carrier:0
37
collisions:0 txqueuelen:1000
38
RX bytes:220496 (215.3 KiB) TX bytes:98164 (95.8 KiB)
39
40
lo Link encap:Local Loopback
41
inet addr:127.0.0.1 Mask:255.0.0.0
42
inet6 addr: ::1/128 Scope:Host
43
UP LOOPBACK RUNNING MTU:65536 Metric:1
44
RX packets:958 errors:0 dropped:0 overruns:0 frame:0
45
TX packets:958 errors:0 dropped:0 overruns:0 carrier:0
46
collisions:0 txqueuelen:1000
47
RX bytes:76410 (74.6 KiB) TX bytes:76410 (74.6 KiB)
48
49
up Link encap:Ethernet HWaddr 90:3C:B3:39:C0:C1
50
inet6 addr: fe80::923c:b3ff:fe39:c0c1/64 Scope:Link
51
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
52
RX packets:27027 errors:0 dropped:0 overruns:0 frame:0
53
TX packets:4368 errors:0 dropped:0 overruns:0 carrier:0
54
collisions:0 txqueuelen:1000
55
RX bytes:3008700 (2.8 MiB) TX bytes:587431 (573.6 KiB)
56
57
up0v0 Link encap:Ethernet HWaddr 90:3C:B3:39:C0:C1
58
inet addr:10.75.0.154 Bcast:10.75.0.255 Mask:255.255.255.0
59
inet6 addr: fe80::923c:b3ff:fe39:c0c1/64 Scope:Link
60
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
61
RX packets:22673 errors:0 dropped:0 overruns:0 frame:0
62
TX packets:3865 errors:0 dropped:0 overruns:0 carrier:0
63
collisions:0 txqueuelen:1000
64
RX bytes:2390361 (2.2 MiB) TX bytes:525377 (513.0 KiB)
Copied!

Bridge Vlan Table Output

1
# bridge vlan
2
port vlan-id
3
lan1 4090 PVID Egress Untagged
4
lan7 30 PVID Egress Untagged
5
lan8 30 PVID Egress Untagged
6
up 30
7
4090
8
#
Copied!

Assigning VLANs to Ports

To define additional VLAN memberships to any port, create additional "interfaces" configuration.
1
{
2
"name": "VLAN-30-Ports",
3
"role": "upstream",
4
"services": [ "lldp" ],
5
"vlan": {
6
"id": 30,
7
"proto": "802.1q"
8
},
9
"ethernet": [
10
{
11
"select-ports": [
12
"WAN7", "WAN8"
13
]
14
}
15
]
16
},
17
{
18
"name": "VLAN-40-Ports",
19
"role": "upstream",
20
"services": [ "lldp" ],
21
"vlan": {
22
"id": 40,
23
"proto": "802.1q"
24
},
25
"ethernet": [
26
{
27
"select-ports": [
28
"WAN7", "WAN8"
29
]
30
}
31
]
32
}
Copied!

Ifconfig and Bridge Results

1
up1v30 Link encap:Ethernet HWaddr 90:3C:B3:39:C0:C1
2
inet6 addr: fe80::923c:b3ff:fe39:c0c1/64 Scope:Link
3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
4
RX packets:1178 errors:0 dropped:0 overruns:0 frame:0
5
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
6
collisions:0 txqueuelen:1000
7
RX bytes:245923 (240.1 KiB) TX bytes:816 (816.0 B)
8
9
up2v40 Link encap:Ethernet HWaddr 90:3C:B3:39:C0:C1
10
inet6 addr: fe80::923c:b3ff:fe39:c0c1/64 Scope:Link
11
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
12
RX packets:106 errors:0 dropped:0 overruns:0 frame:0
13
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
14
collisions:0 txqueuelen:1000
15
RX bytes:34638 (33.8 KiB) TX bytes:816 (816.0 B)
16
17
18
# bridge vlan
19
port vlan-id
20
lan1 4090 PVID Egress Untagged
21
lan7 30
22
40
23
lan8 30
24
40
25
up 30
26
40
27
4090
Copied!
Export as PDF
Copy link