LinuxQuestions.org
Visit Jeremy's Blog.
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 02-29-2016, 09:53 AM   #1
sndlt
Member
 
Registered: Jun 2014
Posts: 55

Rep: Reputation: Disabled
Wi-Fi without Network Manager


After 5 hours of reading up all articles on "CentOS 7" - "Wifi via cli" on the web, I come here for help.
Still failing.
Here are list of things I tried but still no connection with these errors on "journalctl -xe"
Code:
Feb 28 22:08:59 os.aio network[4940]: Bringing up interface connect:  command failed: Network is down (-100)
Feb 28 22:09:05 os.aio network[4940]: Bringing up interface wlp2s0:  wlp2s0 (phy #0): failed to connect, status: 1: Unspecified fai
Feb 28 22:09:05 os.aio network[4940]: RTNETLINK answers: File exists
Code:
[centos@os ~]$ history
   33  ifup wlp3s0
   34  sudo ifup wlp3s0
   35  sudo ifup enp0s25
   36  sudo su -
   37  ifconfig
   38  ping 8.8.8.8
   39  ifdown wlp2s0
   40  sudo ifdown wlp2s0
   41  ping 8.8.8.8
   42  ifconfig
   43  sudo ifup enp0s25
   44  sudo ifdown enp0s25; ifup enp0s25;
   45  sudo ifdown enp0s25; sudo ifup enp0s25;
   46  ping 8.8.8.8
   47  cd /etc/sysconfig/network-scripts/
   48  ls
   49  vim ifcfg-enp0s25 
   50  sud vim ifcfg-enp0s25 
   51  sudo vim ifcfg-enp0s25 
   52  sudo reboot
   53  history
   54  ifconfig
   55  sudo systemctl status NetworkManager
   56  sudo systemctl status network.service
   57  sudo systemctl restart network.service
   58  vim /etc/selinux/semanage.conf 
   59  ls /etc/selinux/
   60  vim /etc/selinux/config 
   61  sudo vim /etc/selinux/config 
   62  history
   63  sudo su -
   64  lsmod
   65  lspci
   66  iw dev
   67  cd /etc/wpa_supplicant/
   68  ls
   69  cat wpa_supplicant.conf 
   70  sudo cat wpa_supplicant.conf 
   71  sudo ifdown wlp2s0; sudo ifup wlp2s0;
   72  history
   73  sudo su -
   74  ifconfig
   75  ping 8.8.8.8
   76  sudo ifdown wlp2s0
   77  ping 8.8.8.8
   78  ifconfig
   79  sudo ifup enp0s25
   80  sudo systemctl restart network.service
   81  sudo ifdown enp0s25; ifup enp0s25;
   82  sudo ifdown enp0s25; sudo ifup enp0s25;
   83  ping 8.8.8.8
   84  netstat -nr
   85  ifconfig
   86  sudo ifdown wlp2s0
   87  ping 8.8.8.8
   88  sudo ifdown enp0s25; sudo ifup enp0s25;
   89  ping 8.8.8.8
   90  history
   91  ls
   92  sudo su -
   93  history
   94  sudo su -
   95  history
[centos@os ~]$ 

   22  yum remove networkmanager
   23  yum remove network-manager
   59  cd /etc/sysconfig/network-scripts/
   60  ls
   61  vim ifcfg-wlp2s0 
   62  sudo if connect up
   63  sudo ifup connect 
   64  ls /etc
   65  ls /etc/wpa_supplicant/
   66  cat /etc/wpa_supplicant/wpa_supplicant.conf 
   67  vim /etc/wpa_supplicant/wpa_supplicant.conf 
   68  ls /var/run
   69  ls
   70  cat keys-connect 
   71  vim /etc/wpa_supplicant/wpa_supplicant.conf 
   72  vim ifcfg-wlp2s0 
   73  ifup wlp2s0
   74  ls
   75  ifup connect
   76  vim ifcfg-connect 
   77  systemctl restart wpa_supplicant.service
   78  ifup connect
   79  wpa_supplicant -B -iwlp2s0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
   80  vim /etc/wpa_supplicant/wpa_supplicant.conf 
   81  wpa_supplicant -B -iwlp2s0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
   82  ls
   83  vim ifcfg-wlp2s0 
   84  cat ifcfg-connect 
   85  vim ifcfg-wlp2s0 
   86  wpa_supplicant -B -iwlp2s0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
   87  ifup wlp2s0 
   88  sudo ifup wlp2s0 
   89  systemctl restart network.service
   90  journalctl -xe
   91  sudo systemctl restart network.service
   92  journalctl -xe
   93  reboot
   94  systemctl restart network.service
   95  journalctl -xe
   96  history
   97  ifdown enp0s25; ifup enp0s25
   98  ifconfig
   99  ping 8.8.8.8
  100  ifdown enp0s25; ifup enp0s25;
  101  ifdown wlp3s0; ifup wlp3s0;
  102  netstat -nr
  103  cd /etc/sysconfig/network-scripts/
  104  ifconfig
  105  ls
  106  vim ifcfg-enp0s25 
  107  ifdown enp0s25; ifup enp0s25;
  108  ping 8.8.8.8
  109  netstat -nr
  110  ping 172.16.0.1
  111  ifdown wlp3s0
  112  ping 172.16.0.1
  113  history
  114  ls
  115  packstack --allinone
  116  ifconfig
  117  ping 8.8.8.8
  118  cd /etc/sysconfig/network-scripts/
  119  ls
  120  cat ifcfg-wlp2s0 
  121  ls
  122  cat ifcfg-connect 
  123  cat ifcfg-wlp2s0 
  124  ls
  125  vim ifcfg-connect 
  126  vim ifcfg-wlp2s0 
  127  history
  128  exit
  129  lsmod
  130  history
  131  lsmod
  132  lspci
  133  iw dev
  134  cd /etc/sysconfig/network-scripts/
  135  ls
  136  cat ifcfg-wlp2s0 
  137  iw wlan0 link
  138  cat ifcfg-wlp2s0 
  139  iw dev
  140  history
  141  iw wlp2s0 link
  142  history
  143  cat /etc/wpa_supplicant/wpa_supplicant.conf 
  144  cd /etc/sysconfig/network-scripts/
  145  ls
  146  cat ifcfg-enp0s25 
  147  ls
  148  cat ifcfg-connect 
  149  ls
  150  cat ifcfg-wlp2s0 
  151  ping 8.8.8.8
  152  netstat -nr
  153  ping 172.16.0.1
  154  ifconfig
  155  ping 172.16.255.1
  156  ls
  157  vim ifcfg-wlp2s0 
  158  ls
  159  vim ifcfg-connect 
  160  ifconfig
  161  sudo ifdown wlp2s0; sudo ifup wlp2s0;
  162  sudo ifdown connect; sudo ifup connect;
  163  ifconfig
  164  nestat -nr
  165  netstat -nr
  166  ping 172.16.0.1
  167  systemctl restart network.service
  168  journalctl -x
  169  journalctl -xe
  170  ls
  171  lspci
  172  lsmod
  173  iw link
  174  iw dev
  175  ls
  176  vim ifcfg-wlp2s0 
  177  vim ifcfg-connect 
  178  vim ifcfg-wlp2s0 
  179  sudo ifdown connect; sudo ifup connect;
  180  ping 8.8.8.8
  181  ifconfig
  182  systemctl restart network.service
  183  ifconfig
  184  systemctl restart network.service
  185  netstat -nr
  186  ifconfig
  187  cat /etc/resolv.conf 
  188  ls
  189  vim ifcfg-jus
  190  vim ifcfg-connect 
  191  vim ifcfg-wlp2s0 
  192  ping 172.16.0.1
  193  journalctl -xe
  194  history
  195  reboot
  196  history
[root@os ~]# 

[root@os ~]# cat /etc/wpa_supplicant/wpa_supplicant.conf 
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
        ssid="connect"
        psk="fine01"

}
[root@os ~]# 

