# Ubiswitch / BloxOsLite - Link control

**URL:** <https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387>\
**Category:** BotBlox Software\
**Created:** [February 23, 2025, 5:54pm UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387 "2025-02-23T17:54:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterMaes](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/petermaes/32/231_2.png) [@PeterMaes](https://forum.botblox.org/u/PeterMaes)\
**Post date:** [February 23, 2025, 5:54pm UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387/1 "2025-02-23T17:54:26Z")

</div>

is it possible to disable an ethernet port on Ubiswitch via commands ?  
Running BloxOsLite V0.4 and it seems the commands for link control don’t work.

ubiswitch:~$ port 8 link off  
Link toggle for port 8 to off  
(i tried port numbers 1-8 for the gigabit ethernet ports)

but it doesn’t do anythink (link stays on)

ubiswitch:~$ I: Expected switch chip found  
I: Switch chip probe successful  
I: BloxOsLite: v0.4.0+0

ubiswitch:~$ I: Header is empty, no configurations  
I: No DB migrations are needed  
I: Initializing DSA switch ports  
I: Get LAG configuration from database  
I: Header is empty, no configurations  
I: No LAG configuration in database  
I: Get port configuration from database  
I: No data found eeprom section  
I: No port configuration in database  
I: Get VLAN configuration from database  
I: Header is empty, no configurations  
I: No VLAN configuration in database

---

<div class="post-metadata">

**Author:** ![peci1](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/peci1/32/32_2.png) [@peci1](https://forum.botblox.org/u/peci1)\
**Post date:** [February 23, 2025, 9:17pm UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387/2 "2025-02-23T21:17:56Z")

</div>

I faced this too. I’ve already reported this bug via email.

---

<div class="post-metadata">

**Author:** ![peci1](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/peci1/32/32_2.png) [@peci1](https://forum.botblox.org/u/peci1)\
**Post date:** [February 24, 2025, 8:59am UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387/3 "2025-02-24T08:59:18Z")

</div>

It seems to me the firmware is only disabling the MAC of the port via port register 0x1 ForcedLink+LinkValue. However, the datasheet states that for disabling a port, it is better to use register 0x4 PortState. There is also PHY register PowerDown that can be set to save power.

It’s not clear to me why a port with a disabled MAC still transmits data, though…

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [February 25, 2025, 11:30am UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387/4 "2025-02-25T11:30:38Z")

</div>

Yep! This was logged in my backlog for BloxOsLite - thanks for the report.

At present `port <int> link ...` will enable/disable forwarding on the port (i.e. affects the queue controller policy). It doesn’t touch the MAC or PHY settings and admittedly I suspect this has confused everybody because the word `link` as an arg has a specific connotation… I’ve updated the docs to reflect this better.

I’ll post here when I implement an update relevant to powering down the internal PHYs.

---

<div class="post-metadata">

**Author:** ![peci1](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/peci1/32/32_2.png) [@peci1](https://forum.botblox.org/u/peci1)\
**Post date:** [February 25, 2025, 8:48pm UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387/5 "2025-02-25T20:48:58Z")

</div>

> [@aaron](#):
>
> enable/disable forwarding on the port

I don’t even think it does this. I was normally connected to the rest of the network with `link off`.

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [February 26, 2025, 7:09pm UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387/6 "2025-02-26T19:09:16Z")

</div>

Hmm, strange. I would expect to see the PHY link light with forwarding disabled, but there should be no egress from the disabled port (i.e. no ping between ports). I see you’ve reported this in a separate email and I’ve already added this to check on BloxOsLite when I get around to the next release.

---

<div class="post-metadata">

**Author:** ![PeterMaes](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/petermaes/32/231_2.png) [@PeterMaes](https://forum.botblox.org/u/PeterMaes)\
**Post date:** [July 31, 2025, 3:16pm UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387/7 "2025-07-31T15:16:25Z")

</div>

any update on this ?  
when do you expect to have link control available ?

---

<div class="post-metadata">

**Author:** ![josh\_elijah](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/josh_elijah/32/568_2.png) [@josh\_elijah](https://forum.botblox.org/u/josh_elijah)\
**Post date:** [August 1, 2025, 3:43pm UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387/8 "2025-08-01T15:43:13Z")

</div>

Good timing. We’re about to release v0.4.3 which will add the following features.

- Live readout of PHY port status
- MDIO debug (read and write registers directly) for advanced use or debug
- Power up / Power down of PHY ports (rather than just turning off the MAC side, this will actually turn off power to the PHY, meaning reduced power consumption for unused ports).
- SFP port querying

---

<div class="post-metadata">

**Author:** ![peci1](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/peci1/32/32_2.png) [@peci1](https://forum.botblox.org/u/peci1)\
**Post date:** [August 1, 2025, 9:58pm UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387/9 "2025-08-01T21:58:31Z")

</div>

Great, I’m also looking forward to the release!

I just wonder what’s the versioning scheme. Usually, new features should increase the minor version and patch numbers should only reflect bugfixes and minor stuff…

---

<div class="post-metadata">

**Author:** ![aaron](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.botblox.org/aaron/32/12_2.png) [@aaron](https://forum.botblox.org/u/aaron)\
**Post date:** [August 4, 2025, 10:01am UTC](https://forum.botblox.org/t/ubiswitch-bloxoslite-link-control/387/10 "2025-08-04T10:01:46Z")

</div>

Yes, thank you, I’m working on this and will release it soon. I know it’s taking a while and you all need these features - I am working flat out to deliver!

Included will be a PHY link status and link control (I’m making the distinction between disabling port forwarding and PHY link very clear). Also included will be generic MDIO read/write for those who want to debug. I will stress that, ideally, customers only use that for testing and trying out features not yet implemented in a CLI command in BloxOsLite. If customers are using it to implement a feature, it would be beneficial to know so I can implement it cleanly for them as a command in future releases. There is much more included as well, including SFP module querying on UbiSwitch.

As to versioning: in all projects I typically go with .. semantic versioning. This release is almost certainly a MAJOR now with amount of changes there are and how I’ve renamed some CLI commands to make them much clearer in what they do - a breaking change. All changes are [documented in the release notes](https://github.com/botblox/bloxoslite-releases/releases) that come with every release binary here.
