Community discussions

MikroTik App
 
katopz24
newbie
Topic Author
Posts: 31
Joined: Fri Sep 28, 2018 10:28 pm

How to fix unable to obtain ip address

Fri Feb 16, 2024 2:17 pm

PTP Admin!

Hi all,

Please, I need your help to resolve my problem.

I configured a 2nd Subnet for Port 5, but it doesn't obtain IP address of a client pc.

Port 5: 2nd subnet configuration
Address List:
Address: 192.168.99.1/24
Network: 192.168.99.0
Interface: ether5

Others configured below:
DHCP Server
IP Pool
Route List

PS:
Why port5 not blinking or no green light in the router? Also, it showing italic in Address list? DHCP server red italic, Route list unreachable.
Do I miss configuration? Btw, I turned off PoE Out under Interface List.
---
RouterBOARD
Model: 951Ui-2HnD
Current Firmware: 6.49.6


# feb/12/2024 07:18:59 by RouterOS 6.49.6
#
# model = 951Ui-2HnD
/interface bridge

/interface ethernet
set [ find default-name=ether1 ] mac-address=x:x:x:x:x:x name=\
    ether1-gateway
set [ find default-name=ether5 ] mac-address=x:x:x:x:x:x name=\
    ether5-slave-local poe-out=off
    
/interface l2tp-client

/interface pptp-client

/interface list

/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" mode=\
    dynamic-keys supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name=\
    ICC-Guest supplicant-identity=""
    
/interface wireless

/ip dhcp-server
add authoritative=after-2sec-delay interface=ether1-gateway lease-time=3d \
    name=dhcp1
    
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=3des

/ip pool
add comment=Local-DHCP-Jotun name=Pool-Jotun ranges=\
    192.168.99.20-192.168.99.250
    
/ip dhcp-server
add address-pool=Pool-Jotun authoritative=after-2sec-delay interface=ap-guest \
    name=dhcp2
add address-pool=Pool-Jotun disabled=no interface=ether5-slave-local \
    lease-time=3d name=server-ether5-jotun
    
/interface sstp-client
    
/queue type
add kind=pcq name="MaximumDownloadSpeed " pcq-classifier=src-address \
    pcq-rate=500k
add kind=pcq name="MaximumUploadSpeed " pcq-classifier=dst-address pcq-rate=\
    500k

/interface bridge port
add bridge=bridge-local interface=ether2-master-local
add bridge=bridge-local interface=wlan1

/ip neighbor discovery-settings
set discover-interface-list=discover

/interface list member
add interface=ether5-slave-local list=mac-winbox

/ip accounting
set account-local-traffic=yes enabled=yes

/ip accounting web-access
set accessible-via-web=yes address=192.168.0.99/32

/ip address
add address=192.168.99.1/24 comment=Jotun-Port5 interface=ether5-slave-local \
    network=192.168.99.0
add address=192.168.99.1/24 comment=Jotun-Bridge disabled=yes interface=\
    bridge-local network=192.168.99.0
    
/ip dhcp-client

/ip dhcp-server network
add address=192.168.99.0/24 comment=ether5-Jotun dns-server=\
    192.168.99.1,8.8.8.8 gateway=192.168.99.1
    
/ip dns
set allow-remote-requests=yes servers=\
1.2.3.4,1.2.3.4,8.8.8.8,1.2.3.4
/ip dns static

/ip firewall address-list

/ip firewall filter
add action=drop chain=forward comment="List of Blocked IP Address" disabled=\
    yes dst-port=80,443 protocol=tcp src-address=192.168.0.9
add action=drop chain=input disabled=yes protocol=tcp src-address=192.168.0.9
add action=accept chain=forward comment="Allowed Block Website Here!!!" \
    disabled=yes dst-address-list=Youtube src-address-list=\
    "Youtube Allowed Users"
add action=add-dst-to-address-list address-list=Youtube address-list-timeout=\
    4w2d chain=forward comment="Block Website Here!!!" disabled=yes dst-port=\
    443 protocol=tcp src-address=192.168.0.0/24 tls-host=*youtube*
add action=add-dst-to-address-list address-list=Spotify address-list-timeout=\
    4w2d chain=forward disabled=yes dst-port=443 protocol=tcp src-address=\
    192.168.0.0/24 tls-host=*youtube*
add action=drop chain=forward disabled=yes dst-address-list=Youtube
add action=drop chain=forward disabled=yes dst-address-list=Spotify

/ip firewall mangle

/ip firewall nat
add action=masquerade chain=srcnat comment=JOTUN disabled=yes dst-address=\
    192.168.99.0/24

/ip proxy

/ip route

/ip service

/port remote-access
add
/system clock
set time-zone-autodetect=no time-zone-name=Africa/Luanda
/system identity

/system leds
set 5 interface=ether5-slave-local leds=led5 type=interface-activity
Last edited by katopz24 on Mon Feb 19, 2024 10:36 am, edited 4 times in total.
 
holvoetn
Forum Guru
Forum Guru
Posts: 5500
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: How to fix unable to obtain ip address

Fri Feb 16, 2024 3:03 pm

Best to post your config between code quotes so we can see in detail what might be wrong.

But my first guess would be you did not remove eth5 from bridge.
It should be.
 
katopz24
newbie
Topic Author
Posts: 31
Joined: Fri Sep 28, 2018 10:28 pm

Re: How to fix unable to obtain ip address

Fri Feb 16, 2024 5:10 pm

Best to post your config between code quotes so we can see in detail what might be wrong.

But my first guess would be you did not remove eth5 from bridge.
It should be.
I removed it from bridge.
 
katopz24
newbie
Topic Author
Posts: 31
Joined: Fri Sep 28, 2018 10:28 pm

Re: How to fix unable to obtain ip address

Mon Feb 19, 2024 10:39 am

Please, close this post and tag as resolved.

Thanks admin!
 
holvoetn
Forum Guru
Forum Guru
Posts: 5500
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: How to fix unable to obtain ip address

Mon Feb 19, 2024 11:17 am

... and as a courtesy to other users, what was the problem and what was the fix ?
 
katopz24
newbie
Topic Author
Posts: 31
Joined: Fri Sep 28, 2018 10:28 pm

Re: How to fix unable to obtain ip address

Mon Feb 19, 2024 11:53 am

Since the day I posted here, I didn't change anything and no replied. Well, probably need to refresh the router, so I decided to restart it and it's work. Amazing! :lol:

Who is online

Users browsing this forum: steelseries and 28 guests