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]"
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]"