[root@os network-scripts]# cat ifcfg-enp0s25 
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s25
UUID=b9eacc0f-c0a5-435f-9ec9-8691dc73dd3a
DEVICE=enp0s25
ONBOOT=yes
DNS1=8.8.8.8
DNS2=8.8.4.4
IPADDR=172.16.254.1
PREFIX=16
GATEWAY=172.16.0.1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
[root@os network-scripts]# 

[root@os network-scripts]# cat ifcfg-connect 
HWADDR=C0:D9:62:17:5F:54
ESSID="connect"
MODE=Managed
KEY_MGMT=WPA-PSK
TYPE=Wireless
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=connect
UUID=005dda26-61a9-4dc1-b2c8-7c45dd253f48
ONBOOT=yes
IPADDR=172.16.255.1
PREFIX=16
GATEWAY=172.16.0.1
DNS1=8.8.8.8
DNS2=8.8.4.4
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
[root@os network-scripts]# 

[root@os network-scripts]# cat ifcfg-wlp2s0 
ESSID="connect"
MODE=Managed
TYPE=Wireless
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=wlp2s0
UUID=0078b2a8-4fb3-4eba-8b9d-d98151dad1af
DEVICE=wlp2s0
ONBOOT=yes
WPA=yes
HWADDR=C0:D9:62:17:5F:54
[root@os network-scripts]# 

