天天看点

linux h3c 802.1客户端,RedhatEnterprise AS release4使用华为(H3C 802.1x)客户端上网

使用的是Red Hat Linux 9客户端,Red Hat Linux 7的可能也能用,不过我没试。AS release 5的客户端试了试不能用,会报编译错误。

使用静态的IP,需要设置IP地址,默认网关,子网掩码,主要DNS,并且选择网卡,默认使用eth0。

开始执行网络配置:

[[email protected] h3c802.1xclient]# ./pre.ps

configuration directory exist log directory exist Refresh IP script is READY. Authencation file is READY. pre operation finished successfully

开始配置,先输出的是上次配置保存的日志信息,接着是详细配置步骤:

[[email protected] h3c802.1xclient]# 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...............:Y Save message and package to log...................:Y ///The save directory is.............................:/var/log/h3c-linux1x/

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 :

1

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 '/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!

配置完成。

开始拨号认证:

[[email protected] h3c802.1xclient]# linux1x -u xxjx/xxjx -n eth0

start 802.1X authentication device

check server

check

pass authentication

...

认证成功,现在可以访问互联网了。

我是在反复实验后成功的,不排除是否还需要安装一些库什么的~~