setup without static routes

  • Todd Bradley

    Todd Bradley - 2008-10-03

    Is it possible to use WANem to set up a test environment where none of the devices under test have to have static routes configured?  Basically, I want to put a 2-NIC WANem PC inline in a network segment and have it pass packets through from eth0 to eth1 with certain impairments. 

    My test network is so complex that I can't reconfigure everything to have static routes to either end (eth0 or eth1) of the WANem box.

    Any suggestions?


    • M K Nambiar

      M K Nambiar - 2009-01-19

      Hi Todd,

      Suggest you try the following

      Assume you have a network on eth0 and on eth1.

      One the WANem console do the following
      2>route add -net netmask dev eth0
      3>route add -net netmask dev eth1
      4>wanem #To revert to the WANem shell

      Ideally this shd have been possible using the assign command in WANem.


    • Juergen

      Juergen - 2009-05-05

      Hi all,

      I'd like to do an inline setup too.

      Client ( -- eth0_WANem_eth1 -- Switch -- Router ( -- RestOfTheWorld

      So I think I need:

      1) route add -net netmask dev eth0
      (Can I do that with assign too ?)

      2) Do I need a default route to eth1 (what is the syntax ?), or will that work out of the box ?

      3) I think, I need to CrossOver Cables for eth0 and eth1 ?

      4) And to get access to the WebGUI, I need an IP-Adresse ( for eth0 or eth1, correct ?

      Any comments ?



    • M K Nambiar

      M K Nambiar - 2009-05-06

      1) Yes you shd do that with assign

      2) Shd work out of the box - just have the default gateway of eth1 as when setting up the IP's.

      3) Not for eth1. For eth0 you might if both Client and WANem are really "old" boxes.



    • Juergen

      Juergen - 2009-05-09

      Just wanted to thank for the help and the great product.

      My feedback (maybe someone is interested):

      The minimum I had to configure was
      - to create a new (private) subnet to the client. So that WANem could act as a router.
      - And to add NAT.

      Client ( -- ( eth0_WANem_eth1 (DHCP + NAT) -- LAN-Switch -- Router -- RestOfTheWorld

      Client: mask Gateway (DNS <My Normal DNS-Server)
      eth1: DHCP
      nat add eth1

      So if WANem could act as a DHCP server (on the eth0 side) it would be a bit easier.

      Many thanks again


  • Peter Tandler

    Peter Tandler - 2011-11-16

    Thanks for this description - this was exactly what I was looking for.

    I noticed that a DHCP-server is bundled on the Knoppix CD, so you can easily use this to provide DHCP for one or both subnets:

    Configure DHCP:

    pico /etc/dhcp3/dhcpd.conf

    as follows

    # no DHCP for the "external" subnet where NAT is enabled
    subnet netmask { }
     # DHCP for "internal" Client-LAN
     subnet netmask {
     option routers; ## IP of the WANem host

    Start the DHCP server with

    /etc/init.d/dhcp3-server start

    This worked perfectly for me.



Log in to post a comment.