Community discussions

MikroTik App
 
hendra
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 93
Joined: Wed Nov 22, 2017 2:21 am

ether 2 dhcp client no gateway?

Sat Jul 31, 2021 9:25 pm

I have 3 ISP

ISP 1 and 2 have gateway from dhcp client, but ether 2 doesnt have gateway

so my question is :
1. how to get dhcp client for ether 2 ?
2. whats problem with ether 2 ?
3. how to route connection game to ether 2 without gateway ?

Big thanks for the answer
You do not have the required permissions to view the files attached to this post.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: ether 2 dhcp client no gateway?

Sun Aug 01, 2021 4:14 am

/0 as IP address?
The network parameters from that DHCP server are absurd....
 
hendra
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 93
Joined: Wed Nov 22, 2017 2:21 am

Re: ether 2 dhcp client no gateway?

Sun Aug 01, 2021 5:05 am

/0 as IP address?
The network parameters from that DHCP server are absurd....
yeah idk why its /0, how to fix this?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: ether 2 dhcp client no gateway?

Sun Aug 01, 2021 5:27 am

ask the other side, not your config....
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: ether 2 dhcp client no gateway?

Sun Aug 01, 2021 10:30 am

The combination of a /0 CIDR mask and no gateway IP address makes a perfect sense - such a configuration results in adding a "connected" route to 0.0.0.0/0 via ether2 (as /ip route print can show you), so the router sends an ARP request for every IP it wants to send a packet to, except destinations for which more specific routes (with longer destination prefix masks) exist, and the actual gateway device responds with its own MAC address. So the ISP is unlikely to be willing to change this.

The only drawback of such an approach, but a significant one, is that your router needs a huge ARP table to cope with it.

First try whether it indeed works that way, and if it does, we may be able to find a way how to integrate it into your load distribution or failover setup.

How stable is the address you get? Does it change each time you disable and re-enable ether2 or you get the same assignment every time?
 
hendra
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 93
Joined: Wed Nov 22, 2017 2:21 am

Re: ether 2 dhcp client no gateway?

Sun Aug 01, 2021 5:26 pm

The combination of a /0 CIDR mask and no gateway IP address makes a perfect sense - such a configuration results in adding a "connected" route to 0.0.0.0/0 via ether2 (as /ip route print can show you), so the router sends an ARP request for every IP it wants to send a packet to, except destinations for which more specific routes (with longer destination prefix masks) exist, and the actual gateway device responds with its own MAC address. So the ISP is unlikely to be willing to change this.

The only drawback of such an approach, but a significant one, is that your router needs a huge ARP table to cope with it.

First try whether it indeed works that way, and if it does, we may be able to find a way how to integrate it into your load distribution or failover setup.

How stable is the address you get? Does it change each time you disable and re-enable ether2 or you get the same assignment every time?
The combination of a /0 CIDR mask and no gateway IP address makes a perfect sense - such a configuration results in adding a "connected" route to 0.0.0.0/0 via ether2 (as /ip route print can show you), so the router sends an ARP request for every IP it wants to send a packet to, except destinations for which more specific routes (with longer destination prefix masks) exist, and the actual gateway device responds with its own MAC address. So the ISP is unlikely to be willing to change this.
"sorry i cant understand this"

How stable is the address you get? Does it change each time you disable and re-enable ether2 or you get the same assignment every time?
yes i get same assighment every time

so how to solve this iam so confused?
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: ether 2 dhcp client no gateway?

Sun Aug 01, 2021 5:31 pm

Don't be confused. Try as I've suggested - disable all the WAN ports except ether2 and see whether there is the route to 0.0.0.0/0 via ether2 with distance 0. If it is, and you can still access the internet, my assumption is correct. The next step is to try to disable and re-enable ether2 multiple times and see whether you keep getting the same address from DHCP or whether you get another one each time.

Who is online

Users browsing this forum: Bing [Bot], BrianTax, rplant and 66 guests