Error: Connection activation failed

125 views
Skip to first unread message

Shiven Dave

unread,
Sep 17, 2015, 11:03:22 AM9/17/15
to VGLUG


Hello Friends,


I am using cent os 7 and I want to configure network bridge through nmcli.


here is what I done


nmcli con add type bridge con-name nm-bridge ifname bridge
nmcli con modify nm-bridge ipv4.addresses '192.168.1.2/24'
nmcli con modify nm-bridge ipv4.gateway '192.168.1.1'
nmcli con modify nm-bridge ipv4.method manual
nmcli con add type bridge-slave con-name br0-port1 ifname enp2s0 master bridge


brctl show output like this


bridge name bridge id STP enabled interfaces
bridge 8000.000000000000 yes


nmcli connection up br0-port1


Error: Connection activation failed: Connection 'br0-port1' is not available on the device enp2s0 at this time.


ip link shows following


1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
link/ether 00:1d:ba:00:97:40 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: mtu 1500 qdisc mq state UP mode DORMANT qlen 1000
link/ether 00:21:5d:02:45:30 brd ff:ff:ff:ff:ff:ff
4: bridge: mtu 1500 qdisc noqueue state DOWN mode DEFAULT
link/ether d6:fe:f7:5b:91:af brd ff:ff:ff:ff:ff:ff


please help regarding this if any one has idea what's wrong

Sham Arsiwala

unread,
Sep 17, 2015, 11:20:03 PM9/17/15
to vg...@googlegroups.com
Hi.

Just three steps to follow,

1 define a software bridge called br1

nmcli con add type bridge con-name br1 ifname br1

2. Configure ipv4 address

nmcli con mod br1 ipv4.addresses 192.168.0.1/24
nmcli con mod br1 ipv4.method manual

If needed add gw and dns too in above cmd

3. Attach interface to br1


nmcli con add type bridge-slave con-name br1-port0 ifname eth0 master br1

And check with

brctl show


Hope this will help you.



Sham Arsiwala
RHCE - RHCA.
Electromech Corporation
--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

---
You received this message because you are subscribed to the Google Groups "VGLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vglug+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shiven Dave

unread,
Sep 19, 2015, 10:53:32 AM9/19/15
to VGLUG
Hello Sir,

I just tried your solution but still its not working its showing same error

I think something goes wrong with interface it might be due to update that  device enp2s0 is not working. 

DEEPAK MISHRA

unread,
Sep 20, 2015, 9:30:56 AM9/20/15
to vg...@googlegroups.com
Dear Shiven,

     Hello ! This  is deepak. first check your ethernet device status with "nmcli device status". If it is connected with any profile then it is working fine. Afterward follow below commands sequence

1. nmcli connection add con-name bridge type bridge ip4 192.168.0.170/24 gw4 192.168.0.253
2. nmcli connection modify bridge ipv4.dns 8.8.8.8
3. nmcli device status   ( it will show device nm-bridge under Device & you don't need to define device name while adding connection)
4. nmcli connection add con-name slave ifname enp9s0 type bridge-slave master nm-bridge

      use ip, gateway & dns as per your environment. I hope it will certainly work.

                                                                                    Thanks
Deepak Mishra                                                           Date - 20-09-2015


Date: Fri, 18 Sep 2015 22:03:33 -0700
From: shiven...@gmail.com
To: vg...@googlegroups.com
Subject: Re: [VGLUG] Error: Connection activation failed


Hello Sir,

I just tried your solution but still its not working its showing same error

I think something goes wrong with interface it might be due to update that  device enp2s0 is not working. 

Shiven Dave

unread,
Sep 20, 2015, 8:25:58 PM9/20/15
to VGLUG, deepak_...@hotmail.com
Hi Deepakji,

thanks for your fast reply and commands sequence but still its showing same error

I also checked with device status before bridge setup and after bridge setup

nmcli dev status shows following

DEVICE  TYPE      STATE        CONNECTION    
wlp3s0     wifi         connected    Auto Engineers
enp2s0    ethernet  unavailable      --            
lo            loopback unmanaged     --            


DEEPAK MISHRA

unread,
Sep 21, 2015, 5:04:25 AM9/21/15
to vg...@googlegroups.com
It is showing device enp2s0 is unavailable. So try to reinstall it. first run "lspci" command to check chipset no. of your ethernet device then search it on 'elrepo'. Then follow the steps as I have sent to you earlier.

                                                                                                          Thanks

Deepak Mishra                                                                                  Date 21-09-2015


Date: Sun, 20 Sep 2015 12:44:14 -0700
From: shiven...@gmail.com
To: vg...@googlegroups.com
CC: deepak_...@hotmail.com

Subject: Re: [VGLUG] Error: Connection activation failed

Shiven Dave

unread,
Sep 23, 2015, 2:53:12 PM9/23/15
to VGLUG
Hi Deepakji,

problem resolved its problem of Network Manager

I just disable the Network Manager and now bridging done successfully.

Thanks for suggestion about driver re installation I learned new things about drivers compilation installation procedures.

If anybody facing issues related to this then please disable Network Manager.

Thanks all for help
Reply all
Reply to author
Forward
0 new messages