Community discussions

MikroTik App
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 12:32 pm

Hi - something strange is happening here !

I have moved house and went from a static IP on my ADSL connection to a new service also with a static IP.

The funny thing is that I can't seem to get the static IP that the ISP gave me to work - whenever I configure it under 'IP/Addresses' in the GUI against the pppoe-out1 interface it automatically adds in a DHCP IP for the pppoe-out1 interface and relegates the one I created to ether1-gateway.

Output of a few commands below showing that DHCP is off for all interfaces...
[admin@RB750G] /interface pppoe-client> monitor pppoe-out1 
        status: connected
        uptime: 8m26s
     idle-time: 1s
  active-links: 1
  service-name: 
       ac-name: qwbi-woolloongabba
        ac-mac: 00:90:1A:42:74:9E
           mtu: 1480
           mru: 1500

[admin@RB750G] /interface pppoe-client> /ip dhcp-client print detail 
Flags: X - disabled, I - invalid 
[admin@RB750G] /interface pppoe-client> /ip address print detail 
Flags: X - disabled, I - invalid, D - dynamic 
 0   address=192.168.10.1/24 network=192.168.10.0 interface=ether2-local-master actual-interface=ether2-local-master 

 1 X address=192.168.11.1/24 network=192.168.11.0 interface=ether5-local-slave actual-interface=ether5-local-slave 

 2   address=1.1.1.2/24 network=1.1.1.0 interface=ether1-gateway actual-interface=ether1-gateway 

 3 D address=220.244.77.236/32 network=202.7.179.120 interface=pppoe-out1 actual-interface=pppoe-out1 
[admin@RB750G] /interface pppoe-client> 
I have a welcome email from my ISP stating that I do, again, have a static IP. Can anyone offer any suggestions on how to stop pppoe-out1 from gaining a DHCP address ?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 1:08 pm

This is not a DHCP address. Whenever you establish pppoe connection address is added automatically on pppoe interface.
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 1:11 pm

Cool - but I am a little confused. How do I now implement my static IP address that my ISP has given me to use ?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 1:12 pm

Most likely pppoe interface is not required anymore. Disable it and add IP address that ISP gave you to ethernet interface.
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 1:17 pm

I am pretty sure I need to run pppoe (TPG ADSL in Australia) - they have supplied me a pppoe username and password and static IP.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 2:30 pm

isn't 220.244.77.236/32 your public IP? it's already here! you should not add it manually!
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 2:39 pm

Not sure how to explain this any better !

That address (220.244.77.236/32) is being given via DHCP.

The ISP has sent a welcome email stating a different static address that I should be using.

Each time I configure this (different) static IP address again pppoe-out1 the RB750G changes this static address to be ether1-gateway and adds in the Dynamic address against pppoe-out1.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 2:55 pm

DHCP has nothing to do with this

PPPoE uses PPP to obtain an address from PPPoE server. it obtains 220.244.77.236 for now. ask your ISP to recheck their settings and to look at their logs
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 2:58 pm

OK - will do that. I thought that I had configured this static IP address somewhere last time I was with this ISP. Maybe not !

Out of interest - I have had cheaper Linksys routers that also do pppoe but also allow me to specify a static IP address. How does this work if it is PPP that is handing out IP addresses ? Cheers.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 3:00 pm

you can try to override that by creating new profile, where you set Local address
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 3:14 pm

Hi - I created the new profile with the static IP as 'Local Address' and it worked fine for incoming SSH traffic (tested via phone) but I can't get any traffic out of the network with it enabled this way.

I have worked out that no default route is being added when I use the profile set up with the local address.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 4:32 pm

so, all is working now?
I have worked out that no default route is being added when I use the profile set up with the local address.
sounds like a bug - it must depend on 'Add Default Route' tick, not on custom address in Profile :) if you can repeat this behaviour - please send this into to support@mikrotik.com
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 4:54 pm

No - it's not working !

When I add the ppp profile and then add the local IP ( my static ip ) I can not get Internet access because there is no default route being added. However, in this configuration I can connect in to this static ip via ssh.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Can't stop DHCP on pppoe interface

Mon Sep 05, 2011 5:34 pm

and what if you add default route by yourself?..
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Tue Sep 06, 2011 3:07 am

I havent worked out how to do that yet..
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Can't stop DHCP on pppoe interface

Tue Sep 06, 2011 10:22 am

/ip route add gateway=pppoe-out1
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Tue Sep 06, 2011 10:25 am

OK - i'll give it a go. There seemed to be two auto created entries when it is set to do it itself.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Can't stop DHCP on pppoe interface

Tue Sep 06, 2011 10:30 am

two?!? which ones?
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Tue Sep 06, 2011 11:17 am

These are the two route entries that are auto created:
Image

Image

Image
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Can't stop DHCP on pppoe interface

Tue Sep 06, 2011 11:24 am

that's correct - should work, if your ISP knows that this address should be supplied to you :)

what does traceroute show?
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Tue Sep 06, 2011 11:27 am

The IP address here is auto configured via PPP - it is not the static one they assigned me.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Can't stop DHCP on pppoe interface

Tue Sep 06, 2011 12:26 pm

so if it's working normally, why do you show it to me?.. show the situation when it's not working =)
Last edited by Chupaka on Tue Sep 06, 2011 12:36 pm, edited 1 time in total.
 
ilium007
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Sun Jan 31, 2010 9:58 am
Location: Newcastle, Australia

Re: Can't stop DHCP on pppoe interface

Tue Sep 06, 2011 12:32 pm

Because you showed me a single command to set up a default route. When I change the PPP to include the 'Local Address' that you pointed out earlier the RouterOS does not auto create the routes - we have established this.

So you said to run a single command that I assume only creates a single default route. I am showing you the screenshots as there are two auto configured routes.

Lets just park this. I will ask around on some other forums. I can;t for the life of me understand why on my cheap link sys router I have the option to enter my statically assigned PPPOE WAN IP address and on this hardware it seems to be an epic journey.

Who is online

Users browsing this forum: augljesa, Benzebub, Bing [Bot], GoogleOther [Bot] and 86 guests