Enrutamiento estático en Mikrotik utilizando el emulador para redes EVE-NG.
Crear una red ruteada utilizando enrutamiento estático y obtener acceso al resto de subredes.
Start all nodes
Asignar nombre a los routers
[admin@RA] > system identity set name=RA
[admin@RB] > system identity set name=RB
[admin@RC] > system identity set name=RC
[admin@RD] > system identity set name=RD
Para acceder a todos los routers a través de Winbox se utiliza la interfaz ManagementCloud0 de EVE-NG, se conecta a una de las interfaces, por ejemplo, del router RA. Se obtiene una dirección IP y otros parámetros de la red utilizando dhcp-client y por último se activa romon en cada uno de los routers.
[admin@RA] > tool romon set enable=yes
[admin@RA] > ip dhcp-client add interface=ether4 disabled=no
Enrutamiento IP
RA
ip address add address=10.1.1.1/30 interface=ether2
ip address add address=10.1.1.14/30 interface=ether3
ip address add address=172.16.1.1/24 interface=ether1
RB
ip address add address=10.1.1.5/30 interface=ether2
ip address add address=10.1.1.2/30 interface=ether3
ip address add address=172.16.2.1/24 interface=ether1
RC
ip address add address=10.1.1.9/30 interface=ether2
ip address add address=10.1.1.6/30 interface=ether3
ip address add address=172.16.3.1/24 interface=ether1
RD
ip address add address=10.1.1.13/30 interface=ether2
ip address add address=10.1.1.10/30 interface=ether3
ip address add address=172.16.4.1/24 interface=ether1
Para la asignación de rutas se hace en sentido de las manecillas del reloj.
RA
[admin@RA] > ip route add dst-address=172.16.2.0/24 gateway=10.1.1.2
[admin@RA] > ip route add dst-address=172.16.3.0/24 gateway=10.1.1.2
[admin@RA] > ip route add dst-address=172.16.4.0/24 gateway=10.1.1.2
[admin@RA] > ip route add dst-address=10.1.1.0/30 gateway=10.1.1.2
[admin@RA] > ip route add dst-address=10.1.1.8/30 gateway=10.1.1.2
RB
[admin@RB] > ip route add dst-address=172.16.3.0/24 gateway=10.1.1.6
[admin@RB] > ip route add dst-address=172.16.4.0/24 gateway=10.1.1.6
[admin@RB] > ip route add dst-address=172.16.1.0/24 gateway=10.1.1.6
[admin@RB] > ip route add dst-address=10.1.1.8/30 gateway=10.1.1.6
[admin@RB] > ip route add dst-address=10.1.1.12/30 gateway=10.1.1.6
RC
[admin@RC] > ip route add dst-address=172.16.4.0/24 gateway=10.1.1.10
[admin@RC] > ip route add dst-address=172.16.1.0/24 gateway=10.1.1.10
[admin@RC] > ip route add dst-address=172.16.2.0/24 gateway=10.1.1.10
[admin@RC] > ip route add dst-address=10.1.1.12/30 gateway=10.1.1.10
[admin@RC] > ip route add dst-address=10.1.1.0/30 gateway=10.1.1.10
RD
[admin@RD] > ip route add dst-address=172.16.1.0/24 gateway=10.1.1.14
[admin@RD] > ip route add dst-address=172.16.2.0/24 gateway=10.1.1.14
[admin@RD] > ip route add dst-address=172.16.3.0/24 gateway=10.1.1.14
[admin@RD] > ip route add dst-address=10.1.1.0/30 gateway=10.1.1.14
[admin@RD] > ip route add dst-address=10.1.1.4/30 gateway=10.1.1.14