LINUX 下没有MD5时802.1X连接方法 下载本文

内容发布更新时间 : 2024/5/20 6:00:22星期一 下面是文章的全部内容请认真阅读。

LINUX 下802.1X连接,没有MD5时:

客户端下载地址:http://pan.http://www.35331.cn//netdisk/singlepublic?fid=309890_1841005760 安装客户端:

下文以Ubuntu Linux为例

*********************************   上网认证客户端配置指南 *********************************

happy@trubuntu:~/$unzip linux_client.zip happy@trubuntu:~/$cd client/

happy@trubuntu:~/client$

sudo

-sH

                            ##取得root权限 Password:

root@trubuntu:~/client#

./pre.ps

                            ##运行安装脚本 configuration directory exist Refresh IP script is READY. Authencation file is READY. pre operation finished successfully

root@trubuntu:~/client#

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 :   ##询问是使用“广播触发”模式还是使用“多播触发”,在WINDOWS中我们必须配置客户端为“多播触发”才可以上网,但Linux中的这个客户端你选哪个都能正常上网,所以写1写2可随意。 2

Send all packets by multicast? (Y/N): y Refresh

your

IP

address

after

connecting?

(Y/N):

            ##询问连接后是否更新IP,看你个人意愿和系统需要,如果你使用redhat、fedora core最好选择是,因为红帽的系统常常无法自动获得IP,如果你是其他发行版,比如Ubuntu,可以选否。 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): y

Configuration has finished, do you want to save it?(Y/N)       ##询问是否保存配置文件,这个要选Y设置才会生效 y Save

configuration

sucessfully!

                      ##配置成功

root@trubuntu:~/client# 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/DHCP

sit0: 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即可。

                                         

                                   

              802.1x Supplicant for Linux 安装使用说明

目录

  安装   解压缩

  执行安装文件   使用

  配置用户信息   发起网络认证

  查看网络状态和版本信息   断开网络连接 安装

  安装过程分为两个步骤,首先解开压缩包,然后执行安装文件。 解压缩

  unzip linux_client.zip 执行安装文件

  到展开的文件夹中执行   ./pre.ps 使用

  用户可通过命令行的方式和程序进行交互。 配置用户信息

  可以通过如下命令开始用户信息的配置:   linux1x –c 发起网络认证

  可以通过如下命令开始认证:

  linux1x [-u username[/password]] [-n netchar] [-d] [-p]   无参数 如果没有参数,则使用上次成功认证的参数   -u 后输入的应是用户名和密码

  -n 后输入的应是认证网卡的名字,如eth0, eth1, eth2 等等   -d 标识程序以守护方式运行,通过认证后转到后台运行   -p 逐项提示用户输入需要的信息 例子:

用户想通过用户名为user1,密码为pass1,网卡eth0发起认证,可使用如下命令: (1) linux1x –u user1/pass1 –n eth0 (默认为在前台运行)

(2) linux1x –u user1/pass1 –n eth0 –d (通过认证后转到后台运行) (3) linux1x –u user1/pass1 (在随后的提示中输入需要的信息) (4) linux1x (在随后的提示中输入需要的信息)

(5) linux1x –p (不使用存储的用户认证信息,提示输入所有的需要的信息) 查看网络状态和版本信息

  可通过如下命令查看网络状态和版本信息:   linux1x –v [seconds]

  -v 后可输入想要显示的时间,以秒为单位 例子:

1. 用户想一直查看网络统计信息, 可使用如下命令: (1) linux1x –v (2) linux1x –v 0

2. 用户想查看一段时间的网络统计信息,如想查看5秒后退出,可使用如下命令: (1) linux1x –v 5 断开网络连接

  用户可通过如下命令断开网络连接   linux1x –k

  -k 断开当前的网络连接

客户端使用常见故障及其解决方法(等待补充)

1. 2. 3. 4. 5. 6.

happy@traveller2:~$ linux1x -d

ERROR! Can't initial authentication program ! happy@traveller2:~$ linux1x -c

ERROR! Can't initial authentication program !

复制代码

出现上述情况的原因有两个:

1、没有使用root权限无法执行客户端; 2、网卡未被驱动或未被激活,运行命令

1. 2. 3. 4. 5. 6. 7. 8. 9.

happy@traveller2:~$ ifconfig

lo     Link encap:Local Loopback

      inet addr:127.0.0.1 Mask:255.0.0.0       inet6 addr: ::1/128 Scope:Host

      UP LOOPBACK RUNNING MTU:16436 Metric:1       RX packets:33 errors:0 dropped:0 overruns:0 frame:0       TX packets:33 errors:0 dropped:0 overruns:0 carrier:0       collisions:0 txqueuelen:0

      RX bytes:1682 (1.6 KiB) TX bytes:1682 (1.6 KiB)

10. 没有发现eth0,如果网卡驱动已经自动装好,可以使用命令sudo ifup eth0来激活网卡。 复制代码

对于第一个情况,取得root权限就可以了(不知道如何取得root权限的面壁去^_^),也可以为linux1x设置suid权限