Created
August 16, 2014 02:44
-
-
Save ionosphere80/7dd4865883092741b295 to your computer and use it in GitHub Desktop.
RPC network stuff
This file contains 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
/etc/network/interfaces | |
# Label msk-rpcaio1-mgmt | |
auto eth2 | |
iface eth2 inet manual | |
up ip link set $IFACE up | |
down ip link set $IFACE down | |
auto br-mgmt | |
iface br-mgmt inet static | |
address 10.1.11.11 | |
netmask 255.255.255.0 | |
bridge_ports eth2 | |
# Label msk-rpcaio1-vxlan | |
auto eth3 | |
iface eth3 inet manual | |
up ip link set $IFACE up | |
down ip link set $IFACE down | |
auto br-vxlan | |
iface br-vxlan inet static | |
address 10.1.12.11 | |
netmask 255.255.255.0 | |
bridge_ports eth3 | |
# Label msk-rpcaio1-vlan | |
auto eth4 | |
iface eth4 inet manual | |
up ip link set $IFACE up | |
down ip link set $IFACE down | |
auto br-vlan | |
iface br-vlan inet static | |
address 10.1.13.11 | |
netmask 255.255.255.0 | |
bridge_ports eth4 | |
~/rpc_deploy/rpc_user_config.yml | |
Cider used in the Management network | |
mgmt_cidr: 10.1.11.0/24 | |
# Cidr used in the VM network | |
vmnet_cidr: 10.1.12.0/24 | |
# User defined list of consumed IP addresses that may intersect | |
# with the provided CIDR. | |
used_ips: | |
- 10.1.12.11 | |
# overrides anything else any where. | |
global_overrides: | |
# Internal Management vip address | |
internal_lb_vip_address: 10.1.11.11 | |
# External DMZ VIP address | |
external_lb_vip_address: 10.1.11.11 | |
# Bridged interface to use with tunnel type networks | |
tunnel_bridge: "br-vxlan" | |
# Bridged interface to build containers with | |
container_bridge: br-mgmt | |
# Define your neutron netowrks. | |
neutron_provider_networks: | |
- network: | |
container_bridge: "br-vxlan" | |
container_interface: "eth2" | |
type: "vxlan" | |
range: "1:1000" | |
net_name: "vxlan" | |
- network: | |
container_bridge: "br-vlan" | |
container_interface: "eth3" | |
type: "flat" | |
net_name: "trunk" | |
- network: | |
container_bridge: "br-vlan" | |
container_interface: "eth3" | |
type: "vlan" | |
range: "1:1000" | |
net_name: "trunk" | |
root@infra1_utility_container-8c01ffe4:~# neutron net-list | |
+--------------------------------------+-----------+-----------------------------------------------------+ | |
| id | name | subnets | | |
+--------------------------------------+-----------+-----------------------------------------------------+ | |
| 736d55b7-cf37-4447-883b-53b66644aff1 | test-net | 28879836-8f19-4fb1-8e0c-f3b310e264f4 192.168.1.0/24 | | |
| 2be4ba17-c47a-4313-bf0c-c1382fd1768d | test-net2 | 5cfb144c-b3e4-4300-bb3f-f3a291b07ab8 192.168.2.0/24 | | |
+--------------------------------------+-----------+-----------------------------------------------------+ | |
root@infra1_utility_container-8c01ffe4:~# neutron net-show test-net | |
+---------------------------+--------------------------------------+ | |
| Field | Value | | |
+---------------------------+--------------------------------------+ | |
| admin_state_up | True | | |
| id | 736d55b7-cf37-4447-883b-53b66644aff1 | | |
| name | test-net | | |
| provider:network_type | vxlan | | |
| provider:physical_network | | | |
| provider:segmentation_id | 1 | | |
| router:external | False | | |
| shared | False | | |
| status | ACTIVE | | |
| subnets | 28879836-8f19-4fb1-8e0c-f3b310e264f4 | | |
| tenant_id | 14298b1c6d794381b580164ffd0cfa9f | | |
+---------------------------+--------------------------------------+ | |
root@infra1_utility_container-8c01ffe4:~# neutron net-show test-net2 | |
+---------------------------+--------------------------------------+ | |
| Field | Value | | |
+---------------------------+--------------------------------------+ | |
| admin_state_up | True | | |
| id | 2be4ba17-c47a-4313-bf0c-c1382fd1768d | | |
| name | test-net2 | | |
| provider:network_type | vlan | | |
| provider:physical_network | trunk | | |
| provider:segmentation_id | 101 | | |
| router:external | False | | |
| shared | False | | |
| status | ACTIVE | | |
| subnets | 5cfb144c-b3e4-4300-bb3f-f3a291b07ab8 | | |
| tenant_id | 14298b1c6d794381b580164ffd0cfa9f | | |
+---------------------------+--------------------------------------+ | |
root@infra1_utility_container-8c01ffe4:~# neutron subnet-show test-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 | 28879836-8f19-4fb1-8e0c-f3b310e264f4 | | |
| ip_version | 4 | | |
| name | test-subnet | | |
| network_id | 736d55b7-cf37-4447-883b-53b66644aff1 | | |
| tenant_id | 14298b1c6d794381b580164ffd0cfa9f | | |
+------------------+--------------------------------------------------+ | |
root@infra1_utility_container-8c01ffe4:~# neutron subnet-show test-subnet2 | |
+------------------+--------------------------------------------------+ | |
| Field | Value | | |
+------------------+--------------------------------------------------+ | |
| allocation_pools | {"start": "192.168.2.2", "end": "192.168.2.254"} | | |
| cidr | 192.168.2.0/24 | | |
| dns_nameservers | | | |
| enable_dhcp | True | | |
| gateway_ip | 192.168.2.1 | | |
| host_routes | | | |
| id | 5cfb144c-b3e4-4300-bb3f-f3a291b07ab8 | | |
| ip_version | 4 | | |
| name | test-subnet2 | | |
| network_id | 2be4ba17-c47a-4313-bf0c-c1382fd1768d | | |
| tenant_id | 14298b1c6d794381b580164ffd0cfa9f | | |
+------------------+--------------------------------------------------+ | |
root@infra1_utility_container-8c01ffe4:~# nova list | |
+--------------------------------------+----------------+--------+------------+-------------+-----------------------+ | |
| ID | Name | Status | Task State | Power State | Networks | | |
+--------------------------------------+----------------+--------+------------+-------------+-----------------------+ | |
| 2fb90af8-6098-4e45-a13e-b6f287a37e55 | test-instance1 | ACTIVE | - | Running | test-net=192.168.1.4 | | |
| 8b34bd43-4c92-48fc-b2f8-632d2fff68c3 | test-instance2 | ACTIVE | - | Running | test-net2=192.168.2.2 | | |
+--------------------------------------+----------------+--------+------------+-------------+-----------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment