Академический Документы
Профессиональный Документы
Культура Документы
John Rullan
Cisco Certified Instructor Trainer
Thomas A. Edison CTE HS
Stephen Lynch
Network Architect, CCIE #36243
ABS Technology Architects
Static routes defines explicit path between two routers. They are not
automatically updated which means you must manually reconfigure static
routes when network changes occur.
Static routes use less bandwidth than dynamic routes.
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
There are four types of static routes. The
following types of IPv4 and IPv6 static routes
will be discussed:
Standard static route
Default static route
Summary static route
Floating static route
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
You must specify only the output interface (the interface on which all
packets are sent to the destination network) in a directly connected
static route.
The router assumes the destination is directly attached to the output
interface.
LAN-1
Internet
2001:DB8:2::1/64 2001:DB8:A::2/127
S0/0/1 S0/0/0
S0/0/0
Branch-2 2001:DB8:A::3/127 Branch-1
LAN-2
2001:DB8:3::1/64
Directly Connected
Directly Connected
Branch-1(config)# ipv6 route 2001:DB8:2::1/64 s0/0/1
Branch-1(config)# ipv6 route 2001:DB8:3::1/64 s0/0/1
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
LAN-1
Internet
2001:DB8:2::1/64 2001:DB8:A::2/127
S0/0/1 S0/0/0
Branch-2 S0/0/0 2001:DB8:A::3/127 Branch-1
LAN-2
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
In a next-hop static route, the IPv6 address of the neighboring
router is specified.
The output interface is derived from the next hop.
Before any packet is forwarded by router, the routing table process
must determine the exit interface to use to in order to forward the
packet. This causes the router to take a second look at the routing
table to determine the exit interface for the destination network.
LAN-1
Internet
2001:DB8:2::1/64 2001:DB8:A::2/127
S0/0/1 S0/0/0
S0/0/0
Branch-2 2001:DB8:A::3/127 Branch-1
LAN-2
2001:DB8:3::1/64
Next Hop/Recursive
Branch-1(config)# ipv6 route 2001:DB8:2::1/64 2001:DB8:A::2
Branch-1(config)# ipv6 route 2001:DB8:3::1/64 2001:DB8:A::2
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
LAN-1
Internet
2001:DB8:2::1/64 2001:DB8:A::2/127
S0/0/1 S0/0/0
S0/0/0
Branch-2 2001:DB8:A::3/127 Branch-1
LAN-2
2001:DB8:3::1/64
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
The output interface and the next-hop address are both used in a
fully specify static route.
Used when the output interface is a multi-access interface and
needs the next-hop address to be identified.
The next-hop must be directly attached to the specified output
interface.
2001:DB8:A::4/64
G0/0 Branch-4
LAN-1
2001:DB8:2::1/64
G0/0 2001:DB8:A::2/64 2001:DB8:A::1/64
Branch-2
G0/0 DSW-1 G0/0
Branch-1
G0/1
LAN-2
G0/0
2001:DB8:3::1/64
2001:DB8:A::3/64
Branch-3
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
2001:DB8:A::4/64
G0/0 Branch-4
LAN-1
2001:DB8:2::1/64
G0/0 2001:DB8:A::2/64 2001:DB8:A::1/64
Branch-2
G0/0 DSW-1 G0/0
Branch-1
G0/1
LAN-2
G0/0
2001:DB8:3::1/64
2001:DB8:A::3/64
Branch-3
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
No other routes in the routing table match the packet destination IP
address. In other words, when a more specific match does not exist.
A common use is when connecting a company's edge router to the ISPs
network.
LAN-1
Internet
2001:DB8:2::1/64 2001:DB8:A::2/127
S0/0/1 S0/0/0
S0/0/0
Branch-2 2001:DB8:A::3/127 Branch-1
LAN-2
2001:DB8:3::1/64
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
LAN-1
Internet
2001:DB8:2::1/64 2001:DB8:A::2/127
S0/0/1 S0/0/0
S0/0/0
Branch-2 2001:DB8:A::3/127 Branch-1
LAN-2
2001:DB8:3::1/64
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Summary routes are used to reduce the number of routing table entries.
Multiple static routes can be summarized into a single static route if:
- The destination networks are contiguous and can be summarized into a
single network address.
- The multiple static routes all use the same exit interface or next-hop IP
address.
LAN-1
Internet
2001:DB8:2::1/64 2001:DB8:A::2/127
S0/0/1 S0/0/0
S0/0/0
Branch-2 2001:DB8:A::3/127 Branch-1
LAN-2
2001:DB8:3::1/64
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
LAN-1
Internet
2001:DB8:2::/64 2001:DB8:A::2/127
S0/0/1 S0/0/0
S0/0/0
Branch-2 2001:DB8:A::3/127 Branch-1
LAN-2
2001:DB8:3::/64
Branch-1(config)#ipv6 route 2001:DB8:2::/46 s0/0/0
Common Bits
2001:DB8:0000000000000010
2001:DB8:0000000000000011
Summarize based on common bits:
16-bits in the 1st and 2nd hextets for a total of 32-bits
14-bits in the 3rd hextet
Total of 46-bits in common between the two addresses
Branch-1#show ipv6 route Branch-1# ping 2001:db8:2::1
(output omitted) Type escape sequence to abort.
S ::/0 [1/0] Sending 5, 100-byte ICMP Echos to 2001:db8:2::, timeout is 2 seconds:
via ::, Serial0/0/0 !!!!!
S 2001:DB8::/46 [1/0] Success rate is 100 percent (5/5), round-trip min/avg/max = 1/10/41 ms
via ::, Serial0/0/1 Branch-1# ping 2001:db8:3::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:db8:3::, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/9/18 ms
Branch-1#
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
A floating static route is a static route that the router uses to back up
dynamic route.
You must configure a floating static route with a higher
administrative distance than the dynamic route that it backs up.
In this instance, the router prefers a dynamic route to a floating static
route. You can use a floating static route as a replacement if the
dynamic route is lost.
Branch-1
Internet
Branch-2
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Branch-1
Internet
Branch-2
2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
Thank you.