找了好久才找到的,記錄一下供大家學習!
首先下載用戶端(附件中有)
下載到你的主目錄(也就是home)裡,然後解壓,解壓後就進行下面的命令(注意不要出錯,##後的是注釋,不用輸入)
按照下面的步驟輸入命令,如果有錯誤請在後面跟帖,把錯誤的代碼貼出來!
cd client3
sudo su ##取得root許可權,會需要你輸入密碼
chmod +x * ##給檔案賦予可執行許可權
./pre.ps ##運行安裝指令碼
configuration directory exist
Refresh IP script is READY.
Authencation file is READY.
pre operation finished successfully
linux1x -c ##配置上網參數
configure 802.1X network connection arguments
Current configuration is:
The way to initialize 802.1X authentication.......:multicast
Send all packets by multicast.....................:N
Refresh IP address after connecting...............:Y
Save message and package to log...................:N
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): ##詢問串連後是否更新IP
y
Save message and package to log?(Y/N): ##詢問是否儲存日誌
y
The default save directory is '/var/log/h3c-linux1x/', do you want to change it?(Y/N):
n
Configuration has finished, do you want to save it?(Y/N) ##詢問是否儲存設定檔
y
Save configuration sucessfully! ##配置成功
linux1x -d
Please enter your user name (less than 128 characters):xxxxxx ##輸入你的帳戶名稱
Please enter your password (less than 64 characters): ##輸入帳戶密碼
start 802.1X authentication
device check
server check
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCPsit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:yy:4c:zz:cb:xx
Sending on LPF/eth0/00:yy:4c:zz:cb:xx
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 172.17.138.1
bound to 172.17.138.xx -- renewal in 38286 seconds.
pass authentication
proxy check off
multi-network-card off
http check off
...............
連網成功,密碼會被自動儲存,下次要上網,輸入linux1x -d就可以了。
本文出處:http://bbs.linuxeye.cn/thread-43-1-1.html
感謝作者!