{"id":462,"date":"2009-11-29T10:17:10","date_gmt":"2009-11-29T02:17:10","guid":{"rendered":"http:\/\/www.jhouseconsulting.com\/?p=462"},"modified":"2009-11-29T10:24:43","modified_gmt":"2009-11-29T02:24:43","slug":"wan-emulation-for-vdi-and-sbc-testing","status":"publish","type":"post","link":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/2009\/11\/29\/wan-emulation-for-vdi-and-sbc-testing-462","title":{"rendered":"WAN Emulation for VDI and SBC Testing"},"content":{"rendered":"<p>WANem (Wide Area Network Emulation) is an awesome tool for emulating a WAN in your test\/dev environment or even a demo lab. I use it in my demo lab to show customers how the technologies might behave in their environment.<\/p>\n<p>WANem is a piece of software running on Knoppix, a well-known Linux distribution based on Debian. It comes in two forms:<\/p>\n<ol>\n<li>As an ISO that is launched through a LiveCD at computer startup.<\/li>\n<li>As a VMware Virtual Appliance that can be launched from a VMware platform.<\/li>\n<\/ol>\n<p>You can get WANem from here: <a href=\"http:\/\/wanem.sourceforge.net\/\" target=\"_blank\">http:\/\/wanem.sourceforge.net\/<\/a><!--more--><\/p>\n<p>Since my lab runs multiple hypervisors I found it too complex to build the switching and routing required to implement it as a virtual appliance, so I acquired an old PC and purchased a 2nd network card. This gives me the flexibility needed to implement it as needed.<\/p>\n<p>For ease of implementation I implement it in Bridge mode. Unfortunately Bridge mode does not support all the nice Advanced Mode features, but it does enable you to set the bandwidth and latency (delay) from within the Basic Mode configuration page.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/11\/wanembasic.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-463\" title=\"wanembasic\" src=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/11\/wanembasic.png\" alt=\"\" width=\"1261\" height=\"477\" srcset=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/11\/wanembasic.png 1261w, https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/11\/wanembasic-300x113.png 300w, https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/11\/wanembasic-768x291.png 768w, https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/11\/wanembasic-1024x387.png 1024w\" sizes=\"(max-width: 1261px) 100vw, 1261px\" \/><\/a><\/p>\n<p>An advantage with Bridge mode is that it will automatically pass through DHCP broadcasts. This is a drawback if running WANem as a router because the current implementation of WANem does not contain the dhcp-helper package, and as of version 2.2, there is currently no way to add it because it is launched through a LiveCD at computer startup, unless of course you use the VMware virtual appliance. As of version 2.2 WANem cannot be installed on a hard drive. This should be possible in a future releases, which will then mean that additional packages can be added, such as the dhcp-helper package, etc.<\/p>\n<p>The following notes were collated from here:<\/p>\n<ul>\n<li><a href=\"http:\/\/reloadin10.wordpress.com\/2008\/08\/22\/wanem-bridging-interfaces\/\" target=\"_blank\">http:\/\/reloadin10.wordpress.com\/2008\/08\/22\/wanem-bridging-interfaces\/<\/a><\/li>\n<li><a href=\"http:\/\/openmaniak.com\/vyatta_case_bridge.php\" target=\"_blank\">http:\/\/openmaniak.com\/vyatta_case_bridge.php<\/a><\/li>\n<li><a href=\"http:\/\/openmaniak.com\/wanem_conf.php\" target=\"_blank\">http:\/\/openmaniak.com\/wanem_conf.php<\/a><\/li>\n<\/ul>\n<p>To configure the WANem as a Bridge<\/p>\n<p>When the WANem first boots\u2026<\/p>\n<ul>\n<li>It will ask if you want to configure all interfaces via DHCP. Type y and hit Enter.<\/li>\n<li>Enter a new UNIX password. (Enter the password of your choice.)<\/li>\n<li>Retype the new UNIX password.<br \/>\nYou will need the password if you want to remotely access the Knoppix Linux platform via SSH.<\/li>\n<\/ul>\n<p>Once it has completed its initialisation, type exit2shell to drop out to the knoppix shell.<\/p>\n<p>To configure, type the following commands:<\/p>\n<p># Remove any existing IP configuration and bring up all the interfaces:<br \/>\nifconfig eth0 0.0.0.0 up<br \/>\nifconfig eth1 0.0.0.0 up<\/p>\n<p># Create the Bridge-group interface called br0<br \/>\nbrctl addbr br0<\/p>\n<p># Add each interface to the bridge-group br0<br \/>\nbrctl addif br0 eth0<br \/>\nbrctl addif br0 eth1<\/p>\n<p># Set an ip address to the bridge-group br0 for management<br \/>\nifconfig br0 10.0.160.200 netmask 255.255.255.0<\/p>\n<p># Add a default Route so that it can be managed from another network<br \/>\nroute add default gw 10.0.160.5<\/p>\n<p>Now ping a device on your network to test connectivity.<\/p>\n<p>Type wanem to restart the WANem tool.<\/p>\n<p>To manage the WANem, connect to it via HTTP:<br \/>\nhttp:\/\/10.0.160.200\/WANem<\/p>\n<p>You can also access the Knoppix\/Linux level with SSH.<br \/>\nThe username is &#8220;perc&#8221; and the password is what was previously set at the end of the Knoppix boot process.<\/p>\n<p>WANem CLI (Command Line Interface):<\/p>\n<p>The &#8220;help&#8221; command provides the available commands list:<\/p>\n<p>WANemControl@PERC>help<br \/>\nhelp &#8212; Displays this help.<br \/>\nabout &#8212; About WANem<br \/>\nclear &#8212; Clear the Screen<br \/>\nreset &#8212; Reset the network setting and services<br \/>\nshutdown &#8212; Shutdown the System<br \/>\nrestart &#8212; Restart the System<br \/>\nstatus &#8212; Check the status of Network settings and services<br \/>\nwanemreset &#8212; Reset WANem settings from here if GUI is very slow<br \/>\nassign &#8212; Assign an IPAddress to a device usage:assign<br \/>\nquit &#8212; Quit the shell<\/p>\n<p>So as you can see, it so simple to implement and use, and works really well.<\/p>\n<p>Cheers,<\/p>\n<p>Jeremy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WANem (Wide Area Network Emulation) is an awesome tool for emulating a WAN in your test\/dev environment or even a demo lab. I use it in my demo lab to show customers how the technologies might behave in their environment. WANem is a piece of software running on Knoppix, a well-known Linux distribution based on &#8230; <a title=\"WAN Emulation for VDI and SBC Testing\" class=\"read-more\" href=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/2009\/11\/29\/wan-emulation-for-vdi-and-sbc-testing-462\" aria-label=\"Read more about WAN Emulation for VDI and SBC Testing\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[91,174,38],"tags":[176,422,426,175],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-vdi","category-wan-emulation","category-xenapp","tag-sbc","tag-vdi","tag-wan-emulation","tag-wanem"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/comments?post=462"}],"version-history":[{"count":4,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/462\/revisions"}],"predecessor-version":[{"id":466,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/462\/revisions\/466"}],"wp:attachment":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/media?parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/categories?post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/tags?post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}