LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   create a bridge, eth0 does not exists (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/create-a-bridge-eth0-does-not-exists-4175456413/)

sanaz 04-01-2013 02:55 PM

create a bridge, eth0 does not exists
 
Hi all, I am trying to create a bridge for VMs. x
When I am trying to add eth0 to bridge, I got error:
Code:

$sudo /usr/sbin/brctl  addif br0 eth0
interface eth0 does not exist!

This is the result of ifconfig:
Code:


$ ifconfig
br0:

lo:

p13p1:

virbr0:

virbr0-nic:

vnet0:

Now I am wondering how can I create eth0 or which interface should I add to bridge?

dyasny 04-01-2013 03:25 PM

p13p1 is the physical interface you have

sanaz 04-01-2013 04:39 PM

I assigned the p13p1 to the bridge and I lost my connection, now I cannot ssh at all to my server.

gradinaruvasile 04-04-2013 02:50 PM

Quote:

Originally Posted by sanaz (Post 4923034)
I assigned the p13p1 to the bridge and I lost my connection, now I cannot ssh at all to my server.

Bad move. Stuff like this implies network connection loss.

If you want to create a bridge for VMs, you have to transfer the physical device's network config to the bridge leaving the physical device with no IP address (at least i did it like this and works). Naturally you will have to change any routing/firewalling you have there to accomodate the new device name.


All times are GMT -5. The time now is 04:47 PM.