Skip to content

CCNA 2 – ch6

STATIC ROUTE

1) exit interface
Router(config)#ip route [dest ntw] [mask] [exit interface]

2) next-hop ip address
Router(config)#ip route [dest ntw] [mask] [next-hop ip addr]

3) fully specified
Router(config)#ip route [dest ntw] [mask] [next-hop ip addr] [exit interface]

 

DEFAULT ROUTE

A default route is a static route that matches all packets. Rather than storing all routes to all networks in the routing table, a router can store a single default route to represent any network that is not in the routing table.

 

FLOATING STATIC ROUTE

Routere(config)#ip route 0.0.0.0 0.0.0.0 160.75.13.1 ?
<1-255> Distance metric for this route

Router(config)#ip route 0.0.0.0 0.0.0.0 160.75.13.1  2

 

SUMMARIZATION (ROUTE AGGREGATION)

160.75.0.0 /24
160.75.1.0 /24
160.75.2.0 /24
160.75.3.0 /24
160.75.4.0 /24
160.75.5.0 /24
160.75.6.0 /24
160.75.7.0 /24

160.75.8.0 /24
160.75.9.0 /24
160.75.10.0 /24
160.75.11.0 /24

Router(config)#ip route 160.75.0.0 255.255.248.0 160.75.12.2
Router(config)#ip route 160.75.8.0 255.255.252.0 160.75.12.2

 

Summarization Örnek

150.27.0.0 /16
150.28.0.0 /16
150.29.0.0 /16
150.30.0.0 /16
150.31.0.0 /16
150.32.0.0 /16
150.33.0.0 /16
150.34.0.0 /16
150.35.0.0 /16
150.36.0.0 /16
150.37.0.0 /16
150.38.0.0 /16
150.39.0.0 /16
150.40.0.0 /16
150.41.0.0 /16
150.42.0.0 /16

Router(config)#ip route 150.27.0.0 255.255.0.0  s0

Router(config)#ip route 150.28.0.0 255.252.0.0 s0

Router(config)#ip route 150.32.0.0 255.248.0.0 s0

Router(config)#ip route 150.40.0.0 255.254.0.0 s0

Router(config)#ip route 150.42.0.0 255.255.0.0 s0