Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
ON THIS PAGE
|
...
If the network_interface
is specified as an integer, the interface must currently exist on the player; otherwise, the object-creation function will return Invalid
. Conversely, specifying the network_interface
as a string allows you to create a roNetworkConfiguration instance for an interface that is not currently present on the player.
The network interface can be configured as a VLAN using the following string format: "[parent_interface].[vlan_id]"
(e.g "eth0.42"
). Once the VLAN interface(s) are configured, they must be enabled on the parent network interface (e.g. "eth0") using the SetVlanIds()
method. VLAN interfaces use DHCP by default. They are supported on Series 4 (XTx44, XDx34, HDx24, LS424) and Series 3 (XTx43, XDx33, HDx23, LS423, HO523) players only.
...
The array passed to this method can have the following string values: "IPv4" or "IPv6". If the array contains both values, both protocols are supported; if it contains neither, the network interface will come up but not provide connectivity.
This method returns true
on success and false
on failure; use the GetFailureReason()
method to return more information in case of failure.
Code Block | ||
---|---|---|
| ||
' Disable IPv6 and leave IPv4 enabled n1=CreateObject("roNetworkConfiguration", 1) print n1.SetEnabledProtocols(["IPv4"]) print n1.Apply() |
...