Community discussions

MikroTik App
 
brianchrist
newbie
Topic Author
Posts: 44
Joined: Mon Feb 27, 2006 4:50 pm

static route to dhcp gateway

Tue Apr 27, 2010 4:16 pm

i need to put a static route to a PPTP host on a dynamic ip client (dhcp).
is there any way to do this without script?
using ethernet interface as gateway is not working.

i need this because i have to use the default gateway routed to the pptp interface.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: static route to dhcp gateway

Tue Apr 27, 2010 4:22 pm

Should be like a normal static route

/ip route
add gateway=xx.xx.xx.xx dst-address=0.0.0.0/0
 
brianchrist
newbie
Topic Author
Posts: 44
Joined: Mon Feb 27, 2006 4:50 pm

Re: static route to dhcp gateway

Wed Apr 28, 2010 7:46 am

but the xx.xx.xx.xx could be different for each session since the IP is dynamic using DCHP.

the situation:

1. host got ip dynamically (dhcp)
2. host connect to vpn server (using pptp) add default gateway to the link.
3. need static route to a host but NOT via pptp link
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: static route to dhcp gateway

Thu Apr 29, 2010 12:58 pm

so you need to add a route in the vpn server or in the host?..

Who is online

Users browsing this forum: GoogleOther [Bot] and 38 guests