Skip to content

Commit 717b92f

Browse files
committed
MACs y BGP
1 parent bbfa046 commit 717b92f

File tree

1 file changed

+33
-16
lines changed

1 file changed

+33
-16
lines changed

examen_imprimir/apuntes.md

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,8 @@ Switch(config)#interface fa0/X
141141
Switch(config-in)#switchport mode access
142142
Switch(config-in)#switchport access vlan 10
143143
```
144-
Partir la interfaz del router en subinterfaces y poner en un router múltiples default gateways.
145-
En este caso el "10", ".10" es la VLAN
146-
(Repetir por cada VLAN necesaria a agregar)
147-
```
148-
Router(config)#interface fa0/0.10
149-
Router(config-in)#encapsulation dot1q 10
150-
Switch(config-in)#ip address 10.0.0.1 255.0.0.0
151-
Router(config-in)#no shutdown
152-
Router(config)#interface fa0/0.20
153-
```
154-
## Encapsulación
155144

145+
## Encapsulación
156146
Seleccionar el puerto de conexion de Router a Vlan
157147

158148
`0.10` Sería para la Vlan 10, se repite el siguiente proceso para todas las Vlans a conectar
@@ -214,14 +204,41 @@ access-list 1 permit 10.0.0.0 0.255.255.255
214204
ip nat inside source list 1 interface gi0/1 overload
215205
```
216206

207+
## Enrutamiento por BGP
208+
Router(config)# Router BGP Nºidentificativo del router entre 1-65535. Cada router un número diferente
209+
210+
Ejemplo: `Router(config)# Router BGP 1`
211+
212+
Se le conectan las redes que toca (que conoce), posteriormente se le indica quien es su router vecino, indicando el salto por donde pasará para conectarse hacia fuera.
213+
Es necesario indicar redes de VLAN y otros routers con quien tenga conexión (routers en neighbor no, unicamente routers).
214+
```
215+
Router(config)# Router BGP 100
216+
Router(config-router)# network 10.0.0.0 mask 255.0.0.0
217+
Router(config-router)# network 20.0.0.0 mask 255.0.0.0
218+
Router(config-router)# neighbor 20.0.0.2 remote-as 200
219+
```
220+
221+
## Direccionamiento por MAC
222+
Memorización de equipos meidante MAC:
223+
```
224+
# Ejemplo
225+
Switch(config)#mac address-table static <MAC> vlan 1 interface <interfaz>
226+
# Práctico
227+
Switch(config)#mac address-table static 000C.CFD7.1450 vlan 1 interface fa0/2
228+
```
229+
Mostrar MACs memorizadas en el switch:
230+
```
231+
Switch(config)#do show mac address-table
232+
```
233+
217234
## Telnet
218235
Abrir conexiones de 0 a 15 por vty
219236
```
220-
Switch (config)# line vty 0 15
221-
Switch (config-line)# password contraseña
222-
Switch (config-line)# login
223-
Switch (config-line)# exit
224-
Switch (config)# service password-encryption
237+
Switch(config)# line vty 0 15
238+
Switch(config-line)# password contraseña
239+
Switch(config-line)# login
240+
Switch(config-line)# exit
241+
Switch(config)# service password-encryption
225242
```
226243
Mensaje de bienvenida diario
227244
```

0 commit comments

Comments
 (0)