-
-
Save Apsu/aaa5e56ea81a100976ca to your computer and use it in GitHub Desktop.
ML2 + LinuxBridge + VXLAN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stack@apsu-ih-dev1:~/devstack$ ip a | |
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default | |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
inet 127.0.0.1/8 scope host lo | |
valid_lft forever preferred_lft forever | |
inet 169.254.169.254/32 scope link lo | |
valid_lft forever preferred_lft forever | |
inet6 ::1/128 scope host | |
valid_lft forever preferred_lft forever | |
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 | |
link/ether bc:76:4e:11:8b:d8 brd ff:ff:ff:ff:ff:ff | |
inet 23.253.205.88/24 brd 23.253.205.255 scope global eth0 | |
valid_lft forever preferred_lft forever | |
inet6 2001:4801:7825:102:adbb:e94c:ff11:8bd8/64 scope global | |
valid_lft forever preferred_lft forever | |
inet6 fe80::be76:4eff:fe11:8bd8/64 scope link | |
valid_lft forever preferred_lft forever | |
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 | |
link/ether bc:76:4e:10:21:82 brd ff:ff:ff:ff:ff:ff | |
inet 10.210.33.80/19 brd 10.210.63.255 scope global eth1 | |
valid_lft forever preferred_lft forever | |
inet6 fe80::be76:4eff:fe10:2182/64 scope link | |
valid_lft forever preferred_lft forever | |
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master brq70c56823-c2 state UP group default qlen 1000 | |
link/ether bc:76:4e:11:8c:3a brd ff:ff:ff:ff:ff:ff | |
inet6 fe80::be76:4eff:fe11:8c3a/64 scope link | |
valid_lft forever preferred_lft forever | |
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 | |
link/ether bc:76:4e:11:44:ac brd ff:ff:ff:ff:ff:ff | |
inet 172.16.1.1/24 scope global eth3 | |
valid_lft forever preferred_lft forever | |
inet6 fe80::be76:4eff:fe11:44ac/64 scope link | |
valid_lft forever preferred_lft forever | |
71: tap168e36a6-ff: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master brq4406c8fb-79 state UP group default qlen 1000 | |
link/ether 72:06:f1:92:f6:22 brd ff:ff:ff:ff:ff:ff | |
inet6 fe80::7006:f1ff:fe92:f622/64 scope link | |
valid_lft forever preferred_lft forever | |
72: brq4406c8fb-79: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default | |
link/ether 6e:73:72:04:07:f8 brd ff:ff:ff:ff:ff:ff | |
inet6 fe80::449e:baff:fe61:6c28/64 scope link | |
valid_lft forever preferred_lft forever | |
74: vxlan-1001: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 65486 qdisc noqueue master brq4406c8fb-79 state UNKNOWN group default | |
link/ether be:d5:6f:dd:53:19 brd ff:ff:ff:ff:ff:ff | |
inet6 fe80::bcd5:6fff:fedd:5319/64 scope link | |
valid_lft forever preferred_lft forever | |
76: tap19af89b3-77: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master brq70c56823-c2 state UP group default qlen 1000 | |
link/ether 0e:e6:eb:e7:e4:1c brd ff:ff:ff:ff:ff:ff | |
inet6 fe80::ce6:ebff:fee7:e41c/64 scope link | |
valid_lft forever preferred_lft forever | |
77: brq70c56823-c2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default | |
link/ether 0e:e6:eb:e7:e4:1c brd ff:ff:ff:ff:ff:ff | |
inet 172.16.0.1/24 brd 172.16.0.255 scope global brq70c56823-c2 | |
valid_lft forever preferred_lft forever | |
inet6 fe80::8c83:adff:febe:62cc/64 scope link | |
valid_lft forever preferred_lft forever | |
78: tap2692bca0-94: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master brq70c56823-c2 state UP group default qlen 1000 | |
link/ether ae:88:6a:fa:a3:3b brd ff:ff:ff:ff:ff:ff | |
inet6 fe80::ac88:6aff:fefa:a33b/64 scope link | |
valid_lft forever preferred_lft forever | |
79: tap12cab88f-c0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master brq4406c8fb-79 state UP group default qlen 1000 | |
link/ether 6e:73:72:04:07:f8 brd ff:ff:ff:ff:ff:ff | |
inet6 fe80::6c73:72ff:fe04:7f8/64 scope link | |
valid_lft forever preferred_lft forever | |
90: tap18cf278a-a2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master brq4406c8fb-79 state UNKNOWN group default qlen 500 | |
link/ether fe:16:3e:65:09:b0 brd ff:ff:ff:ff:ff:ff | |
inet6 fe80::fc16:3eff:fe65:9b0/64 scope link | |
valid_lft forever preferred_lft forever |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ml2] | |
tenant_network_types = local,flat,vlan,vxlan | |
type_drivers = local,flat,vlan,vxlan | |
mechanism_drivers = linuxbridge,l2population | |
# (ListOpt) List of network type driver entrypoints to be loaded from | |
# the neutron.ml2.type_drivers namespace. | |
# | |
# type_drivers = local,flat,vlan,gre,vxlan | |
# Example: type_drivers = flat,vlan,gre,vxlan | |
# (ListOpt) Ordered list of network_types to allocate as tenant | |
# networks. The default value 'local' is useful for single-box testing | |
# but provides no connectivity between hosts. | |
# | |
# tenant_network_types = local | |
# Example: tenant_network_types = vlan,gre,vxlan | |
# (ListOpt) Ordered list of networking mechanism driver entrypoints | |
# to be loaded from the neutron.ml2.mechanism_drivers namespace. | |
# mechanism_drivers = | |
# Example: mechanism drivers = openvswitch,mlnx | |
# Example: mechanism_drivers = arista | |
# Example: mechanism_drivers = cisco,logger | |
# Example: mechanism_drivers = openvswitch,brocade | |
# Example: mechanism_drivers = linuxbridge,brocade | |
[ml2_type_flat] | |
# (ListOpt) List of physical_network names with which flat networks | |
# can be created. Use * to allow flat networks with arbitrary | |
# physical_network names. | |
# | |
# flat_networks = | |
# Example:flat_networks = physnet1,physnet2 | |
# Example:flat_networks = * | |
[ml2_type_vlan] | |
network_vlan_ranges = public | |
# (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples | |
# specifying physical_network names usable for VLAN provider and | |
# tenant networks, as well as ranges of VLAN tags on each | |
# physical_network available for allocation as tenant networks. | |
# | |
# network_vlan_ranges = | |
# Example: network_vlan_ranges = physnet1:1000:2999,physnet2 | |
[ml2_type_gre] | |
tunnel_id_ranges = 1:1000 | |
# (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation | |
# tunnel_id_ranges = | |
[ml2_type_vxlan] | |
vni_ranges = 1001:2000 | |
# (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating | |
# ranges of VXLAN VNI IDs that are available for tenant network allocation. | |
# | |
# vni_ranges = | |
# (StrOpt) Multicast group for the VXLAN interface. When configured, will | |
# enable sending all broadcast traffic to this multicast group. When left | |
# unconfigured, will disable multicast VXLAN mode. | |
# | |
# vxlan_group = | |
# Example: vxlan_group = 239.1.1.1 | |
vxlan_group = 239.1.1.1 | |
[securitygroup] | |
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver | |
# Controls if neutron security group is enabled or not. | |
# It should be false when you use nova security group. | |
# enable_security_group = True | |
[database] | |
connection = mysql://root:[email protected]/neutron_ml2?charset=utf8 | |
[vxlan] | |
l2_population = True | |
enable_vxlan = True | |
local_ip = 172.16.1.1 | |
[linux_bridge] | |
physical_interface_mappings = public:eth2 | |
[agent] | |
tunnel_types = vxlan | |
root_helper = sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stack@apsu-ih-dev1:~/devstack$ neutron net-show private | |
Starting new HTTP connection (1): 172.16.0.1 | |
Starting new HTTP connection (1): 172.16.0.1 | |
Starting new HTTP connection (1): 172.16.0.1 | |
+---------------------------+--------------------------------------+ | |
| Field | Value | | |
+---------------------------+--------------------------------------+ | |
| admin_state_up | True | | |
| id | 4406c8fb-79c8-44af-b6d6-4188d66ff0c9 | | |
| name | private | | |
| provider:network_type | vxlan | | |
| provider:physical_network | | | |
| provider:segmentation_id | 1001 | | |
| router:external | False | | |
| shared | False | | |
| status | ACTIVE | | |
| subnets | 7b564e73-8f36-493e-b75f-d3298b652217 | | |
| tenant_id | 9241c502615e4f189a70ce4a414bedde | | |
+---------------------------+--------------------------------------+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stack@apsu-ih-dev1:~/devstack$ neutron net-show public | |
Starting new HTTP connection (1): 172.16.0.1 | |
Starting new HTTP connection (1): 172.16.0.1 | |
Starting new HTTP connection (1): 172.16.0.1 | |
+---------------------------+--------------------------------------+ | |
| Field | Value | | |
+---------------------------+--------------------------------------+ | |
| admin_state_up | True | | |
| id | 70c56823-c2c1-4a9d-b654-0966356ac8c2 | | |
| name | public | | |
| provider:network_type | flat | | |
| provider:physical_network | public | | |
| provider:segmentation_id | | | |
| router:external | True | | |
| shared | False | | |
| status | ACTIVE | | |
| subnets | b69ee6a2-1c98-488a-a676-a01369b31cb7 | | |
| tenant_id | 9241c502615e4f189a70ce4a414bedde | | |
+---------------------------+--------------------------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment