summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2007-12-18 11:11:29 -0800
committerStig Thormodsrud <stig@vyatta.com>2007-12-18 11:11:29 -0800
commit7966b8cf00e08548447e551a3fcfde40aa06cc59 (patch)
treede2e3bb70a5720a18fad3eb19e9d1d9e672c634e /scripts
parentf536748a2ffdf1c9c9803f816eb15d3a9c8afa1e (diff)
downloadvyatta-cfg-7966b8cf00e08548447e551a3fcfde40aa06cc59.tar.gz
vyatta-cfg-7966b8cf00e08548447e551a3fcfde40aa06cc59.zip
Add ability to set ipv6 address on loopback but not dhcp.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-interfaces.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl
index d7ba950..36d811f 100644
--- a/scripts/vyatta-interfaces.pl
+++ b/scripts/vyatta-interfaces.pl
@@ -287,6 +287,10 @@ sub is_valid_addr {
my ($addr_net, $intf) = @_;
if ($addr_net eq "dhcp") {
+ if ($intf eq "lo") {
+ print "Error: can't use dhcp client on loopback interface\n";
+ exit 1;
+ }
if (is_dhcp_enabled($intf)) {
print "Error: dhcp already configured for $intf\n";
exit 1;