Setting up 802.1x auth using command line in Ubuntu

作者: shaneZhang 分类: 互联网技术 发布时间: 2019-12-16 11:07

My company’s network has 802.1x auth. So I need to auth my network.Today we using the nmcli tool to set up network.

which nmcli
nmcli con edit eth0
nmcli> set ipv4.method auto
nmcli> set 802-1x.eap peap
nmcli> set 802-1x.identity USERNAME
nmcli> set 802-1x.phase2-auth mschapv2
nmcli> save
nmcli> quit
Now the system had created a new config file. The path is /etc/NetworkManager/system-connections/eth0

Then we edit it 
sudo vim /etc/NetworkManager/system-connections/eth0


Save the file and close it. Restart NetworkManager to pick up the changes

systemctl restart NetworkManager  
nmcli con down eth0
nmcli con up eth0

Thanks for writing this blog. golink[]

本页面支持繁体中文友好显示:Setting up 802.1x auth using command line in Ubuntu



您的电子邮箱地址不会被公开。 必填项已用 * 标注