Community discussions

MikroTik App
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Thu Oct 10, 2024 8:12 pm

MikroTik Community

I recently acquired a MikroTik (CRS310-8G+2S+IN); I plan to leverage this hardware to self-host some simple apps with remote access.

The following are diagrams of my current network and the setup I would like to be able to create.

Old Network setup:
OldNetworkDiagram.png
Future Network setup:
NewNetworkDiagram.png
Unfortunately, when attempting the initial configuration, I was met with the following issues:

Problem Description:

I need help to set up a successful WAN connection. The DHCP client is unable to acquire an IP lease on eth1. The port shows up on the Interfaces list with the "no link" status. I have tried to connect my ISP modem to various ports, but the LEDs do not light up, and there is still "no link".

Not Working Configuration:

1. ISP box -> MikroTik -> PC

Working Configurations

To my surprise, when I connect through the following means, everything works (LEDs light up, and the connectivity exists):

2. ISP box -> PC
3. ISP box -> ASUS router -> PC
4. ISP box -> Some old AP/Switch -> Mikrotik -> PC
5. ISP box -> ASUS router -> MikroTik -> PC

This is not an issue with the cables (as they all work with different configurations) but rather with the MikroTik.

Do you know how to get deeper into debugging and fixing this issue?
You do not have the required permissions to view the files attached to this post.
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Sat Oct 12, 2024 3:49 pm

Bump. I still haven't been able to resolve the issue in any way, I have this problem for more than a month and I am unable to use the hardware.
 
jaclaz
Forum Guru
Forum Guru
Posts: 2151
Joined: Tue Oct 03, 2023 4:21 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Sat Oct 12, 2024 4:03 pm

Well, start by posting the exact make/model of the ISP router/modem AND a copy of your current Mikrotik configuration, follow the instructions here:
viewtopic.php?t=203686#p1051720

What you report is an error at a pretty much "basic" level, if it is something connected to the specific ISP modem/router model it is probable that it already happened to someone else, and maybe a solution already exists.

The fact that it works when you put an old "dumb" switch on the connection points to some kind of timing problem, but it could be also something connected to MAC addresses or *whatever*.

Is the modem/router in router mode or in bridge mode?
I.e. the IP address that the DHCP server on it is serving is a public or a private IP?
If the former is it a static one?
I mean is it possible to try with a static address on the Mikrotik port connected to it?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22199
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Sat Oct 12, 2024 4:45 pm

Assuming your ISP connection is 400Mbps or less ???
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Tue Oct 15, 2024 2:35 am

Well, start by posting the exact make/model of the ISP router/modem AND a copy of your current Mikrotik configuration, follow the instructions here:
viewtopic.php?t=203686#p1051720
These are the details of the current configuration. The configuration is pretty basic.
I am unable to contain all of the configurations that I have tried in a post here.
I started with the default configuration,
then followed the steps to reset the configuration without the default in an attempt to set it up myself.
So I am attaching the most basic configuration without the default, with one DHCP Client on eth1. And the PC connected on eth2.
As stated in the original message, the eth1 simply does not show up as connected even though the cables work and the port works as well.

# 1970-01-02 00:05:24 by RouterOS 7.12.2
# software id = mumbojumbo
#
# model = CRS310-8G+2S+
# serial number = mumbojumbo
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip dhcp-client
add interface=ether1
#error exporting "/ip/ssh" (timeout)
/system note
set show-at-login=no
/system routerboard settings
set boot-os=router-os
I understand that this could be a configuration issue. But I think this is unlikely due to the Interface showing up as "no link".
What you report is an error at a pretty much "basic" level, if it is something connected to the specific ISP modem/router model it is probable that it already happened to someone else, and maybe a solution already exists.

Given that I've been looking for a solution for about a month.
I can say with confidence that all of the details provided in other topics did not relate, or simply did not work in this case.

The fact that it works when you put an old "dumb" switch on the connection points to some kind of timing problem, but it could be also something connected to MAC addresses or *whatever*.

I have tried replacing the MAC address on the eth1 interface with the MAC that is visible for the old router. This did not solve it.

Is the modem/router in router mode or in bridge mode?
I.e. the IP address that the DHCP server on it is serving is a public or a private IP?
If the former is it a static one?
I mean is it possible to try with a static address on the Mikrotik port connected to it?

