Changeset 906 in genesis for tools


Ignore:
Timestamp:
Sep 13, 2003, 1:51:48 PM (21 years ago)
Author:
jasper
Message:

static routes aan ospfd.conf toegevoegd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/wleiden.pl

    r829 r906  
    277277           $nwcfg.="$doit\n";
    278278           if ($R eq '0.0.0.0/0') {$ospfd3.=" default-information originate\n"}
     279           else
     280           {
     281                $area=get_area($R);
     282                $ospfd4.="! static route $R\nnetwork $R area $area\n\n";
     283                $NW{$area}.="$network/$width ";
     284           }
    279285           $zebra.="ip route $r\n";
    280286        }       
     
    681687
    682688EOD
    683 foreach $ns (split(/\s+/,$NS_forward))
    684         {$dhcp.="option domain-name-servers ${ns};\n";}
     689#foreach $ns (split(/\s+/,$NS_forward))
     690#       {$dhcp.="option domain-name-servers ${ns};\n";}
     691        {$dhcp.="option domain-name-servers ${master_ip};\n";}
    685692
    686693$dhcp.="\n\n";
     
    806813search wleiden.net .
    807814
     815nameserver 127.0.0.1
    808816EOR1
    809817
    810 foreach $ns (split(/\s+/,$NS_resolv)) {
    811         $resolv.="nameserver $ns\n";
    812 }
     818#foreach $ns (split(/\s+/,$NS_resolv)) {
     819#       $resolv.="nameserver $ns\n";
     820#}
     821
     822foreach $if (sort keys %config) {
     823        foreach $ns (split(/[\s$separator]+/,$OSPF_NEIGHBORS{$if})) {
     824                next unless $ns =~  m/\d+/;
     825                $resolv.="nameserver $ns\n";
     826        };
     827};
     828
     829
    813830
    814831$named.=sprintf <<EON1;
Note: See TracChangeset for help on using the changeset viewer.