You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Matthew Midgett <su...@trickhosting.biz> on 2014/04/07 23:23:34 UTC

System vm's with wrong network routing

My system vm's are being created with the wrong routes. Manually deleting and adding them fixes the problem. Where would I go to fix this permanently? 


Sent from my Galaxy S®III

Re: System vm's with wrong network routing

Posted by Matthew Midgett <su...@trickhosting.biz>.
Here is log from the management server while its creating the new 
storage vm's. I'm not seeing anything wrong here but then again I'm new 
to cloudstack. It doesn't look like what the route looks like once the 
vm is started.


2014-04-08 10:55:41,529 DEBUG [c.c.a.t.Request] 
(AgentManager-Handler-3:null) Seq 1-1795367480: Processing:  { Ans: , 
MgmtId: 74153798878, via: 1, Ver: v1, Flags: 10, 
[{"com.cloud.agent.api.StartAnswer":{"vm":{"id":5,"name":"s-5-VM","type":"SecondaryStorageVm","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":536870912,"maxRam":536870912,"arch":"x86_64","os":"Debian 
GNU/Linux 5.0 (64-bit)","bootArgs":" template=domP type=secstorage 
host=172.16.0.9 port=8250 name=s-5-VM zone=2 pod=2 guid=s-5-VM 
resource=com.cloud.storage.resource.PremiumSecondaryStorageResource 
instance=SecStorage sslcopy=false role=templateProcessor mtu=1500 
eth2ip=216.249.111.2 eth2mask=255.255.255.0 gateway=216.249.111.1 
public.network.device=eth2 eth0ip=169.254.2.116 eth0mask=255.255.0.0 
eth1ip=172.16.9.69 eth1mask=255.255.0.0 mgmtcidr=172.16.0.0/16 
localgw=172.16.0.1 private.network.device=eth1 eth3ip=172.16.10.98 
eth3mask=255.255.0.0 storageip=172.16.10.98 storagenetmask=255.255.0.0 
storagegateway=172.16.0.1 internaldns1=8.8.8.8 internaldns2=8.8.4.4 
dns1=8.8.8.8 
dns2=8.8.4.4","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"918d8c0c45149bfa","vncAddr":"172.16.0.11","params":{},"uuid":"c0b11fcf-856d-4df6-983d-0f5be5cf49cd","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"3787dc2d-6784-40c7-9191-989135158b8b","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"cc444216-6e16-4fde-b9e5-6338210dad59","id":1,"poolType":"CLVM","host":"localhost","path":"/cloudstore1","port":0,"url":"CLVM://localhost//cloudstore1/?ROLE=Primary&STOREUUID=cc444216-6e16-4fde-b9e5-6338210dad59"}},"name":"ROOT-5","size":0,"path":"3787dc2d-6784-40c7-9191-989135158b8b","volumeId":5,"vmName":"s-5-VM","accountId":1,"format":"RAW","id":5,"deviceId":0,"hypervisorType":"KVM"}},"diskSeq":0,"path":"3787dc2d-6784-40c7-9191-989135158b8b","type":"ROOT","_details":{"managed":"false","storagePort":"0","storageHost":"localhost","volumeSize":"0"}}],"nics":[{"deviceId":2,"networkRateMbps":-1,"defaultNic":true,"uuid":"a2dd773a-9c8b-41e4-9e95-0628f31315f4","ip":"216.249.111.2","netmask":"255.255.255.0","gateway":"216.249.111.1","mac":"06:8a:44:00:05:ff","dns1":"8.8.8.8","dns2":"8.8.4.4","broadcastType":"Vlan","type":"Public","broadcastUri":"vlan://untagged","isolationUri":"vlan://untagged","isSecurityGroupEnabled":false,"name":"cloudbr2"},{"deviceId":0,"networkRateMbps":-1,"defaultNic":false,"uuid":"b9b61bc3-2b69-45ac-b4dc-16ed6d4fd18e","ip":"169.254.2.116","netmask":"255.255.0.0","gateway":"169.254.0.1","mac":"0e:00:a9:fe:02:74","broadcastType":"LinkLocal","type":"Control","isSecurityGroupEnabled":false},{"deviceId":1,"networkRateMbps":-1,"defaultNic":false,"uuid":"5cad5307-54e0-4402-9667-ff2353036241","ip":"172.16.9.69","netmask":"255.255.0.0","gateway":"172.16.0.1","mac":"06:c1:ae:00:04:45","broadcastType":"Native","type":"Management","isSecurityGroupEnabled":false,"name":"cloudbr0"},{"deviceId":3,"networkRateMbps":-1,"defaultNic":false,"uuid":"b0be04df-2cf0-4a54-99d9-694a8bb94447","ip":"172.16.10.98","netmask":"255.255.0.0","gateway":"172.16.0.1","mac":"06:90:76:00:05:62","broadcastType":"Native","type":"Storage","isSecurityGroupEnabled":false,"name":"cloudbr0"}]},"result":true,"wait":0}},{"com.cloud.agent.api.check.CheckSshAnswer":{"result":true,"wait":0}}] 
}

On 04/08/2014 10:07 AM, Matthew Midgett wrote:
> I destroyed the VM so it would create a new route. First off the 
> 8.8.8.8 and 8.8.4.4 should have a default gateway of 0.0.0.0 if its to 
> use the public address to get dns. If its supposed to use the 
> management network then the 172.16.0.0     0.0.0.0 should be 
> 172.16.0.0     172.16.0.1
>
> This way it doesn't route properly
>
> root@s-4-VM:~# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use 
> Iface
> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
> 8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
> 8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>
> This way works.
>
> root@s-4-VM:~# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use 
> Iface
> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0 
> eth1
> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0 
> eth3
> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>
> Still  not sure where I should put this. I know its the way that Im 
> connecting to it but what route should it take? I'm thinking it should 
> be 172.16.0.0
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>
>
>
>
> On 04/08/2014 01:35 AM, Geoff Higginbottom wrote:
>> Matthew,
>>
>> Can you give examples of the routes you are seeing and explain why 
>> they are wrong please.
>>
>> Regards
>>
>> Geoff Higginbottom
>> CTO / Cloud Architect
>>
>> D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 
>> 0540<tel:+442036030540> | M: +447968161581<tel:+447968161581>
>>
>> geoff.higginbottom@shapeblue.com<ma...@shapeblue.com> 
>> | www.shapeblue.com<htp://www.shapeblue.com/> | 
>> Twitter:@cloudstackguru<https://twitter.com/#!/cloudstackguru>
>>
>> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 
>> 4HS<x-apple-data-detectors://5>
>>
>>
>> On 7 Apr 2014, at 22:24, "Matthew Midgett" 
>> <su...@trickhosting.biz>> wrote:
>>
>> My system vm's are being created with the wrong routes. Manually 
>> deleting and adding them fixes the problem. Where would I go to fix 
>> this permanently?
>>
>>
>> Sent from my Galaxy S(r)III
>> Need Enterprise Grade Support for Apache CloudStack?
>> Our CloudStack Infrastructure 
>> Support<http://shapeblue.com/cloudstack-infrastructure-support/> 
>> offers the best 24/7 SLA for CloudStack Environments.
>>
>> Apache CloudStack Bootcamp training courses
>>
>> **NEW!** CloudStack 4.2.1 
>> training<http://shapeblue.com/cloudstack-training/>
>> 28th-29th May 2014, Bangalore. 
>> Classromm<http://shapeblue.com/cloudstack-training/>
>> 16th-20th June 2014, Region A. Instructor led, 
>> On-line<http://shapeblue.com/cloudstack-training/>
>> 23rd-27th June 2014, Region B. Instructor led, 
>> On-line<http://shapeblue.com/cloudstack-training/>
>> 15th-20th September 2014, Region A. Instructor led, 
>> On-line<http://shapeblue.com/cloudstack-training/>
>> 22nd-27th September 2014, Region B. Instructor led, 
>> On-line<http://shapeblue.com/cloudstack-training/>
>> 1st-6th December 2014, Region A. Instructor led, 
>> On-line<http://shapeblue.com/cloudstack-training/>
>> 8th-12th December 2014, Region B. Instructor led, 
>> On-line<http://shapeblue.com/cloudstack-training/>
>>
>> This email and any attachments to it may be confidential and are 
>> intended solely for the use of the individual to whom it is 
>> addressed. Any views or opinions expressed are solely those of the 
>> author and do not necessarily represent those of Shape Blue Ltd or 
>> related companies. If you are not the intended recipient of this 
>> email, you must neither take any action based upon its contents, nor 
>> copy or show it to anyone. Please contact the sender if you believe 
>> you have received this email in error. Shape Blue Ltd is a company 
>> incorporated in England & Wales. ShapeBlue Services India LLP is a 
>> company incorporated in India and is operated under license from 
>> Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company 
>> incorporated in Brasil and is operated under license from Shape Blue 
>> Ltd. ShapeBlue is a registered trademark.
>>
>
> ___
> Sent via Scrollout F1



