官术网_书友最值得收藏!

Configuring the VLAN range to be used for the networks

In order to use VLAN as the network type, Neutron requires a range of VLAN identifiers. Each OpenStack Network will be associated with a unique VLAN identifier. This recipe shows you how to configure this range of VLAN IDs.

Getting ready

The valid range for a VLAN ID is 1-4095. However, based on your OpenStack environment and the physical network, it is possible to use a subset of this range.

How to do it…

Configuring the VLAN ID range is a setting in the plugin configuration file. The following steps will show you how to set this range:

  1. With the appropriate credentials, SSH into the node where the Neutron server is running.
  2. Open the Neutron ML2 plugin configuration file using your desired editor. For example, the command for vi editor will be as follows:
    openstack@controller:~$ sudo vi /etc/neutron/plugins/ml2/ml2_conf.ini
    
  3. In the [ml2_type_vlan] section of the file, configure the VLAN range:
    [ml2_type_vlan]
    ...
    network_vlan_ranges = physnet1:1001:1200
    
  4. For this recipe, we have used a VLAN ID range of 1001 to 1200.
  5. The keyword physnet1 represents the alias for the physical network. This refers to the OVS bridge that is bound to the physical Network adapter on the node.
  6. These steps have to be repeated for all the nodes in your OpenStack setup including all the compute and Network nodes.

How it works…

When a network is created, Neutron will check the tenant network type first. In the case of the VLAN networks, Neutron will fetch the first unused VLAN ID from the range that was configured. This VLAN ID is then associated to the Network and also marked as used.

主站蜘蛛池模板: 来凤县| 承德县| 安达市| 池州市| 沙河市| 泰宁县| 正蓝旗| 河东区| 姜堰市| 永宁县| 龙门县| 砚山县| 昭通市| 瑞丽市| 库尔勒市| 云浮市| 大英县| 芦溪县| 崇左市| 搜索| 德令哈市| 杭锦后旗| 吐鲁番市| 石楼县| 绍兴县| 彰武县| 元江| 大田县| 钦州市| 厦门市| 台湾省| 类乌齐县| 仁怀市| 攀枝花市| 龙岩市| 会昌县| 二连浩特市| 怀安县| 海兴县| 中宁县| 娄烦县|