{"id":122,"date":"2018-11-04T15:36:54","date_gmt":"2018-11-04T15:36:54","guid":{"rendered":"http:\/\/vroamam.com\/wordpress\/?p=122"},"modified":"2020-01-01T14:33:25","modified_gmt":"2020-01-01T13:33:25","slug":"routing-in-vmware-workstation","status":"publish","type":"post","link":"https:\/\/vroamam.com\/wordpress\/blog\/routing-in-vmware-workstation\/","title":{"rendered":"Routing in Vmware Workstation"},"content":{"rendered":"\n<p>VMWare workstation Pro and VMware Fusion Pro both allow you to create custom networks. I use this feature a lot to replicate workloads as closely as possible and in some instance even by downloading the VM directly from VCentre, what one can&#8217;t then do is to route between them without some outside help.<\/p>\n\n\n\n<p>Enter VYOS router. I have only just started using it and will maybe post more about it as I understand the features more, but as a simple router to move traffic between custom networks it is really simple to use and they even provide an OVA for ease of deployment.<\/p>\n\n\n\n<p><strong>Step 1) <\/strong><br>Download the OVA from <a href=\"https:\/\/vyos.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><a href=\"https:\/\/vyos.io\/\">,&nbsp;<\/a>open it in VMware Workstation. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/vroamam.com\/wordpress\/wp-content\/uploads\/2018\/11\/vnic_advanced_MAV_Address.jpg\" alt=\"\" class=\"wp-image-124\" width=\"294\" height=\"198\" srcset=\"https:\/\/vroamam.com\/wordpress\/wp-content\/uploads\/2018\/11\/vnic_advanced_MAV_Address.jpg 1025w, https:\/\/vroamam.com\/wordpress\/wp-content\/uploads\/2018\/11\/vnic_advanced_MAV_Address-300x202.jpg 300w, https:\/\/vroamam.com\/wordpress\/wp-content\/uploads\/2018\/11\/vnic_advanced_MAV_Address-768x517.jpg 768w, https:\/\/vroamam.com\/wordpress\/wp-content\/uploads\/2018\/11\/vnic_advanced_MAV_Address-1024x689.jpg 1024w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Step 2) <\/strong><br> Once you have the VM available, go to edit settings and add a virtual NIC for each custom network you want to route. It helps at this point to make a note of the MAC Address of each vnic so that you can match them in the router and assign the correct IP to them.<\/p>\n\n\n\n<p><strong>Step 3) <\/strong><br>Power on the VM and login using vyos\/vyos as the username and password.<\/p>\n\n\n\n<p><strong>Step 4) <\/strong><br>type <\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">$ <em>show Interfaces system<\/em> <\/p>\n\n\n\n<p>and you will get a list of all the interfaces and their MAC addresses&#8230; match these with the notes you have from Step 2 so you can address them properly &#8211; you will need to identify them as eth1, eth2 etc when you come to configure IP addresses.<\/p>\n\n\n\n<p><strong>Step 5) <\/strong><br>enter config mode by typing <\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">$ <em>config<\/em>\u00a0<\/p>\n\n\n\n<p><strong>Step 6) <\/strong><br>use the following command for each nic that requires configuration. The IP address that you use will become the Default Gateway on each guest machine you have on that custom network<\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">$<em> set interface ethernet eth<strong>x<\/strong>\u00a0address \u00a0<strong>xxx.xxx.xxx.xxx\/xx<\/strong><\/em><\/p>\n\n\n\n<p><strong>Step 7)<\/strong><br>check all is as it should be <\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">$ s<em>how interfaces ethernet<\/em> <\/p>\n\n\n\n<p><br>Commit the changes <\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">$ <em>commit<\/em> <\/p>\n\n\n\n<p><br>Save the changes <\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">$ <em>save<\/em><\/p>\n\n\n\n<p>Once you have done this, you should be able to route traffic across the custom networks.<\/p>\n\n\n\n<p>Steps taken from <a href=\"https:\/\/www.youtube.com\/watch?v=eU8R25J89tE\">this <\/a><a href=\"https:\/\/www.youtube.com\/watch?v=eU8R25J89tE\" target=\"_blank\" rel=\"noreferrer noopener\">video <\/a>on youtube &#8211; all credits to <a href=\"https:\/\/www.youtube.com\/channel\/UC3ddZc8RZjCGZS6XF2Lz4UA\">1<\/a><a href=\"https:\/\/www.youtube.com\/channel\/UC3ddZc8RZjCGZS6XF2Lz4UA\" target=\"_blank\" rel=\"noreferrer noopener\">5 minutes or less<\/a><\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<p class=\"responsive-video-wrap clr\"><iframe loading=\"lazy\" title=\"VyOS as a Simple Lab Router\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/eU8R25J89tE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>VMWare workstation Pro and VMware Fusion Pro both allow you to create custom networks. I use this feature a lot to replicate workloads as closely as possible and in some instance even by downloading the VM directly from VCentre, what one can&#8217;t then do is to route between them without some outside help. Enter VYOS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[32],"tags":[37,33,34,36,35],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-networking","tag-custom-network","tag-routing","tag-vmware","tag-vyos","tag-workstation","entry"],"_links":{"self":[{"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":2,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":468,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/posts\/122\/revisions\/468"}],"wp:attachment":[{"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/categories?post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/tags?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}