Setting up a static route for beginners

Опубликовано: 08 Август 2026
на канале: 2Y.Technologie
39,337
1.1k

Configuring a Static Route

In this video, we'll discuss how to configure a static route.

To configure a static route on a Cisco router, you need to use the "ip route" command. Here's the general syntax for this command:

ip route [network destination address] [subnet mask] [outgoing interface IP address]

For example, to configure a route to the 192.168.2.0/24 network via Ethernet interface 0/1, you can use the following command:

ip route 192.168.2.0 255.255.255.0 Ethernet 0/1

You can also use the "ip route" command with the "persistent" option so that the route remains active even after a router reboot. For example:

ip route 192.168.2.0 255.255.255.0 Ethernet 0/1 permanent

It is also possible to configure a default route that will be used for all packets that do not match any other route configured on the router. To do this, you can use the command "ip default-gateway" followed by the IP address of the outgoing interface:

ip default-gateway 192.168.1.1

This configures a default route to the Ethernet 0/0 interface with the IP address 192.168.1.1.

#ccna
#static_route
#2y.technology