配置neutron GRE模式出错,未解决,打算用vlan

GRE模式听说很少用, 但是openstack icehouse的安装文档openstack-install-guide-yum-icehouse.pdf就仅仅讲了这个.我配置了下,出错了.

lab里面的大牛说GRE可能需要硬件上支持,而且现在vlan用的多.

下面的配置过程记录下来,不过问题没有解决,希望会的人给点建议!

各个节点的IP地址情况:

192.168.122.166 controller-node
192.168.123.210 controller-node
192.168.124.144 controller-node
192.168.125.38 controller-node
192.168.126.78 controller-node

192.168.122.117 network-node
192.168.123.199 network-node
192.168.124.121 network-node
192.168.125.103 network-node
192.168.126.218 network-node

192.168.122.118 compute-node
192.168.123.125 compute-node
192.168.124.24 compute-node
192.168.125.42 compute-node

注意:

1> 在网络节点上,查看网桥,要配置好 br-int, br-ext.

[root@network-nodexiaoy]# ovs-vsctl show

06ee24f3-1226-4fd2-95c1-eed3954368a4

    Bridge br-int

        fail_mode: secure

        Port patch-tun

            Interface patch-tun

                type: patch

                options: {peer=patch-int}

        Port br-int

            Interface br-int

                type: internal

        Port "qr-89ad0d2e-39"

            tag: 1

            Interface"qr-89ad0d2e-39"

                type: internal

    Bridge br-tun

        Port br-tun

            Interface br-tun

                type: internal

        Port patch-int

            Interface patch-int

                type: patch

                options: {peer=patch-tun}

    Bridge br-ex

        Port "eth1"

           Interface "eth1"

        Port br-ex

           Interface br-ex

               type: internal

    ovs_version: "2.1.3"

在network node上进行neutron配置时,添加br-int, br-ex

#-------------------add the integration bridge-----------------------

ovs-vsctl add-br br-int

#-------------------add the external bridge--------------------------

ovs-vsctl add-br br-ex

#-------------------add a port to external bridge--------------------

ovs-vsctl add-port br-ex eth1

#-------------------templydisable GRO on external network interface---

ethtool-K eth1 gro off

 

2> icehouse 文档上,ext-subnet  和 gateway 配置, 这里说明 ext-net 下面的ext-subnet, 应该和network node上的外部接口对应的物理网络的subnet和gateway一样.

The external network shares the same subnet and gateway associated with the physical network

connected to the external interface on the network node.

 

在controller-node上面配置router,主要步骤是:

1>  创建net, ext-net; 创建subnet, ext-subnet

2> 创建net, demo-net; 创建subnet, demo-subnet

3> 创建router, demo-router, 给router添加interface,gateway: router-interface-add demo-router demo-subnet,router-gateway-set demo-router ext-net.


[root@controller-nodexiaoy]# source admin-openrc.sh

[root@controller-nodexiaoy]# neutron net-create ext-net --shared --router:external=True

Created a new network:

+---------------------------+--------------------------------------+

|Field                     | Value                                |

+---------------------------+--------------------------------------+

|admin_state_up            | True                                 |

| id                        |0847e116-56d4-431d-89ed-8387f2b9b8e6 |

|name                      | ext-net                              |

|provider:network_type     | gre                                  |

|provider:physical_network |                                      |

|provider:segmentation_id  | 1                                    |

|router:external           | True                                 |

|shared                    | True                                 |

|status                    | ACTIVE                               |

|subnets                   |                                      |

|tenant_id                 |067c53cb04af4ed1b2322b87a84668d3     |

+---------------------------+--------------------------------------+

[root@controller-nodexiaoy]# neutron subnet-create ext-net --name ext-subnet \

>--allocation-pool start=192.168.123.100,end=192.168.123.150 \

>--disable-dhcp --gateway 192.168.123.1 192.168.123.0/24

Created anew subnet:

+------------------+--------------------------------------------------------+

|Field            | Value                                                 |

+------------------+--------------------------------------------------------+

|allocation_pools | {"start": "192.168.123.100","end": "192.168.123.150"} |

