ptp_port_config
ptp_port_config
The ptp_port_config
tool is used to get and set select PTP port settings. The changes made with this tool are not persistent across restarts of the ntservice daemon. The user should store the persistent PTP configuration in the ntservice.ini
file.
Syntax
ptp_port_config --cmd <get | set> --adapter <adapter number>
[--enable <yes | no>]
[--speed <10M | 100M>]
[--duplex <half | full>]
[--autoneg <on | off>]
[--advfull <10M | 100M >]
[--advhalf <10M | 100M >]
[--help]
Command | Description |
---|---|
-c , --cmd <set | get> | Specifies the operation of the tool
|
-a , --adapter <adapter number> | Specifies the adapter that the tool is to operate on. <adapter number> can have the values 0, 1, 2, etc. |
Command | Description |
---|---|
-h , --help | Displays a help text that describes the tool and its syntax and parameters |
-e , --enable <yes | no> | Enables and disables the PTP port.
|
-s , --speed <10M | 100M> | Sets the link speed for the PTP port. This setting only takes effect when auto negotiation is disabled.
|
-d , --duplex <half | full> | Sets the duplex mode. This setting only takes effect when auto negotiation is disabled.
|
-n , --autoneg <on | off> | Sets the autonegotiation mode.
|
-f , --advfull < 10M | 100M > | Sets the full duplex link speed capabilities advertised during auto negotiation.
|
-l , --advhalf <10M | 100M> | Sets the half duplex link speed capabilities advertised during auto negotiation.
|
Examples
- Get PTP port settings for adapter 0 (zero)
ptp_port_config --cmd get --adapter 0
- Set PTP link speed to 100MBit/s on adapter 1
ptp_port_config --cmd set --adapter 1 --speed 100M --autoneg off
- Set advertised speeds and enable auto negotiation on adapter 3
ptp_port_config --cmd set --adapter 3 --advfull 10M,100M --advhalf 10M,100M --autoneg on
- Disable the PTP port on adapter 0 (zero)
ptp_port_config --cmd set --adapter 0 --enable no