trema/trema-edge

View on GitHub
src/examples/simple_router/simple_router_netns.conf

Summary

Maintainability
Test Coverage
trema_switch( "sw1" ) {
  datapath_id "0x1"
}

netns ( "host1" ) {
  ip "192.168.1.2"
  netmask "255.255.255.0"
  route :net=>"0.0.0.0/0", :gw=>"192.168.1.1"
}
netns ( "host2" ) {
  ip "192.168.2.2"
  netmask "255.255.255.0"
  route :net=>"0.0.0.0/0", :gw=>"192.168.2.1"
}

link "sw1:1", "host1"
link "sw1:2", "host2"