You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/cumulus-linux-513/Layer-1-and-Switch-Ports/802.1X-Interfaces.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,9 +51,14 @@ After you install and configure FreeRADIUS, the FreeRADIUS server can serve Cumu
51
51
- You must configure 802.1X on a bridged interface. To configure a bridge, refer to {{<linkurl="Ethernet-Bridging-VLANs"text="Ethernet Bridging - VLANs">}}.
52
52
- NVUE enables BPDU guard when you enable 802.1X on an interface; the interface goes into a protodown state if it receives BPDU packets.
53
53
54
+
{{%notice note%}}
55
+
In Cumulus Linux 5.13 and later, you must provide the <spanclass="a-tooltip">[NAS](##"Network Access Server")</span> IP address and, or NAS identifier when configuring 802.1x interfaces.
56
+
{{%/notice%}}
57
+
54
58
To configure an 802.1X interface:
55
59
-**Required**: Provide the 802.1X RADIUS server IPv4 or IPv6 address. If you want to specify more than one server, provide the priority for each server (a value between 1 and 3). If you specify just one server, Cumulus Linux sets the priority to 1. You can also specify a VRF for outgoing RADIUS accounting and authorization packets. A VRF is optional.
56
60
-**Required**: Provide the 802.1X RADIUS shared secret.
61
+
-**Required**: Provide either the NAS IP address or the NAS identifier, or both. The NAS IP address is an IPv4 address used only in Access-Request packets from the RADIUS client (the Cumulus switch) to the RADIUS server (not in subsequent packet types, such as Access-Accept, Access-Reject, or Access-Challenge). The NAS identifier is a string such as a fully qualified domain name that identifies the NAS to the RADIUS server. The RADIUS server uses the NAS IP address and the NAS identifier for accounting purposes. On the RADIUS server, the NAS IP address and the NAS identifier identify the source NAS. If two or more NAS devices have the same NAS IP address, you can use a different NAS identifier for each of them to uniquely identify them at the RADIUS server.
57
62
-**Required**: Enable 802.1X on an interface.
58
63
- Optional: Change the default 802.1X RADIUS accounting port. You can specify a value between 1000 and 65535. The default value is 1813.
59
64
- Optional: Change the default 802.1X RADIUS authentication port. You can specify a value between 1000 and 65535. The default value is 1812.
@@ -70,10 +75,13 @@ Changing the 802.1X interface settings does *not* reset existing authorized user
70
75
The following example:
71
76
72
77
- Sets the 802.1X RADIUS server IP address to 10.10.10.1 and the shared secret to `mysecret`.
78
+
- Sets the NAS IP address to 10.10.10.3 and the NAS identifier to AP-123.
73
79
- Enables 802.1X on swp1 through swp3.
74
80
75
81
```
76
82
cumulus@switch:~$ nv set system dot1x radius server 10.10.10.1 shared-secret mysecret
83
+
cumulus@switch:~$ nv set system dot1x radius nas-ip-address 10.10.10.3
84
+
cumulus@switch:~$ nv set system dot1x radius nas-identifier AP-123
77
85
cumulus@switch:~$ nv set interface swp1,swp2,swp3 dot1x eap enabled
78
86
cumulus@switch:~$ nv config apply
79
87
```
@@ -85,6 +93,7 @@ The following example:
85
93
- Sets the 802.1X RADIUS authentication port to 2813.
86
94
- Sets the 802.1X RADIUS accounting port to 2812.
87
95
- Sets the fixed IP address for the RADIUS client to receive requests to 10.10.10.6.
96
+
- Sets the NAS IP address to 10.10.10.3.
88
97
- Sets the EAP reauthentication interval to 40.
89
98
- Enables 802.1X on swp1, swp2, and swp3.
90
99
@@ -94,18 +103,12 @@ cumulus@switch:~$ nv set system dot1x radius server 10.10.10.1 shared-secret mys
94
103
cumulus@switch:~$ nv set system dot1x radius server 10.10.10.1 authentication-port 2813
95
104
cumulus@switch:~$ nv set system dot1x radius server 10.10.10.1 accounting-port 2812
96
105
cumulus@switch:~$ nv set system dot1x radius client-src-ip 10.10.10.6
106
+
cumulus@switch:~$ nv set system dot1x radius nas-ip-address 10.10.10.3
97
107
cumulus@switch:~$ nv set system dot1x reauthentication-interval 40
98
108
cumulus@switch:~$ nv set interface swp1,swp2,swp3 dot1x eap enabled
99
109
cumulus@switch:~$ nv config apply
100
110
```
101
-
<!--feature in 5.8
102
-
To assign a tagged VLAN for voice devices and assign different VLANs to the devices based on authorization:
103
111
104
-
```
105
-
cumulus@switch:~$ nv set interface swp1,swp2,swp3 dot1x voice-vlan 20 enabled
106
-
cumulus@switch:~$ nv config apply
107
-
```
108
-
-->
109
112
{{%notice note%}}
110
113
When you enable or disable 802.1X on an interface, `hostapd` reloads; however, existing authorized sessions do not reset.
111
114
{{%/notice%}}
@@ -118,6 +121,7 @@ Edit the `/etc/hostapd.conf` file to configure 802.1X settings, then restart the
118
121
The following example:
119
122
- Sets the 802.1X RADIUS server IP address to 10.10.10.1.
120
123
- Sets the 802.1X RADIUS shared secret to mysecret.
124
+
- Sets the NAS IP address (`own_ip_addr`) to 10.10.10.3 and the NAS identifier (`nas_identifier`) to AP-123.
121
125
- Enables 802.1X on swp1 through swp3.
122
126
123
127
```
@@ -128,6 +132,8 @@ interfaces=swp1,swp2,swp3
128
132
auth_server_addr=10.10.10.1
129
133
auth_server_port=1812
130
134
auth_server_shared_secret=mysecret
135
+
own_ip_addr=10.10.10.3
136
+
nas_identifier="AP-123"
131
137
...
132
138
```
133
139
@@ -138,6 +144,7 @@ The following example:
138
144
- Sets the 802.1X RADIUS authentication port to 2813.
139
145
- Sets the 802.1X RADIUS accounting port to 2812.
140
146
- Sets the fixed IP address for the RADIUS client to receive requests to 10.10.10.6.
147
+
- Sets the NAS IP address (`own_ip_addr`) to 10.10.10.3.
0 commit comments