Clearfog, access ssh to sfp
by doudootiana from LinuxQuestions.org on (#5S8T1)
hy Ladies and gentlemen :)
I use a Clearfog base board with a Module sfp GPON onu.
This sfp allow a ssh connexion, than i need to collect some informations.
When i plug the sfp in a gigabit sfp Media converter ( tplink mc220l),
i can access to the ssh even if no fiber is connected.
With my Clearfog, i need to plug a Fiber with optical signal to have a ssh access.
For the OS, i use a Custom Linux, build with Buildroot.
For the Kernel, it's a net-next kernel.
I don't manage to find the problem : if it's about the kernel, the interface configuration, the route ip.
If someone has an idea :)
Here, the part concerning the interface sfp :
Code:iface eth2 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.10
post-up /sbin/ip l s up dev $IFACELittle inforamtion :
if i remove the command Code:post-up /sbin/ip l s up dev $IFACE, when i wake up the interface
i don't have ssh access.
The gateway is the sfp : 192.168.1.10.
Code:ip a
5: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1024
link/ether ea:3e:18:2e:9e:38 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 scope global eth2
valid_lft forever preferred_lft foreverCode:# ethtool eth2
Settings for eth2:
Supported ports: [ FIBRE ]
Supported link modes: 2500baseX/Full
1000baseX/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 2500baseX/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 2500Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Link detected: noIn the menuconfig of the kernel, i didn't notice anything who could help.
If someone can help me :)
Thanks by advance.
Doudoo Tiana.
I use a Clearfog base board with a Module sfp GPON onu.
This sfp allow a ssh connexion, than i need to collect some informations.
When i plug the sfp in a gigabit sfp Media converter ( tplink mc220l),
i can access to the ssh even if no fiber is connected.
With my Clearfog, i need to plug a Fiber with optical signal to have a ssh access.
For the OS, i use a Custom Linux, build with Buildroot.
For the Kernel, it's a net-next kernel.
I don't manage to find the problem : if it's about the kernel, the interface configuration, the route ip.
If someone has an idea :)
Here, the part concerning the interface sfp :
Code:iface eth2 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.10
post-up /sbin/ip l s up dev $IFACELittle inforamtion :
if i remove the command Code:post-up /sbin/ip l s up dev $IFACE, when i wake up the interface
i don't have ssh access.
The gateway is the sfp : 192.168.1.10.
Code:ip a
5: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1024
link/ether ea:3e:18:2e:9e:38 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 scope global eth2
valid_lft forever preferred_lft foreverCode:# ethtool eth2
Settings for eth2:
Supported ports: [ FIBRE ]
Supported link modes: 2500baseX/Full
1000baseX/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 2500baseX/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 2500Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Link detected: noIn the menuconfig of the kernel, i didn't notice anything who could help.
If someone can help me :)
Thanks by advance.
Doudoo Tiana.