|cidr             | 192.168.123.0/24                                       |

|dns_nameservers  |                                                       |

|enable_dhcp      | False                                                 |

|gateway_ip       | 192.168.123.1                                          |

|host_routes      |                                                       |

| id               |a04f1cb1-a6f9-4398-9424-f2469f481fb8                   |

|ip_version       | 4                                                     |

|name             | ext-subnet                                             |

|network_id       |0847e116-56d4-431d-89ed-8387f2b9b8e6                   |

|tenant_id        |067c53cb04af4ed1b2322b87a84668d3                       |

+------------------+--------------------------------------------------------+

[root@controller-nodexiaoy]# source demo-openrc.sh

[root@controller-nodexiaoy]# neutron net-create demo-net

Created anew network:

+----------------+--------------------------------------+

|Field          | Value                                |

+----------------+--------------------------------------+

|admin_state_up | True                                 |

| id             |62994e4e-4562-43b8-b8f1-854732e2e294 |

|name           | demo-net                             |

|shared         | False                                |

|status         | ACTIVE                               |

|subnets        |                                      |

|tenant_id      |9e6220f518d54d278db1f63728633ab0     |

+----------------+--------------------------------------+

[root@controller-nodexiaoy]# neutron subnet-create demo-net --name demo-subnet \

>--gateway 192.168.1.1 192.168.1.0/24

Created anew subnet:

+------------------+--------------------------------------------------+

|Field            | Value                                            |

+------------------+--------------------------------------------------+

|allocation_pools | {"start": "192.168.1.2","end": "192.168.1.254"} |

|cidr             | 192.168.1.0/24                                   |

|dns_nameservers  |                                                 |

|enable_dhcp      | True                                             |

|gateway_ip       | 192.168.1.1                                      |

|host_routes      |                                                 |

| id               |ede6f859-ef37-4162-96d1-364a79ec3adf            |

|ip_version       | 4                                               |

|name             | demo-subnet                                      |

|network_id       |62994e4e-4562-43b8-b8f1-854732e2e294            |

|tenant_id        |9e6220f518d54d278db1f63728633ab0                |

+------------------+--------------------------------------------------+

[root@controller-nodexiaoy]# neutron router-create demo-router

Created anew router:

+-----------------------+--------------------------------------+

|Field                 | Value                                |

+-----------------------+--------------------------------------+

|admin_state_up        | True                                 |

|external_gateway_info |                                      |

| id                    |60e39460-9dff-4b2f-9314-95cbb0edd1df |

|name                  | demo-router                          |

|status                | ACTIVE                               |

|tenant_id             |9e6220f518d54d278db1f63728633ab0     |

+-----------------------+--------------------------------------+

[root@controller-nodexiaoy]# neutron router-interface-add demo-router demo-subnet

Addedinterface b0321eb0-ed04-4139-9603-71376803f1e9 to router demo-router.

[root@controller-nodexiaoy]# neutron router-gateway-set demo-router ext-net

Setgateway for router demo-router

路由器ping不通:出错

[root@controller-nodexiaoy]# ping 192.168.123.100

PING192.168.123.100 (192.168.123.100) 56(84) bytes of data.

From192.168.123.210 icmp_seq=2 Destination Host Unreachable

From192.168.123.210 icmp_seq=3 Destination Host Unreachable

From192.168.123.210 icmp_seq=4 Destination Host Unreachable

^C

---192.168.123.100 ping statistics ---

5 packetstransmitted, 0 received, +3 errors, 100% packet loss, time 4731ms

pipe 3

查看端口,发现只有一个,不知道是不是这个的问题,如果是,怎么解决呢?

[root@controller-nodexiaoy]# neutron port-list

+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+

| id                                   | name |mac_address       | fixed_ips                                                                         |

+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+

|b0321eb0-ed04-4139-9603-71376803f1e9 |     | fa:16:3e:e2:69:8a | {"subnet_id":"ede6f859-ef37-4162-96d1-364a79ec3adf", "ip_address":"192.168.1.1"} |

+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值