- OpenStack Networking Cookbook
- Sriram Subramanian Chandan Dutta Chowdhury
- 279字
- 2021-07-09 21:40:44
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:
- With the appropriate credentials, SSH into the node where the Neutron server is running.
- 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
- In the
[ml2_type_vlan]
section of the file, configure the VLAN range:[ml2_type_vlan] ... network_vlan_ranges = physnet1:1001:1200
- For this recipe, we have used a VLAN ID range of 1001 to 1200.
- 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. - 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.
- 黑客攻防從入門到精通(實戰秘笈版)
- 數據庫系統教程(第2版)
- 工程軟件開發技術基礎
- 密碼學原理與Java實現
- Git高手之路
- Python機器學習編程與實戰
- jQuery炫酷應用實例集錦
- Node.js 12實戰
- Python數據可視化之美:專業圖表繪制指南(全彩)
- jQuery技術內幕:深入解析jQuery架構設計與實現原理
- Python Programming for Arduino
- C語言程序設計
- INSTANT LESS CSS Preprocessor How-to
- Manage Your SAP Projects with SAP Activate
- HTML5 Game Development by Example:Beginner's Guide(Second Edition)