From: Kosta Pribić Date: Fri, 16 Oct 2009 12:42:04 +0000 (+0200) Subject: route(8) iz nekog razloga pokusava resolveati a::1 u DNS-u, dok ip(8) to ne radi... X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=601e2ac5d30767f1bbd800c3e80b3ee89ec1f82b;p=imunes.git route(8) iz nekog razloga pokusava resolveati a::1 u DNS-u, dok ip(8) to ne radi, pa koristimo potonji --- diff --git a/linux/host.tcl b/linux/host.tcl index ee1a46c..1116688 100755 --- a/linux/host.tcl +++ b/linux/host.tcl @@ -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 diff --git a/linux/pc.tcl b/linux/pc.tcl index 65c9199..6bd210c 100755 --- a/linux/pc.tcl +++ b/linux/pc.tcl @@ -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 }