2022-04-08 13:21:17 +00:00
|
|
|
# PacketTracer Docs (Documentación PT)
|
|
|
|
|
|
|
|
## Configuración Propio Switch/Router
|
|
|
|
|
|
|
|
### Hostname
|
|
|
|
|
|
|
|
```
|
|
|
|
hostname <nombre>
|
|
|
|
```
|
|
|
|
|
|
|
|
### Contraseña
|
|
|
|
|
|
|
|
```
|
|
|
|
enable secret <password>
|
|
|
|
username <usuario> privilege 1 password 0 <password>
|
|
|
|
```
|
|
|
|
|
2022-04-21 18:04:59 +00:00
|
|
|
### MOTD
|
|
|
|
|
|
|
|
```
|
|
|
|
banner motd "<motd>"
|
|
|
|
```
|
|
|
|
|
2022-04-08 14:52:28 +00:00
|
|
|
## Sub-Interfaces
|
|
|
|
|
|
|
|
```
|
|
|
|
int <if>.<sub-if> # e.g. fa0/1.1
|
|
|
|
encapsulation dot1Q <net> [native]
|
|
|
|
```
|
|
|
|
|
2022-04-08 13:59:32 +00:00
|
|
|
## Enrutamiento
|
|
|
|
|
|
|
|
### Dinámico
|
|
|
|
|
|
|
|
```
|
|
|
|
router rip
|
|
|
|
version 2
|
|
|
|
no auto-summary
|
|
|
|
network <ip-net>
|
|
|
|
```
|
|
|
|
|
2022-04-08 13:21:17 +00:00
|
|
|
## VLANs
|
|
|
|
|
|
|
|
```
|
|
|
|
vlan <id>
|
|
|
|
name <name>
|
|
|
|
```
|
|
|
|
|
|
|
|
### Enlaces de Acceso
|
|
|
|
|
|
|
|
```
|
|
|
|
# para una sola interfaz
|
|
|
|
int <if>
|
|
|
|
# para un rango de interfaces
|
2022-05-13 11:38:08 +00:00
|
|
|
int range <if>-<if>
|
2022-04-08 13:21:17 +00:00
|
|
|
switchport access vlan <id>
|
|
|
|
```
|
|
|
|
|
|
|
|
### Enlaces Troncales
|
|
|
|
|
|
|
|
```
|
|
|
|
int <if>
|
|
|
|
switchport mode trunk
|
|
|
|
```
|
|
|
|
|
|
|
|
### Asignar IP a VLAN
|
|
|
|
|
|
|
|
```
|
|
|
|
int vlan <id>
|
2022-04-08 14:55:47 +00:00
|
|
|
ip address <ip> <mask>
|
2022-04-08 13:21:17 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## DHCP
|
|
|
|
|
|
|
|
```
|
|
|
|
ip dhcp pool <name>
|
|
|
|
network <ip-net> <mask-net>
|
|
|
|
default-router <ip>
|
|
|
|
dns-server <ip>
|
|
|
|
ip dhcp excluded-address <low-ip> <high-ip>
|
|
|
|
```
|
2022-04-28 18:46:30 +00:00
|
|
|
|
|
|
|
### Asignar Dirección Servidor DHCP
|
|
|
|
|
|
|
|
Hay veces que queremos asignar desde un __router__ o un __switch__ el servidor
|
|
|
|
DHCP con un cierto IP que está dentro de otra red. Para esto hacemos uso del
|
|
|
|
__helper address__. Simplemente entramos en la (sub-)interfaz a la que queremos
|
|
|
|
asignar este servidor, y añadimos el __helper__ como de forma siguiente:
|
|
|
|
|
|
|
|
```
|
|
|
|
int <if>[.<sub-if>]
|
|
|
|
ip helper-address <ip-dhcp>
|
|
|
|
```
|