How to Emulate a Long Distance Network Cloud with WANem
WANem is a very useful and strong open source network emulator if you'd like to emulate WAN environment in your LAN.
Download from http://wanem.sourceforge.net/ . It's live CD so need to install, just boot and go.
There is 2 type of emulation that i need to create. L3 (pure ip network emulation) and L2 (pure ethernet network emulation)
L3 emulation is quite easy to configure, you need a server/laptop that has at least 2 NICs. We will put this server/laptop between your source and destination and you will define WANem's IP as default GW for this 2 servers.
L2 emulation needs a special handling, cause remember this is pure L2, so you need to set you NICs as bridge.
To do that,
From the Console execute “exit2shell”
Make all interfaces up with,
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
ifconfig eth2 0.0.0.0 up
ifconfig eth3 0.0.0.0 up
Create a bridge-group interface:
brctl addbr br0
Add each interface to the bridge-group br0
brctl addif br0 eth0
brctl addif br0 eth1
brctl addif br0 eth2
brctl addif br0 eth3
Assigned an ip address to the bridge-group br0 for management
ifconfig br0 192.168.1.2 netmask 255.255.255.0
Add default route so you can manage the WANem box from another network
route add default gw 192.168.1.1
Start the tool again with the command “wanem”
I hope you find is useful
Typhoon Master
No comments:
Post a Comment