rather use the universal ip format
This commit is contained in:
parent
54aefdd4bd
commit
a870d1ee71
1 changed files with 5 additions and 6 deletions
|
@ -3,15 +3,14 @@
|
|||
grep <%= @real_tinc_bridge_interface %> /proc/net/dev | awk -F: '{ print $1 }' | grep -q <%= @real_tinc_bridge_interface %>
|
||||
if [ $? -gt 0 ]; then
|
||||
brctl addbr <%= @real_tinc_bridge_interface %>
|
||||
ifconfig <%= @tinc_internal_interface %> 0.0.0.0
|
||||
ifconfig <%= @real_tinc_bridge_interface %> <%= @real_tinc_internal_ip %> netmask <%= @real_tinc_internal_netmask %>
|
||||
ip addr delete <%= @real_tinc_internal_ip %>/<%= @real_tinc_internal_netmask %> <%= @tinc_internal_interface %>
|
||||
ip addr add <%= @real_tinc_internal_ip %>/<%= @real_tinc_internal_netmask %> <%= @real_tinc_bridge_interface %>
|
||||
brctl addif <%= @real_tinc_bridge_interface %> <%= @tinc_internal_interface %>
|
||||
ifconfig <%= @tinc_internal_interface %> up
|
||||
ip link set dev <%= @tinc_internal_interface %> up
|
||||
fi
|
||||
|
||||
ifconfig $INTERFACE 0.0.0.0
|
||||
brctl addif <%= @real_tinc_bridge_interface %> $INTERFACE
|
||||
ifconfig $INTERFACE up
|
||||
ip link set dev $INTERFACE up
|
||||
<% if @override_mtu -%>
|
||||
ifconfig $INTERFACE mtu <%= @override_mtu.to_i %>
|
||||
ip link set dev $INTERFACE mtu <%= @override_mtu.to_i %>
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in a new issue