[centos@os ~]$ lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7550M/7570M/7650M]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Turks/Whistler HDMI Audio [Radeon HD 6000 Series]
02:00.0 System peripheral: Ricoh Co Ltd PCIe SDXC/MMC Host Controller (rev 07)
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
[centos@os ~]$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
    link/ether b8:6b:23:a1:ad:0c brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
    link/ether c0:d9:62:17:5f:54 brd ff:ff:ff:ff:ff:ff
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT 
    link/ether 52:54:00:7a:20:fe brd ff:ff:ff:ff:ff:ff
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN mode DEFAULT qlen 500
    link/ether 52:54:00:7a:20:fe brd ff:ff:ff:ff:ff:ff
[centos@os ~]$ iw dev
phy#0
        Interface wlp2s0
                ifindex 3
                wdev 0x1
                addr c0:d9:62:17:5f:54
                type managed
[centos@os ~]$
 
Old 03-01-2016, 07:49 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Looking through the history that you posted you removed your Network Manager.

Code:
   22  yum remove networkmanager
   23  yum remove network-manager
What version of CentOS are you running and what DE are you using?

https://www.centos.org/docs/5/html/D...-wireless.html
 
Old 03-01-2016, 07:55 PM   #3
sndlt
Member
 
Registered: Jun 2014
Posts: 55

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Looking through the history that you posted you removed your Network Manager.

Code:
   22  yum remove networkmanager
   23  yum remove network-manager
What version of CentOS are you running and what DE are you using?

https://www.centos.org/docs/5/html/D...-wireless.html
Using 7! (or 7.2)

What's DE? You mean adapter?
 
Old 03-01-2016, 08:15 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by sndlt View Post
Using 7! (or 7.2)

What's DE? You mean adapter?
Desktop Environment. Gnome? KDE? XFCE?
 
Old 03-01-2016, 08:22 PM   #5
sndlt
Member
 
Registered: Jun 2014
Posts: 55

Original Poster
Rep: Reputation: Disabled
GNOME sir
 
Old 03-01-2016, 08:24 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by sndlt View Post
GNOME sir
Do you see the Network Manager in the upper right hand corner of your Gnome desktop?

https://access.redhat.com/documentat...rkManager.html

Last edited by Ztcoracat; 03-01-2016 at 08:30 PM.
 
Old 03-01-2016, 08:31 PM   #7
sndlt
Member
 
Registered: Jun 2014
Posts: 55

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Do you see the Network Manager in the upper right hand corner of your Gnome desktop?

https://access.redhat.com/documentat...rkManager.html
Per post, trying to do without it.
 
Old 03-01-2016, 08:48 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by sndlt View Post
Per post, trying to do without it.

