...
Configures the metric for the default gateway on the current network interface. Routes with lower metrics are preferred over routes with higher metrics. This function returns true
upon success.
SetForwardingPolicy(settings As roAssociativeArray) As Boolean
Configures the host-wide forwarding policy (this method applies to all network interfaces, no matter which roNetworkConfiguration instance it is called on). This method accepts an associative array with the following parameters:
[Boolean] forwarding_enabled
: A flag that enables or disables IP forwarding. This value isfalse
by default.[Boolean] nat_enabled
: A flag that enables or disables address translation with IP forwarding. If this parameter isfalse
(the default value), andforwarding_enabled
istrue
, IP datagrams are forwarded between all interfaces and no address translation is done. If this parameter istrue
, andforwarding_enabled
istrue
, IP datagrams are forwarded between all interfaces, but SNAT is applied to any datagrams that are sent out of the "upstream" interface. In this case, an "upstream" interface is defined as any interface on which the default route is set. Note that there can be multiple interfaces that meet this criteria. Datagrams that are destined for an interface that has no default route are forwarded without NAT.
SetDHCP() As Boolean (interface)
...