Community discussions

MikroTik App
 
Dr.House
just joined
Topic Author
Posts: 5
Joined: Sat Jun 02, 2007 7:24 pm
Location: Bern - CH
Contact:

Problem with PPPoE

Sat Jun 02, 2007 11:24 pm

Hello

I have the following Network-Configuration at home:
--> Picture (network-map)

/ip address add adress 192.168.1.2 netmask 255.255.255.0 interface ether1
/ip address add adress 192.168.0.254 netmask 255.255.255.0 interface ether2

/ip dhcp-server add interface=ether2 name=dhcp-server address-pool=192.168.0.1-192.168.0.255

/interface pppoe-client add interface=ether1 service-name=xyxyxy user=xyxyxy password=xyxyxy use-peer-dns=yes
disabled=no

Is that Configuration right?
I have a connaction with the PPPoE-Client, but I can not surf in the Internet. Whats false?
You do not have the required permissions to view the files attached to this post.
 
dinfotec
newbie
Posts: 29
Joined: Wed Mar 21, 2007 9:59 pm

Re: Problem with PPPoE

Sun Jun 03, 2007 4:37 am

Hi,

You need masquerade network in ether2, I think.

Regards,
Fran.
 
Dr.House
just joined
Topic Author
Posts: 5
Joined: Sat Jun 02, 2007 7:24 pm
Location: Bern - CH
Contact:

Re: Problem with PPPoE

Sun Jun 03, 2007 1:33 pm

@dinfotec

Can I have an example of a masquerade network configuration?
I do not find in the Documentation of RouterOS.

Thanks
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Re: Problem with PPPoE

Sun Jun 03, 2007 2:01 pm

Hi,

ip firewall nat add chain=src-nat src-address=192.168.0.0/24 out-interface=ether1 action=masquerade

regards.

faton
 
gyoztes
Frequent Visitor
Frequent Visitor
Posts: 56
Joined: Mon Jul 17, 2006 12:12 pm

Re: Problem with PPPoE

Sun Jun 03, 2007 10:52 pm

i have some idea, if it doesn't work yet:

1., you don't use ip address to ether1, because you give 1 from your ISP
2., some of adsl modem use 192.168.1.1 address for ethernet interface (for management), so if you use 192.168.1.2/24 for ether1, your mt route these packets to the adsl modem, which is not healhy.
3.,
/ip address add adress 192.168.0.254 netmask 255.255.255.0 interface ether2

/ip dhcp-server add interface=ether2 name=dhcp-server address-pool=192.168.0.1-192.168.0.255

as you write. modify your address pool to 192.168.0.1-192.168.0.253 (not 255), because your address on mt is 192.168.1.254, and dhcp server maybe send it to you, which is unworkable. in my experience the dhcp server start address is the biggest address.

gyoztes
 
gyoztes
Frequent Visitor
Frequent Visitor
Posts: 56
Joined: Mon Jul 17, 2006 12:12 pm

Re: Problem with PPPoE

Sun Jun 03, 2007 10:55 pm

ip firewall nat add chain=src-nat src-address=192.168.0.0/24 out-interface=ether1 action=masquerade

is not workable! you must nat for virtual pppoe interface!!!
 
Dr.House
just joined
Topic Author
Posts: 5
Joined: Sat Jun 02, 2007 7:24 pm
Location: Bern - CH
Contact:

Re: Problem with PPPoE

Sun Jun 03, 2007 11:58 pm

ip firewall nat add chain=src-nat src-address=192.168.0.0/24 out-interface=ether1 action=masquerade

is not workable! you must nat for virtual pppoe interface!!!
I have not idea...;)
Please, tell me step by step the Configuration of my problem.

PS: Sorry, my english is not very good..;)
 
ziumus
just joined
Posts: 19
Joined: Mon May 28, 2007 9:54 pm

Re: Problem with PPPoE

Mon Jun 04, 2007 6:39 pm

First ,if you are connecting via mikrotik ,not router ,you must setup in router (isp modem)bridge mode.
Second
interface pppoe-out1(default name) ,must be R (this meen,that internet is connected)
if there is no R ,check cabels , bridge router mode(isp modem) ,user and pass settings (check LOG)

if ok THAN
You must NAT pppoe-out1 interface

ip firewall nat add chain=src-nat src-address=192.168.0.0/24 out-interface=pppoe-out1 action=masquerade