Configuring and displaying static routes - griffinsnest/tech-Jorunal-1 GitHub Wiki

How to configure static routes


To configure a static route there are two ways to do so. The first is simply to go to the individual routers, then the config tab, and finally onto the static option in the configuration settings. From here you can enter the network you wish to route in the Network section, followed by the subnet mask of the network in the Mask section, and finally the address of where the network of the given router will hop from to get to this network in the Hop section.

On the other hand you can also do the same with the CLI menu with CLI commands. This like the previous example only needs to include a little information to properly set up, that being just the network address, subnet mask, and which of the given router's interfaces to send out of or the IP of the next hop. To do this make sure the router is in the terminal configuration mode, by enabling the router with enable and then set it into configuration mode with config t commands. Then simply use the command network name(config)#ip route Newtork Address of network you want to connect to Its subnet mask Address of the where the router will hop to network from

How to look at static routes


To see each router's static routes to other networks is a pretty simple task. Firstly, on each Router type "exit" to leave config mode, then run the following command show ip route. This will show you the routing table of the router and the network as a whole, with the static connections being labeled with an S so you know which connections are the static ones you manually made.