summaryrefslogtreecommitdiffhomepage
path: root/dummy/proto
diff options
context:
space:
mode:
Diffstat (limited to 'dummy/proto')
-rwxr-xr-xdummy/proto/ppp.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/dummy/proto/ppp.sh b/dummy/proto/ppp.sh
index 9f0c050..5bc3ea6 100755
--- a/dummy/proto/ppp.sh
+++ b/dummy/proto/ppp.sh
@@ -37,6 +37,7 @@ proto_pppoe_setup() {
json_get_var password password
echo "pppoe_setup($interface, $device), username=$username, password=$password"
proto_init_update ppp0 1
+ proto_set_keep 1
proto_add_ipv4_address "192.168.2.1" 32
proto_add_dns_server "192.168.2.2"
proto_add_ipv4_route "0.0.0.0" 0 192.168.2.2
@@ -44,6 +45,16 @@ proto_pppoe_setup() {
json_add_string "ppp-type" "pppoe"
proto_close_data
proto_send_update "$interface"
+
+ proto_init_update ppp0 1
+ proto_set_keep 1
+ proto_add_ipv6_address "fe80::2" 64
+ proto_add_ipv6_route "::0" 0 "fe80::1"
+ proto_add_data
+ json_add_string "ppp-type" "pppoe"
+ proto_close_data
+ proto_send_update "$interface"
+
proto_run_command "$interface" sleep 30
}