Is there a reason why you don't want NM?
-::-I don't see how you will be able to take your Centos machine online w/o Network Manager.-::-

To start the Network in the Terminal you can try:
Code:
/etc/initid/networking start
I'm not sure if that cmd will work w/o the Network MGR or w/o the Network Daemon installed.

This might work. I've never tried it-
http://askubuntu.com/questions/67847...etwork-manager
 
Old 03-01-2016, 09:25 PM   #9
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
You can install the NetworkManager-tui package and use the nmtui utility from the command line to configure network manager.
 
Old 03-01-2016, 09:57 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
NMTUI
https://access.redhat.com/documentat...ing_nmtui.html

Thanks for chiming in Doug G.
 
Old 03-02-2016, 12:20 AM   #11
sndlt
Member
 
Registered: Jun 2014
Posts: 55

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Is there a reason why you don't want NM?
-::-I don't see how you will be able to take your Centos machine online w/o Network Manager.-::-

To start the Network in the Terminal you can try:
Code:
/etc/initid/networking start
I'm not sure if that cmd will work w/o the Network MGR or w/o the Network Daemon installed.

This might work. I've never tried it-
http://askubuntu.com/questions/67847...etwork-manager
HAHA! Me too but RDO OpenStack requires it.
LOL.
Need the wireless on top of existing wired connection to work.
can NMTUI work without NM?
 
Old 03-02-2016, 03:04 PM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by sndlt View Post
HAHA! Me too but RDO OpenStack requires it.
LOL.
Need the wireless on top of existing wired connection to work.
can NMTUI work without NM?
I've never tried NMTUI w/o NM so you'd have to give it a go to see.
Looking at the NMTUI tools it looks like it works in a similar way that NM does. So......
I suspect that if you follow everything in that Red Hat link it should work because Centos is the free version of RH.

I found the answer in the documentation-
Quote:
If required, for details on how to verify that NetworkManager is running
It looks like the Network Manager Daemon is needed.
https://access.redhat.com/documentat...Manager_Daemon

-::-Any documentation that I have followed on the RH or Centos site has always worked for me.-::-

Last edited by Ztcoracat; 03-02-2016 at 03:11 PM.
 
Old 03-02-2016, 03:33 PM   #13
sndlt
Member
 
Registered: Jun 2014
Posts: 55

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
I've never tried NMTUI w/o NM so you'd have to give it a go to see.
Looking at the NMTUI tools it looks like it works in a similar way that NM does. So......
I suspect that if you follow everything in that Red Hat link it should work because Centos is the free version of RH.

I found the answer in the documentation-

It looks like the Network Manager Daemon is needed.
https://access.redhat.com/documentat...Manager_Daemon

-::-Any documentation that I have followed on the RH or Centos site has always worked for me.-::-
at this point, kind of giving up. haha.
thanks very much for trying.
RDO direction per below but doubt it matters so much.

http://community.redhat.com/blog/201...neutron-dance/
"In order to get our OpenStack instance into more useful shape, we need to reconfigure networking a bit, beginning by disabling NetworkManager:"
 
Old 03-02-2016, 03:39 PM   #14
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by sndlt View Post
at this point, kind of giving up. haha.
thanks very much for trying.
RDO direction per below but doubt it matters so much.

http://community.redhat.com/blog/201...neutron-dance/
"In order to get our OpenStack instance into more useful shape, we need to reconfigure networking a bit, beginning by disabling NetworkManager:"
You're Welcome.

Good Luck
 
  


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
Wireless network connects and works fine, but doesnt show up on the network manager newbie236 Linux - Newbie 1 07-07-2010 01:47 AM
[SOLVED] How do I switch the network manager from YAST back to the default network manager? skykooler SUSE / openSUSE 7 03-09-2010 07:28 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Debian 5 05-29-2009 03:02 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Linux - Newbie 2 05-28-2009 09:51 AM
Unable to connect to wifi network with network manager. Poss authorization issue openSauce Linux - Networking 14 12-13-2008 11:05 AM

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

All times are GMT -5. The time now is 03:21 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