Está en la página 1de 2

Ejemplo de configuración Switch capa 3 (Dual Stack)

 Configuración de la dirección IP de la interfaz


Switch>enable
Switch#configure terminal
Switch(config)# interface GigabitEthernet1/0/5
Switch(config)#no switchport
Switch(config-if)# ip address 10.255.1.1 255.255.255.252
Switch(config-if)# ipv6 address 2801:14:6000::1/80
Switch(config-if)#no shutdown
 Configuración DHCP (IPv4)
Switch(config)# interface VLAN110
Switch(config)# ip address 10.11.0.1 255.255.0.0
Switch(config)# ip dhcp pool VLAN110 (Aquí podemos poner el nombre que identifique a tu
pool)
Le damos la dirección de red con la máscara correspondiente.
Switch(dhcp-config)# network 10.11.0.0 255.255.0.0
Introducimos la que será puerta de enlace para los clientes
Switch(dhcp-config)# default-router 10.11.0.1
Introducimos el que será el DNS principal de los clientes
Switch(dhcp-config)# dns-server 201.131.45.5
Switch(dhcp-config)#exit
Ahora excluimos las IPs que no queremos que el servidor ofrezca a los clientes
Switch(config)# ip dhcp excluded-address 10.11.0.1
 Configuración OSPF (IPv4)
Switch(config)# router ospf 1 Cree un proceso OSPF 1
Switch(config-router)# router-id 1.1.1.1 configuramos el ID del router
Switch(config-router)# network 10.11.0.0 0.0.255.255 area 0 Configure un segmento de red
en el area 0.
 Configuración OSPF (IPv6)
Switch(config)# ipv6 unicast-routing
Switch(config)#ipv6 router ospf 1
Switch(config-rtr)#router-id 1.1.1.1
Switch(dhcp-rtr)#exit
Switch(config)# interface gigabitEthernet 1/0/9
Switch(config-if)# ipv6 ospf 1 area 0

También podría gustarte