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.
...
Code Block | ||
---|---|---|
| ||
' Disable IPv6 and leave IPv4 enabled
n1=CreateObject("roNetworkConfiguration", 1)
print n1.SetEnabledProtocols(["IPv4"])
print n1.Apply() |
GetEnabledProtocols() As roArray
Returns enabled IP versions on the interface. The array can contain the "IPv4" and "IPv6" string values.
SetIP4Address(ip As String) As Boolean (interface)
...