2007-03-15 15:07:19 by steve
Broadcast works.
This commit is contained in:
@@ -130,6 +130,7 @@ image = sparse # Specify sparse vs. full disk images.
|
||||
#
|
||||
# gateway = 192.168.1.1
|
||||
# netmask = 255.255.255.0
|
||||
# broadcast = 192.168.1.255
|
||||
#
|
||||
# Uncomment this if you wish the images to use DHCP
|
||||
#
|
||||
|
||||
@@ -77,6 +77,14 @@ setupStaticNetworking ()
|
||||
point=''
|
||||
fi
|
||||
|
||||
#
|
||||
# broadcast address?
|
||||
#
|
||||
bcast='';
|
||||
if [ ! -z "${broadcast}" ]; then
|
||||
bcast = ' broadcast ${broadcast}'
|
||||
fi
|
||||
|
||||
#
|
||||
# We have a static IP address
|
||||
#
|
||||
@@ -94,6 +102,7 @@ iface eth0 inet static
|
||||
address ${ip1}
|
||||
gateway ${gateway}
|
||||
netmask ${netmask}
|
||||
${bcast}
|
||||
${point}
|
||||
# post-up ethtool -K eth0 tx off
|
||||
|
||||
|
||||
@@ -67,6 +67,14 @@ E_O_DHCP
|
||||
#
|
||||
setupStaticNetworking ()
|
||||
{
|
||||
#
|
||||
# broadcast address?
|
||||
#
|
||||
bcast='';
|
||||
if [ ! -z "${broadcast}" ]; then
|
||||
bcast = ' broadcast ${broadcast}'
|
||||
fi
|
||||
|
||||
#
|
||||
# We have a static IP address
|
||||
#
|
||||
@@ -84,6 +92,7 @@ iface eth0 inet static
|
||||
address ${ip1}
|
||||
gateway ${gateway}
|
||||
netmask ${netmask}
|
||||
${bcast}
|
||||
# post-up ethtool -K eth0 tx off
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user