歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu下用華為h3c802.1x認證上網

Ubuntu下用華為h3c802.1x認證上網

日期:2017/2/28 16:26:05   编辑:Linux教程

首先下要用到的兩個文件.h3c802.1xclient.tar.gz和libstdc++_2.96-111_i386.deb下載。

在Linux公社FTP裡:

FTP地址:ftp://www.6688.cc/

用戶名:www.linuxidc.net

密碼:www.6688.cc

在2010年LinuxIDC.com\12月\Ubuntu下用華為h3c802.1x認證上網\

具體下載方法見http://www.linuxidc.net/thread-1186-1-1.html

下載完後就是安裝了.先安裝libstdc++ 雙擊libstdc++_2.96-111_i386.deb就可以完成安裝.
接下來在終端裡:
tar -vzxf h3c802.1xclient.tar.gz #解壓h3c802.1xclient.tar.gz
cd h3c802.1xClient #裡面有三個可執行文件linux1x、pre.ps、renew.ps
sudo chmod a+x linux1x pre.ps renew.ps #加上可執行權限
sudo ./pre.ps #執行裡面的pre.ps
然後在:系統->系統管理->網絡.->連接->屬性配置好網絡(使用靜態IP).並在DNS裡添加DNS服務器:
sudo /etc/init.d/networking restart #重啟一下網絡
接下來是配置認證客戶端.
sudo linux1x -c
終端顯示信息如下:
configure 802.1X network connection arguments
Current configuration is:

The way to initialize 802.1X authentication…….:multicast
Send all packets by multicast…………………:Y
Refresh IP address after connecting……………:N
Save message and package to log……………….:Y
The save directory is………………………..:/home/shine/h3c/
Continue to configure your network connection arguments?(Y/N)
y
There are two ways to initialize 802.1X authentication:
1. Trap by broadcast.
2. Trap by multicast.
Please choose the way to initialize the 802.1X authentication :
2
Send all packets by multicast? (Y/N):
y
Refresh your IP address after connecting? (Y/N):
n
Save message and package to log?(Y/N):
y
The default save directory is ‘/home/shine/h3c/’, do you want to change it?(Y/N):
n
Configuration has finished, do you want to save it?(Y/N)
y
Save configuration sucessfully!

在配置過程中自動更新IP要選N.否則出現如下亂碼:
E2546: ̬IP ַ ʧ (靜態IP地址綁定失敗.出現亂碼是沒有配置好中文)
這時候可以試著執行一下linux1x,第一次執行需要輸入用戶名和密碼,以後就不用了
sudo linux1x -d
start 802.1X authentication
device check
server check
pass authentication
這下就可以上網了!!!!!!!!!!!!
動態IP的請參考華為802.1x認證上網-5.18

Copyright © Linux教程網 All Rights Reserved