Hello Mates,
i recently install Mikrotik in my system and using it as trail but
My system do not assign ip automatically to users.
when i start my users systems it’s show that " Limited or No Connectivity "
some body please help me.
You don’t provide enough to go on. Please post the following:
/ip address print
/ip dhcp-server print
/ip pool print
Are there any entries in “/ip dhcp-server lease”?
[admin@XXX] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 XXX.XXX.0.1/24 XXX.XXX.0.0 XXX.XXX.0.255 LAN
1 D XXX.XXX.1.2/24 XXX.XXX.1.0 XXX.XXX.1.255 WAN
2 D XXX.XXX.2.1/32 XXX.XXX.2.252 0.0.0.0 <pppoe-amir>
3 D XXX.XXX.2.1/32 XXX.XXX.2.162 0.0.0.0 <pppoe-sheikh>
4 D XXX.XXX.2.1/32 XXX.XXX.2.254 0.0.0.0 <pppoe-shaikh>
5 D XXX.XXX.2.1/32 XXX.XXX.2.141 0.0.0.0 <pppoe-ali1>
6 D XXX.XXX.2.1/32 XXX.XXX.2.249 0.0.0.0 <pppoe-rehman>
7 D XXX.XXX.2.1/32 XXX.XXX.2.184 0.0.0.0 <pppoe-tahir>
8 D XXX.XXX.2.1/32 XXX.XXX.2.251 0.0.0.0 <pppoe-ilyas>
9 D XXX.XXX.2.1/32 XXX.XXX.2.253 0.0.0.0 <pppoe-imran>
[admin@XXX] > ip dhcp-server print
Flags: X - disabled, I - invalid
# NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP
[admin@XXX] > ip pool print
# NAME RANGES
0 users_pool XXX.XXX.2.14-XXX.XXX.2.254
There is no any entries in ip dhcp server.(I think so because not very much familiar with settings yet)
any one here to Help Plz…
There is not really a problem with it because you don’t have one set up on any interface.
/ip dhcp-server setup
then answer the prompts. If dns is set correctly, you should only need to enter the interface. The rest of the default entries should be correct.
These are all the commands i entered after installing the Mikrotik.kindly tell me are these right? or i have to enter some more commands?
i create 10 users after entering these commands.but some one plug-in ethernet wire in system, network connection shows " Limited or No Connectivity " because router don’t assign ip’s to users.
Please Help me i will be very very very Thankful to you.
interface ethernet set ether1 name=LAN disabled=no
interface ethernet set ether2 name=WAN disabled=no
ip address add address=XXX.XXX.0.1/24 interface=LAN disabled=no
ip dhcp-client add interface=WAN use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no
ip pool add name=users_pool ranges=XXX.XXX.2.2-XXX.XXX.2.254
ip firewall nat add chain=srcnat src-address=XXX.XXX.2.0/24 out-interface=WAN action=masquerade
interface pppoe-server server add authentication=pap,chap,mschap1,mschap2 interface=LAN service-name=pppoe-service one-session-per-host=yes disabled=no
ppp profile add name=user1 local-address=XXX.XXX.2.1 remote-address=users_pool rate-limit=2048000/2048000 use-encryption=no use-compression=no use-vj-compression=no only-one=yes
ppp secret add name=user1 password=userpass profile=user1 disabled=no
/ip dhcp-server setup
It will prompt for an interface. Enter LAN.
interface: LAN
what will be DNS server?
i am adding it via winbox in ip section.
buddy do you have any msn / yahoo or skype? bcoz it will be more convenient to reply fast.
On the dns servers, use what was issued by your ISP. You should be able to look in “/ip dns” and see that. Your ISP should fill that in when you make your dhcp request on WAN. I use static public ips, so I am a bit rusty on this part.
ADD: I prefer to keep this here on the forum. The main reason is; Someone may see something I don’t.
The other reason benefits more than just you; Someday, someone else may have the same problem, and they will find the answer in this thread by doing a forum search.
Thanks a lot for your help and suggestions.
It’s Done Buddy.