From 7436934fe3e1d28ca4c1124ccec5bbcdecdc986f Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Wed, 10 Dec 2014 20:47:56 +0100 Subject: Add option to specify an interface or an address for routers. The interface is used on routers to source ping and traceroute. On software routers, an address is required instead of the interface. --- config.php.example | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.php.example') diff --git a/config.php.example b/config.php.example index 1126988..107ff1d 100644 --- a/config.php.example +++ b/config.php.example @@ -38,6 +38,8 @@ $config['routers']['router1']['pass'] = 'readonlypassword'; $config['routers']['router1']['auth'] = 'ssh-password'; // The router type (can be cisco, ios, juniper or junos) $config['routers']['router1']['type'] = 'juniper'; +// The router source interface to be used +$config['routers']['router1']['source-interface-id'] = 'lo0'; // The router description to be displayed in the router list $config['routers']['router1']['desc'] = 'Example\'s Router 1'; @@ -54,6 +56,8 @@ $config['routers']['router2']['pass'] = 'mypassphrase'; $config['routers']['router2']['auth'] = 'ssh-key'; // The router type (can be cisco, ios, juniper or junos) $config['routers']['router2']['type'] = 'juniper'; +// The router source interface to be used +$config['routers']['router2']['source-interface-id'] = 'lo0'; // The router description to be displayed in the router list $config['routers']['router2']['desc'] = 'Example\'s Router 2'; @@ -68,6 +72,8 @@ $config['routers']['router3']['pass'] = 'birduserpassword'; $config['routers']['router3']['auth'] = 'ssh-password'; // The router type (can only be bird) $config['routers']['router3']['type'] = 'bird'; +// The router source address to be used +$config['routers']['router3']['source-interface-id'] = '192.168.1.1'; // The router description to be displayed in the router list $config['routers']['router3']['desc'] = 'Example\'s Router 3'; -- cgit v1.2.3