Community discussions

MikroTik App
 
alberto464
just joined
Topic Author
Posts: 13
Joined: Tue Jun 14, 2022 10:19 pm

DHCP doesn't work when LTE not connected

Sat Jul 02, 2022 1:36 pm

Hello,

I noticed a problem with my configuration: when the data SIM is not connected to the internet, the MikroTik does not assign an IP address via DHCP to the machine connected to the ethernet port 1.

Is this common with the MikroTik or does it depend on how we have configured it? Can you help me?

# jun/29/2022 23:11:04 by RouterOS 7.3
# software id = 3PWC-R7A2
#
# model = RBwAPR-2nD
/interface bridge
add name=bridge1 protocol-mode=none
/interface lte
set [ find ] allow-roaming=no band="" name=lte1 network-mode=3g,lte
/interface ethernet
set [ find default-name=ether1 ] arp=proxy-arp
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface lte apn
set [ find default=yes ] apn=xxx.vodafone.it authentication=pap ip-type=ipv4 name=LTE use-network-apn=no user=LTERES_111943D
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp-pool ranges=192.168.88.101-192.168.88.199
/ip dhcp-server
add address-pool=dhcp-pool interface=bridge1 name=dhcp
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=wlan1
/ip settings
set tcp-syncookies=yes
/ip address
add address=192.168.88.1/24 interface=bridge1 network=192.168.88.0
add address=82.100.200.100/24 interface=ether1 network=82.100.200.0
/ip dhcp-server lease
add address=192.168.88.2 client-id=1:14:49:bc:26:d7:XX comment="Router One" mac-address=14:49:BC:26:D7:32 server=dhcp
/ip dhcp-server network
add address=192.168.88.0/24 dns-server=1.1.1.1,8.8.8.8,8.8.4.4 gateway=192.168.88.1 netmask=24 ntp-server=193.204.114.232,193.204.114.233
/ip dns
set servers=8.8.8.8,1.1.1.1
/ip firewall nat
add action=masquerade chain=srcnat comment="Navigazione Rete Lan" out-interface=lte1 src-address=192.168.88.0/24
add action=dst-nat chain=dstnat comment="Router One" dst-port=44063 protocol=tcp to-addresses=192.168.88.2 to-ports=44063
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www address=93.175.000.000/32,192.168.0.0/16
set ssh disabled=yes
set api disabled=yes
set winbox address=93.175.000.000/32,192.168.0.0/16
set api-ssl disabled=yes
/system ntp client
set enabled=yes
/system ntp client servers
add address=193.204.114.232
add address=193.204.114.233
/tool graphing interface
add
/tool sms
set port=lte1
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: DHCP doesn't work when LTE not connected

Sat Jul 02, 2022 3:29 pm

Probably is proxy-arp on ether1 (at lesat must be on bridge...)
/interface ethernet
set [ find default-name=ether1 ] arp=proxy-arp

Perché hai attivato i syncookies? Spesso danno fastidio a connessioni lecite, ma con il dhcp non c'entrano niente.
/ip settings
set tcp-syncookies=yes

IP 82.x.x.x on ether1?
This also must be on bridge....
 
alberto464
just joined
Topic Author
Posts: 13
Joined: Tue Jun 14, 2022 10:19 pm

Re: DHCP doesn't work when LTE not connected

Tue Jul 05, 2022 6:02 pm

Probably is proxy-arp on ether1 (at lesat must be on bridge...)
/interface ethernet
set [ find default-name=ether1 ] arp=proxy-arp

I tried, but nothing has changed.

Perché hai attivato i syncookies? Spesso danno fastidio a connessioni lecite, ma con il dhcp non c'entrano niente.
/ip settings
set tcp-syncookies=yes

I have disabled them as suggested by you. So better leave them off.

IP 82.x.x.x on ether1?
This also must be on bridge....

Maybe the problem is this, if I assign it to bridge1, can I also leave the pool of IP 192.168.xx.xx assigned to the bridge?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: DHCP doesn't work when LTE not connected

Tue Jul 05, 2022 7:34 pm

You can add any IP to the master interface, but you must not put IPs on slave interfaces.

Who is online

Users browsing this forum: 0xAA55, cmmike and 55 guests