RE: System vm's with wrong network routing

Posted by Geoff Higginbottom <ge...@shapeblue.com>.
Matthew

Here is the route table for my SSVM.

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.142.100.1   0.0.0.0         UG    0      0        0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth1
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth3
172.142.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth2
192.168.0.0     172.17.0.1      255.255.255.0   UG    0      0        0 eth1
192.168.0.100   172.17.0.1      255.255.255.255 UGH   0      0        0 eth1

The management network is 172.17.0.0/16 and is mapped to eth 1.  My 'internal' dns servers are on this subnet so there is no specific route for them

The public network is on 172.142.100.0/24 (this is not a production system) and is mapped to eth 2.  My 'external' dns servers are 8.8.8.8 & 8.8.4.4 like yours but there is not route as they are accessed via the public gateway of 172.142.100.1

I am not using the storage network, so all secondary storage traffic is mapped to my management nic (eth1)

I have added 192.168.0.0/24 to the global setting 'sectorage.allowed.internal.sites' and sec storage is on IP 192.168.0.100, hence these two routes.

You might find the global setting 'use.external.dns' useful if you do not have any internal DNS servers

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbottom@shapeblue.com

-----Original Message-----
From: Matthew Midgett [mailto:support@trickhosting.biz]
Sent: 08 April 2014 16:10
To: users@cloudstack.apache.org
Subject: Re: System vm's with wrong network routing

Erik that would  be fine but this is wrong, this means its going to route over the public address as 0.0.0.0 points to my public gateway.

172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3


On 04/08/2014 11:03 AM, Erik Weber wrote:
> If you use the same dns servers for both internal and external it will
> add a route over mgmt interface.
>
> Erik Weber
> 8. apr. 2014 16:07 skrev "Matthew Midgett" <su...@trickhosting.biz>
> følgende:
>
>> I destroyed the VM so it would create a new route. First off the
>> 8.8.8.8 and 8.8.4.4 should have a default gateway of 0.0.0.0 if its
>> to use the public address to get dns. If its supposed to use the management network
>> then the 172.16.0.0     0.0.0.0 should be 172.16.0.0     172.16.0.1
>>
>> This way it doesn't route properly
>>
>> root@s-4-VM:~# route -n
>> Kernel IP routing table
>> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
>> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
>> 8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
>> 8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
>> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
>> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>>
>> This way works.
>>
>> root@s-4-VM:~# route -n
>> Kernel IP routing table
>> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
>> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0 eth1
>> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0 eth3
>> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>>
>> Still  not sure where I should put this. I know its the way that Im
>> connecting to it but what route should it take? I'm thinking it
>> should be
>> 172.16.0.0
>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>>
>>
>>
>>
>> On 04/08/2014 01:35 AM, Geoff Higginbottom wrote:
>>
>>> Matthew,
>>>
>>> Can you give examples of the routes you are seeing and explain why
>>> they are wrong please.
>>>
>>> Regards
>>>
>>> Geoff Higginbottom
>>> CTO / Cloud Architect
>>>
>>> D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:
>>> +442036030540> | M: +447968161581<tel:+447968161581>
>>>
>>> geoff.higginbottom@shapeblue.com<mailto:geoff.higginbottom@shapeblue
>>> .com>
>>> | www.shapeblue.com<htp://www.shapeblue.com/> |
>>> | Twitter:@cloudstackguru<
>>> https://twitter.com/#!/cloudstackguru>
>>>
>>> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
>>> 4HS<x-apple-data-detectors://5>
>>>
>>>
>>> On 7 Apr 2014, at 22:24, "Matthew Midgett"
>>> <support@trickhosting.biz< mailto:support@trickhosting.biz>> wrote:
>>>
>>> My system vm's are being created with the wrong routes. Manually
>>> deleting and adding them fixes the problem. Where would I go to fix this permanently?
>>>
>>>
>>> Sent from my Galaxy S(r)III
>>> Need Enterprise Grade Support for Apache CloudStack?
>>> Our CloudStack Infrastructure Support<http://shapeblue.com/
>>> cloudstack-infrastructure-support/> offers the best 24/7 SLA for
>>> CloudStack Environments.
>>>
>>> Apache CloudStack Bootcamp training courses
>>>
>>> **NEW!** CloudStack 4.2.1 training<http://shapeblue.com/
>>> cloudstack-training/> 28th-29th May 2014, Bangalore.
>>> Classromm<http://shapeblue.
>>> com/cloudstack-training/>
>>> 16th-20th June 2014, Region A. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>> 23rd-27th June 2014, Region B. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>> 15th-20th September 2014, Region A. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>> 22nd-27th September 2014, Region B. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>> 1st-6th December 2014, Region A. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>> 8th-12th December 2014, Region B. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>>
>>> This email and any attachments to it may be confidential and are
>>> intended solely for the use of the individual to whom it is
>>> addressed. Any views or opinions expressed are solely those of the
>>> author and do not necessarily represent those of Shape Blue Ltd or
>>> related companies. If you are not the intended recipient of this
>>> email, you must neither take any action based upon its contents, nor
>>> copy or show it to anyone. Please contact the sender if you believe
>>> you have received this email in error. Shape Blue Ltd is a company
>>> incorporated in England & Wales. ShapeBlue Services India LLP is a
>>> company incorporated in India and is operated under license from
>>> Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company
>>> incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
>>>
>>>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: System vm's with wrong network routing

Posted by Geoff Higginbottom <ge...@shapeblue.com>.
Matthew,

Your Bridge configs look OK, but we normally see the management IP on the bridge.

Can you move your clustered file system onto a dedicated nic, allowing management IP to be placed on the bridge, this may stop the self fencing issues.

It seems too much of a coincidence that the management IP is not on the bridge and it's the management traffic which is failing.

Regards

Geoff Higginbottom
CTO / Cloud Architect


D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:+442036030540> | M: +447968161581<tel:+447968161581>

geoff.higginbottom@shapeblue.com<ma...@shapeblue.com> | www.shapeblue.com<htp://www.shapeblue.com/>

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS<x-apple-data-detectors://37>