I don't know what mode is used for the ISP box (I do not have access to its configuration).
From what I know my ISP does not want its customers to touch the internal configuration of their modem.
The model of their box is (Huawei EchoLife HG8347R).
When conected directly to the ISP modem/router,
I was not able to access its administrative panel with the details provided on the box (but I had the access to the internet),
I know that it has a DHCP server and leases IP addresses to the connected devices (old router / PC directly)
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Tue Oct 15, 2024 2:37 am

Assuming your ISP connection is 400Mbps or less ???
Yes it is. Why?
I do not see this as an issue when I connect through another device the connection shows up and the switch acts as intended by distributing the connection accross other ports.
 
thiefa
just joined
Posts: 3
Joined: Tue Oct 15, 2024 1:05 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Tue Oct 15, 2024 1:33 pm

Not Working Configuration:

1. ISP box -> MikroTik -> PC

Working Configurations

To my surprise, when I connect through the following means, everything works (LEDs light up, and the connectivity exists):

2. ISP box -> PC
3. ISP box -> ASUS router -> PC
4. ISP box -> Some old AP/Switch -> Mikrotik -> PC
5. ISP box -> ASUS router -> MikroTik -> PC

This is not an issue with the cables (as they all work with different configurations) but rather with the MikroTik.

Do you know how to get deeper into debugging and fixing this issue?


Hi Kaszanas

I had simillar issues..
2 Modems, one did well with the CRS310, the other did not at all (port down).

PC's and other Mikrotik switches worked instantly with both modems.

Drove me insane, until i gave up for a day or so.
Now suddently both modem work like a charm, however, switching the second modem, that didnt worked right away to any other port makes that port to stay down, not seeing a connection too. Putting the modem back to the port it woked once, instantly lights up the port... kinda like the port and the modem needed some time to get in friendship thogether ^^

I have absolutely no clue whats going on there, but now its working as one would expect it (aslong as i dont change ports)


So my advice for you by now:
Let the modem pluged in for 2 days and then check back....
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Wed Oct 16, 2024 12:40 am

Hi Kaszanas

I had simillar issues..
2 Modems, one did well with the CRS310, the other did not at all (port down).

PC's and other Mikrotik switches worked instantly with both modems.

Drove me insane, until i gave up for a day or so.
Now suddently both modem work like a charm, however, switching the second modem, that didnt worked right away to any other port makes that port to stay down, not seeing a connection too. Putting the modem back to the port it woked once, instantly lights up the port... kinda like the port and the modem needed some time to get in friendship thogether ^^

I have absolutely no clue whats going on there, but now its working as one would expect it (aslong as i dont change ports)


So my advice for you by now:
Let the modem pluged in for 2 days and then check back....
For me even to try such a solution would mean to remove internet access from the entire household for two days.
I think that there should be a technical reason for such a failure.

If there is a way of getting access to some interface logs, or any other information that would be a little closer to debugging than black magic that would be great haha ;)

Well, anyway I hope that someone will have insight into this issue.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13124
Joined: Thu Mar 03, 2016 10:23 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Wed Oct 16, 2024 8:53 am

Some random ideas:
  • cables can not be ruled out with excuse of "they work with other devices" ... physical layout of connectors and sockets has some tolerances and even if they are manufactured within allowed tolerances they still could fail to work correctly (i.e. pins in device socket may not create proper connection with connector pins). It's enough that single wire/pin doesn't make proper connection and the whole ethernet connection fails (or falls back to 100Mbps)
  • switch and ISP modem can't negotiate a common speed/duplex configuration ... check switch settings ... on ethernet port, and verify that autonegotiation is enabled and all speeds / duplex variants are enabled
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Wed Oct 16, 2024 4:30 pm

Some random ideas:
  • cables can not be ruled out with excuse of "they work with other devices" ... physical layout of connectors and sockets has some tolerances and even if they are manufactured within allowed tolerances they still could fail to work correctly (i.e. pins in device socket may not create proper connection with connector pins). It's enough that single wire/pin doesn't make proper connection and the whole ethernet connection fails (or falls back to 100Mbps)
  • switch and ISP modem can't negotiate a common speed/duplex configuration ... check switch settings ... on ethernet port, and verify that autonegotiation is enabled and all speeds / duplex variants are enabled
