Ask Your Question
1

Help setting up tutorial network

asked 2014-08-10 15:28:49 -0500

BraveSirRobin gravatar image

updated 2014-08-10 16:36:13 -0500

koolhead17 gravatar image

I'm trying to get started with openstack by http://docs.openstack.org/icehouse/install-guide/install/apt/content/basics-neutron-networking-verify.html (following the tutorial), however I'm having problems setting up the basic networking on the bare metal host. I'm using libvirt on Ubuntu 14.04, my general idea is as follows:

  1. Set up a secondary libvirt bridged network called openstack which uses a 10.0.0.1/24 range
  2. Add 3 VMs to this bridge
  3. Configure as per tutorial

I've set up networking exactly as described in the tutorial, but the following pings both fail:

  1. network node -> compute instance tunnels (10.0.0.21 -> 10.0.1.31)
  2. compute node -> network node tunnels (10.0.0.31 -> 10.0.1.21)

Using tcpdump I can see that for failing pings, the echo request packet is re-transmitted from the bridge, whereas for pings that work this doesn't happen:

(On bare metal host, tcpdump -nnvXSs 0 -i any icmp)

21:06:41.928040 IP (tos 0x0, ttl 64, id 24879, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.31 > 10.0.1.21: ICMP echo request, id 1194, seq 1, length 64
    0x0000:  4500 0054 612f 4000 4001 c446 0a00 001f  E..Ta/@.@..F....
    0x0010:  0a00 0115 0800 276d 04aa 0001 d1d0 e753  ......'m.......S
    0x0020:  0000 0000 49f0 0a00 0000 0000 1011 1213  ....I...........
    0x0030:  1415 1617 1819 1a1b 1c1d 1e1f 2021 2223  .............!"#
    0x0040:  2425 2627 2829 2a2b 2c2d 2e2f 3031 3233  $%&'()*+,-./0123
    0x0050:  3435 3637                                4567
21:06:41.928075 IP (tos 0x0, ttl 64, id 24879, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.1 > 10.0.1.21: ICMP echo request, id 1194, seq 1, length 64
    0x0000:  4500 0054 612f 4000 4001 c464 0a00 0001  E..Ta/@.@..d....
    0x0010:  0a00 0115 0800 276d 04aa 0001 d1d0 e753  ......'m.......S
    0x0020:  0000 0000 49f0 0a00 0000 0000 1011 1213  ....I...........
    0x0030:  1415 1617 1819 1a1b 1c1d 1e1f 2021 2223  .............!"#
    0x0040:  2425 2627 2829 2a2b 2c2d 2e2f 3031 3233  $%&'()*+,-./0123
    0x0050:  3435 3637                                4567
21:06:41.928205 IP (tos 0x0, ttl 64, id 11556, offset 0, flags [none], proto ICMP (1), length 84)
    10.0.1.21 > 10.0.0.1: ICMP echo reply, id 1194, seq 1, length 64
    0x0000:  4500 0054 2d24 0000 4001 3870 0a00 0115  E..T-$..@.8p....
    0x0010:  0a00 0001 0000 2f6d 04aa 0001 d1d0 e753  ....../m.......S
    0x0020:  0000 0000 49f0 0a00 0000 0000 1011 1213  ....I...........
    0x0030:  1415 1617 1819 1a1b 1c1d 1e1f 2021 2223  .............!"#
    0x0040:  2425 2627 2829 2a2b 2c2d 2e2f 3031 3233  $%&'()*+,-./0123
    0x0050:  3435 3637                                4567

and now again, on the bare metal host for a "working ping"

21:08:08.036689 IP (tos 0x0, ttl 64, id 64179, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.31 > 10.0.0.21: ICMP echo request, id 1195, seq 1, length 64
    0x0000:  4500 0054 fab3 4000 4001 2bc2 0a00 001f  E..T..@.@.+.....
    0x0010 ...
(more)
edit retag flag offensive close merge delete

Comments

Additionally, if anyone can tell me why all packets are sent twice, as per the tcpdump output, I'd be interested to know!

BraveSirRobin gravatar imageBraveSirRobin ( 2014-08-10 15:30:28 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-08-12 14:05:27 -0500

BraveSirRobin gravatar image

OK, I'll answer my own question :)

The problem was that I needed a different netmask on the host bridge. I change my network defnintion from:

<ip address='10.0.0.1' netmask='255.255.255.0'>

to

<ip address='10.0.0.1' netmask='255.255.0.0'>

And the pings started working.

Additionally, I was seeing duplicate packets in the tcpdump output because I told it to listen on all interfaces, so it was reporing the same packet passing over different interfaces. If you change -i any to be -i vnet0 or -i virbr1 then the results are a bit more sensible.

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

2 followers

Stats

Asked: 2014-08-10 15:28:49 -0500

Seen: 64 times

Last updated: Aug 12 '14