On 8 Apr 2014, at 19:56, "Matthew Midgett" <su...@trickhosting.biz>> wrote:

Here are my interfaces and I am sure the labels are correct.  Any other ideas?

This is for my management ip, I couldn't put it on the bridge as my clustered file system would keep fencing it self.

cat ifcfg-eth0
DEVICE="eth0"
BOOTPROTO=static
HWADDR="78:E7:D1:8E:2F:AE"
NM_CONTROLLED="none"
ONBOOT=yes
TYPE="Ethernet"
IPADDR=172.16.0.11
NETMASK=255.255.0.0
GATEWAY=172.16.0.1

This is where the physicals for my bridges start

cat ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
HWADDR=78:E7:D1:8E:2F:B0
ONBOOT=yes
USERCTL=no
NM_CONTROLLED=no
BRIDGE=cloudbr0

cat ifcfg-cloudbr0
DEVICE=cloudbr0
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Bridge
NAME=cloudbr0

cat ifcfg-eth2
DEVICE=eth2
BOOTPROTO=none
HWADDR=78:E7:D1:8E:2F:B2
ONBOOT=yes
USERCTL=no
BRIDGE=cloudbr1
NM_CONTROLLED=no

cat ifcfg-cloudbr1
DEVICE=cloudbr1
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Bridge
NAME=cloudbr1

cat ifcfg-eth3
DEVICE=eth3
BOOTPROTO=none
HWADDR=78:E7:D1:8E:2F:B4
ONBOOT=yes
USERCTL=no
BRIDGE=cloudbr2
NM_CONTROLLED=no

cat ifcfg-cloudbr2
DEVICE=cloudbr2
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
NAME=cloudbr2

The interfaces match my layout and the physical network

cloudbr0 - Management
cloudbr1 - guest
cloudbr2 - public

brctl show
bridge name     bridge id               STP enabled     interfaces
cloud0          8000.fe00a9fe01e4       no              vnet0
                                                       vnet3
cloudbr0                8000.78e7d18e2fb0       no              eth1
                                                       vnet1
                                                       vnet4
                                                       vnet6
cloudbr1                8000.78e7d18e2fb2       no              eth2
cloudbr2                8000.78e7d18e2fb4       no              eth3
                                                       vnet2
                                                       vnet5
virbr0          8000.5254007e4d34       yes             virbr0-nic










On 04/08/2014 02:28 PM, Geoff Higginbottom wrote:
I would check the traffic labels for the management network match for your zone and hosts.

Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:+442036030540> | M: +447968161581<tel:+447968161581>

geoff.higginbottom@shapeblue.com<ma...@shapeblue.com> | www.shapeblue.com<http://www.shapeblue.com><htp://www.shapeblue.com/> | Twitter:@cloudstackguru<https://twitter.com/#!/cloudstackguru>

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS<x-apple-data-detectors://5>


On 8 Apr 2014, at 17:44, "Matthew Midgett" <su...@trickhosting.biz>> wrote:

My problem is that the ssvm will not ping anything on the management network, It will not do dns lookups as it will not ping past the default public gateway. The ssvm is up and I can ping the public ip from a different subnet.

If i remove this I can use external dns and the ssvm can ping anything public
8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1

I change the values as Geoff had suggested and I rebooted the management service. Then i destroyed the ssvm so it would be recreated with the new changes. Here is the route as it is now and not working.

root@s-9-VM:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface
0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2

To me it doesn't look like the use external dns setting to true didn't do anything. It sill wants to tell the dns to go across the management network. That would be fine if the routes to the management network worked.

I'm willing to pay someone to help me at this point.


On 04/08/2014 12:10 PM, Erik Weber wrote:
You don't need gateway for network in the same subnet on an interface.

You never told us what your real problem is (i think), so why not start by
telling us what is not working :-)

As i tried to explain, 8.8.8.8 and 8.8.4.4 will be routed over the mgmt
interface if it's entered as the internal dns. If that is your problem, try
changing the value Geoff suggested.

Erik
8. apr. 2014 17:10 skrev "Matthew Midgett" <su...@trickhosting.biz>>
følgende:

Erik that would  be fine but this is wrong, this means its going to route
over the public address as 0.0.0.0 points to my public gateway.

172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3


On 04/08/2014 11:03 AM, Erik Weber wrote:

If you use the same dns servers for both internal and external it will add
a route over mgmt interface.

Erik Weber
8. apr. 2014 16:07 skrev "Matthew Midgett" <su...@trickhosting.biz>>
følgende:

 I destroyed the VM so it would create a new route. First off the 8.8.8.8
and 8.8.4.4 should have a default gateway of 0.0.0.0 if its to use the
public address to get dns. If its supposed to use the management network
then the 172.16.0.0     0.0.0.0 should be 172.16.0.0     172.16.0.1

This way it doesn't route properly

root@s-4-VM:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use
Iface
0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2

This way works.

root@s-4-VM:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use
Iface
0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0
eth1
172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0
eth3
216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2

Still  not sure where I should put this. I know its the way that Im
connecting to it but what route should it take? I'm thinking it should be
172.16.0.0
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0




On 04/08/2014 01:35 AM, Geoff Higginbottom wrote:

 Matthew,
Can you give examples of the routes you are seeing and explain why they
are wrong please.

Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:
+442036030540> | M: +447968161581<tel:+447968161581>

geoff.higginbottom@shapeblue.com<ma...@shapeblue.com><mailto:geoff.higginbottom@
shapeblue.com<http://shapeblue.com><http://shapeblue.com>>
| www.shapeblue.com<http://www.shapeblue.com><http://www.shapeblue.com><htp://www.shapeblue.com/> | Twitter:@cloudstackguru
<
https://twitter.com/#!/cloudstackguru>

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
4HS<x-apple-data-detectors://5>


On 7 Apr 2014, at 22:24, "Matthew Midgett" <su...@trickhosting.biz><
mailto:support@trickhosting.biz>> wrote:

My system vm's are being created with the wrong routes. Manually
deleting
and adding them fixes the problem. Where would I go to fix this
permanently?


Sent from my Galaxy S(r)III
Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure Support<http://shapeblue.com/
cloudstack-infrastructure-support/> offers the best 24/7 SLA for
CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1 training<http://shapeblue.com/
cloudstack-training/>
28th-29th May 2014, Bangalore. Classromm<http://shapeblue.
com/cloudstack-training/>
16th-20th June 2014, Region A. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>
23rd-27th June 2014, Region B. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>
15th-20th September 2014, Region A. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>
22nd-27th September 2014, Region B. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>
1st-6th December 2014, Region A. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>
8th-12th December 2014, Region B. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are
intended
solely for the use of the individual to whom it is addressed. Any views
or
opinions expressed are solely those of the author and do not necessarily
represent those of Shape Blue Ltd or related companies. If you are not
the
intended recipient of this email, you must neither take any action based
upon its contents, nor copy or show it to anyone. Please contact the
sender
if you believe you have received this email in error. Shape Blue Ltd is
a
company incorporated in England & Wales. ShapeBlue Services India LLP
is a
company incorporated in India and is operated under license from Shape
Blue
Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
Brasil
and is operated under license from Shape Blue Ltd. ShapeBlue is a
registered trademark.




This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: System vm's with wrong network routing

Posted by Matthew Midgett <su...@trickhosting.biz>.
Here are my interfaces and I am sure the labels are correct.  Any other 
ideas?

This is for my management ip, I couldn't put it on the bridge as my 
clustered file system would keep fencing it self.

