Syntax Errors with Multihomed Hosts
Bug #53328 reported by
Richard Laager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ipkungfu |
New
|
Unknown
|
|||
ipkungfu (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: ipkungfu
If you have a host with the same interface on two different subnets, you end up with syntax errors that prevent ipkungfu from working.
The fix, to /usr/sbin/ipkungfu is:
# Detect EXT_NET if not specified
if [ -z "$EXT_NET" ] ; then
EXT_NET=`route -n | grep ^0.0.0.0 | awk '{print $8}'`
fi
becomes:
# Detect EXT_NET if not specified
if [ -z "$EXT_NET" ] ; then
EXT_NET=`route -n | grep ^0.0.0.0 | awk '{print $8}' | head -n1`
fi
That is, add the "| head -n1" part.
Changed in ipkungfu: | |
status: | New → Confirmed |
Changed in ipkungfu: | |
assignee: | gothicx → nobody |
Changed in ipkungfu: | |
status: | Unknown → New |
Changed in ipkungfu: | |
importance: | Undecided → Low |
To post a comment you must log in.
I've contacted author about this problem...