foreach ifc [ifcList $node] {
set addr [getIfcIPv4addr $node $ifc]
if { $addr != "" } {
- lappend cfg "ifconfig $ifc inet $addr"
+ lappend cfg "ifconfig $ifc inet add $addr"
}
set addr [getIfcIPv6addr $node $ifc]
if { $addr != "" } {
- lappend cfg "ifconfig $ifc add $addr"
+ lappend cfg "ifconfig $ifc inet6 add $addr"
}
}
lappend cfg "ip -6 route add [lindex $statrte 0] via [lindex $statrte 1]"
}
- # Temporary fix to enable multiple inetd and rpcbind processes
+ # FreeBSD needs a temporary fix to enable multiple inetd and rpcbind processes
# (in different vimages). Sholud be removed if each vimage is running
# in separate file system.
-
# In Linux/OpenVZ each node is indeed running in a separate file system.
- #
- # Before startup ...
-# lappend cfg "rm -f /var/run/inetd.pid"
-# lappend cfg "rm -f /var/run/rpcbind.lock"
-
-# lappend cfg "rpcbind"
-# lappend cfg "inetd"
-
- # ... and after startup.
-# lappend cfg "rm -f /var/run/inetd.pid"
-# lappend cfg "rm -f /var/run/rpcbind.lock"
-
return $cfg
}
foreach ifc [ifcList $node] {
set addr [getIfcIPv4addr $node $ifc]
if { $addr != "" } {
- lappend cfg "ifconfig $ifc inet $addr"
+ lappend cfg "ifconfig $ifc inet add $addr"
}
set addr [getIfcIPv6addr $node $ifc]
if { $addr != "" } {
- lappend cfg "ifconfig $ifc add $addr"
+ lappend cfg "ifconfig $ifc inet6 add $addr"
}
}