code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
# IPS SERVERS
IP="10.31.17.1"
BROADCAST="10.31.17.63"
# DIRECCIONES DE GATEWAYS
H104="10.31.17.2"
# MASCARAS DE RED
Netmask26="255.255.255.192"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forward
i... | Shell |
#!/bin/bash
# IPs
IP="10.31.17.134"
BROADCAST="10.31.17.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
# DIRECCIONES DE GATEWAYS
H105="10.31.17.132"
H108="10.31.17.133"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Ne... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# Main
clear
# Setting all files as executable
chmod +wrx * -R
while :
do
echo "Elige una opccion:"
echo "1. Ping all routers"
echo "2. Ping all servers"
echo "3. Ping all hosts"
echo "4. Ping all router by DN"
echo "5. Configure REAL LAN ACCESS"
echo "6. Salir"
read -n1 opc... | Shell |
#!/bin/bash
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask29="255.255.255.248"
Netmask30="255.255.255.252"
# IPs
IP1="10.74.57.130"
IP2="10.74.63.129"
BROADCAST1="10.74.57.255"
BROADCAST2="10.74.63.191... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion de saladas
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos de saladas
cp ./bases/* /etc/bind/
#cp ./bases/db... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion de saladas
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos de saladas
cp ./bases/* /etc/bind/
#cp ./bases/db... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion del resto
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos del resto
cp ./bases/* /etc/bind/
#cp ./bases/db.r... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion del resto
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos del resto
cp ./bases/* /etc/bind/
#cp ./bases/db.r... | Shell |
cp ./resolv.conf /etc/resolv.conf
| Shell |
cp ./resolv.conf /etc/resolv.conf
| Shell |
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../bind /etc
cp ./configuraciones/named.conf.options /etc/bind/named.conf.options
# Copia el archivo de configuracion del root
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de dato... | Shell |
#!/bin/bash
# IPs
IP="10.74.63.226"
BROADCAST="10.74.63.231"
# DIRECCIONES DE GATEWAYS
H132="10.74.63.225"
# MASCARA DE RED
Netmask29="255.255.255.248"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
ifconfig $interfaz $IP broadcast $BROADCAST netmask $Netmask29
route add -net 0.0.0.0 net... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# IPs
IP="10.74.57.4"
BROADCAST="10.74.57.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
chirimay="10.31.17.128"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
nogoya="10.74.63.244"
# DIRECCIONES DE GATEWAYS
H116="10.74.57.1"
H124="10.74.57.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# IPs
IP="10.31.17.134"
BROADCAST="10.31.17.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
# DIRECCIONES DE GATEWAYS
H105="10.31.17.132"
H108="10.31.17.133"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Ne... | Shell |
#!/bin/bash
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask29="255.255.255.248"
Netmask30="255.255.255.252"
# IPs
IP1="10.74.57.130"
IP2="10.74.63.129"
BROADCAST1="10.74.57.255"
BROADCAST2="10.74.63.191... | Shell |
#!/bin/bash
# IPS SERVERS
IP="10.31.17.1"
BROADCAST="10.31.17.63"
# DIRECCIONES DE GATEWAYS
H104="10.31.17.2"
# MASCARAS DE RED
Netmask26="255.255.255.192"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forward
i... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
function configureDNSResto {
cd DNS/hosts/resto
./configurar.sh
cd ../../..
}
function configureDNSSaladas {
cd DNS/hosts/saladas
./configurar.sh
cd ../../..
}
function configureServers {
while :
do
echo "Elige una opccion:"
echo "1. WEB SERVER"
echo "2. FTP SERVER"
echo "3.... | Shell |
#!/bin/bash
# Main
clear
# Setting all files as executable
chmod +wrx * -R
while :
do
echo "Elige una opccion:"
echo "1. Ping all routers"
echo "2. Ping all servers"
echo "3. Ping all hosts"
echo "4. Ping all router by DN"
echo "5. Configure REAL LAN ACCESS"
echo "6. Salir"
read -n1 opc... | Shell |
#!/bin/bash
chmod 777 *
/etc/init.d/bind9 stop
rm -r /etc/bind
#Borrado de todas las rutas
`ip route flush all`
#Borrado de interfaces eth y ppp
interfaces=`ifconfig | egrep "eth|ppp" | sed 's/^\([A-Za-z0-9:]*\).*/\1/'`
for i in $interfaces
do
`ip addr flush $i`
done
| Shell |
#!/bin/bash
# IPS SERVERS
IP="192.168.53.1"
BROADCAST="192.168.53.255"
# DIRECCIONES DE GATEWAYS
H132="192.168.53.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forwar... | Shell |
#!/bin/bash
# IPs
IP="10.74.63.226"
BROADCAST="10.74.63.231"
# DIRECCIONES DE GATEWAYS
H132="10.74.63.225"
# MASCARA DE RED
Netmask29="255.255.255.248"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
ifconfig $interfaz $IP broadcast $BROADCAST netmask $Netmask29
route add -net 0.0.0.0 net... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# IPS SERVERS
IP="192.168.53.1"
BROADCAST="192.168.53.255"
# DIRECCIONES DE GATEWAYS
H132="192.168.53.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forwar... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
chmod 777 *
/etc/init.d/bind9 stop
rm -r /etc/bind
#Borrado de todas las rutas
`ip route flush all`
#Borrado de interfaces eth y ppp
interfaces=`ifconfig | egrep "eth|ppp" | sed 's/^\([A-Za-z0-9:]*\).*/\1/'`
for i in $interfaces
do
`ip addr flush $i`
done
| Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
function configureDNSResto {
cd DNS/hosts/resto
./configurar.sh
cd ../../..
}
function configureDNSSaladas {
cd DNS/hosts/saladas
./configurar.sh
cd ../../..
}
function configureServers {
while :
do
echo "Elige una opccion:"
echo "1. WEB SERVER"
echo "2. FTP SERVER"
echo "3.... | Shell |
#!/bin/bash
# IPs
IP="10.74.57.4"
BROADCAST="10.74.57.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
chirimay="10.31.17.128"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
nogoya="10.74.63.244"
# DIRECCIONES DE GATEWAYS
H116="10.74.57.1"
H124="10.74.57.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.... | Shell |
# INTERFACES
echo "Write desired ip address (four octets separated by ENTER)"
read octet1;
read octet2;
read octet3;
read octet4;
interfaz1=`ifconfig | egrep "eth." -o | head -1`":5"
ifconfig $interfaz1 $1"."$2"."$3"."$4 broadcast $1"."$2"."$3".255" netmask 255.255.255.0
| Shell |
echo "------------------------------------------"
echo "H104"
echo "------------------------------------------"
ping -c 2 -q 10.97.5.2 | grep 'packet loss'
ping -c 2 -q 10.31.17.65 | grep 'packet loss'
ping -c 2 -q 10.31.17.2 | grep 'packet loss'
echo "------------------------------------------"
echo "H105"
echo "----... | Shell |
echo "------------------------------------------"
echo "H104"
echo "------------------------------------------"
ping -c 2 -q iguazu2.saladas.litoral.dc.fi.uba.ar | grep 'packet loss'
ping -c 2 -q uruguari1.saladas.litoral.dc.fi.uba.ar | grep 'packet loss'
ping -c 2 -q acaraguay2.saladas.litoral.dc.fi.uba.ar | grep 'pac... | Shell |
echo "------------------------------------------"
echo "HOST A"
echo "------------------------------------------"
ping -c 2 -q 10.74.57.4 | grep 'packet loss'
echo "------------------------------------------"
echo "HOST B"
echo "------------------------------------------"
ping -c 2 -q 10.31.17.134 | grep 'packet los... | Shell |
echo "------------------------------------------"
echo "WEB SERVER"
echo "------------------------------------------"
ping -c 2 -q 192.168.53.1 | grep 'packet loss'
echo "------------------------------------------"
echo "FTP SERVER"
echo "------------------------------------------"
ping -c 2 -q 10.31.17.1 | grep 'pa... | Shell |
#!/bin/bash
# IPS SERVERS
IP="10.31.17.1"
BROADCAST="10.31.17.63"
# DIRECCIONES DE GATEWAYS
H104="10.31.17.2"
# MASCARAS DE RED
Netmask26="255.255.255.192"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forward
i... | Shell |
#!/bin/bash
# IPs
IP="10.31.17.134"
BROADCAST="10.31.17.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
# DIRECCIONES DE GATEWAYS
H105="10.31.17.132"
H108="10.31.17.133"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Ne... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# Main
clear
# Setting all files as executable
chmod +wrx * -R
while :
do
echo "Elige una opccion:"
echo "1. Ping all routers"
echo "2. Ping all servers"
echo "3. Ping all hosts"
echo "4. Configure REAL LAN ACCESS"
echo "5. Salir"
read -n1 opcion
case $opcion in
1... | Shell |
#!/bin/bash
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask29="255.255.255.248"
Netmask30="255.255.255.252"
# IPs
IP1="10.74.57.130"
IP2="10.74.63.129"
BROADCAST1="10.74.57.255"
BROADCAST2="10.74.63.191... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion de saladas
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos de saladas
cp ./bases/* /etc/bind/
#cp ./bases/db... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion de saladas
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos de saladas
cp ./bases/* /etc/bind/
#cp ./bases/db... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion del resto
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos del resto
cp ./bases/* /etc/bind/
#cp ./bases/db.r... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion del resto
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos del resto
cp ./bases/* /etc/bind/
#cp ./bases/db.r... | Shell |
cp ./resolv.conf /etc/resolv.conf
| Shell |
cp ./resolv.conf /etc/resolv.conf
| Shell |
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../bind /etc
cp ./configuraciones/named.conf.options /etc/bind/named.conf.options
# Copia el archivo de configuracion del root
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de dato... | Shell |
#!/bin/bash
# IPs
IP="10.74.63.226"
BROADCAST="10.74.63.231"
# DIRECCIONES DE GATEWAYS
H132="10.74.63.225"
# MASCARA DE RED
Netmask29="255.255.255.248"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
ifconfig $interfaz $IP broadcast $BROADCAST netmask $Netmask29
route add -net 0.0.0.0 net... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# IPs
IP="10.74.57.4"
BROADCAST="10.74.57.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
chirimay="10.31.17.128"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
nogoya="10.74.63.244"
# DIRECCIONES DE GATEWAYS
H116="10.74.57.1"
H124="10.74.57.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# IPs
IP="10.31.17.134"
BROADCAST="10.31.17.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
# DIRECCIONES DE GATEWAYS
H105="10.31.17.132"
H108="10.31.17.133"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Ne... | Shell |
#!/bin/bash
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask29="255.255.255.248"
Netmask30="255.255.255.252"
# IPs
IP1="10.74.57.130"
IP2="10.74.63.129"
BROADCAST1="10.74.57.255"
BROADCAST2="10.74.63.191... | Shell |
#!/bin/bash
# IPS SERVERS
IP="10.31.17.1"
BROADCAST="10.31.17.63"
# DIRECCIONES DE GATEWAYS
H104="10.31.17.2"
# MASCARAS DE RED
Netmask26="255.255.255.192"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forward
i... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
function configureDNSResto {
cd DNS/hosts/resto
./configurar.sh
cd ../../..
}
function configureDNSSaladas {
cd DNS/hosts/saladas
./configurar.sh
cd ../../..
}
function configureServers {
while :
do
echo "Elige una opccion:"
echo "1. WEB SERVER"
echo "2. FTP SERVER"
echo "3.... | Shell |
#!/bin/bash
# Main
clear
# Setting all files as executable
chmod +wrx * -R
while :
do
echo "Elige una opccion:"
echo "1. Ping all routers"
echo "2. Ping all servers"
echo "3. Ping all hosts"
echo "4. Configure REAL LAN ACCESS"
echo "5. Salir"
read -n1 opcion
case $opcion in
1... | Shell |
#!/bin/bash
chmod 777 *
/etc/init.d/bind9 stop
rm -r /etc/bind
#Borrado de todas las rutas
`ip route flush all`
#Borrado de interfaces eth y ppp
interfaces=`ifconfig | egrep "eth|ppp" | sed 's/^\([A-Za-z0-9:]*\).*/\1/'`
for i in $interfaces
do
`ip addr flush $i`
done
| Shell |
#!/bin/bash
# IPS SERVERS
IP="192.168.53.1"
BROADCAST="192.168.53.255"
# DIRECCIONES DE GATEWAYS
H132="192.168.53.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forwar... | Shell |
#!/bin/bash
# IPs
IP="10.74.63.226"
BROADCAST="10.74.63.231"
# DIRECCIONES DE GATEWAYS
H132="10.74.63.225"
# MASCARA DE RED
Netmask29="255.255.255.248"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
ifconfig $interfaz $IP broadcast $BROADCAST netmask $Netmask29
route add -net 0.0.0.0 net... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# IPS SERVERS
IP="192.168.53.1"
BROADCAST="192.168.53.255"
# DIRECCIONES DE GATEWAYS
H132="192.168.53.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forwar... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
chmod 777 *
/etc/init.d/bind9 stop
rm -r /etc/bind
#Borrado de todas las rutas
`ip route flush all`
#Borrado de interfaces eth y ppp
interfaces=`ifconfig | egrep "eth|ppp" | sed 's/^\([A-Za-z0-9:]*\).*/\1/'`
for i in $interfaces
do
`ip addr flush $i`
done
| Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
function configureDNSResto {
cd DNS/hosts/resto
./configurar.sh
cd ../../..
}
function configureDNSSaladas {
cd DNS/hosts/saladas
./configurar.sh
cd ../../..
}
function configureServers {
while :
do
echo "Elige una opccion:"
echo "1. WEB SERVER"
echo "2. FTP SERVER"
echo "3.... | Shell |
#!/bin/bash
# IPs
IP="10.74.57.4"
BROADCAST="10.74.57.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
chirimay="10.31.17.128"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
nogoya="10.74.63.244"
# DIRECCIONES DE GATEWAYS
H116="10.74.57.1"
H124="10.74.57.3"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.... | Shell |
# INTERFACES
echo "Write desired ip address (four octets separated by ENTER)"
read octet1;
read octet2;
read octet3;
read octet4;
interfaz1=`ifconfig | egrep "eth." -o | head -1`":5"
ifconfig $interfaz1 $1"."$2"."$3"."$4 broadcast $1"."$2"."$3".255" netmask 255.255.255.0
| Shell |
echo "------------------------------------------"
echo "H104"
echo "------------------------------------------"
ping -c 2 -q 10.97.5.2 | grep 'packet loss'
ping -c 2 -q 10.31.17.65 | grep 'packet loss'
ping -c 2 -q 10.31.17.2 | grep 'packet loss'
echo "------------------------------------------"
echo "H105"
echo "----... | Shell |
echo "------------------------------------------"
echo "HOST A"
echo "------------------------------------------"
ping -c 2 -q 10.74.57.4 | grep 'packet loss'
echo "------------------------------------------"
echo "HOST B"
echo "------------------------------------------"
ping -c 2 -q 10.31.17.134 | grep 'packet los... | Shell |
echo "------------------------------------------"
echo "WEB SERVER"
echo "------------------------------------------"
ping -c 2 -q 192.168.53.1 | grep 'packet loss'
echo "------------------------------------------"
echo "FTP SERVER"
echo "------------------------------------------"
ping -c 2 -q 10.31.17.1 | grep 'pa... | Shell |
#!/bin/bash
# IPS SERVERS
IP="10.31.17.1"
BROADCAST="10.31.17.63"
# DIRECCIONES DE GATEWAYS
H104="10.31.17.2"
# MASCARAS DE RED
Netmask26="255.255.255.192"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
#Desactivo el ruteo del sistema operativo
echo "0" >> /proc/sys/net/ipv4/ip_forward
i... | Shell |
#!/bin/bash
# IPs
IP="10.31.17.134"
BROADCAST="10.31.17.255"
# DIRECCIONES DE RED
acaraguay="10.31.17.0"
uruguari="10.31.17.64"
iguazu="10.97.5.0"
# DIRECCIONES DE GATEWAYS
H105="10.31.17.132"
H108="10.31.17.133"
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Ne... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# configure interface
interfaz1=`ifconfig | egrep "eth." -o | head -1`
echo "auto lo" > "/etc/network/interfaces"
echo "iface lo inet loopback" >> "/etc/network/interfaces"
echo "auto $interfaz1" >> "/etc/network/interfaces"
echo "iface $interfaz1 inet static" >> "/etc/network/interfaces"
echo " address 19... | Shell |
#!/bin/bash
# Main
clear
# Setting all files as executable
chmod +wrx * -R
while :
do
echo "Elige una opccion:"
echo "1. Ping all routers"
echo "2. Ping all servers"
echo "3. Ping all hosts"
echo "4. Ping all router by DN"
echo "5. Configure REAL LAN ACCESS"
echo "6. Salir"
read -n1 opc... | Shell |
#!/bin/bash
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask29="255.255.255.248"
Netmask30="255.255.255.252"
# IPs
IP1="10.74.57.130"
IP2="10.74.63.129"
BROADCAST1="10.74.57.255"
BROADCAST2="10.74.63.191... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion de saladas
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos de saladas
cp ./bases/* /etc/bind/
#cp ./bases/db... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion de saladas
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos de saladas
cp ./bases/* /etc/bind/
#cp ./bases/db... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion del resto
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos del resto
cp ./bases/* /etc/bind/
#cp ./bases/db.r... | Shell |
#!/bin/bash
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../../bind /etc
# Copia el archivo de configuracion del resto
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de datos del resto
cp ./bases/* /etc/bind/
#cp ./bases/db.r... | Shell |
cp ./resolv.conf /etc/resolv.conf
| Shell |
cp ./resolv.conf /etc/resolv.conf
| Shell |
# Borra los archivos previos del bind
rm -r /etc/bind
# Copia los nuevos archivos para el bind
cp -r ../bind /etc
cp ./configuraciones/named.conf.options /etc/bind/named.conf.options
# Copia el archivo de configuracion del root
cp ./configuraciones/named.conf.local /etc/bind/named.conf.local
# Copia la base de dato... | Shell |
#!/bin/bash
# configure interface
interfaz1=`ifconfig | egrep "eth." -o | head -1`
echo "auto lo" > "/etc/network/interfaces"
echo "iface lo inet loopback" >> "/etc/network/interfaces"
echo "auto $interfaz1" >> "/etc/network/interfaces"
echo "iface $interfaz1 inet dhcp" >> "/etc/network/interfaces"
# Restarting netwo... | Shell |
#!/bin/bash
# IPs
IP="10.74.63.226"
BROADCAST="10.74.63.231"
# DIRECCIONES DE GATEWAYS
H132="10.74.63.225"
# MASCARA DE RED
Netmask29="255.255.255.248"
./limpiezaInterfaces.sh
interfaz=`ifconfig | egrep "eth." -o | head -1`
ifconfig $interfaz $IP broadcast $BROADCAST netmask $Netmask29
route add -net 0.0.0.0 net... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
#!/bin/bash
# LIMPIEZA CONFIGURACION PREVIA
./limpiezaInterfaces.sh
# ACTIVACION DE LA FUNCION DE ROUTER DEL SO
echo "1" >> /proc/sys/net/ipv4/ip_forward
# MASCARAS DE RED
Netmask24="255.255.255.0"
Netmask25="255.255.255.128"
Netmask26="255.255.255.192"
Netmask27="255.255.255.224"
Netmask28="255.255.255.240"
Netmask... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.