diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-07-31 21:09:57 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-07-31 21:09:57 +0200 |
commit | 7d83de0511f90274582716fe30fba5c44c07270f (patch) | |
tree | b7541c06eb5dac8384d8eb9af38616f9bc2996bb /scripts | |
parent | 7d259935b08927a2649544448ee8c66da832b8fc (diff) | |
download | vyatta-cfg-system-7d83de0511f90274582716fe30fba5c44c07270f.tar.gz vyatta-cfg-system-7d83de0511f90274582716fe30fba5c44c07270f.zip |
T1381: add dhclient config options for option 121 classless routes.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index f6fa717a..91e48d96 100755 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -182,6 +182,8 @@ sub dhcp_update_config { $hostname = get_hostname(); } + $output .= "option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;\n"; + $output .= "interface \"$intf\" {\n"; if (defined($hostname)) { $output .= "\tsend host-name \"$hostname\";\n"; @@ -192,7 +194,7 @@ sub dhcp_update_config { $output .= "\tsend dhcp-client-identifier \"$client_id\";\n"; } - $output .= "\trequest subnet-mask, broadcast-address, routers, domain-name-servers"; + $output .= "\trequest subnet-mask, broadcast-address, routers, domain-name-servers, rfc3442-classless-static-routes"; my $domainname = is_domain_name_set(); if (!defined($domainname)) { $output .= ", domain-name"; |