1
0
mirror of synced 2026-02-14 11:24:10 +00:00

2007-03-15 15:07:19 by steve

Broadcast works.
This commit is contained in:
steve
2007-03-15 15:07:20 +00:00
parent aeda5089a5
commit a71930a154
3 changed files with 19 additions and 0 deletions

View File

@@ -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
#

View File

@@ -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

View File

@@ -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
#