1
0
mirror of synced 2026-02-15 19:56:05 +00:00

Point-to-Point routing for Ubuntu

This commit is contained in:
Dmitry Nedospasov
2011-04-18 23:45:20 +02:00
parent caabc40e3f
commit 54bde967a2
4 changed files with 53 additions and 0 deletions

View File

@@ -67,6 +67,24 @@ E_O_DHCP
#
setupStaticNetworking ()
{
#
# if $p2p is set then add a "pointopoint" setting.
#
point='';
if [ ! -z "${p2p}" ]; then
point="pointopoint ${p2p}"
else
point=''
fi
#
# broadcast address?
#
bcast='';
if [ ! -z "${broadcast}" ]; then
bcast=" broadcast ${broadcast}"
fi
#
# We have a static IP address
#
@@ -84,6 +102,8 @@ iface eth0 inet static
address ${ip1}
gateway ${gateway}
netmask ${netmask}
${bcast}
${point}
# post-up ethtool -K eth0 tx off
#

View File

@@ -67,6 +67,16 @@ E_O_DHCP
#
setupStaticNetworking ()
{
#
# if $p2p is set then add a "pointopoint" setting.
#
point='';
if [ ! -z "${p2p}" ]; then
point="pointopoint ${p2p}"
else
point=''
fi
#
# broadcast address?
#
@@ -93,6 +103,7 @@ iface eth0 inet static
gateway ${gateway}
netmask ${netmask}
${bcast}
${point}
# post-up ethtool -K eth0 tx off
#

View File

@@ -67,6 +67,16 @@ E_O_DHCP
#
setupStaticNetworking ()
{
#
# if $p2p is set then add a "pointopoint" setting.
#
point='';
if [ ! -z "${p2p}" ]; then
point="pointopoint ${p2p}"
else
point=''
fi
#
# broadcast address?
#
@@ -93,6 +103,7 @@ iface eth0 inet static
gateway ${gateway}
netmask ${netmask}
${bcast}
${point}
# post-up ethtool -K eth0 tx off
#

View File

@@ -67,6 +67,16 @@ E_O_DHCP
#
setupStaticNetworking ()
{
#
# if $p2p is set then add a "pointopoint" setting.
#
point='';
if [ ! -z "${p2p}" ]; then
point="pointopoint ${p2p}"
else
point=''
fi
#
# broadcast address?
#
@@ -93,6 +103,7 @@ iface eth0 inet static
gateway ${gateway}
netmask ${netmask}
${bcast}
${point}
# post-up ethtool -K eth0 tx off
#