#SysAdmin – Interfaces de Red + Routas Estaticas

Hoy teniendo algunos problemas con interfaces de red, hoy les muestro una configuracion de como configurar el interfaces y establecer routas estaticas.

nano /etc/network/interfaces

auto lo
iface lo inet loopback

# Red Board LAN
auto eth0
iface eth0 inet static
address 10.16.9.126
netmask 255.255.255.128
gateway 10.16.9.1
dns-nameservers 10.16.9.2
dns-search subdomain.domain.cu

#Red Tarjeta 1 VPN1
auto eth1
iface eth1 inet static
address 10.16.32.250
netmask 255.255.255.248
gateway 10.16.32.249

#Red Tarjeta 2 VPN2
auto eth2
iface eth2 inet static
address 10.16.32.242
netmask 255.255.255.248
#gateway 10.16.32.241

#Rutas VPN1
up route add -net 10.16.31.0 netmask 255.255.255.240 gw 10.16.32.249    #UN1
up route add -net 10.16.31.16 netmask 255.255.255.240 gw 10.16.32.249    #UN2
up route add -net 10.16.31.32 netmask 255.255.255.240 gw 10.16.32.249    #UN3
up route add -net 10.16.31.160 netmask 255.255.255.240 gw 10.16.32.249    #UN4
up route add -net 10.16.31.208 netmask 255.255.255.248 gw 10.16.32.249    #UN5
up route add -net 10.16.31.248 netmask 255.255.255.248 gw 10.16.32.249    #UN6
up route add -net 10.16.9.160 netmask 255.255.255.224 gw 10.16.32.249    #UN7
up route add -net 10.16.32.32 netmask 255.255.255.240 gw 10.16.32.249    #UN8

#Rutas VPN2
up route add -net 10.16.31.96 netmask 255.255.255.240 gw 10.16.32.241    #UN9
up route add -net 10.16.31.112 netmask 255.255.255.240 gw 10.16.32.241    #UN10
up route add -net 10.16.31.144 netmask 255.255.255.240 gw 10.16.32.241    #UN11
up route add -net 10.16.32.0 netmask 255.255.255.224 gw 10.16.32.241    #UN12

(Visited 73 times, 1 visits today)
Sobre Armando Felipe Fuentes Denis 124 Artículos
Network Administrator and Telematic Services in Federation of Radio Amateurs of Cuba Residencia: Regla, La Habana Email: [email protected] Movil: +53 58319403

Sé el primero en comentar

Dejar una contestacion

Tu dirección de correo electrónico no será publicada.


*