Router.addLocalNetworkInterface()
Method
Declaration
LocalNetworkInterfaceaddLocalNetworkInterface
(
java.lang.String localNetworkName,
int service,
java.lang.String networkSpecification,
int cost)
throws ConfigurationException
Purpose
Specify a local network interface.
Remarks
On a BorderRouter, this method automatically configures the default policy for all pairings of the new interface with every other existing interface. The default policy forwards _INBOX.>
(all inbox subjects); for additional details, see Policy in .
Item |
Description |
|
Supply the name of the local network. Local network names must be globally unique. For more information, see Local Network in . |
|
Supply the UDP service for communication on the local network. Programs within the local network communicate using this service. For more information, see Specifying the UDP Service in . You may supply the default value LocalNetworkInterface.UNSPECIFIED. |
|
Supply the network specification. For more information, see Constructing the Network Parameter in .You may supply the default value, the empty string. |
|
Supply the path cost for routing between the local network and the router. For more information, see Load Balancing in .You may supply the default cost LocalNetworkInterface.DEFAULT_COST. |
See Also
Router.getLocalNetworkInterfaces()
Router.removeLocalNetworkInterface()
For the corresponding browser page, see Local Network Interfaces Configuration in
For background information, see these sections:
• | Routing Table Entry in |
• | Local Network in |