cat ifcfg-eth0
DEVICE="eth0"
BOOTPROTO=static
HWADDR="78:E7:D1:8E:2F:AE"
NM_CONTROLLED="none"
ONBOOT=yes
TYPE="Ethernet"
IPADDR=172.16.0.11
NETMASK=255.255.0.0
GATEWAY=172.16.0.1

This is where the physicals for my bridges start

cat ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
HWADDR=78:E7:D1:8E:2F:B0
ONBOOT=yes
USERCTL=no
NM_CONTROLLED=no
BRIDGE=cloudbr0

cat ifcfg-cloudbr0
DEVICE=cloudbr0
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Bridge
NAME=cloudbr0

cat ifcfg-eth2
DEVICE=eth2
BOOTPROTO=none
HWADDR=78:E7:D1:8E:2F:B2
ONBOOT=yes
USERCTL=no
BRIDGE=cloudbr1
NM_CONTROLLED=no

cat ifcfg-cloudbr1
DEVICE=cloudbr1
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Bridge
NAME=cloudbr1

cat ifcfg-eth3
DEVICE=eth3
BOOTPROTO=none
HWADDR=78:E7:D1:8E:2F:B4
ONBOOT=yes
USERCTL=no
BRIDGE=cloudbr2
NM_CONTROLLED=no

cat ifcfg-cloudbr2
DEVICE=cloudbr2
NM_CONTROLLED=no
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=none
NAME=cloudbr2

The interfaces match my layout and the physical network

cloudbr0 - Management
cloudbr1 - guest
cloudbr2 - public

brctl show
bridge name     bridge id               STP enabled     interfaces
cloud0          8000.fe00a9fe01e4       no              vnet0
                                                         vnet3
cloudbr0                8000.78e7d18e2fb0       no              eth1
                                                         vnet1
                                                         vnet4
                                                         vnet6
cloudbr1                8000.78e7d18e2fb2       no              eth2
cloudbr2                8000.78e7d18e2fb4       no              eth3
                                                         vnet2
                                                         vnet5
virbr0          8000.5254007e4d34       yes             virbr0-nic










On 04/08/2014 02:28 PM, Geoff Higginbottom wrote:
> I would check the traffic labels for the management network match for your zone and hosts.
>
> Regards
>
> Geoff Higginbottom
> CTO / Cloud Architect
>
> D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:+442036030540> | M: +447968161581<tel:+447968161581>
>
> geoff.higginbottom@shapeblue.com<ma...@shapeblue.com> | www.shapeblue.com<htp://www.shapeblue.com/> | Twitter:@cloudstackguru<https://twitter.com/#!/cloudstackguru>
>
> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS<x-apple-data-detectors://5>
>
>
> On 8 Apr 2014, at 17:44, "Matthew Midgett" <su...@trickhosting.biz>> wrote:
>
> My problem is that the ssvm will not ping anything on the management network, It will not do dns lookups as it will not ping past the default public gateway. The ssvm is up and I can ping the public ip from a different subnet.
>
> If i remove this I can use external dns and the ssvm can ping anything public
> 8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
> 8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
>
> I change the values as Geoff had suggested and I rebooted the management service. Then i destroyed the ssvm so it would be recreated with the new changes. Here is the route as it is now and not working.
>
> root@s-9-VM:~# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
> 8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
> 8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>
> To me it doesn't look like the use external dns setting to true didn't do anything. It sill wants to tell the dns to go across the management network. That would be fine if the routes to the management network worked.
>
> I'm willing to pay someone to help me at this point.
>
>
> On 04/08/2014 12:10 PM, Erik Weber wrote:
> You don't need gateway for network in the same subnet on an interface.
>
> You never told us what your real problem is (i think), so why not start by
> telling us what is not working :-)
>
> As i tried to explain, 8.8.8.8 and 8.8.4.4 will be routed over the mgmt
> interface if it's entered as the internal dns. If that is your problem, try
> changing the value Geoff suggested.
>
> Erik
> 8. apr. 2014 17:10 skrev "Matthew Midgett" <su...@trickhosting.biz>>
> følgende:
>
> Erik that would  be fine but this is wrong, this means its going to route
> over the public address as 0.0.0.0 points to my public gateway.
>
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
>
>
> On 04/08/2014 11:03 AM, Erik Weber wrote:
>
> If you use the same dns servers for both internal and external it will add
> a route over mgmt interface.
>
> Erik Weber
> 8. apr. 2014 16:07 skrev "Matthew Midgett" <su...@trickhosting.biz>>
> følgende:
>
>   I destroyed the VM so it would create a new route. First off the 8.8.8.8
> and 8.8.4.4 should have a default gateway of 0.0.0.0 if its to use the
> public address to get dns. If its supposed to use the management network
> then the 172.16.0.0     0.0.0.0 should be 172.16.0.0     172.16.0.1
>
> This way it doesn't route properly
>
> root@s-4-VM:~# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use
> Iface
> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
> 8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
> 8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>
> This way works.
>
> root@s-4-VM:~# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use
> Iface
> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0
> eth1
> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0
> eth3
> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>
> Still  not sure where I should put this. I know its the way that Im
> connecting to it but what route should it take? I'm thinking it should be
> 172.16.0.0
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>
>
>
>
> On 04/08/2014 01:35 AM, Geoff Higginbottom wrote:
>
>   Matthew,
> Can you give examples of the routes you are seeing and explain why they
> are wrong please.
>
> Regards
>
> Geoff Higginbottom
> CTO / Cloud Architect
>
> D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:
> +442036030540> | M: +447968161581<tel:+447968161581>
>
> geoff.higginbottom@shapeblue.com<ma...@shapeblue.com><mailto:geoff.higginbottom@
> shapeblue.com<http://shapeblue.com>>
> | www.shapeblue.com<http://www.shapeblue.com><htp://www.shapeblue.com/> | Twitter:@cloudstackguru
> <
> https://twitter.com/#!/cloudstackguru>
>
> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
> 4HS<x-apple-data-detectors://5>
>
>
> On 7 Apr 2014, at 22:24, "Matthew Midgett" <su...@trickhosting.biz><
> mailto:support@trickhosting.biz>> wrote:
>
> My system vm's are being created with the wrong routes. Manually
> deleting
> and adding them fixes the problem. Where would I go to fix this
> permanently?
>
>
> Sent from my Galaxy S(r)III
> Need Enterprise Grade Support for Apache CloudStack?
> Our CloudStack Infrastructure Support<http://shapeblue.com/
> cloudstack-infrastructure-support/> offers the best 24/7 SLA for
> CloudStack Environments.
>
> Apache CloudStack Bootcamp training courses
>
> **NEW!** CloudStack 4.2.1 training<http://shapeblue.com/
> cloudstack-training/>
> 28th-29th May 2014, Bangalore. Classromm<http://shapeblue.
> com/cloudstack-training/>
> 16th-20th June 2014, Region A. Instructor led, On-line<
> http://shapeblue.com/cloudstack-training/>
> 23rd-27th June 2014, Region B. Instructor led, On-line<
> http://shapeblue.com/cloudstack-training/>
> 15th-20th September 2014, Region A. Instructor led, On-line<
> http://shapeblue.com/cloudstack-training/>
> 22nd-27th September 2014, Region B. Instructor led, On-line<
> http://shapeblue.com/cloudstack-training/>
> 1st-6th December 2014, Region A. Instructor led, On-line<
> http://shapeblue.com/cloudstack-training/>
> 8th-12th December 2014, Region B. Instructor led, On-line<
> http://shapeblue.com/cloudstack-training/>
>
> This email and any attachments to it may be confidential and are
> intended
> solely for the use of the individual to whom it is addressed. Any views
> or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not
> the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the
> sender
> if you believe you have received this email in error. Shape Blue Ltd is
> a
> company incorporated in England & Wales. ShapeBlue Services India LLP
> is a
> company incorporated in India and is operated under license from Shape
> Blue
> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
> Brasil
> and is operated under license from Shape Blue Ltd. ShapeBlue is a
> registered trademark.
>
>
>
>
> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
>


Re: System vm's with wrong network routing

Posted by Geoff Higginbottom <ge...@shapeblue.com>.
I would check the traffic labels for the management network match for your zone and hosts.

Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:+442036030540> | M: +447968161581<tel:+447968161581>

geoff.higginbottom@shapeblue.com<ma...@shapeblue.com> | www.shapeblue.com<htp://www.shapeblue.com/> | Twitter:@cloudstackguru<https://twitter.com/#!/cloudstackguru>

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS<x-apple-data-detectors://5>


On 8 Apr 2014, at 17:44, "Matthew Midgett" <su...@trickhosting.biz>> wrote:

My problem is that the ssvm will not ping anything on the management network, It will not do dns lookups as it will not ping past the default public gateway. The ssvm is up and I can ping the public ip from a different subnet.

If i remove this I can use external dns and the ssvm can ping anything public
8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1

I change the values as Geoff had suggested and I rebooted the management service. Then i destroyed the ssvm so it would be recreated with the new changes. Here is the route as it is now and not working.

root@s-9-VM:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface
0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2

To me it doesn't look like the use external dns setting to true didn't do anything. It sill wants to tell the dns to go across the management network. That would be fine if the routes to the management network worked.

I'm willing to pay someone to help me at this point.


On 04/08/2014 12:10 PM, Erik Weber wrote:
You don't need gateway for network in the same subnet on an interface.

You never told us what your real problem is (i think), so why not start by
telling us what is not working :-)

As i tried to explain, 8.8.8.8 and 8.8.4.4 will be routed over the mgmt
interface if it's entered as the internal dns. If that is your problem, try
changing the value Geoff suggested.

Erik
8. apr. 2014 17:10 skrev "Matthew Midgett" <su...@trickhosting.biz>>
følgende:

Erik that would  be fine but this is wrong, this means its going to route
over the public address as 0.0.0.0 points to my public gateway.

172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3


On 04/08/2014 11:03 AM, Erik Weber wrote:

If you use the same dns servers for both internal and external it will add
a route over mgmt interface.

Erik Weber
8. apr. 2014 16:07 skrev "Matthew Midgett" <su...@trickhosting.biz>>
følgende:

 I destroyed the VM so it would create a new route. First off the 8.8.8.8
and 8.8.4.4 should have a default gateway of 0.0.0.0 if its to use the
public address to get dns. If its supposed to use the management network
then the 172.16.0.0     0.0.0.0 should be 172.16.0.0     172.16.0.1

This way it doesn't route properly

root@s-4-VM:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use
Iface
0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2

This way works.

root@s-4-VM:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use
Iface
0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0
eth1
172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0
eth3
216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2

Still  not sure where I should put this. I know its the way that Im
connecting to it but what route should it take? I'm thinking it should be
172.16.0.0
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0




On 04/08/2014 01:35 AM, Geoff Higginbottom wrote:

 Matthew,
Can you give examples of the routes you are seeing and explain why they
are wrong please.

Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:
+442036030540> | M: +447968161581<tel:+447968161581>

geoff.higginbottom@shapeblue.com<ma...@shapeblue.com><mailto:geoff.higginbottom@
shapeblue.com<http://shapeblue.com>>
| www.shapeblue.com<http://www.shapeblue.com><htp://www.shapeblue.com/> | Twitter:@cloudstackguru
<
https://twitter.com/#!/cloudstackguru>

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
4HS<x-apple-data-detectors://5>


On 7 Apr 2014, at 22:24, "Matthew Midgett" <su...@trickhosting.biz><
mailto:support@trickhosting.biz>> wrote:

My system vm's are being created with the wrong routes. Manually
deleting
and adding them fixes the problem. Where would I go to fix this
permanently?


Sent from my Galaxy S(r)III
Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure Support<http://shapeblue.com/
cloudstack-infrastructure-support/> offers the best 24/7 SLA for
CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1 training<http://shapeblue.com/
cloudstack-training/>
28th-29th May 2014, Bangalore. Classromm<http://shapeblue.
com/cloudstack-training/>
16th-20th June 2014, Region A. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>
23rd-27th June 2014, Region B. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>
15th-20th September 2014, Region A. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>
22nd-27th September 2014, Region B. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>
1st-6th December 2014, Region A. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>
8th-12th December 2014, Region B. Instructor led, On-line<
http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are
intended
solely for the use of the individual to whom it is addressed. Any views
or
opinions expressed are solely those of the author and do not necessarily
represent those of Shape Blue Ltd or related companies. If you are not
the
intended recipient of this email, you must neither take any action based
upon its contents, nor copy or show it to anyone. Please contact the
sender
if you believe you have received this email in error. Shape Blue Ltd is
a
company incorporated in England & Wales. ShapeBlue Services India LLP
is a
company incorporated in India and is operated under license from Shape
Blue
Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
Brasil
and is operated under license from Shape Blue Ltd. ShapeBlue is a
registered trademark.




This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: System vm's with wrong network routing

Posted by Matthew Midgett <su...@trickhosting.biz>.
My problem is that the ssvm will not ping anything on the management 
network, It will not do dns lookups as it will not ping past the default 
public gateway. The ssvm is up and I can ping the public ip from a 
different subnet.

If i remove this I can use external dns and the ssvm can ping anything 
public
8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1

I change the values as Geoff had suggested and I rebooted the management 
service. Then i destroyed the ssvm so it would be recreated with the new 
changes. Here is the route as it is now and not working.

root@s-9-VM:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface
0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2

To me it doesn't look like the use external dns setting to true didn't 
do anything. It sill wants to tell the dns to go across the management 
network. That would be fine if the routes to the management network worked.

I'm willing to pay someone to help me at this point.


