]> git.entuzijast.net Git - imunes.git/commitdiff
zbog toga sto imunes gui po defaultu dodaje adrese skupa s maskom, treba koristiti...
authorJosip Rodin <joy@debian.(none)>
Mon, 2 Nov 2009 13:35:06 +0000 (14:35 +0100)
committerJosip Rodin <joy@debian.(none)>
Mon, 2 Nov 2009 13:35:06 +0000 (14:35 +0100)
linux/host.tcl
linux/pc.tcl

index df276a7fce45232cd3dc191ad1d2044e82433aeb..c202e695a4d8fcc7c7062e4d8dd31a006c06a628 100755 (executable)
@@ -86,16 +86,16 @@ proc $MODULE.cfggen { node } {
     foreach ifc [ifcList $node] {
        set addr [getIfcIPv4addr $node $ifc]
            if { $addr != "" } {
-               lappend cfg "ifconfig $ifc inet add $addr"
+               lappend cfg "ip -4 addr add $addr dev $ifc"
            }
            set addr [getIfcIPv6addr $node $ifc]
            if { $addr != "" } {
-               lappend cfg "ifconfig $ifc inet6 add $addr"
+               lappend cfg "ip -6 addr add $addr dev $ifc"
            }
     }
 
     # sami napravimo localhost da ne moramo u VEu imati netbase+ifupdown
-    lappend cfg "ifconfig lo 127.0.0.1 netmask 255.0.0.0"
+    lappend cfg "ip addr add 127.0.0.1/8 dev lo"
     
     foreach statrte [getStatIPv4routes $node] {
            lappend cfg "ip -4 route add [lindex $statrte 0] via [lindex $statrte 1]"
index 3d123e9f190691cb7c38e7f6ce2f4e38ff41953a..89ad04c12a9c5491e8fd5950c256906daa6009da 100755 (executable)
@@ -83,16 +83,16 @@ proc $MODULE.cfggen { node } {
     foreach ifc [ifcList $node] {
        set addr [getIfcIPv4addr $node $ifc]
            if { $addr != "" } {
-               lappend cfg "ifconfig $ifc inet add $addr"
+               lappend cfg "ip -4 addr add $addr dev $ifc"
            }
            set addr [getIfcIPv6addr $node $ifc]
            if { $addr != "" } {
-               lappend cfg "ifconfig $ifc inet6 add $addr"
+               lappend cfg "ip -6 addr add $addr dev $ifc"
            }
     }
 
     # sami napravimo localhost da ne moramo u VEu imati netbase+ifupdown
-    lappend cfg "ifconfig lo 127.0.0.1 netmask 255.0.0.0"
+    lappend cfg "ip addr add 127.0.0.1/8 dev lo"
     
     foreach statrte [getStatIPv4routes $node] {
            lappend cfg "ip -4 route add [lindex $statrte 0] via [lindex $statrte 1]"