{"id":220,"date":"2020-06-24T21:04:18","date_gmt":"2020-06-24T20:04:18","guid":{"rendered":"https:\/\/blog.thomarite.uk\/?p=220"},"modified":"2020-06-24T21:04:27","modified_gmt":"2020-06-24T20:04:27","slug":"gcp-networking-101-ip-forwarding","status":"publish","type":"post","link":"https:\/\/blog.thomarite.uk\/index.php\/2020\/06\/24\/gcp-networking-101-ip-forwarding\/","title":{"rendered":"GCP Networking 101 &#8211; IP Forwarding"},"content":{"rendered":"\n<p>I had my shiny and tiny GCP network for EVE-NG to test vEOS. I built a new VM (vm2) to be my center for automation so I can test stuff like ansible\/napalm\/nornir etc&#8230; But I couldn&#8217;t ping from vm2 to the vEOS instances in eve-ng (vm1). Those instances where in a different network attached to vm1 so it had to &#8220;route&#8221;.<\/p>\n\n\n\n<p>As usual, I missed one step when I created the EVE-NG VM. The official documentation doesnt mention anything regarding enabling routing in the VM. As I am not used to Cloud environments, I assume that any simple Linux VM can forward traffic if configured.<\/p>\n\n\n\n<p>Surprise Surprise. In GCP (not sure in other cloud providers), you need to enable &#8220;forwarding&#8221; during the VM creation and you can&#8217;t change that afterwards in any way. <\/p>\n\n\n\n<p>After checking the second guide I followed, I realised that guide mentioned the point to enable forwarding to avoid the same problem I was facing&#8230;<\/p>\n\n\n\n<p>So I had to gave up and had to build both VMs from scratch&#8230;.<\/p>\n\n\n\n<p>But at the end, I have routing enabled in both VMs and I can ping to the vEOS images.<\/p>\n\n\n\n<p>And another annoying thing. I couldnt update the next hop in a static route defined in the VPC. So I had to delete it and create again pointing to the new VM with the vEOS.<\/p>\n\n\n\n<p>And dealing with the internal IPs&#8230;<\/p>\n\n\n\n<p>Moving on, quite frustrating day. But learned several things about GCP netwoking.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had my shiny and tiny GCP network for EVE-NG to test vEOS. I built a new VM (vm2) to be my center for automation so I can test stuff like ansible\/napalm\/nornir etc&#8230; But I couldn&#8217;t ping from vm2 to the vEOS instances in eve-ng (vm1). Those instances where in a different network attached to &hellip; <a href=\"https:\/\/blog.thomarite.uk\/index.php\/2020\/06\/24\/gcp-networking-101-ip-forwarding\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;GCP Networking 101 &#8211; IP Forwarding&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,2],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-aws","category-networks"],"_links":{"self":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":2,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions\/222"}],"wp:attachment":[{"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thomarite.uk\/index.php\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}