initial commit of a *whole bunch* of old Egressive shell scripts, used to make many people redundant.
This commit is contained in:
commit
43e0f5b59e
329 changed files with 31937 additions and 0 deletions
23
egroutes/egroutes-otto
Executable file
23
egroutes/egroutes-otto
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Written by andrew@egressive.com 2008-01-09 to add the required routes on all machines on Waylon
|
||||
#
|
||||
# All the virtual machines on Waylon should use:
|
||||
# eth0: private IP range for management
|
||||
# eth1: public IP range for normal access
|
||||
|
||||
[ "$IFACE" = "eth0" ] || exit 0
|
||||
|
||||
# The route for the current (old) smithers
|
||||
/sbin/route add -net 202.6.116.0 netmask 255.255.255.248 dev eth0
|
||||
|
||||
# The route for the 202.6.116.128/28 range
|
||||
if ! /sbin/route -n | grep 202.6.116.128 > /dev/null ; then
|
||||
/sbin/route add -net 202.6.116.128 netmask 255.255.255.240 dev eth0
|
||||
fi
|
||||
|
||||
# The route for the 202.6.117.160/27 range
|
||||
if ! /sbin/route -n | grep 202.6.117.160 > /dev/null ; then
|
||||
/sbin/route add -net 202.6.117.160 netmask 255.255.255.224 dev eth0
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue