Using SFP port in a Hex S

Hi,

I have an HEX S connected to a RB260GS which is working for years

But now I’ve bought a DAC cable to free up an ethernet port

I have not been able to make it work.

I have configured the WAN ethernet interface from WAN to LAN (it may seem strange but I do want this configuration as router ) and configured the SFP interface from LAN to WAN. But when I’ve configured the DHCP client from the ethernet port to SFP I get the error “DHCP client can not run on slave or passthrough interface!

I’m sure I’m missing something very obvious, but can’t figure out what it is. What I’m missing?

Thank you

Hi there!

Can you check that sfp1 is not assigned as a bridge port? That's usually the reason for that message.

... and probably you want to add the ethernet interface that you moved from WAN to LAN to the bridge.

Loosely you want to pass from:

/interface bridge add admin-mac=ELIDED auto-mac=no comment=defconf name=bridge
/interface bridge port add bridge=bridge comment=defconf interface=ether2
/interface bridge port add bridge=bridge comment=defconf interface=ether3
/interface bridge port add bridge=bridge comment=defconf interface=ether4
/interface bridge port add bridge=bridge comment=defconf interface=ether5
/interface bridge port add bridge=bridge comment=defconf interface=sfp1

to:

/interface bridge add admin-mac=ELIDED auto-mac=no comment=defconf name=bridge
/interface bridge port add bridge=bridge comment=defconf interface=ether1
/interface bridge port add bridge=bridge comment=defconf interface=ether2
/interface bridge port add bridge=bridge comment=defconf interface=ether3
/interface bridge port add bridge=bridge comment=defconf interface=ether4
/interface bridge port add bridge=bridge comment=defconf interface=ether5

1 Like

I don’t think it is

result of /interfance/print

Flags: R - RUNNING; S - SLAVE
Columns: NAME, TYPE, ACTUAL-MTU, L2MTU, MAX-L2MTU, MAC-ADDRESS

NAME TYPE ACTUAL-MTU L2MTU MAX-L2MTU MAC-ADDRESS

;;; MONITOR
0 R ether1-wan ether 1500 1596 2026
1 S ether2 ether 1500 1596 2026
2 RS ether3 ether 1500 1596 2026
3 S ether4 ether 1500 1596 2026
4 RS ether5 ether 1500 1596 2026
5 S sfp1 ether 1500 1596 2026
;;; defconf
6 R bridge bridge 1500 1596
7 R lo loopback 65536

I’m looking in the wrong place?

Kind of - note that it is flagged as "S".

/interface bridge port/print is what you're looking for.

Side note: i have a feature request to have a specific flag for bridge ports in the interface print.

Yes and no.
You need to give a meaning to the R, S and RS letters.
R=Running
RS=Running AND Slave
S=Slave

Ether1 is Running AND NOT Slave (i.e. it is not part of a bridge)
Ether2-4 are Slave (i.e. part of a bridge) and either Running or not.
Sfp1 is Slave (i.e. part of a bridge)

Now, run:
/interface bridge port export
you will NOT see the ether1 BUT sfp1 will be listed

Thank you all.

This is now working as expected.

(besides switching the lan and wan on the interfaces)

This did the trick

/interface bridge port set [find interface=ether1-wan] disabled=no
/interface bridge port remove [find interface=sfp1]
2 Likes