Modify

Opened 2 years ago

Last modified 2 years ago

#20384 new defect

Defaultroute not restored after pptp goes down

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

My WAN interface gets its IP from DHCP server. Whenever pptp goes down default route is not restored and therefore internet connection is not working anymore.

Workaround:
Create a script in /etc/ppp/ip-down with something like below
#!/bin/sh
/sbin/route add default gateway 192.168.8.1

However, this is a quite bad workaround as there is no variable for default gateway and therefore fix address must be used.

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by anonymous

I found the following works better if the external interface is set to DHCP
#!/bin/sh
udhcpc -i eth0.2

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.