On 04/08/2014 12:10 PM, Erik Weber wrote:
> You don't need gateway for network in the same subnet on an interface.
>
> You never told us what your real problem is (i think), so why not start by
> telling us what is not working :-)
>
> As i tried to explain, 8.8.8.8 and 8.8.4.4 will be routed over the mgmt
> interface if it's entered as the internal dns. If that is your problem, try
> changing the value Geoff suggested.
>
> Erik
> 8. apr. 2014 17:10 skrev "Matthew Midgett" <su...@trickhosting.biz>
> følgende:
>
>> Erik that would  be fine but this is wrong, this means its going to route
>> over the public address as 0.0.0.0 points to my public gateway.
>>
>> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
>> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
>>
>>
>> On 04/08/2014 11:03 AM, Erik Weber wrote:
>>
>>> If you use the same dns servers for both internal and external it will add
>>> a route over mgmt interface.
>>>
>>> Erik Weber
>>> 8. apr. 2014 16:07 skrev "Matthew Midgett" <su...@trickhosting.biz>
>>> følgende:
>>>
>>>   I destroyed the VM so it would create a new route. First off the 8.8.8.8
>>>> and 8.8.4.4 should have a default gateway of 0.0.0.0 if its to use the
>>>> public address to get dns. If its supposed to use the management network
>>>> then the 172.16.0.0     0.0.0.0 should be 172.16.0.0     172.16.0.1
>>>>
>>>> This way it doesn't route properly
>>>>
>>>> root@s-4-VM:~# route -n
>>>> Kernel IP routing table
>>>> Destination     Gateway         Genmask         Flags Metric Ref Use
>>>> Iface
>>>> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
>>>> 8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
>>>> 8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
>>>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>>>> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
>>>> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
>>>> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>>>>
>>>> This way works.
>>>>
>>>> root@s-4-VM:~# route -n
>>>> Kernel IP routing table
>>>> Destination     Gateway         Genmask         Flags Metric Ref Use
>>>> Iface
>>>> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
>>>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>>>> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0
>>>> eth1
>>>> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0
>>>> eth3
>>>> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>>>>
>>>> Still  not sure where I should put this. I know its the way that Im
>>>> connecting to it but what route should it take? I'm thinking it should be
>>>> 172.16.0.0
>>>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>>>>
>>>>
>>>>
>>>>
>>>> On 04/08/2014 01:35 AM, Geoff Higginbottom wrote:
>>>>
>>>>   Matthew,
>>>>> Can you give examples of the routes you are seeing and explain why they
>>>>> are wrong please.
>>>>>
>>>>> Regards
>>>>>
>>>>> Geoff Higginbottom
>>>>> CTO / Cloud Architect
>>>>>
>>>>> D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:
>>>>> +442036030540> | M: +447968161581<tel:+447968161581>
>>>>>
>>>>> geoff.higginbottom@shapeblue.com<mailto:geoff.higginbottom@
>>>>> shapeblue.com>
>>>>> | www.shapeblue.com<htp://www.shapeblue.com/> | Twitter:@cloudstackguru
>>>>> <
>>>>> https://twitter.com/#!/cloudstackguru>
>>>>>
>>>>> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
>>>>> 4HS<x-apple-data-detectors://5>
>>>>>
>>>>>
>>>>> On 7 Apr 2014, at 22:24, "Matthew Midgett" <support@trickhosting.biz<
>>>>> mailto:support@trickhosting.biz>> wrote:
>>>>>
>>>>> My system vm's are being created with the wrong routes. Manually
>>>>> deleting
>>>>> and adding them fixes the problem. Where would I go to fix this
>>>>> permanently?
>>>>>
>>>>>
>>>>> Sent from my Galaxy S(r)III
>>>>> Need Enterprise Grade Support for Apache CloudStack?
>>>>> Our CloudStack Infrastructure Support<http://shapeblue.com/
>>>>> cloudstack-infrastructure-support/> offers the best 24/7 SLA for
>>>>> CloudStack Environments.
>>>>>
>>>>> Apache CloudStack Bootcamp training courses
>>>>>
>>>>> **NEW!** CloudStack 4.2.1 training<http://shapeblue.com/
>>>>> cloudstack-training/>
>>>>> 28th-29th May 2014, Bangalore. Classromm<http://shapeblue.
>>>>> com/cloudstack-training/>
>>>>> 16th-20th June 2014, Region A. Instructor led, On-line<
>>>>> http://shapeblue.com/cloudstack-training/>
>>>>> 23rd-27th June 2014, Region B. Instructor led, On-line<
>>>>> http://shapeblue.com/cloudstack-training/>
>>>>> 15th-20th September 2014, Region A. Instructor led, On-line<
>>>>> http://shapeblue.com/cloudstack-training/>
>>>>> 22nd-27th September 2014, Region B. Instructor led, On-line<
>>>>> http://shapeblue.com/cloudstack-training/>
>>>>> 1st-6th December 2014, Region A. Instructor led, On-line<
>>>>> http://shapeblue.com/cloudstack-training/>
>>>>> 8th-12th December 2014, Region B. Instructor led, On-line<
>>>>> http://shapeblue.com/cloudstack-training/>
>>>>>
>>>>> This email and any attachments to it may be confidential and are
>>>>> intended
>>>>> solely for the use of the individual to whom it is addressed. Any views
>>>>> or
>>>>> opinions expressed are solely those of the author and do not necessarily
>>>>> represent those of Shape Blue Ltd or related companies. If you are not
>>>>> the
>>>>> intended recipient of this email, you must neither take any action based
>>>>> upon its contents, nor copy or show it to anyone. Please contact the
>>>>> sender
>>>>> if you believe you have received this email in error. Shape Blue Ltd is
>>>>> a
>>>>> company incorporated in England & Wales. ShapeBlue Services India LLP
>>>>> is a
>>>>> company incorporated in India and is operated under license from Shape
>>>>> Blue
>>>>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
>>>>> Brasil
>>>>> and is operated under license from Shape Blue Ltd. ShapeBlue is a
>>>>> registered trademark.
>>>>>
>>>>>
>>>>>


Re: System vm's with wrong network routing

Posted by Erik Weber <te...@gmail.com>.
You don't need gateway for network in the same subnet on an interface.

You never told us what your real problem is (i think), so why not start by
telling us what is not working :-)

As i tried to explain, 8.8.8.8 and 8.8.4.4 will be routed over the mgmt
interface if it's entered as the internal dns. If that is your problem, try
changing the value Geoff suggested.

Erik
8. apr. 2014 17:10 skrev "Matthew Midgett" <su...@trickhosting.biz>
følgende:

