How to Use ruijie to access the Internet in Ubuntu of Dalian Medical University (with clients)

Source: Internet
Author: User
Tags nameserver

Configure the network IP address and DNS for ruijie

1. Configure the IP Gateway: sudo gedit/etc/Network/interfaces

Change the static IP address configuration file to your own parameters () as follows ():

Auto Lo
Iface lo Inet loopback
Auto eth0
Iface eth0 Inet static
# Pre-up ifconfig eth0 HW ether 50: AF: 73: 1D: CD: F3
Address 210.47.248.180
Netmask 255.255.255.0
Gateway 210.47.248.254
Nameserver 8.8.8.8

2. Configure DNS:
Sudo gedit/etc/resolv. conf

Add nameserver 8.8.8.8

Sudo gedit/etc/resolvconf/resolv. conf. d/head

Add nameserver 8.8.8.8

3. Restart the network: sudo/etc/init. d/networking restart

The graphical network settings also need to be changed. In the upper-right corner, modify the network management record. Click the Network icon, click Edit connection, edit Wired connection (or display Ethernet connection), change DHCP to manual, and then modify the IP address, subnet Mask, gateway, DNS, etc. After modification, restart the system.

========================================================== ==============================================

After modifying the IP address, you can use the ruijie client to access the Internet.

First, the official Linux client is provided.

Rjsupplicant: http://pan.baidu.com/s/1eQ9ZEJw

Decompress the package and open the terminal to enter the terminal supplicant folder. Run the client with the root permission: sudo bash login supplicant. Sh-u username-P password-D 0

You can also write a script to run this program. You can take a look at the detailed description in this zip package.

 

============================================

You can use the official client to access the Internet, but there is a problem, that is, you cannot enable multiple NICs, or it will be forced to go offline. Someone wrote a small program mentohust to simulate sending a verification package from the client, in this way, you can enable the multi-nic mode. When the multi-nic mode is enabled, you can use the virtual machine to access the Internet normally, so that you can establish a hotspot through a wireless network. Since the source code of mentohus is stored on Google, it is inconvenient to download it. I downloaded it and put it on Baidu cloud for your convenience.

Mentohust: http://pan.baidu.com/s/1o6oKEH8

Ubuntu32-bit mounting mentohust_0.3.4-1_i386.deb

Ubuntu64-bit mounting mentohust_0.3.4-1_amd64.deb

After installation, enter sudo mentohust on the terminal.

Mentohust will prompt you to select the NIC. Generally, select eth0 and enter the IP address. The multicast address uses the 1 method, that is, the ruijie method, and the DHCP method does not use the 0 method. Then you can verify the Internet access.

This zip package also contains the RPM package, so centos6 and later versions can also be installed through the above method.

========================================================== ========================================================== ============

Appendix 1 authentication supplicant client-help

 

-D -- DHCP mode (with parameters, 0 indicates static IP authentication, 1 indicates Dynamic IP authentication, and-D indicates the previous configuration by default)

-N -- Nic authentication (the parameter is the name of the NIC (refer to the-l result). If this parameter is not specified, the NIC or the first Nic used at the previous time is used)

-S -- Service (the parameter is the service name (refer to the-l result). If this parameter is not specified, the previous service or the first service will be used)

-U -- User username (the parameter is the username. If this parameter is not specified, the user name used in the previous operation is used)

-P -- Password (the parameter is a password. If no password is set, You can reset it after running the program. The default value is null unless the password has been saved)

-S -- save Save Password (with a parameter, 0 indicates that the password is not saved, 1 indicates that the password is saved, and the last configuration is used when not specified)

-Q -- quit exit the program (without parameters, use the-Q command to exit the client running in the background)

-L -- List View Mode: No parameter. When this mode is specified, only information is viewed and not authenticated. The content includes: version number, current authentication method, current Nic, current service (optional), user name, service list (optional), and nic list. By default, information under the current authentication method is displayed.

-- Comments: Enable the background running method: Add "&" after the command line; disable the terminal output method: Add "> &-" before "&"; exit the background mode, run the-Q command. The output log is in "/home/yue941212/download/export supplicant/x64/log/run. log "in

 

Appendix 2 How to Use mentohust

This method is applicable to ubuntu12.04 ubuntu12.10 ubuntu13.04 ubuntu13.10 ubuntu14.04;
Theoretically applicable to all Linux versions
Project Homepage
Http://code.google.com/p/mentohust/
Software
Http://code.google.com/p/mentohust/downloads/list
Select the appropriate installation package, and Deb can be easily selected under Ubuntu (note that the system version is 32/64 bits)
Double-click the installation button and find the edit link option under the network connection icon in the upper-right corner of the screen to edit your IP address and DNS (applicable to static IP addresses), or configure it in network connections through the command line, I personally recommend the first one, because a network error is displayed under the command line.
Then, run the following three files, namely beibei8021x.exe w32n55. dll suconfig. dat, In the winxierui folder, in the Linux directory.
Sudo mkdir/etc/mentohust
Sudo CP./8021x.exe/etc/mentohust
Sudo CP./w32n55. dll/etc/mentohust
Sudo CP./suconfig. dat/etc/mentohust
After entering the sudo mentohust information, you can connect to the Internet. Be sure not to disable bash, or use sudo gedit/etc/mentohust. conf to edit the configuration file. Then, you can directly connect sudo mentohust to the Internet. Here is a tip. After mentohust, add & such as sudo mentohust & to run the process in the background. In this case, you can close bash without affecting the Internet access of ruijie.
Configuration details:
Nic
Nic = eth0
Static IP users can use non-local IP addresses
IP = your IP address
; Mask, irrelevant
Mask = Subnet Mask
; Gateway, if specified, it will monitor the gateway ARP Information
Gateway = 0.0.0.0
; DNS server, irrelevant
DNS = 0.0.0.0
; Ping the host for disconnection detection. 0.0.0.0 indicates that this function is disabled.
Pinghost = 0.0.0.0
; Timeout time for each packet sending (seconds)
Timeout = 8
; Interval of sending the ECHO packet (seconds)
Echointerval = 30
; Failed wait (seconds) authentication failed wait for restartwait seconds or server request and then restart Authentication
Restartwait = 15
The multicast address type when searching for the server 0 standard 1 ruijie 2 Use mentohust for Xaar Authentication
Startmode = 1
DHCP Mode 0 (not used) 1 (Secondary authentication) 2 (after authentication) 3 (before authentication)
Dhcpmode = 0
; Whether to run in the background: 0 (NO) 1 (yes, disable output) 2 (yes, retain output) 3 (yes, output to file/tmp/mentohust. Log)
Daemonmode = 0
; Whether to display notifications: 0 (NO) 1 ~ 20 (yes)
Showpolicy = 5
Client Version number. If Client verification is not enabled but the version number is required, you can specify it here, as shown in Figure 3.30
Version = 4.31
; Authenticate the data file. If you need to verify the client, you need to set it correctly.
Datafile =/etc/mentohust/
; DHCP script

 

How to Use ruijie to access the Internet in Ubuntu of Dalian Medical University (with clients)

Related Article

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.