]> git.entuzijast.net Git - imunes.git/commitdiff
route(8) iz nekog razloga pokusava resolveati a::1 u DNS-u, dok ip(8) to ne radi...
authorKosta Pribić <kosta.pribic@gmail.com>
Fri, 16 Oct 2009 12:42:04 +0000 (14:42 +0200)
committerKosta Pribić <kosta.pribic@gmail.com>
Fri, 16 Oct 2009 12:42:04 +0000 (14:42 +0200)
linux/host.tcl
linux/pc.tcl

index ee1a46c2af30f030fdfb97c6210de0f54036e4e2..1116688f2b0f96d5ba56b1122e9afedea9151f80 100755 (executable)
@@ -98,10 +98,10 @@ proc $MODULE.cfggen { node } {
     lappend cfg "ifconfig lo 127.0.0.1 netmask 255.0.0.0"
     
     foreach statrte [getStatIPv4routes $node] {
-           lappend cfg "route add -A inet -net [lindex $statrte 0] gw [lindex $statrte 1]"
+           lappend cfg "ip -4 route add [lindex $statrte 0] via [lindex $statrte 1]"
     }
     foreach statrte [getStatIPv6routes $node] {
-           lappend cfg "route add -A inet6 -net [lindex $statrte 0] gw [lindex $statrte 1]"
+           lappend cfg "ip -6 route add [lindex $statrte 0] via [lindex $statrte 1]"
     }
 
     # Temporary fix to enable multiple inetd and rpcbind processes 
index 65c91995685688f159a8db87808b59141a510b5a..6bd210cf455b74431cfd38c1494a1af2af9a93d5 100755 (executable)
@@ -95,10 +95,10 @@ proc $MODULE.cfggen { node } {
     lappend cfg "ifconfig lo 127.0.0.1 netmask 255.0.0.0"
     
     foreach statrte [getStatIPv4routes $node] {
-           lappend cfg "route add -A inet -net [lindex $statrte 0] gw [lindex $statrte 1]"
+           lappend cfg "ip -4 route add [lindex $statrte 0] via [lindex $statrte 1]"
     }
     foreach statrte [getStatIPv6routes $node] {
-           lappend cfg "route add -A inet6 -net [lindex $statrte 0] gw [lindex $statrte 1]"
+           lappend cfg "ip -6 route add [lindex $statrte 0] via [lindex $statrte 1]"
     }
     return $cfg
 }