Contents
port_phy
Port control
Name | Function | Usage |
---|---|---|
port txmacstatus set | Set Tx MAC status of a port | port txmacstatus set <port_id> <enable |
port txmacstatus get | Get Tx MAC status of a port | port txmacstatus get <port_id> |
port rxmacstatus set | Set Rx MAC status of a port | port rxmacstatus set <port_id> <enable |
port rxmacstatus get | Get Rx MAC status of a port | port rxmacstatus get <port_id> |
port txfcstatus set | Set Tx flow contorl of a port | port txfcstatus set <port_id> <enable |
port txfcstatus get | Get Tx flow contorl of a port | port txfcstatus get <port_id> |
port rxfcstatus set | Set Rx flow contorl of a port | port rxfcstatus set <port_id> <enable |
port rxfcstatus get | Get Rx flow contorl of a port | port rxfcstatus get <port_id> |
port flowCtrl set | Set flow control status of a port | port flowCtrl set <port_id> <enable |
port flowCtrl get | Get flow control status of a port | port flowCtrl get <port_id> |
port mtu set | Set MTU of a port | port mtu set <port_id> |
port mtu get | Get MTU of a port | port mtu get <port_id> |
port mru set | Set MRU of a port | port mru set <port_id> |
port mru get | Get MRU of a port | port mru get <port_id> |
port mtucfg set | Set MTU configure of a port | port preferMedium set <port_id> <copper |
port mtucfg get | Get MTU configure of a port | port mtucfg get <port_id> |
port mrumtu set | Set MRU and MTU of a port | port mrumtu set <port_id> <mru_size><mtu_size> |
port mrumtu set | Get MRU and MTU of a port | port mrumtu get <port_id> |
port srcfilter set | Set srcfilter of a port | port srcfilter set <port_id> <enable |
port srcfilter get | Get srcfilter of a port | port srcfilter get <port_id> <enable |
port srcfiltercfg set | Set srcfiltercfg of a port | port srcfiltercfg set <port_id> |
port srcfiltercfg get | Get srcfiltercfg of a port | port srcfiltercfg get <port_id> |
port frameMaxSize set | Set max framesize of a port | port frameMaxSize set <port_id> <frame_max_size> |
port frameMaxSize get | Get max framesize of a port | port frameMaxSize get <port_id> |
port duplex get | Get duplex mode of a port | port duplex get <port_id> |
port duplex set | Set duplex mode of a port | port duplex set <port_id> <half |
port speed get | Get speed mode of a port | port speed get <port_id> |
port speed set | Set speed mode of a port | port speed set <port_id> <port_id> <10|100|1000|2500|5000|10000> |
port autoAdv get | Get auto-negotiation advertisement of a port | port autoAdv get <port_id> |
port autoAdv set | Set auto-negotiation advertisement of a port | port autoAdv set <port_id> <cap_bitmap> |
port autoNeg enable | Enable auto-negotiation of a port | port autoNeg enable <port_id> |
port autoNeg restart | Restart auto-negotiation process of a port | port autoNeg restart <port_id> |
port powersave set | Set power saving status of a port | port powersave set <port_id> <enable |
port powersave get | Get power saving status of a port | port powersave get <port_id> |
port hibernate set | Set hibernate status of a port | port hibernate set <port_id> <enable |
port hibernate get | Get hibernate status of a port | port hibernate set <port_id> |
port cdt run | Run cable diagnostic test of a port | port cdt run <port_id> <mdi_pair> |
port linkstatus get | Get link status of a port | port linkstatus get <port_id> |
port ieee8023az set | Set the EEE ability | port ieee8023az set <port_id> <enable |
port ieee8023az get | Get the EEE ability status | Port ieee8023az get <port_id> |
port crossover set | Set the crossover of a port | Port crossover set <port_id> <auto |
port crossover get | Get the crossover mode of a port | port crossover get <port_id> |
port crossover status | Get the crossover mode currently of a port | port crossover status <port_id> |
port prefermedium set | Set the prefer medium of a port | port preferMedium set <port_id> <copper |
port prefermedium get | Get the prefer medium of a port | port preferMedium get <port_id> |
port fibermode set | Set the fiber mode of a port. | port fiberMode set <port_id> <100fx |
port fibermode get | Get the fibe mode of a port | port fiberMode get <port_id> |
port localLoopback set | Set the local loopback of a port | port localLoopback set <port_id> <enable |
port localloopback get | Get the local loopback status of a port | port localLoopback get <port_id> |
port remoteloopback set | Set the remote loopback status of a port | port remoteLoopback set <port_id> <enable |
port remoteloopback get | Get the remote loopback status of a port | port remoteLoopback get <port_id> |
port reset set | Set port reset of a port | port reset set <port_id> |
port power off | Set port power off of a port | port poweroff set <port_id> |
port power on | Set port power on of a port | port poweron set <port_id> |
port magic frame address set | Set port magic frame address of a port | port magicFrameMac set <port_id> <mac_address> |
port magic frame address get | Get port magic frame address of a port | port magicFrameMac get <port_id> |
port phy id get | Get port PHY ID of a port | port phyId get <port_id> |
port wolstatus set | Set port WOL status of a port | port wolstatus set <port_id> <enable |
port wolstatus get | Get port WOL status of a port | port wolstatus get <port_id> |
port interfacemode set | Set port interface mode of a port | View details Appendix 1 |
port interfacemode get | Get port interface mode of a port | port interfaceMode get <port_id> |
port interfacemode status get | Get port current interface mode of a port | port interfaceMode status <port_id> |
port interface3az set | Set the EEE ability | port interface3az set <port_id> <enable |
port interface3az get | Get the EEE ability status | port interafce3az get <port_id> |
port flowctrlforcemode set | Set flowctrl force mode status | port flowctrlforcemode set <port_id> <enable |
port flowctrlforcemode get | Get flowctrl force mode status | port flowctrlforcemode get |
port promiscmode set | Set promisc mode status | port promiscmode set <port_id> <enable |
port promiscmode get | Get promisc mode status | port promiscmode get |
port eeecfg set | Set eee configuration properties | port eeecfg set <port_id> |
port eeecfg get | Get eee configuration properties | port eeecfg get <port_id> |
port cnt_cfg set | Set traffic counting configuration | port cnt_cfg set <port_id> <cnt_cfg> |
port cnt_cfg get | Get traffic counting configuration | port cnt_cfg get <port_id> |
port counter get | Get traffic statistics | port counter get <port_id> |
port counter flush | Flush traffic statistics | port counter flush <port_id> |
port port8023ah set | Set port8023ah configure | port port8023ah set <port_id> |
port port8023ah get | Get port8023ah configure | port port8023ah get <port_id> |
Appendix 1
port interfaceMode set<port_id> <psgmii_baset|psgmii_bx1000|psgmii_fx100|psgmii_amdet|sgmii_baset||qsgmii|usxgmii |sgmii_plus|10gbase_r|sgmii_fiber|psgmii_fiber| interfa
Example
root@NHX53X2-V03-244-NPN-512M16-D4:/# ssdk_sh
SSDK Init OK! Welcome to SSDK Shell version: 3.1.0, at 2025-03-09-18:54:32.dev0@qca>dev0@qca>dev0@qca>port ?duplex speed autoAdv autoNeg headertxhdr rxhdr hdrtype flowCtrl flowCtrlforcemodepowersave hibernate cdt txmacstatus rxmacstatustxfcstatus rxfcstatus bpstatus linkforcemode linkstatusmacLoopback ptslinkstatus congedrop ringfcthres ptfcthresringfcstatus ringunion ringfcen Ieee8023az crossoverpreferMedium mediumType fiberMode localLoopback remoteLoopbackreset poweroff poweron magicFrameMac phyIdwolstatus interfaceMode interface3az promiscmode mtumru mtucfg mrumtu srcfilter frameMaxSizeeeecfg srcfiltercfg switchportloopback port8023ah cnt_cfgcounter combolinkstatus erppowermode
dev0@qca>port linkstatus get 0[Status]:ENABLEoperation done.
dev0@qca>port linkstatus get 1[Status]:ENABLEoperation done.
dev0@qca>port linkstatus get 2[Status]:DISABLEoperation done.
dev0@qca>port linkstatus get 3
Illegal parameter(s)
dev0@qca>
port speed set
- Set the speed on a specified port.
- port speed set <port_id> <10|100|1000|2500|5000|10000>
- Syntax description
Parameter | Description |
---|---|
<port_id> | Specifies the port ID. The range is 1-2. |
<10|100|1000|2500|5000|10000> | Specifies the speed mode. |
- Examples
- The following example is getting the speed mode based on port 1.
dev0@qca>port speed get 1[speed]:1000(Mbps)operation done.
port autoAdv set
- Set the auto-negotiation capacity on a specified port.
- port autoAdv set <port_id> <cap_bitmap>
- Syntax description
Parameter | Description |
---|---|
<port_id> | Specifies the port ID. The range is 1-2. |
<cap_bitmap> | Specifies the bitmap of capacity: bit0: 10M half, 10T_HD bit1: 10M full, 10T_FD bit2: 100M half, 100TX_HD bit3: 100M full, 100TX_FD bit9: 1000M full. 1000T_FD bit10: 1000BX half, 1000F_HD bit11: 1000BX full, 1000F_FD bit12: 2500M full, 2500T_FD bit13: 5000M full, 5000T_FD bit14: 10000M full, 10000T_FD bit15: 10G_ R_full, 10G_R_FD |
- Examples
- The following example is setting the auto-negotiation capacity as 100TX_FD|100TX_HD|10T_HD| 10T_FD based on port 1.
dev0@qca>port autoadv set 1 0xfoperation done.