LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-06-2015, 08:05 AM   #1
Sagar P Dalvi
LQ Newbie
 
Registered: Dec 2014
Location: India Mumbai
Distribution: Linux Mint
Posts: 6

Rep: Reputation: Disabled
"Error: no device found for connection 'static'.


I am using Red Hat Enterprise 7 for on Vmware. I am getting error which creating network connection with nmcli Here is my all steps

[root@localhost Desktop]# nmcli con show


NAME UUID TYPE DEVICE
etho 9427b62b-0acc-421a-817a-2e7128546e01 802-3-ethernet eno16777736

[root@localhost Desktop]# nmcli con show etho

connection.id: etho connection.uuid: 9427b62b-0acc-421a-817a-2e7128546e01 connection.interface-name: -- connection.type: 802-3-ethernet connection.autoconnect: yes

IP4.ADDRESS[1]: ip = 192.168.233.134/24, gw = 192.168.233.2

IP4.DNS[1]: 192.168.233.2 IP4.DOMAIN[1]: localdomain

[root@localhost Desktop]# nmcli con add con-name "default" type ethernet ifname eth0

Connection 'default' (feb5f62f-276a-4677-82bc-fe60634a6393) successfully added.

[root@localhost Desktop]# nmcli connection add con-name "static" ifname eth0 autoconnect no type ethernet ip4 192.168.2.1/24 gw4 192.168.2.254

Connection 'static' (9fc9247a-8c9a-49fa-995a-859d3be293ba) successfully added.

[root@localhost Desktop]# nmcli con up "static"

Error: no device found for connection 'static'.

[root@localhost Desktop]# nmcli con up "default"

Error: no device found for connection 'default'. [root@localhost Desktop]#


[root@localhost Desktop]# nmcli connection show

NAME UUID TYPE DEVICE
static 9fc9247a-8c9a-49fa-995a-859d3be293ba 802-3-ethernet --
etho 9427b62b-0acc-421a-817a-2e7128546e01 802-3-ethernet eno16777736
default feb5f62f-276a-4677-82bc-fe60634a6393 802-3-ethernet --
[root@localhost Desktop]#

You can see Under DEVICE no lable for Static and Default an any one find out the problem

Thank you Sagar Dalvi
 
Old 02-01-2015, 12:06 AM   #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
Hi:

This link looks like it might help.
http://forums.fedoraforum.org/showthread.php?t=271474

If not try the online Red Hat Documentation.
-:-"Using the NetworkManager Command Line Tool, nmcli"-:-
https://access.redhat.com/documentat...ool_nmcli.html

http://www.redhat.com/en/services/support
http://www.redhat.com/en/search/rhel...Bdocumentation
http://linux.die.net/man/1/nmcli

If Red Hat is your guest what distribution is your host?
 
Old 02-07-2015, 06:22 AM   #3
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Rep: Reputation: 1
Quote:
Originally Posted by Sagar P Dalvi View Post
I am using Red Hat Enterprise 7 for on Vmware. I am getting error which creating network connection with nmcli Here is my all steps

[root@localhost Desktop]# nmcli con show


NAME UUID TYPE DEVICE
etho 9427b62b-0acc-421a-817a-2e7128546e01 802-3-ethernet eno16777736

[root@localhost Desktop]# nmcli con show etho

connection.id: etho connection.uuid: 9427b62b-0acc-421a-817a-2e7128546e01 connection.interface-name: -- connection.type: 802-3-ethernet connection.autoconnect: yes

IP4.ADDRESS[1]: ip = 192.168.233.134/24, gw = 192.168.233.2

IP4.DNS[1]: 192.168.233.2 IP4.DOMAIN[1]: localdomain

[root@localhost Desktop]# nmcli con add con-name "default" type ethernet ifname eth0

Connection 'default' (feb5f62f-276a-4677-82bc-fe60634a6393) successfully added.

[root@localhost Desktop]# nmcli connection add con-name "static" ifname eth0 autoconnect no type ethernet ip4 192.168.2.1/24 gw4 192.168.2.254

Connection 'static' (9fc9247a-8c9a-49fa-995a-859d3be293ba) successfully added.

[root@localhost Desktop]# nmcli con up "static"

Error: no device found for connection 'static'.

[root@localhost Desktop]# nmcli con up "default"

Error: no device found for connection 'default'. [root@localhost Desktop]#


[root@localhost Desktop]# nmcli connection show

NAME UUID TYPE DEVICE
static 9fc9247a-8c9a-49fa-995a-859d3be293ba 802-3-ethernet --
etho 9427b62b-0acc-421a-817a-2e7128546e01 802-3-ethernet eno16777736
default feb5f62f-276a-4677-82bc-fe60634a6393 802-3-ethernet --
[root@localhost Desktop]#

You can see Under DEVICE no lable for Static and Default an any one find out the problem

Thank you Sagar Dalvi
you must have an adapter (device) for the interface. in this case it is eno16777736. so ifname should always be eno16777736 except you have other option in : nmcli dev status like eno2 or etc. you must in this case have only two option 1. eno16777736 and 2. lo. so u can only use one interface at this time. if you have 2 physical ethernet or a ethernet and a wireless interface then youcan add more than one ifname.

in rhel 6 this was not the case. but in 7 it is.
 
  


Reply

Tags
network connectivity



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
No suitable device found: no device found for connection System eth0 eribudi Linux - Networking 8 07-07-2014 11:08 AM
[SOLVED] "No root device found" error in FC14 after upgrade from ...97 to ...100 kernel PaulFC5 Fedora 5 11-04-2011 01:37 AM
b44 error eth0 "device not found" [fedora 6][Dell] hkernel Linux - Hardware 5 12-13-2006 02:16 PM
LVM pvcreate "Device not found" error susmitha Linux - Newbie 2 07-14-2005 06:07 AM
"Successful install" results in "Boot device not found" slackr007 Fedora 2 06-21-2005 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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