> Erik that would  be fine but this is wrong, this means its going to route
> over the public address as 0.0.0.0 points to my public gateway.
>
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
>
>
> On 04/08/2014 11:03 AM, Erik Weber wrote:
>
>> If you use the same dns servers for both internal and external it will add
>> a route over mgmt interface.
>>
>> Erik Weber
>> 8. apr. 2014 16:07 skrev "Matthew Midgett" <su...@trickhosting.biz>
>> følgende:
>>
>>  I destroyed the VM so it would create a new route. First off the 8.8.8.8
>>> and 8.8.4.4 should have a default gateway of 0.0.0.0 if its to use the
>>> public address to get dns. If its supposed to use the management network
>>> then the 172.16.0.0     0.0.0.0 should be 172.16.0.0     172.16.0.1
>>>
>>> This way it doesn't route properly
>>>
>>> root@s-4-VM:~# route -n
>>> Kernel IP routing table
>>> Destination     Gateway         Genmask         Flags Metric Ref Use
>>> Iface
>>> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
>>> 8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
>>> 8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
>>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>>> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
>>> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
>>> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>>>
>>> This way works.
>>>
>>> root@s-4-VM:~# route -n
>>> Kernel IP routing table
>>> Destination     Gateway         Genmask         Flags Metric Ref Use
>>> Iface
>>> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
>>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>>> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0
>>> eth1
>>> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0
>>> eth3
>>> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>>>
>>> Still  not sure where I should put this. I know its the way that Im
>>> connecting to it but what route should it take? I'm thinking it should be
>>> 172.16.0.0
>>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>>>
>>>
>>>
>>>
>>> On 04/08/2014 01:35 AM, Geoff Higginbottom wrote:
>>>
>>>  Matthew,
>>>>
>>>> Can you give examples of the routes you are seeing and explain why they
>>>> are wrong please.
>>>>
>>>> Regards
>>>>
>>>> Geoff Higginbottom
>>>> CTO / Cloud Architect
>>>>
>>>> D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:
>>>> +442036030540> | M: +447968161581<tel:+447968161581>
>>>>
>>>> geoff.higginbottom@shapeblue.com<mailto:geoff.higginbottom@
>>>> shapeblue.com>
>>>> | www.shapeblue.com<htp://www.shapeblue.com/> | Twitter:@cloudstackguru
>>>> <
>>>> https://twitter.com/#!/cloudstackguru>
>>>>
>>>> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
>>>> 4HS<x-apple-data-detectors://5>
>>>>
>>>>
>>>> On 7 Apr 2014, at 22:24, "Matthew Midgett" <support@trickhosting.biz<
>>>> mailto:support@trickhosting.biz>> wrote:
>>>>
>>>> My system vm's are being created with the wrong routes. Manually
>>>> deleting
>>>> and adding them fixes the problem. Where would I go to fix this
>>>> permanently?
>>>>
>>>>
>>>> Sent from my Galaxy S(r)III
>>>> Need Enterprise Grade Support for Apache CloudStack?
>>>> Our CloudStack Infrastructure Support<http://shapeblue.com/
>>>> cloudstack-infrastructure-support/> offers the best 24/7 SLA for
>>>> CloudStack Environments.
>>>>
>>>> Apache CloudStack Bootcamp training courses
>>>>
>>>> **NEW!** CloudStack 4.2.1 training<http://shapeblue.com/
>>>> cloudstack-training/>
>>>> 28th-29th May 2014, Bangalore. Classromm<http://shapeblue.
>>>> com/cloudstack-training/>
>>>> 16th-20th June 2014, Region A. Instructor led, On-line<
>>>> http://shapeblue.com/cloudstack-training/>
>>>> 23rd-27th June 2014, Region B. Instructor led, On-line<
>>>> http://shapeblue.com/cloudstack-training/>
>>>> 15th-20th September 2014, Region A. Instructor led, On-line<
>>>> http://shapeblue.com/cloudstack-training/>
>>>> 22nd-27th September 2014, Region B. Instructor led, On-line<
>>>> http://shapeblue.com/cloudstack-training/>
>>>> 1st-6th December 2014, Region A. Instructor led, On-line<
>>>> http://shapeblue.com/cloudstack-training/>
>>>> 8th-12th December 2014, Region B. Instructor led, On-line<
>>>> http://shapeblue.com/cloudstack-training/>
>>>>
>>>> This email and any attachments to it may be confidential and are
>>>> intended
>>>> solely for the use of the individual to whom it is addressed. Any views
>>>> or
>>>> opinions expressed are solely those of the author and do not necessarily
>>>> represent those of Shape Blue Ltd or related companies. If you are not
>>>> the
>>>> intended recipient of this email, you must neither take any action based
>>>> upon its contents, nor copy or show it to anyone. Please contact the
>>>> sender
>>>> if you believe you have received this email in error. Shape Blue Ltd is
>>>> a
>>>> company incorporated in England & Wales. ShapeBlue Services India LLP
>>>> is a
>>>> company incorporated in India and is operated under license from Shape
>>>> Blue
>>>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
>>>> Brasil
>>>> and is operated under license from Shape Blue Ltd. ShapeBlue is a
>>>> registered trademark.
>>>>
>>>>
>>>>
>

Re: System vm's with wrong network routing

Posted by Matthew Midgett <su...@trickhosting.biz>.
Erik that would  be fine but this is wrong, this means its going to 
route over the public address as 0.0.0.0 points to my public gateway.

172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3


On 04/08/2014 11:03 AM, Erik Weber wrote:
> If you use the same dns servers for both internal and external it will add
> a route over mgmt interface.
>
> Erik Weber
> 8. apr. 2014 16:07 skrev "Matthew Midgett" <su...@trickhosting.biz>
> følgende:
>
>> I destroyed the VM so it would create a new route. First off the 8.8.8.8
>> and 8.8.4.4 should have a default gateway of 0.0.0.0 if its to use the
>> public address to get dns. If its supposed to use the management network
>> then the 172.16.0.0     0.0.0.0 should be 172.16.0.0     172.16.0.1
>>
>> This way it doesn't route properly
>>
>> root@s-4-VM:~# route -n
>> Kernel IP routing table
>> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
>> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
>> 8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
>> 8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
>> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
>> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>>
>> This way works.
>>
>> root@s-4-VM:~# route -n
>> Kernel IP routing table
>> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
>> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0 eth1
>> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0 eth3
>> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>>
>> Still  not sure where I should put this. I know its the way that Im
>> connecting to it but what route should it take? I'm thinking it should be
>> 172.16.0.0
>> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>>
>>
>>
>>
>> On 04/08/2014 01:35 AM, Geoff Higginbottom wrote:
>>
>>> Matthew,
>>>
>>> Can you give examples of the routes you are seeing and explain why they
>>> are wrong please.
>>>
>>> Regards
>>>
>>> Geoff Higginbottom
>>> CTO / Cloud Architect
>>>
>>> D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:
>>> +442036030540> | M: +447968161581<tel:+447968161581>
>>>
>>> geoff.higginbottom@shapeblue.com<ma...@shapeblue.com>
>>> | www.shapeblue.com<htp://www.shapeblue.com/> | Twitter:@cloudstackguru<
>>> https://twitter.com/#!/cloudstackguru>
>>>
>>> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
>>> 4HS<x-apple-data-detectors://5>
>>>
>>>
>>> On 7 Apr 2014, at 22:24, "Matthew Midgett" <support@trickhosting.biz<
>>> mailto:support@trickhosting.biz>> wrote:
>>>
>>> My system vm's are being created with the wrong routes. Manually deleting
>>> and adding them fixes the problem. Where would I go to fix this permanently?
>>>
>>>
>>> Sent from my Galaxy S(r)III
>>> Need Enterprise Grade Support for Apache CloudStack?
>>> Our CloudStack Infrastructure Support<http://shapeblue.com/
>>> cloudstack-infrastructure-support/> offers the best 24/7 SLA for
>>> CloudStack Environments.
>>>
>>> Apache CloudStack Bootcamp training courses
>>>
>>> **NEW!** CloudStack 4.2.1 training<http://shapeblue.com/
>>> cloudstack-training/>
>>> 28th-29th May 2014, Bangalore. Classromm<http://shapeblue.
>>> com/cloudstack-training/>
>>> 16th-20th June 2014, Region A. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>> 23rd-27th June 2014, Region B. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>> 15th-20th September 2014, Region A. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>> 22nd-27th September 2014, Region B. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>> 1st-6th December 2014, Region A. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>> 8th-12th December 2014, Region B. Instructor led, On-line<
>>> http://shapeblue.com/cloudstack-training/>
>>>
>>> This email and any attachments to it may be confidential and are intended
>>> solely for the use of the individual to whom it is addressed. Any views or
>>> opinions expressed are solely those of the author and do not necessarily
>>> represent those of Shape Blue Ltd or related companies. If you are not the
>>> intended recipient of this email, you must neither take any action based
>>> upon its contents, nor copy or show it to anyone. Please contact the sender
>>> if you believe you have received this email in error. Shape Blue Ltd is a
>>> company incorporated in England & Wales. ShapeBlue Services India LLP is a
>>> company incorporated in India and is operated under license from Shape Blue
>>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
>>> and is operated under license from Shape Blue Ltd. ShapeBlue is a
>>> registered trademark.
>>>
>>>


Re: System vm's with wrong network routing

Posted by Erik Weber <te...@gmail.com>.
If you use the same dns servers for both internal and external it will add
a route over mgmt interface.

Erik Weber
8. apr. 2014 16:07 skrev "Matthew Midgett" <su...@trickhosting.biz>
følgende:

