Common Open Research Emulator (CORE) is an open-source tool for emulating networks on one or more machines. It is hosted by the Naval Research Laboratory and developed by Boeing Research and Technology. The GUI is written in Tk.
code repository at code.google.com