Share

comandos

d579f79e16ac5b463329e0891fddf3846f904ce8ab20498dc56abe123cb66f99

Public

30 November 2016

Views: 3

/* Cambiar IP de PC a 192.168.1.50 */
ip addr flush dev eth1 (Quita todas las IP del eth1)
ip addr add 192.168.1.50 dev eth1



/* Conectar y configurar Router A */
telnet 192.168.1.1
configure terminal

interface eth0.2
ip address 10.0.26.1 //Eth 0.2: 192.168.2.1 (/24) -> 10.0.26.1 (/25)
no ip address 192.168.2.1

interface eth0.3
ip address 10.0.26.177 //Eth 0.3: 192.168.3.1 (/24) -> 10.0.26.177 (/30)
no ip address 192.168.3.1

interface eth0.4
ip address 10.0.26.182 //Eth 0.3: 192.168.3.1 (/24) -> 10.0.26.182 (/30)
no ip address 192.168.4.1


/* Configurar la tabla de rutas del Router A */
configure terminal
ip route 10.0.26.128/27 10.0.26.178 10
ip route 10.0.26.128/27 10.0.26.181 20

ip route 10.0.26.160/28
ip route 10.0.

/sbin/ip route add 10.0.26.128/27 via 10.0.26.178
/sbin/ip route add 10.0.26.128/27 via 10.0.26.181
/sbin/ip route add 10.0.26.160/28 via 10.0.26.181
/sbin/ip route add 10.0.26.160/28 via 10.0.26.178

/sbin/ip route add 10.0.26.184/30 via 10.0.26.178
/sbin/ip route add 10.0.26.184/30 via 10.0.26.181


/sbin/ip route add 10.0.26.188/30 via 10.0.26.181
/sbin/ip route add 10.0.26.188/30 via 10.0.26.178



/* Conectar y configurar Router B */
telnet 192.168.1.1
configure terminal

interface eth0.2
ip address 10.0.26.129 //Eth 0.2: 192.168.2.1 (/24) -> 10.0.26.129 (/27)
no ip address 192.168.2.1

interface eth0.3
ip address 10.0.26.178 //Eth 0.3: 192.168.3.1 (/24) -> 10.0.26.178 (/30)
no ip address 192.168.3.1

interface eth0.4
ip address 10.0.26.186 //Eth 0.3: 192.168.3.1 (/24) -> 10.0.26.186 (/30)
no ip address 192.168.4.1

/* Conectar y configurar Router C */
telnet 192.168.1.1
configure terminal

interface eth0.2
ip address 10.0.26.161 //Eth 0.2: 192.168.2.1 (/24) -> 10.0.26.161 (/27)
no ip address 192.168.2.1

interface eth0.3
ip address 10.0.26.185 //Eth 0.3: 192.168.3.1 (/24) -> 10.0.26.185 (/30)
no ip address 192.168.3.1

interface eth0.4
ip address 10.0.26.181 //Eth 0.3: 192.168.3.1 (/24) -> 10.0.26.181 (/30)
no ip address 192.168.4.1

Salimos del router y nos conectaremos a la interfaz eth0.2 del router C cambiando la IP del ordenador
ip addr flush dev eth1 (Quita todas las IP del eth1)
ip addr add 10.0.26.162 dev eth1

telnet 10.0.26.161
configure terminal

interface eth0.1
ip address 10.0.26.189 //ETh 0.1: 192.168.1.1 (/24) -> 10.0.26.189 (/30)
no ip address 192.168.1.1


/* Configurar la tabla de ruta por defecto del PC */
ip route 10.0.0.0/8 10.0.26.1/25

Passcode: