VPCS (Virtual PC Simulator) es el simulador de PC que viene incluido en EVE-NG. No es un sistema operativo real: solo sirve para probar redes (IP, ping, trace, DHCP). Es muy liviano, así que se pueden tener muchas PCs en un lab sin consumir RAM.

Para navegar por internet o probar servicios reales se usan las imágenes Linux (Alpine desktop o Ubuntu), no VPCS.

Configuración

1. Cambiar el nombre de la PC

  • Comando: VPCS> set pcname <Nombre>
  • Ejemplo: VPCS> set pcname PC1

Cambia el nombre del prompt. Útil cuando hay varias PCs abiertas.

2. IP estática

Hay dos formatos y los dos hacen lo mismo:

  • Comando: PC1> ip <IP>/<prefijo> <gateway>

  • Ejemplo: PC1> ip 192.168.10.101/24 192.168.10.1

  • Comando: PC1> ip <IP> <máscara> <gateway>

  • Ejemplo: PC1> ip 192.168.10.101 255.255.255.0 192.168.10.1

Resultado:

PC1> ip 192.168.10.101/24 192.168.10.1
Checking for duplicate address...
PC1 : 192.168.10.101 255.255.255.0 gateway 192.168.10.1

El gateway es la IP del router (o subinterfaz/SVI) de esa VLAN. Sin gateway, la PC solo llega a equipos de su misma red.
“Checking for duplicate address” significa que la PC revisa si otra ya usa esa IP.

3. IP por DHCP

  • Comando: PC1> ip dhcp

Resultado:

PC1> ip dhcp
DDORA IP 192.168.10.101/24 GW 192.168.10.1

Las letras DORA muestran el proceso: Discover, Offer, Request, Acknowledge.
Si se queda en DDD… sin terminar, la PC no llega al servidor DHCP (ver Troubleshooting).

  • Liberar la IP obtenida por DHCP: PC1> ip dhcp -r

4. Servidor DNS (Opcional)

  • Comando: PC1> ip dns <IP-DNS>
  • Ejemplo: PC1> ip dns 8.8.8.8

Permite hacer ping a nombres (por ejemplo ping google.com) si hay salida a internet.

5. Borrar la configuración IP

  • Comando: PC1> clear ip

6. Guardar

  • Comando: PC1> save
PC1> save
Saving startup configuration to startup.vpc
.  done

Sin save, la PC pierde la IP al apagar o reiniciar el lab.

Verificación

Ver la configuración IP

  • Comando: PC1> show ip
PC1> show ip
NAME        : PC1[1]
IP/MASK     : 192.168.10.101/24
GATEWAY     : 192.168.10.1
DNS         :
DHCP SERVER : 192.168.10.1
DHCP LEASE  : 86392, 86400/43200/75600
MAC         : 00:50:79:66:68:00
LPORT       : 20000
RHOST:PORT  : 127.0.0.1:30000
MTU         : 1500
Qué mirarSignificado
IP/MASKLa IP y el prefijo de la PC
GATEWAYEl gateway configurado
DHCP SERVERSolo aparece si la IP vino por DHCP
MACLa MAC de la PC. Sirve para buscarla en show mac address-table del switch o en show ip dhcp binding del router

Ver la tabla ARP

  • Comando: PC1> show arp
  • Borrar la tabla ARP: PC1> clear arp

Muestra las MACs que la PC ya conoce. Si el gateway aparece aquí, la PC llega a él en capa 2.

Pruebas de conectividad

Ping

  • Comando: PC1> ping <IP>
  • Ejemplo: PC1> ping 192.168.10.103
PC1> ping 192.168.10.103
84 bytes from 192.168.10.103 icmp_seq=1 ttl=64 time=1.9 ms
84 bytes from 192.168.10.103 icmp_seq=2 ttl=64 time=1.2 ms

Opciones útiles:

  • Cantidad de paquetes: PC1> ping 192.168.10.103 -c 10
  • Ping continuo (se detiene con Ctrl + C): PC1> ping 192.168.10.103 -t
ResultadoSignificado
84 bytes from ... ttl=64Llega. TTL 64 = mismo segmento, sin router de por medio
84 bytes from ... ttl=63Llega pasando por un router (cada router resta 1 al TTL)
... timeoutNo hubo respuesta
host (IP) not reachableLa PC no llega a ese destino ni a su gateway

Trace

  • Comando: PC1> trace <IP>
  • Ejemplo: PC1> trace 192.168.20.104
PC1> trace 192.168.20.104
 1   192.168.10.1   2.3 ms
 2   *192.168.20.104   3.9 ms (ICMP type:3, code:3, Destination port unreachable)

Cada línea es un salto (un router). El mensaje port unreachable al final es normal en VPCS: así responde el destino.

Troubleshooting

SíntomaCausa probableQué revisar
host (IP) not reachable hacia otra redNo hay gateway o el gateway no existeshow ip en la PC; que el router tenga la IP del gateway
No llega ni a equipos de su misma VLANPuerto del switch en otra VLAN, apagado, o IP mal escritashow ip en la PC; show vlan brief en el switch
DHCP se queda en DDD...La PC no llega al servidor DHCPVLAN del puerto, trunk hacia el router, subinterfaz y pool del DHCP
Ping funciona a vecesIP duplicadaEl aviso de “duplicate address” al configurar; show arp
Perdió la IP al reiniciarNo se guardóConfigurar de nuevo y usar save

Orden de diagnóstico: primero show ip en la PC (¿la IP y el gateway son correctos?), luego ping al gateway, y después ping al destino final.

Ejemplo completo

PC1 en la VLAN 10, configurada a mano, probando contra otra PC de su VLAN y contra una de otra VLAN:

VPCS> set pcname PC1
PC1> ip 192.168.10.101/24 192.168.10.1
PC1> save

PC1> show ip
PC1> ping 192.168.10.1          ! gateway
PC1> ping 192.168.10.103        ! misma VLAN
PC1> ping 192.168.20.104        ! otra VLAN (necesita router)
PC1> trace 192.168.20.104

Misma PC, ahora por DHCP:

PC1> clear ip
PC1> ip dhcp
PC1> show ip
PC1> save