I should also say that I have tried to use multiple cables, and a few times with each of them.
I see, yes, the autonegotiation is enabled by default but it does not include all speeds, I will turn on all of the available speeds in the autonegotiation and see if this fixes the issue.
Typically, are there any logs of the autonegotiation failing that I can see from the console to make sure that it is this step that failed?
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Wed Oct 16, 2024 7:04 pm

Your at the mercy of the isp modem. Since you don't have access to it.

When we talk about mac address. We're talking about the isp modem registering the mac address of the router connected to it.

What I would do it first.

Unplug the isp modem. Connect the cable to port 1 on the isp modem to port 1 on the mikrotik router. Connect a pc to port 2 on the mikrotik router.
Reset the mikrotik router with default configuration and power it off.

Wait at least 5 minute with the isp modem unplugged. Power on your mikrotik router. The plug back in your isp modem and wait for it to complete it's start up. Wait about 10 minutes and watch the led link status on the ports. Turn on your pc and see it you get an ip address.

If your still don't get an link up on the wan port. Try again. Turn off you pc. Unplug the isp modem and unplug the mikrotik router and wait about 5 minutes. Power up the mikrotik router wait about a minute and plug back in your isp modem. Turn on your pc.

What we are try to do is have the isp modem register the mac address of your mikrotik router.

I believe the default network address on your isp modem it 192.168.100.0/24. I say this because isp modem are mostly setup in router mode.

If you still can't get a link up on the wan port. I would try again but wait about 20 minutes and start over again.

In the past it have ran into this issue. One the isp modem can't negotiate the port speed so I use a crossover cable.
Or issue two would be that the isp modem see the mac address on the mikrotik router as invalid. Then you would have to change the mac address on the wan port to a mac address that the isp modem can register.

You did say that the asus router works. I would use the same mac address and change the last hex value. Your mac address should be on the label on your asus router. Just don't change the prefex mac address. The first 3. You would have to manually enter your ip address on your pc to get access to your mikrotik router which is 192.168.88.1. Go to Quick Set and change the mac address there. For example the mac address on your asus router

Example only! bc:99:11:a2:ba:ea change to bc:99:11:a2:ba:ce
Hi,

Yeah I have tried the trick where I have changed the MAC address of the eth1 interface to show up the same as the opld router. Unfortunately this did not work.
Also this is liklely not the issue because I have tried to connect the 3 other devices apart from the MikroTik, and all of them register connection immediately.

I'll try again today, I will try to provide more details as I go along.
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Sun Oct 20, 2024 1:40 am

Point being. Use the same mac address on you asus router but change the last two and use the Quick set to change it but first do a reset with defaults on the mikrotik router. You might have to power cycle your isp modem. Not sure about the mikrotik router but I would reboot it too!
This is one of the things that I have tried already and it didn't work.
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Sun Oct 20, 2024 1:43 am

Some random ideas:
  • cables can not be ruled out with excuse of "they work with other devices" ... physical layout of connectors and sockets has some tolerances and even if they are manufactured within allowed tolerances they still could fail to work correctly (i.e. pins in device socket may not create proper connection with connector pins). It's enough that single wire/pin doesn't make proper connection and the whole ethernet connection fails (or falls back to 100Mbps)
  • switch and ISP modem can't negotiate a common speed/duplex configuration ... check switch settings ... on ethernet port, and verify that autonegotiation is enabled and all speeds / duplex variants are enabled


I have tried with the following settings but still the interface itself shows "no link", including reconnecting the cables and power cycling the ISP box (eth1 is ISP, eth2 is PC).
I can try connecting the ISP box to another port (but I have done that already before...).

I cannot believe that no one else had a similar issue and that I am unable to find the solution for over a month now...
And I would like to reiterate, that when I connect a "dumb" anything that leases a dynamic IP address in front of the MikroTik, then it works all of a sudden:
eth1_auto_neg_settings.png
mikrotik_interfaces.png
eth1_dhcp_mikrotik.png
You do not have the required permissions to view the files attached to this post.
 
jaclaz
Forum Guru
Forum Guru
Posts: 2151
Joined: Tue Oct 03, 2023 4:21 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Sun Oct 20, 2024 3:09 am

It Is still not at all clear ( to me ) if the issue Is just the DHCP client or something else.
I would try the following experiment:
1) connect ISP router->dumb switch->Mikrotik (ether1)
2) the ether1 should get an IP address and connection established
3) check which ip the ether1 got, with /ip address print
4) physically disconnect the Mikrotik from the switch
4) assign manually that same ip to ether1
5) disable the DHCP client
6) connect the Mikrotik directly to the ISP router

What happens?
If the issue Is the DHCP, It should work in the same manner It did when there was the dumb switch between the two routers.

If It doesn't, It Is possible that the issue Is with MDI/MDIX, though It would be a very rare case, It Is a possibility, at least in theory.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13124
Joined: Thu Mar 03, 2016 10:23 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Sun Oct 20, 2024 11:12 am

It Is still not at all clear ( to me ) if the issue Is just the DHCP client or something else.

OP stated that port shows "no link". Which means that there's problem on layer1 (physical connectivity) or layer2 (ethernet connectivity). Until this part of problem gets resolved, layer3 (e.g. DHCP) can't start to work.

I'd like to see statuses from CLI. Screenshot from the last post by @Kaszanas shows advertised speeds of ether1 ... many are useless (anything faster than 2.5Gbps ... which is, as per specs, speed of RJ45 ports) and a few are missing (all 100Mbps variants). And I don't know why those are missing (could be that status window has to be scrolled or that those speeds are really not advertised).

So in essence I'd like to see output of /interface/ethernet/monitor [find name=ether1] which should show something. Also log lines with timestamps around the moment when ethernet cable between ISP router and CRS310 is connected on both ends might show something.
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Sun Oct 20, 2024 7:39 pm

It Is still not at all clear ( to me ) if the issue Is just the DHCP client or something else.

OP stated that port shows "no link". Which means that there's problem on layer1 (physical connectivity) or layer2 (ethernet connectivity). Until this part of problem gets resolved, layer3 (e.g. DHCP) can't start to work.

I'd like to see statuses from CLI. Screenshot from the last post by @Kaszanas shows advertised speeds of ether1 ... many are useless (anything faster than 2.5Gbps ... which is, as per specs, speed of RJ45 ports) and a few are missing (all 100Mbps variants). And I don't know why those are missing (could be that status window has to be scrolled or that those speeds are really not advertised).

So in essence I'd like to see output of /interface/ethernet/monitor [find name=ether1] which should show something. Also log lines with timestamps around the moment when ethernet cable between ISP router and CRS310 is connected on both ends might show something.
I feel like this could lead to something, could you tell me what would be the command to get all of the required information from the log messages?
e.g. what should be the level of the logs?
 
Kaszanas
just joined
Topic Author
Posts: 11
Joined: Fri Oct 04, 2024 7:15 pm

Re: ISP modem and MikroTik (CRS310-8G+2S+IN) no link on interface, cannot connect to internet

Tue Oct 29, 2024 5:53 pm

I still wasn't able to resolve the issue.
I am not sure how to log everything that is happening on interface ether1.
I would like to monitor EVERYTHING that is happening when I connect the cable.
How do I access lower level logs on the interface?
It Is still not at all clear ( to me ) if the issue Is just the DHCP client or something else.
I would try the following experiment:
1) connect ISP router->dumb switch->Mikrotik (ether1)
2) the ether1 should get an IP address and connection established
3) check which ip the ether1 got, with /ip address print
4) physically disconnect the Mikrotik from the switch
4) assign manually that same ip to ether1
5) disable the DHCP client
6) connect the Mikrotik directly to the ISP router

What happens?
If the issue Is the DHCP, It should work in the same manner It did when there was the dumb switch between the two routers.

If It doesn't, It Is possible that the issue Is with MDI/MDIX, though It would be a very rare case, It Is a possibility, at least in theory.
@Kaszanas
Did you do this?

Also, go get a crossover cable!

The closest manual I can find

GPON terminal EchoLife HG8010/HG8110/HG8240/HG8245/HG8247/HG8447 (hereafter
referred to as the HG8010/HG8110/HG8240/HG8245/HG8247/HG8447) is an indoor optical
network terminal (ONT) designed for home users and small office and home office (SOHO)
users. This document provides the appearance and specifications of the HG8010/HG8110/
HG8240/HG8245/HG8247/HG8447, and describes its configuration and usage, which helps you
know the HG8010/HG8110/HG8240/HG8245/HG8247/HG8447 quickly.

