Click or drag to resize
RoutingTableAdd Method (IpAddress, IpAddress, IpAddress, Interface, Int32)
Adds a route to the routing table.

Namespace: Network.Sim.Network.Ip.Routing
Assembly: Network.Sim (in Network.Sim.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void Add(
	IpAddress destination,
	IpAddress netmask,
	IpAddress gateway,
	Interface interface,
	int metric
)

Parameters

destination
Type: Network.Sim.Network.IpIpAddress
The IP address of the destination network. This, together with the netmask describes the destination network id.
netmask
Type: Network.Sim.Network.IpIpAddress
The netmask that, together with the destination parameter describes the destination network id.
gateway
Type: Network.Sim.Network.IpIpAddress
The gateway through which the destination network can be reached.
interface
Type: Network.Sim.CoreInterface
The local interface through which the gateway can be reached.
metric
Type: SystemInt32
The metric of using the route.
See Also