Community discussions

MikroTik App
 
User avatar
IGadget
just joined
Topic Author
Posts: 23
Joined: Wed Sep 28, 2005 1:07 am

routes , gateway in pppoe

Tue Dec 06, 2005 2:11 am

hi, i have problems to give a gateway to my pppoe clients...

i have this config:
Flags: X - disabled, D - dynamic, R - running 
 #    NAME                                      TYPE             RX-RATE    TX-RATE    MTU  
 0  R et-cha-1                                  ether            0          0          1500 
 1 X  ether2                                    ether            0          0          1500 
 2  R wi-pol-cha                                wlan             0          0          1500 
 3    pppoe-hipernex                            pppoe-in         0          0         
 4 DR <pppoe-tinari>                            pppoe-in         0          0          1488 
 5 DR <pppoe-perlita1>                          pppoe-in         0          0          1488 
 6 DR <pppoe-perlita2>                          pppoe-in         0          0          1488 
 7 DR <pppoe-palacios3>                         pppoe-in         0          0          1488 
[admin@CHAM] interface> ..                                                                  
[admin@CHAM] > ip address print                                                                        
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE        
 0   192.168.1.2/24     192.168.1.0     192.168.1.255   et-cha-1         
 1   10.1.192.2/18      10.1.192.0      10.1.255.255    wi-pol-cha       
 2   10.1.224.1/19      10.1.224.0      10.1.255.255    et-cha-1         
 3 D 10.0.7.1/32        10.0.7.2        0.0.0.0         <pppoe-tinari>   
 4 D 10.0.45.1/32       10.0.45.2       0.0.0.0         <pppoe-perlita1> 
 5 D 10.0.45.1/32       10.0.45.3       0.0.0.0         <pppoe-perlita2> 
 6 D 10.0.32.1/32       10.0.32.4       0.0.0.0         <pppoe-palacios3>
[admin@CHAM] ip route> print                                                                           
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf 
 #     DST-ADDRESS        PREFSRC         G GATEWAY         DISTANCE INTERFACE         
 0 ADC 10.0.7.2/32        10.0.7.1                                   <pppoe-tinari>    
 1 ADC 10.0.14.2/32       10.0.14.1                                  <pppoe-fmchamical>
 2 ADC 10.0.32.4/32       10.0.32.1                                  <pppoe-palacios3> 
 3 ADC 10.0.45.2/32       10.0.45.1                                  <pppoe-perlita1>  
 4 ADC 10.0.45.3/32       10.0.45.1                                  <pppoe-perlita2>  
 5 ADC 10.1.224.0/19      10.1.224.1                                 et-cha-1          
 6 ADC 10.1.192.0/18      10.1.192.2                                 wi-pol-cha        
 7 ADC 192.168.1.0/24     192.168.1.2                                et-cha-1          
 8 A S 0.0.0.0/0                          r 10.1.192.1               wi-pol-cha        
[admin@CHAM] ip route>    
the clients contects trougth a ethernet "et-cha-1", using pppoe client,... How i must configure then ROUTES for a PPP Secret acount, to give them a gateway ?

-the gateway for a normal client host is 10.1.224.1

-this is a config for my ppp secrets:
Flags: X - disabled                                                                                               
 #   NAME                   SERVICE CALLER-ID             PASSWORD              PROFILE            REMOTE-ADDRESS 
 0   hipernex               any                           123456                default            10.0.100.2     
 1   esso1                  any                           esso02                default            10.0.2.2       
 2   esso2                  any                           esso02                default            10.0.2.3       
 3   esso3                  any                           esso02                default            10.0.2.4       
 4   esso4                  any                           admin                 default            10.0.2.5       
 5   farmacia1              any                           farmacia03            default            10.0.3.2       
[quote][/quote]
 
User avatar
HarvSki
Member
Member
Posts: 395
Joined: Fri May 28, 2004 3:37 pm
Location: London, UK

Tue Dec 06, 2005 12:20 pm

I looks like you MT Router default gateway is 10.1.192.1, this is the one used by your pppoe clients I think. If you want to the pppoe clients to use another gateway you will need either to change the routers default gw or use Policy Routing...