Commit dd9ecd81 authored by Mike Hibler's avatar Mike Hibler

The latest hack for dealing with speed/duplex issues in inner elab

parent f3182baf
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# All rights reserved.
#
. /etc/emulab/paths.sh
......@@ -39,9 +39,14 @@ elif [ "$new_host_name" = "" ]; then
#
# Ack, changed my mind. This is a pain in the ass. For now do not
# configure the outer interface; worry about it later.
# XXX sleep here so we don't pummel boss with REQUEST/DECLINE pairs.
#
sleep 5
exit_status=1
return
elif [ "$new_network_number" = "10.200.1.0" ]; then
#
# I am inside an inner elab, force 100Mb full-duplex
# since that is what the switch does
#
medium="media 100baseTX mediaopt full-duplex"
fi
return 0
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004 University of Utah and the Flux Group.
# Copyright (c) 2004, 2005 University of Utah and the Flux Group.
# All rights reserved.
#
. /etc/emulab/paths.sh
......@@ -36,7 +36,21 @@ if [ "$new_host_name" = "" ]; then
#
# Ack, changed my mind. This is a pain in the ass. For now do not
# configure the outer interface; worry about it later.
#
# XXX sleep here so we don't pummel boss with REQUEST/DECLINE pairs.
#
sleep 5
exit_status=1
return
elif [ "$new_network_number" = "10.200.1.0" ]; then
#
# I am inside an inner elab, force 100Mb full-duplex
# since that is what the switch does
#
# XXX Linux dhclient-script doesn't support "media" so we do it
# ourselves.
#
if /sbin/ethtool $interface >/dev/null 2>&1; then
/sbin/ethtool -s $interface autoneg off speed 100 duplex full
else
/sbin/mii-tool --force=100baseTx-FD $interface
fi >$LOGDIR/dhclient-enter.log 2>&1
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment