qshinoの日記

Powershell関係と徒然なこと

802.1x 有線lan ubuntu

有線LANの802.1x認証

概要

  1. /etc/wpa_supplicant/wpa_supplicant.conf
  2. 試行
  3. /etc/network/interfaces
  4. sudo /etc/init.d/networking restart

conf

# Where is the control interface located? This is the default path:
ctrl_interface=/var/run/wpa_supplicant
 
# Who can use the WPA frontend? Replace "0" with a group name if you
#   want other users besides root to control it.
# There should be no need to chance this value for a basic configuration:
ctrl_interface_group=0
 
# IEEE 802.1X works with EAPOL version 2, but the version is defaults 
#   to 1 because of compatibility problems with a number of wireless
#   access points. So we explicitly set it to version 2:
eapol_version=2
 
# When configuring WPA-Supplicant for use on a wired network, we don’t need to
#   scan for wireless access points. See the wpa-supplicant documentation if
#   you are authenticating through 802.1x on a wireless network:
ap_scan=0
 
network={
        key_mgmt=IEEE8021X
        eap=PEAP
        identity="myid"
        password="mypw"
        phase1="peaplabel=1"
        phase2="auth=MSCHAPV2"
}

試行

wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -Dwired -ieth0

/etc/network/interfaces

# DHCPなら----
#auto wlan0
#iface wlan0 inet dhcp
#wpa-conf       /etc/wpa_supplicant/wpa_supplicant.conf
# ------------
 
# 固定IPなら--
auto wlan0
iface wlan0 inet static
address <IPアドレス>
netmask <サブネットマスク>
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
gateway <ゲートウェイIP>
# -----------

ネットワーク再起動

sudo /etc/init.d/networking restart

参考

centos x 有線LAN x 802.1x

https://ccie-go.com/centos-8021x-config/

ubuntu x wifi x 802.1x x 自動起動

https://vok.paburica.com/index.php?LinuxTips%2F無線LANの設定をしたい%28Ubuntu%29

ununtu x wifi x 802.1x cli x 試行

https://www.xmisao.com/2014/01/16/how-to-connect-wpa2-wireless-lan-using-wpa-supplicant.html