# autoIPv4addr $node $iface
# FUNCTION
# automaticaly assignes an IPv4 address to the interface $iface of
-# of the node $node
+# of the node $node
# INPUTS
# node - the node containing the interface to witch a new
# IPv4 address should be assigned
}
+#****f* ipv4.tcl/autoIPv4defaultroute
+# NAME
+# autoIPvdefaultroute -- automaticaly assign a default route
+# SYNOPSIS
+# autoIPv4defaultroute $node $iface
+# FUNCTION
+# searches the interface of the node for a router, if a router is found
+# then it is a new default gateway.
+# INPUTS
+# node - default gateway is provided for this node
+# iface - the interface on witch we search for a new default gateway
+#****
+
proc autoIPv4defaultroute { node iface } {
if { [[typemodel $node].layer] != "NETWORK" } {
#