trema/trema-edge

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

Summary

Maintainability
Test Coverage
# -*- coding: utf-8 -*-

$interface = [
  {
    :port => 1,
    :hwaddr => "00:00:00:01:00:01",
    :ipaddr => "192.168.1.1",
    :masklen => 24
  },
  {
    :port => 2,
    :hwaddr => "00:00:00:01:00:02",
    :ipaddr => "192.168.2.1",
    :masklen => 24
  }
]

$route = [
  {
    :destination => "0.0.0.0",
    :masklen => 0,
    :nexthop => "192.168.1.2"
  }
]