802.1X on Debian

Disable NetworkManager as we will use wpa_supplicant instead.

root@laptop2:/home/bblab# systemctl stop NetworkManager.service
root@laptop2:/home/bblab# systemctl disable NetworkManager.service

Network/interfaces:

root@laptop2:/home/bblab# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

wpa_supplicant.conf

root@laptop2:/home/bblab# cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
update_config=1
network={
ssid="guest_wifi_ssid"
key_mgmt=WPA-EAP
eap=PEAP
identity="myusername"
password="mypassword"
phase2="auth=MSCHAPV2"
eapol_flags=0
}

Bring up interface.

root@laptop2:/home/bblab# ifup wlan0
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/18:cf:5e:26:83:86
Sending on   LPF/wlan0/18:cf:5e:26:83:86
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPOFFER from 100.95.254.1
DHCPACK from 100.95.254.1
bound to 100.95.254.2 -- renewal in 1376 seconds.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s