LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-08-2016, 06:45 AM   #1
user256
LQ Newbie
 
Registered: Jul 2016
Posts: 7

Rep: Reputation: Disabled
Setup a WiFi connection in CentOS 7


Hello guys, im trying to setup a connection in CentOS 7. I read some tutorials, i configure my USB WiFI dongle but i can make work.

I'm doing everything with the terminal:

Some information:

Code:
[root@256test ~]# nmcli device show

GENERAL.DEVICE:                         ra0
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         AC:A2:13:1B:D4:C6
GENERAL.MTU:                            1500
GENERAL.STATE:                          70 (connecting (getting IP configuration))
GENERAL.CONNECTION:                     Wired connection 1
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/48
WIRED-PROPERTIES.CARRIER:               on

Code:
[root@256test ~]# ifconfig
ra0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether ac:a2:13:1b:d4:c6  txqueuelen 1000  (Ethernet)
        RX packets 4155301  bytes 1491204156 (1.3 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 28  bytes 2912 (2.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Code:
[root@256test ~]# nmcli dev status
DEVICE  TYPE      STATE         CONNECTION   
ens33   ethernet  connected     System ens33 
ra0     ethernet  disconnected  --           
lo      loopback  unmanaged     --

Code:
root@256test ~]# nmcli con show
NAME                UUID                                  TYPE            DEVICE 
Wired connection 1  40a44f6e-698b-4ab4-9a21-9499d6c76c2b  802-3-ethernet  ra0    
System ens33        c8970de8-2497-4631-aa14-0bbff95b975e  802-3-ethernet  ens33

Code:
[root@256test ~]# lsusb
Bus 001 Device 002: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
ra0 is my usb dongle wifi.

Any idea? Thanks
 
Old 07-08-2016, 09:06 AM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

Which driver did you use and how did you install it? I have the exact same adapter chip and it took a "bit of doing" to get it working. In case it helps, although for Ubuntu, the procedure that involves the use of a patch here worked for me. However, the location of the driver has changed. You can find it here.

Quote:
Download Driver and Patch by using the links.

Do not connect the USB:

sudo apt-get install --reinstall linux-headers-generic build-essential
tar xjf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2
cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/
patch -p0 < ~/(ADD THE PATH)/rt2870-mt7601Usta-kuid_t-kgid_t.patch
make
su -c 'mkdir -p /etc/Wireless/RT2870STA/'
su -c 'cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat'

Connect the USB

su -c '/sbin/insmod os/linux/mt7601Usta.ko'

If works:

su -c 'make install'
Please keep in mind that if you try this, it may not work and you will probably need to modify the instructions a bit for your distribution.

Regards...

Last edited by ardvark71; 07-08-2016 at 09:08 AM. Reason: Correction.
 
Old 07-08-2016, 09:16 AM   #3
user256
LQ Newbie
 
Registered: Jul 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Well long story:

https://www.centos.org/forums/viewto...p?f=47&t=58406
 
Old 07-08-2016, 09:37 AM   #4
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by user256 View Post
Hi...

So none of the options here helped?

Regards...
 
Old 07-08-2016, 09:50 AM   #5
user256
LQ Newbie
 
Registered: Jul 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
How can i check if the hardware is properly installed?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Am looking for the best server to setup wifi between CentOS & Ubuntu King_Awesomeness Linux - Newbie 2 04-15-2014 05:01 AM
Sharing a wifi connection via a wifi router on a linux machine (see pic) linuxquestionsofandrew Linux - Networking 0 07-21-2013 07:45 AM
[SOLVED] WiFi Connection Failure on Intel Corporation WiFi Link 5100 physicsguru Linux - Wireless Networking 1 04-08-2011 07:41 PM
dual wifi and wired connection: how to make a specific website use only wifi? shinji2001xyz Linux - Networking 2 04-08-2010 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration