Ask Your Question
0

Configuring network bonding in VM

asked 2014-08-21 22:17:10 -0500

arlie gravatar image

updated 2014-08-22 11:23:21 -0500

SamYaple gravatar image

we would like to setup network bonding in VM (nova instance) but when trying to ping from VM1 to VM2, result is NG.

VM1:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether fa:16:3e:29:e3:d6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.71.2/24 brd 192.168.71.255 scope global dynamic eth0
5: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000
    link/ether fa:16:3e:5b:63:a0 brd ff:ff:ff:ff:ff:ff
8: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether fa:16:3e:5b:63:a0 brd ff:ff:ff:ff:ff:ff
9: bond0.4@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether fa:16:3e:5b:63:a0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.160.6/24 brd 192.168.160.255 scope global bond0.4

VM2:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether fa:16:3e:44:ff:b9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.71.4/24 brd 192.168.71.255 scope global dynamic eth0
5: eth3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000
    link/ether fa:16:3e:08:eb:52 brd ff:ff:ff:ff:ff:ff
8: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether fa:16:3e:08:eb:52 brd ff:ff:ff:ff:ff:ff
9: bond0.4@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether fa:16:3e:08:eb:52 brd ff:ff:ff:ff:ff:ff
    inet 192.168.160.5/24 brd 192.168.160.255 scope global bond0.4

ping from VM1 to VM2 using eth0 IP is OK. ping from VM1 to VM2 using bond0.4 IP is NG.

how should we configure host server/VM for communication to be OK?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-22 11:35:27 -0500

SamYaple gravatar image

I am curious as to why you are trying to do this in the first place. But thats not the question.

So what you are trying to do is explicity prevented (intentionally). bond0 is going to have one MAC (the MAC of first interface to join). You _cannot_ spoof MAC addresses. Therefore bonding will not working in any failover fashion inside the instance.

In your situtation, you only have one interface attached to the bond, so this should potentially be working, but you are also running a vlan on top of that bond. Why? What are you trying to accomplish?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-21 22:17:10 -0500

Seen: 526 times

Last updated: Aug 22 '14