Router> enable
Router# configure terminal
Router(config)# hostname R1
R1(config)# interface g0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# description LAN
R1(config-if)# no shutdown
R1(config)# interface s0/0/0
R1(config-if)# ip address 10.0.0.1 255.255.255.252
R1(config-if)# clock rate 64000 ! solo en el extremo DCE del serie
R1(config-if)# no shutdown
Rutas estáticas
R1(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2 ! red destino, máscara, siguiente salto
R1(config)# ip route 0.0.0.0 0.0.0.0 10.0.0.2 ! ruta por defecto
Cada router necesita ruta hacia las redes que no tiene conectadas, y la vuelta también.
DHCP en el router
R1(config)# ip dhcp excluded-address 192.168.1.1 192.168.1.10
R1(config)# ip dhcp pool LAN
R1(dhcp-config)# network 192.168.1.0 255.255.255.0
R1(dhcp-config)# default-router 192.168.1.1
R1(dhcp-config)# dns-server 8.8.8.8
Verificar
show ip route (C conectada, S estática, R RIP) · show ip interface brief · ping · traceroute.