Description:
Huawei EchoLife HG8347R is an ONU client terminal designed for use with FTTx GEPON networks. This device is equipped with four Ethernet ports. Three of them work in Fast Ethernet 10 / 100Mbps, the last one is Gigabit Ethernet 10/100 / 1000Mbps. With the 802.11b / g / n module supporting MIMO 2×2, there is no need to connect additional access points to provide access to the Internet without the hassle of cables.

Try using port 4..

Like I said. Since you don't have access to the Huawei router your at the mercy of your ISP and how it's configured.
Sorry there is just a lot of information and I cannot wrap my hand around everything,
below is what I did today to try and get a solution:

1. Got a crossover cable
It Is still not at all clear ( to me ) if the issue Is just the DHCP client or something else.

OP stated that port shows "no link". Which means that there's problem on layer1 (physical connectivity) or layer2 (ethernet connectivity). Until this part of problem gets resolved, layer3 (e.g. DHCP) can't start to work.

I'd like to see statuses from CLI. Screenshot from the last post by @Kaszanas shows advertised speeds of ether1 ... many are useless (anything faster than 2.5Gbps ... which is, as per specs, speed of RJ45 ports) and a few are missing (all 100Mbps variants). And I don't know why those are missing (could be that status window has to be scrolled or that those speeds are really not advertised).

So in essence I'd like to see output of /interface/ethernet/monitor [find name=ether1] which should show something. Also log lines with timestamps around the moment when ethernet cable between ISP router and CRS310 is connected on both ends might show something.

2. Enabled logging

Changed auto negotiation to everything below 2.5G:

20:22:29 system,info device changed by winbox-3.41/mac-msg(winbox):admin@2C:F0:5D:3A:1E:E8 (/interface set ether1 disabl
ed=no l2mtu=1592 mtu=1500 name=ether1; /interface ethernet set [ find ] advertise=10M-baseT-half,10M-baseT-full,100M-base
T-half,100M-baseT-full,1G-baseT-half,1G-baseT-full,1G-baseX,2.5G-baseT,2.5G-baseX,10M-baseT-half arp=enabled arp-timeout=
auto auto-negotiation=yes combo-mode=auto disabled=no fec-mode=off l2mtu=1592 loop-protect=default loop-protect-disable-t
ime=5m loop-protect-send-interval=5s mtu=1500 name=ether1 rx-flow-control=off sfp-rate-select=low tx-flow-control=off; /q
ueue interface set ether1)

Re-plugged eth1 to LAN1 on ISP box:
Nothing happens, there are no logs.

Checked other 3 LAN ports on the ISP box:

20:25:30 interface,info ether1 link up (speed 100M, full duplex)
20:25:34 interface,info ether1 link down
20:25:38 interface,info ether1 link up (speed 100M, full duplex)
20:25:42 interface,info ether1 link down
20:25:48 interface,info ether1 link up (speed 100M, full duplex)
20:25:50 interface,info ether1 link down

Output of /interface/ethernet/monitor [find name=ether1] which should show something:

before connecting:
numbers: ether1
name: ether1
status: no-link
auto-negotiation: done
supported: 10M-baseT-half,10M-baseT-full,100M-baseT-half,100M-baseT-full,1G-baseT-full,2.5G-baseT
advertising: 10M-baseT-half,10M-baseT-full,100M-baseT-half,100M-baseT-full,1G-baseT-full,2.5G-baseT
link-partner-advertising:

after connecting:
numbers: ether1
name: ether1
status: no-link
auto-negotiation: done
supported: 10M-baseT-half,10M-baseT-full,100M-baseT-half,100M-baseT-full,1G-baseT-full,2.5G-baseT
advertising: 10M-baseT-half,10M-baseT-full,100M-baseT-half,100M-baseT-full,1G-baseT-full,2.5G-baseT
link-partner-advertising:


I want to reiterate that other boxes/routers (dumb ones) work right after plugging them in.
If there are any other technical details, logs, or anything that I can do to see what happens closely I would appreciate more assistance.
Currently this issue is about 2-2.5 months and not solved.