Linux (32-bit) Campus Network Access Guide (802.1x)

Source: Internet
Author: User

Linux (32-bit) Campus Network Access Guide (802.1x) I found that many people are still worried about the campus network. This article provides detailed methods as much as possible, but it cannot guarantee that all methods are feasible. However, I successfully passed the test on the local machine. Hope to help people in need!

Prerequisites:
First, you have applied for an account for the campus network:
Internet account: a0155025s
Internet password :****
IP Address: 218. 196 .***.***
Subnet Mask: 255.255.255.0
Gateway: 218. 192. ****. 254
Preferred DNS: 202.197.64.6
Backup DNS: 202.103.96.68

1. Configure the network
Enter the neat command under the terminal to go to the network settings page:
1. Edit the eth0 Device
On the "General" tab, select "static IP Address" and enter the IP address, subnet mask, and default gateway.

2. Set DNS
Enter the preferred and alternative DNS in the DNS settings column, as shown in the above figure.

Ii. Client Authentication and use of campus network 802

1. Install
Download the 802.1X client used in Linux and decompress it (Here we assume the folder you decompress is 802.1x)

Code:

#su
password:

#cd  802.1x

#./PRE. PS (or PS pre. ps)
# Linux1x-C
(This is to configure your client. It must be noted that your school's network supports broadcast or multicast. We recommend that you select broadcast and then select no for multicast, because we have configured static IP addresses
"Refresh your IP address after connecting? (Y/N ):Enter "N". Believe that you understand English. For detailed configuration, see reference)

# Linux1x-d
(Enter your campus network account and password here)
In this way, when you see the successful information, you can go to your campus network.
Reference:

The next time you enter the system, you can directly connect to the campus network using linux1x. In addition
Here linux1x 1 is the number "1", not the letter "L "!

2. Usage reference

Reference:

Use
You can use command lines to interact with programs.
Configure user information
You can run the following command to configure user information:
Linux1x-C
Initiate Network Authentication
You can run the following command to start authentication:
Linux1x [-u username [/password] [-N netchar] [-D] [-p]
No parameter. If no parameter exists, the parameter of the last successful authentication is used.
-After U, enter the user name and password.
-After N, enter the name of the authentication Nic, such as eth0, eth1, and eth2.
-D indicates that the program runs in daemon mode. After passing authentication, it is transferred to the background for running.
-P prompts the user to enter the required information one by one
Example:
You can run the following command to authenticate the network adapter eth0 by using user1 and pass1 as the password:
(1) linux1x-u user1/pass1-N eth0 (running on the foreground by default)
(2) linux1x-u user1/pass1-N eth0-D (go to the background after passing authentication)
(3) linux1x-u user1/pass1 (enter the required information in the prompt)
(4) linux1x (enter the required information in the prompt)
(5) linux1x-P (if you do not use the Stored User authentication information, you are prompted to enter all required information)

View network status and version information
Run the following command to view the network status and version information:
Linux1x-V [seconds]
-V: Enter the time to be displayed, in seconds.
Example:
1. If you want to keep viewing network statistics, run the following command:
(1) linux1x-V
(2) linux1x-V 0

2. If you want to view the network statistics for a period of time and exit after 5 seconds, run the following command:
(1) linux1x-V 5

Disconnect a network
You can run the following command to disconnect the network:
Linux1x-K
-K: disconnect the current network.

Supplement:
Full guide to online authentication client configuration (linux1x-C)

#./PRE. PS # Run the installation script
Configuration directory exist
Refresh IP script is ready.
Authencation file is ready.
Pre operation finished successfully

# Linux1x-C # configure Internet Parameters
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...
Save message and package to log...
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 ):
N

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! # Configuration successful

Root @ trubuntu :~ /Client # linux1x-d
Please enter your user name (less than 128 characters): xxxxxx # enter your account name
Please enter your password (less than 64 characters): # enter the account password
Start 802.1X Authentication
Device check
Server check
Internet Systems Consortium DHCP Client v3.0.2
Copyright 2004 Internet systems consortings.
All rights reserved.
For info, please visitHttp://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 register 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
...............
Networking successful.

PS: ensure that your Nic has been activated once; otherwise, run # IFUP eth0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.