> I destroyed the VM so it would create a new route. First off the 8.8.8.8
> and 8.8.4.4 should have a default gateway of 0.0.0.0 if its to use the
> public address to get dns. If its supposed to use the management network
> then the 172.16.0.0     0.0.0.0 should be 172.16.0.0     172.16.0.1
>
> This way it doesn't route properly
>
> root@s-4-VM:~# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
> 8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
> 8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
> 172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>
> This way works.
>
> root@s-4-VM:~# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref Use Iface
> 0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0 eth1
> 172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0 eth3
> 216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2
>
> Still  not sure where I should put this. I know its the way that Im
> connecting to it but what route should it take? I'm thinking it should be
> 172.16.0.0
> 169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
>
>
>
>
> On 04/08/2014 01:35 AM, Geoff Higginbottom wrote:
>
>> Matthew,
>>
>> Can you give examples of the routes you are seeing and explain why they
>> are wrong please.
>>
>> Regards
>>
>> Geoff Higginbottom
>> CTO / Cloud Architect
>>
>> D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:
>> +442036030540> | M: +447968161581<tel:+447968161581>
>>
>> geoff.higginbottom@shapeblue.com<ma...@shapeblue.com>
>> | www.shapeblue.com<htp://www.shapeblue.com/> | Twitter:@cloudstackguru<
>> https://twitter.com/#!/cloudstackguru>
>>
>> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
>> 4HS<x-apple-data-detectors://5>
>>
>>
>> On 7 Apr 2014, at 22:24, "Matthew Midgett" <support@trickhosting.biz<
>> mailto:support@trickhosting.biz>> wrote:
>>
>> My system vm's are being created with the wrong routes. Manually deleting
>> and adding them fixes the problem. Where would I go to fix this permanently?
>>
>>
>> Sent from my Galaxy S(r)III
>> Need Enterprise Grade Support for Apache CloudStack?
>> Our CloudStack Infrastructure Support<http://shapeblue.com/
>> cloudstack-infrastructure-support/> offers the best 24/7 SLA for
>> CloudStack Environments.
>>
>> Apache CloudStack Bootcamp training courses
>>
>> **NEW!** CloudStack 4.2.1 training<http://shapeblue.com/
>> cloudstack-training/>
>> 28th-29th May 2014, Bangalore. Classromm<http://shapeblue.
>> com/cloudstack-training/>
>> 16th-20th June 2014, Region A. Instructor led, On-line<
>> http://shapeblue.com/cloudstack-training/>
>> 23rd-27th June 2014, Region B. Instructor led, On-line<
>> http://shapeblue.com/cloudstack-training/>
>> 15th-20th September 2014, Region A. Instructor led, On-line<
>> http://shapeblue.com/cloudstack-training/>
>> 22nd-27th September 2014, Region B. Instructor led, On-line<
>> http://shapeblue.com/cloudstack-training/>
>> 1st-6th December 2014, Region A. Instructor led, On-line<
>> http://shapeblue.com/cloudstack-training/>
>> 8th-12th December 2014, Region B. Instructor led, On-line<
>> http://shapeblue.com/cloudstack-training/>
>>
>> This email and any attachments to it may be confidential and are intended
>> solely for the use of the individual to whom it is addressed. Any views or
>> opinions expressed are solely those of the author and do not necessarily
>> represent those of Shape Blue Ltd or related companies. If you are not the
>> intended recipient of this email, you must neither take any action based
>> upon its contents, nor copy or show it to anyone. Please contact the sender
>> if you believe you have received this email in error. Shape Blue Ltd is a
>> company incorporated in England & Wales. ShapeBlue Services India LLP is a
>> company incorporated in India and is operated under license from Shape Blue
>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
>> and is operated under license from Shape Blue Ltd. ShapeBlue is a
>> registered trademark.
>>
>>
>

Re: System vm's with wrong network routing

Posted by Matthew Midgett <su...@trickhosting.biz>.
I destroyed the VM so it would create a new route. First off the 8.8.8.8 
and 8.8.4.4 should have a default gateway of 0.0.0.0 if its to use the 
public address to get dns. If its supposed to use the management network 
then the 172.16.0.0     0.0.0.0 should be 172.16.0.0     172.16.0.1

This way it doesn't route properly

root@s-4-VM:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface
0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
8.8.4.4         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
8.8.8.8         172.16.0.1      255.255.255.255 UGH   0 0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth1
172.16.0.0      0.0.0.0         255.255.0.0     U     0 0        0 eth3
216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2

This way works.

root@s-4-VM:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface
0.0.0.0         216.249.111.1   0.0.0.0         UG    0 0        0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0
172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0 eth1
172.16.0.0      172.16.0.1         255.255.0.0     U     0 0        0 eth3
216.249.111.0   0.0.0.0         255.255.255.0   U     0 0        0 eth2

Still  not sure where I should put this. I know its the way that Im 
connecting to it but what route should it take? I'm thinking it should 
be 172.16.0.0
169.254.0.0     0.0.0.0         255.255.0.0     U     0 0        0 eth0




On 04/08/2014 01:35 AM, Geoff Higginbottom wrote:
> Matthew,
>
> Can you give examples of the routes you are seeing and explain why they are wrong please.
>
> Regards
>
> Geoff Higginbottom
> CTO / Cloud Architect
>
> D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:+442036030540> | M: +447968161581<tel:+447968161581>
>
> geoff.higginbottom@shapeblue.com<ma...@shapeblue.com> | www.shapeblue.com<htp://www.shapeblue.com/> | Twitter:@cloudstackguru<https://twitter.com/#!/cloudstackguru>
>
> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS<x-apple-data-detectors://5>
>
>
> On 7 Apr 2014, at 22:24, "Matthew Midgett" <su...@trickhosting.biz>> wrote:
>
> My system vm's are being created with the wrong routes. Manually deleting and adding them fixes the problem. Where would I go to fix this permanently?
>
>
> Sent from my Galaxy S(r)III
> Need Enterprise Grade Support for Apache CloudStack?
> Our CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> offers the best 24/7 SLA for CloudStack Environments.
>
> Apache CloudStack Bootcamp training courses
>
> **NEW!** CloudStack 4.2.1 training<http://shapeblue.com/cloudstack-training/>
> 28th-29th May 2014, Bangalore. Classromm<http://shapeblue.com/cloudstack-training/>
> 16th-20th June 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
> 23rd-27th June 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
> 15th-20th September 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
> 22nd-27th September 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
> 1st-6th December 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
> 8th-12th December 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
>
> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
>


Re: System vm's with wrong network routing

Posted by Geoff Higginbottom <ge...@shapeblue.com>.
Matthew,

Can you give examples of the routes you are seeing and explain why they are wrong please.

Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:+442036030540> | M: +447968161581<tel:+447968161581>

geoff.higginbottom@shapeblue.com<ma...@shapeblue.com> | www.shapeblue.com<htp://www.shapeblue.com/> | Twitter:@cloudstackguru<https://twitter.com/#!/cloudstackguru>

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS<x-apple-data-detectors://5>


On 7 Apr 2014, at 22:24, "Matthew Midgett" <su...@trickhosting.biz>> wrote:

My system vm's are being created with the wrong routes. Manually deleting and adding them fixes the problem. Where would I go to fix this permanently?


Sent from my Galaxy S(r)III
Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> offers the best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1 training<http://shapeblue.com/cloudstack-training/>
28th-29th May 2014, Bangalore. Classromm<http://shapeblue.com/cloudstack-training/>
16th-20th June 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
23rd-27th June 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
15th-20th September 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
22nd-27th September 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
1st-6th December 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
8th-12th December 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.