Thanks a lot Buddy for your reply.Hello!
You need to create PPPoE server on the mikrotik, if you want to authenticate users with username and password.
Then, you can specify rate limits easily in ppp profile, for each user.
Regards!
Hello!Thanks a lot Buddy for your reply.Hello!
You need to create PPPoE server on the mikrotik, if you want to authenticate users with username and password.
Then, you can specify rate limits easily in ppp profile, for each user.
Regards!
but as i said i am new born baby in this ROS World.so i don't know exactly what to do for it.if you can help me i will be very very very Thankful to you for my life.
i did not installed any OS,1 of my friend give me hard drive with installed 2.9.27 OS.Hello!Thanks a lot Buddy for your reply.Hello!
You need to create PPPoE server on the mikrotik, if you want to authenticate users with username and password.
Then, you can specify rate limits easily in ppp profile, for each user.
Regards!
but as i said i am new born baby in this ROS World.so i don't know exactly what to do for it.if you can help me i will be very very very Thankful to you for my life.
Ok, let's start then
Which Mikrotik version in installed on your PC/router?
How do you get internet from modem? by dhcp, static ip, PPPoE...etc?
i have attach it with my other pc (which have 2 nic).Hello!Thanks a lot Buddy for your reply.Hello!
You need to create PPPoE server on the mikrotik, if you want to authenticate users with username and password.
Then, you can specify rate limits easily in ppp profile, for each user.
Regards!
but as i said i am new born baby in this ROS World.so i don't know exactly what to do for it.if you can help me i will be very very very Thankful to you for my life.
Ok, let's start then
Which Mikrotik version in installed on your PC/router?
How do you get internet from modem? by dhcp, static ip, PPPoE...etc?
ip address add address=192.168.0.1/24 interface="your lan interface" disabled=no
ip dhcp-client add interface="your wan interface" use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no
ip pool add name=users_pool ranges=192.168.2.2-192.168.2.254
ip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=your wan interface action=masquerade
interface pppoe-server server add authentication=pap,chap,mschap1,mschap2 interface=your lan interface service-name=pppoe-service one-session-per-host=yes disabled=no
ppp profile add name=user1 local-address=192.168.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
1st tell me how to reset all settings of router?Ok,
We need to assign ip address to ethernet interfaces first:
1. LAN inteface (to switch)
2. WAN interface (to modem)Code: Select allip address add address=192.168.0.1/24 interface="your lan interface" disabled=no
Because you get dynamicaly assigned ip address form modem, we will use dhcp-client on wan interface.Code: Select allip dhcp-client add interface="your wan interface" use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no
Next, we need to create ip pool for users that are connecting with pppoe:
Masquerade outgoing interface:Code: Select allip pool add name=users_pool ranges=192.168.2.2-192.168.2.254
Then create a pppoe server on LAN interface:Code: Select allip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=your wan interface action=masquerade
So, we need to create each user now.Code: Select allinterface pppoe-server server add authentication=pap,chap,mschap1,mschap2 interface=your lan interface service-name=pppoe-service one-session-per-host=yes disabled=no
First, we create profile with rate limit:
Then username and password for each user:Code: Select allppp profile add name=user1 local-address=192.168.2.1 remote-address=users_pool rate-limit=2048000/2048000 use-encryption=no use-compression=no use-vj-compression=no only-one=yes
Finish!Code: Select allppp secret add name=user1 password=userpass profile=user1 disabled=no
You need to create each profile for each user if you want different bandwith, static ip, etc... or you can use same profile for many users!
Regards!
1st tell me how to reset all settings of router?Ok,
We need to assign ip address to ethernet interfaces first:
1. LAN inteface (to switch)
2. WAN interface (to modem)Code: Select allip address add address=192.168.0.1/24 interface="your lan interface" disabled=no
Because you get dynamicaly assigned ip address form modem, we will use dhcp-client on wan interface.Code: Select allip dhcp-client add interface="your wan interface" use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no
Next, we need to create ip pool for users that are connecting with pppoe:
Masquerade outgoing interface:Code: Select allip pool add name=users_pool ranges=192.168.2.2-192.168.2.254
Then create a pppoe server on LAN interface:Code: Select allip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=your wan interface action=masquerade
So, we need to create each user now.Code: Select allinterface pppoe-server server add authentication=pap,chap,mschap1,mschap2 interface=your lan interface service-name=pppoe-service one-session-per-host=yes disabled=no
First, we create profile with rate limit:
Then username and password for each user:Code: Select allppp profile add name=user1 local-address=192.168.2.1 remote-address=users_pool rate-limit=2048000/2048000 use-encryption=no use-compression=no use-vj-compression=no only-one=yes
Finish!Code: Select allppp secret add name=user1 password=userpass profile=user1 disabled=no
You need to create each profile for each user if you want different bandwith, static ip, etc... or you can use same profile for many users!
Regards!
then tell me how and where enter all of above mentioned commands?
then i will be able to do this.
Regard's
connect with which port?1st tell me how to reset all settings of router?Ok,
We need to assign ip address to ethernet interfaces first:
1. LAN inteface (to switch)
2. WAN interface (to modem)Code: Select allip address add address=192.168.0.1/24 interface="your lan interface" disabled=no
Because you get dynamicaly assigned ip address form modem, we will use dhcp-client on wan interface.Code: Select allip dhcp-client add interface="your wan interface" use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no
Next, we need to create ip pool for users that are connecting with pppoe:
Masquerade outgoing interface:Code: Select allip pool add name=users_pool ranges=192.168.2.2-192.168.2.254
Then create a pppoe server on LAN interface:Code: Select allip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=your wan interface action=masquerade
So, we need to create each user now.Code: Select allinterface pppoe-server server add authentication=pap,chap,mschap1,mschap2 interface=your lan interface service-name=pppoe-service one-session-per-host=yes disabled=no
First, we create profile with rate limit:
Then username and password for each user:Code: Select allppp profile add name=user1 local-address=192.168.2.1 remote-address=users_pool rate-limit=2048000/2048000 use-encryption=no use-compression=no use-vj-compression=no only-one=yes
Finish!Code: Select allppp secret add name=user1 password=userpass profile=user1 disabled=no
You need to create each profile for each user if you want different bandwith, static ip, etc... or you can use same profile for many users!
Regards!
then tell me how and where enter all of above mentioned commands?
then i will be able to do this.
Regard's
Go to winbox, then "new terminal" button, and enter system reset, then click y on keyboard, and press enter.
After restart, logon to winbox again and open terminal, then enter all comands there.
Regards!
do you have any sky or msn ?No matter, just logon with winbox.
Ok,it reset now.
now tell me some things bcoz i did't understand that
ip address add address=192.168.0.1/24 interface="your lan interface" disabled=no (my lan interface????)
ip dhcp-client add interface="your wan interface" use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no (my wan interface????)
ip pool add name=users_pool ranges=192.168.2.2-192.168.2.254 (add name?????)
ip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=your wan interface action=masquerade (my wan interface action?????)
You must first rename ethernet interfaces from ether1 and ether2 to LAN and WAN,when i have entered this value
ip address add address=192.168.0.1/24 interface=LAN disabled=no
this msg displayed there
input does not match any value of iterface
where are you dejanb?
i am unable to complete the process.
Plz help me.
Yes i do as you said, but did't work.where are you dejanb?
i am unable to complete the process.
Plz help me.
Did you renamed interfaces exactly like i said?
Enter:Yes i do as you said, but did't work.where are you dejanb?
i am unable to complete the process.
Plz help me.
Did you renamed interfaces exactly like i said?
interface ethernet print
You didn't renamed ethernet interfaces like i said.It's attached.
kindly tell me how to create users and how to complete other settings.
I will be very Thankful to you.
Regard's
Shaikh
interface ethernet set ether1 name=LAN disabled=no
interface ethernet set ether2 name=WAN disabled=no
I have reset router again and now it's updated,you can find all the new settings i entered in pic,You didn't renamed ethernet interfaces like i said.It's attached.
kindly tell me how to create users and how to complete other settings.
I will be very Thankful to you.
Regard's
Shaikh
Enter:
Code: Select allinterface ethernet set ether1 name=LAN disabled=no
Then you can enter commands that i writed earlier.Code: Select allinterface ethernet set ether2 name=WAN disabled=no
Regards!
Buy a licence key and upgrade to V5.now it's updated,
tell me what to do if it's done?
Checking network protocol connections
TCP/IP CP reported error 738: The server did not assign an address
If you entered all exactly like i said, and it works, it's done!now tell me which port i connect to my dsl modem and which one to switch (attached with other computers) ?
how to define DNS settings?
Code: Select allWAN connect to dsl modem, LAN to switch!
Code: Select allIt will be defined automaticaly with dhcp-client you created earlier
what to do on other computer to connect through this router?
what will there remote and local address?Code: Select allJust create another, different username and password in mikrotik for second computer, like for first one.
all the other complete procedure to use this router on my small network?Code: Select alllocal-address=192.168.2.1 (like for first username, and it will be same for all usernames), remote-address=users_pool (like first username, and it will be same for all usernames)
is it ready to use?
Terminal vt102 detected, using multiline input mode
[admin@MikroTik] > interface ethernet set ether1 name=LAN disabled=no
[admin@MikroTik] > interface ethernet set ether2 name=WAN disabled=no
[admin@MikroTik] > ip address add address=192.168.0.1/24 interface=LAN disabled=no
[admin@MikroTik] > ip dhcp-client add interface=WAN use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no
[admin@MikroTik] > ip pool add name=users_pool ranges=192.168.2.2-192.168.0.254
[admin@MikroTik] > ip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=WAN action=masquerade
[admin@MikroTik] > interface pppoe-server server add authentication=pap,chap,mschap1,mschap2 interface=LAN service-name=pppoe-service one-session-per-host=yes disabled=no
[admin@MikroTik] > ppp profile add name=user1 local-address=192.168.2.1 remote-address=users_pool rate-limit=2048000/2048000 use-encryption=no use-compression=no
use-vj-compression=no only-one=yes
[admin@MikroTik] > ppp secret add name=user1 password=userpaas profile=user1 disabled=no
[admin@MikroTik] > interface
[admin@MikroTik] interface> print
Flags: X - disabled, D - dynamic, R - running
# NAME TYPE RX-RATE TX-RATE MTU
0 R LAN ether 0 0 1500
1 R WAN ether 0 0 1500
[admin@MikroTik] > ip address
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.1/24 192.168.0.0 192.168.0.255 LAN
[admin@MikroTik] > ip route
[admin@MikroTik] ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADC 192.168.0.0/24 192.168.0.1 LAN
Do:i have reset router using " system reset " command.
and then i do as you said and you can see all the setup below A to Z.
now tell me is it all done now or any thing still missing because it's still not working.
Code: Select allTerminal vt102 detected, using multiline input mode [admin@MikroTik] > interface ethernet set ether1 name=LAN disabled=no [admin@MikroTik] > interface ethernet set ether2 name=WAN disabled=no [admin@MikroTik] > ip address add address=192.168.0.1/24 interface=LAN disabled=no [admin@MikroTik] > ip dhcp-client add interface=WAN use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no [admin@MikroTik] > ip pool add name=users_pool ranges=192.168.2.2-192.168.0.254 [admin@MikroTik] > ip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=WAN action=masquerade [admin@MikroTik] > interface pppoe-server server add authentication=pap,chap,mschap1,mschap2 interface=LAN service-name=pppoe-service one-session-per-host=yes disabled=no [admin@MikroTik] > ppp profile add name=user1 local-address=192.168.2.1 remote-address=users_pool rate-limit=2048000/2048000 use-encryption=no use-compression=no use-vj-compression=no only-one=yes [admin@MikroTik] > ppp secret add name=user1 password=userpaas profile=user1 disabled=no [admin@MikroTik] > interface [admin@MikroTik] interface> print Flags: X - disabled, D - dynamic, R - running # NAME TYPE RX-RATE TX-RATE MTU 0 R LAN ether 0 0 1500 1 R WAN ether 0 0 1500 [admin@MikroTik] > ip address [admin@MikroTik] ip address> print Flags: X - disabled, I - invalid, D - dynamic # ADDRESS NETWORK BROADCAST INTERFACE 0 192.168.0.1/24 192.168.0.0 192.168.0.255 LAN [admin@MikroTik] > ip route [admin@MikroTik] ip route> print Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf # DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE 0 ADC 192.168.0.0/24 192.168.0.1 LAN
ip dhcp-client print
[admin@MikroTik] > ip dhcp-client print
Flags: X - disabled, I - invalid
# INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS ADDRESS
0 WAN yes yes searching...
It looks like you didn't got IP address from modem, try to turn off/on modem, and, what IP address you got from modem on your pc earlier, from which range 192.168.0.x or 192.168.1.x?is it right?
what to do now?Code: Select all[admin@MikroTik] > ip dhcp-client print Flags: X - disabled, I - invalid # INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS ADDRESS 0 WAN yes yes searching...
sorry i forget to connect wan port to modem but it's done now.It looks like you didn't got IP address from modem, try to turn off/on modem, and, what IP address you got from modem on your pc earlier, from which range 192.168.0.x or 192.168.1.x?is it right?
what to do now?Code: Select all[admin@MikroTik] > ip dhcp-client print Flags: X - disabled, I - invalid # INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS ADDRESS 0 WAN yes yes searching...
Regards!
[admin@MikroTik] > ip dhcp-client print
Flags: X - disabled, I - invalid
# INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS ADDRESS
0 WAN yes yes bound 192.168.1.4/24
Is it work now? can you browe internet?sorry i forget to connect wan port to modem but it's done now.It looks like you didn't got IP address from modem, try to turn off/on modem, and, what IP address you got from modem on your pc earlier, from which range 192.168.0.x or 192.168.1.x?is it right?
what to do now?Code: Select all[admin@MikroTik] > ip dhcp-client print Flags: X - disabled, I - invalid # INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS ADDRESS 0 WAN yes yes searching...
Regards!Code: Select all[admin@MikroTik] > ip dhcp-client print Flags: X - disabled, I - invalid # INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS ADDRESS 0 WAN yes yes bound 192.168.1.4/24
[admin@MikroTik] > ppp secret add name=shaikh password=shaikh profile=user1 disab
led=no
I added you to MSN.No Buddy still trying but didn't ......
tell me what to do on other computer?
i have enter one more user as you said by this command.so what to do now to connect through this router on other computer?Code: Select all[admin@MikroTik] > ppp secret add name=shaikh password=shaikh profile=user1 disab led=no
do i have to do any changes on other computer?
Regard's