FSOS IP Routing Command Line Reference

Similar documents
FiberstoreOS IP Routing Command Line Reference

FiberstoreOS. IP Routing Command Line Reference

FSOS IPv6 Routing Command Line Reference

FiberstoreOS. IPv6 Routing Command Line Reference

FiberstoreOS V3.3 IPv6 Routing Command Line Reference

FSOS IP Routing Configuration Guide

FiberstoreOS IP Routing Configuration Guide

FiberstoreOS IP Routing Configuration Guide

OSPF Commands. Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols IP2R-61

RIP Commands. output-delay, page 32 passive-interface (RIP), page 33 poison-reverse, page 35 receive version, page 37 redistribute (RIP), page 39

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Command Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

A Commands. Send comments to

Routing Configuration Commands

OSPFv3 Commands. address-family (OSPFv3), page 4. authentication (OSPFv3), page 7

Table of Contents 1 Static Routing Configuration RIP Configuration 2-1

IP Routing: RIP Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)

OSPF Commands: A through Z

OSPF Commands on Cisco ASR 9000 Series Router

Chapter 16 OSPF Version 3 Commands

Configuring Networking Protocols

OSPF Commands on Cisco IOS XR Software

Configuring IP Unicast Routing

Table of Contents. 2 Static Route Configuration Commands 2-1 Static Route Configuration Commands 2-1 delete static-routes all 2-1 ip route-static 2-1

OSPF Commands. adjacency stagger, page 7. authentication-key (OSPF), page 14

HP 6125G & 6125G/XG Blade Switches

OSPFv3 Address Families

Basic IP Routing. Finding Feature Information. Information About Basic IP Routing. Variable-Length Subnet Masks

IP Routing Volume Organization

IP Routing Protocol-Independent Commands

Operation Manual Routing Protocol. Table of Contents

RIP Configuration. RIP Overview. Operation of RIP. Introduction. RIP routing table. RIP timers

Configuring OSPF. Cisco s OSPF Implementation

Configuring RIP. Information About RIP CHAPTER

OSPF. About OSPF. CLI Book 1: Cisco ASA Series General Operations CLI Configuration Guide, 9.4 1

Basic IP Routing. Finding Feature Information. Information About Basic IP Routing. Variable-Length Subnet Masks

IP Enhanced IGRP Commands

Configuring Advanced BGP

Chapter 15 OSPF Commands

Configuring EIGRP. Finding Feature Information

OSPFv3 Address Families

OSPFv3 Address Families

Implementing RIP for IPv6

Chapter 8 Configuring OSPF

Configuring IP Unicast Routing

Configuring RIP. RIP Configuration Task List

Configuring IP Unicast Routing

Table of Contents 1 OSPF Configuration 1-1

HP 7500 Switch Series

Easy Virtual Network Configuration Example

Configuring OSPF with CLI

Allows IGRP or Enhanced IGRP exterior routes to be advertised in updates.

IPv6 Commands: sn to v

IPv6 Routing: Route Redistribution

Cisco IOS IP Routing: RIP Command Reference

Chapter 4 Lab 4-1, Redistribution Between RIP and OSPF

Chapter 4 Lab 4-2, Redistribution Between EIGRP and OSPF

BGP Commands. Network Protocols Command Reference, Part 1 P1R-355

debug ip ospf database external default-metric subnet area 0 stub distribute-list in Serial0/1

The commands in this appendix are organized in the following sections:

Building the Routing Table. Introducing the Routing Table Directly Connected Networks Static Routing Dynamic Routing Routing Table Principles

Nortel Ethernet Routing Switch 5000 Series Configuration IP Routing Protocols. Release: 6.1 Document Revision:

IPv6 Routing: RIP for IPv6

scope scope {global vrf vrf-name} no scope {global vrf vrf-name} Syntax Description

BGP Commands. Network Protocols Command Reference, Part 1 P1R-355

Multiprotocol BGP Extensions for IP Multicast Commands

Operation Manual OSPF. Table of Contents

EIGRP. About EIGRP. CLI Book 1: Cisco ASA Series General Operations CLI Configuration Guide, 9.7 1

Chapter 5 RIP version 1

Implementing RIP for IPv6

Logging neighbor state changes 38 Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of

Configuring BGP. Cisco s BGP Implementation

IPv6 Routing: OSPFv3

IP Routing: RIP Configuration Guide, Cisco IOS Release 15SY

Configuring OSPF. Finding Feature Information

Configuring PIM. Information About PIM. Send document comments to CHAPTER

BGP can also be used for carrying routing information for IPv6 prefix over IPv6 networks.

RIP Version 2. The Classless Brother

Chapter 13 RIP Commands

OSPF Command Reference

IS-IS Configuration Commands. Generic Commands. shutdown IS-IS XRS Routing Protocols Guide Page 533. Syntax [no] shutdown

Lab 4: Routing using OSPF

HP 5920 & 5900 Switch Series

FiberstoreOS BGP Command Line Reference

Configuring EIGRP. Overview CHAPTER

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Interior Routing Protocols and High Availability.

ZXR Series. 10 Gigabit Routing Switch User Manual (IPv4 Routing Volume) Version C

Top-Down Network Design

Avaya M-MLS Routing Manager User Guide

HP FlexFabric 5700 Switch Series

Operation Manual - Network and Routing Protocol. Table of Contents

Juniper.Selftestengine.jn0-694.v by.KIM-HL.52q

Connecting to a Service Provider Using External BGP

OSPF Support for Multi-VRF on CE Routers

MPLS VPN Inter-AS IPv4 BGP Label Distribution

Routing Configuration Guide, Cisco IOS XE Everest a (Catalyst 9300 Switches)

HP 5920 & 5900 Switch Series

Implementing Cisco IP Routing

ipv6 mobile home-agent (global configuration)

Chapter 7 Routing Protocols

Transcription:

FSOS IP Routing Command Line Reference

Contents 1 IP Unicast-Routing Commands... 7 1.1 ip address...7 1.2 ip icmp error-interval... 9 1.3 ip redirects...10 1.4 ip unreachables...11 1.5 ip verify unicast reverse-path...12 1.6 router-id (global)... 13 1.7 ip route... 14 1.8 show ip route...15 1.9 show ip route database... 17 1.10 show ip protocols... 18 1.11 show ip route summary... 20 1.12 show ip route add-fib-fail...21 1.13 max-static-routes...22 1.14 show resource fib... 23 2 RIP Commands... 25 2.1 default-information originate (RIP)... 25 2.2 default-metric (RIP)... 26 2.3 distance (RIP)...27 2.4 ip rip authentication... 29 2.5 ip rip authentication mode...31 2.6 ip rip receive version...32 2.7 ip rip receive-packet...33 2.8 ip rip send version... 34 2.9 ip rip send-packet... 35

2.10 ip rip split-horizon...36 2.11 network (RIP)...37 2.12 neighbor (RIP)...39 2.13 offset-list (RIP)...40 2.14 passive-interface (RIP)...41 2.15 redistribute (RIP)...43 2.16 router rip...44 2.17 timers basic (RIP)...45 2.18 show ip rip database...46 2.19 show ip rip interface...48 2.20 version (RIP)... 49 2.21 distribute-list... 50 2.22 address-family...51 2.23 show ip protocol rip... 52 2.24 debug rip... 53 2.25 show debugging rip...54 2.26 show ip rip database database-summary...55 2.27 show resource rip... 56 3 OSPF Commands...58 3.1 area authentication... 58 3.2 area default-cost... 60 3.3 area filter-list... 61 3.4 area range... 63 3.5 area stub... 65 3.6 auto-cost... 67 3.7 clear ip ospf...68 3.8 compatible rfc1583... 69 3.9 default-information originate (OSPF)...70 3.10 default-metric (OSPF)...71

3.11 distance (OSPF)... 73 3.12 distribute-list (OSPF)... 74 3.13 ip ospf authentication... 76 3.14 ip ospf authentication-key...77 3.15 ip ospf cost... 78 3.16 ip ospf database-filter all out...80 3.17 ip ospf dead-interval...81 3.18 ip ospf hello-interval... 82 3.19 ip ospf message-digest-key md5... 83 3.20 ip ospf mtu... 85 3.21 ip ospf mtu-ignore...86 3.22 ip ospf network...87 3.23 ip ospf priority...89 3.24 ip ospf retransmit-interval...90 3.25 ip ospf transmit-delay...92 3.26 neighbor (OSPF)... 93 3.27 network area (OSPF)...95 3.28 overflow database external...96 3.29 passive-interface (OSPF)... 98 3.30 redistribute (OSPF)... 99 3.31 router-id (OSPF)...100 3.32 router ospf... 102 3.33 summary-address (OSPF)... 103 3.34 show ip ospf... 104 3.35 show ip ospf border-routers... 106 3.36 show ip ospf database... 107 3.37 show ip ospf interface... 109 3.38 show ip ospf neighbor... 110 3.39 show ip ospf summary-address... 112 3.40 show ip ospf database database-summary...112

3.41 show ip ospf route summary... 114 3.42 show ip protocols ospf...115 3.43 timers spf...116 3.44 max-concurrent-dd... 117 3.45 maximun-area...119 3.46 refresh timer... 120 3.47 debug ospf... 121 3.48 debug ospf events...122 3.49 debug ospf ifsm...123 3.50 debug ospf nfsm... 124 3.51 debug ospf lsa...125 3.52 debug ospf packet...126 3.53 debug ospf route...128 3.54 show debuggin ospf... 129 3.55 show resource ospf...130 4 Route Map Commands...131 4.1 route-map... 131 4.2 match as-path... 133 4.3 match community...135 4.4 match interface...136 4.5 match ip address...138 4.6 match ip address prefix-list... 139 4.7 match ip next-hop...141 4.8 match ip next-hop prefix-list...142 4.9 match local-preference...144 4.10 match metric...145 4.11 match origin... 147 4.12 match route-type... 148 4.13 match tag... 150

4.14 set aggregator... 151 4.15 set as-path...152 4.16 set atomic-aggregate... 154 4.17 set comm-list delete... 155 4.18 set community... 156 4.19 set dampening... 159 4.20 set extcommunity... 160 4.21 set ip next-hop...162 4.22 set local-preference... 163 4.23 set metric... 164 4.24 set metric-type...166 4.25 set origin...167 4.26 set originator-id... 169 4.27 set tag... 170 4.28 set vpnv4 next-hop... 171 4.29 set weight... 173 4.30 show route-map...174 5 Prefix-list Commands... 176 5.1 ip prefix-list...176 5.2 ip prefix-list description... 179 5.3 ip prefix-list sequence-number...180 5.4 show ip prefix-list... 181 5.5 clear ip prefix-list... 182 6 Policy-Based Routing Commands...184 6.1 ip policy route-map... 184 6.2 show ip policy route-map...185 6.3 show resource pbr... 186

1 IP Unicast-Routing Commands 1.1 ip address To set a primary or secondary IP address for an interface, use the ip address command in interface configuration mode. To remove an IP address or disable IP processing, use the no form of this command. ip address (ADDRESS WILDCARD-MASK ADDRESS/PREFIX-LENGTH) (secondary ) ADDRESS WILDCARD-MASK PREFIX-LENGTH secondary IPv4 address Mask for the associated IP subnet Prefix length of the address (Optional) Specifies that the configured address is a secondary IP address. If this keyword is omitted, the configured address is the primary IP address Interface Configuration No IP address is defined for the interface. 7

An interface can have one primary IP address and multiple secondary IP addresses. Packets generated by the switch always use the primary IP address. Therefore, all switches and access servers on a segment should share the same primary network number. Hosts can determine subnet masks using the Internet Control Message Protocol (ICMP) mask request message. Switch respond to this request with an ICMP mask reply message. You can disable IP processing on a particular interface by removing its IP address with the no ip address command. If the software detects another host using one of its IP addresses, it will print an error message on the console. The optional secondary keyword allows you to specify up to 15 secondary addresses. Secondary addresses are treated like primary addresses, except the system never generates datagrams other than routing updates with secondary source addresses. IP broadcasts and Address Resolution Protocol (ARP) requests are handled properly, as are interface routes in the IP routing table. Secondary IP addresses can be used in a variety of situations. The following are the most common applications: There may not be enough host addresses for a particular network segment. For example, your subnet allows up to 254 hosts per logical subnet, but on one physical subnet you need 300 host addresses. Using secondary IP addresses on the switches or access servers allows you to have two logical subnets using one physical subnet. Many older networks were built using Level 2 bridges. The judicious use of secondary addresses can aid in the transition to a subnet and router-based network. Switches on an older, bridged segment can be easily made aware that many subnets are on that segment. Two subnets of a single network might otherwise be separated by another network. This situation is not permitted when subnets are in use. In these instances, the first network is extended, or layered on top of the second network using secondary addresses. 8

In the following example, 10.108.1.27 is the primary address and 192.31.7.17 and 192.31.8.17 are secondary addresses for eth-0-1: Switch(config)# interface eth-0-1 Switch(config-if)# ip address 10.108.1.27 255.255.255.0 Switch(config-if)# ip address 192.31.7.17/24 secondary Switch(config-if)# ip address 192.31.8.17 255.255.255.0 secondary 1.2 ip icmp error-interval To set the interval of ICMP error messages generated by the switch, use the ip icmp error-interval command in global configuration mode. To restore the default value, use the no form of this command. ip icmp error-interval INTERVAL INTERVAL The interval in milliseconds. The range is 0 to 2147483647 milliseconds Global Configuration 9

is 1000 milliseconds. In the following example, user sets the error interval to 10 seconds, which means only one ICMP error message was generated per 10 seconds: Switch(config)# ip icmp error-interval 10000 ip redirects ip unreachables 1.3 ip redirects To enable send the ICMP redirect messages generated by the switch, use the ip redirects command in interface configuration mode. To restore the default value, use the command ip redirects. ip redirects no ip redirects Interface Configuration 10

IP redirect is enabled by default. In the following example, users disable to send the ICMP redirect message: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip address 10.10.10.1/24 Switch(config-if)# no ip redirects ip unreachables ip icmp error-interval 1.4 ip unreachables To enable send the ICMP unreachable messages generated by the switch, use the ip unreachable command in interface configuration mode. To restore the default value, use ip unreachable command. ip unreachables no ip unreachables 11

Interface Configuration IP unreachable is enabled by default. In the following example, users disable to send the ICMP unreachable message: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip address 10.10.10.1/24 Switch(config-if)# no ip unreachables ip redirects ip icmp error-interval 1.5 ip verify unicast reverse-path To enable RPF check to the interface, use the command ip verify unicast reverse-path in interface configuration mode. To restore the default value, use the no form of this command. ip verify unicast reverse-path no ip verify unicast reverse-path 12

Interface Configuration RPF check is disabled by default. In the following example, users enable RPF check in interface eth-0-1: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip address 10.10.10.1/24 Switch(config)# ip verify unicast reverse-path ip redirects ip icmp error-interval 1.6 router-id (global) To use a fixed router ID for all routing protocols, use the router-id command in global configuration mode. To let switch select the router ID automatically, use the no form of this command. router-id IP- ADDRESS 13

IP-ADDRESS Router ID in IP address format Global Configuration No router ID is defined. You can configure an arbitrary value in the IP address format for each switch. However, each router ID must be unique. The following example specifies a fixed router-id: Switch(config)# router-id 1.1.1.1 router-id (router) 1.7 ip route To establish static routes, use the ip route command in global configuration mode. To remove static routes, use the no form of this command. ip route (VRF NAME ) (PREFIX MASK PREFIX/PREFIX-LENGTH) NH-ADDRRESS (DISTANCE ) 14

VRF NAME PREFIX MASK PREFIX-LENGTH NH-ADDRESS DISTANCE VRF instance name IP route prefix for the destination Prefix mask for the destination Prefix length for the destination IP address of the next hop that can be used to reach that network (Optional) An administrative distance. The default administrative distance for a static route is 1 Global Configuration No static routes are established. The establishment of a static route is appropriate when the switch cannot dynamically build a route to the destination. The following example routes packets for network 172.31.0.0 to a switch at 172.31.6.6: Switch(config)# ip route 172.31.0.0 255.255.0.0 172.31.6.6 show ip route 1.8 show ip route To display the current state of the routing table, use the show ip route command in user EXEC or privileged EXEC mode. 15

show ip route (VRF NAME ) (IP-ADDRESS PREFIX/PREFIX-LENGTH PROTOCOL ) VRF NAME IP-ADDRESS PREFIX PREFIX-LENGTH PROTOCOL VRF instance name (Optional) Address about which routing information should be displayed IP route prefix Prefix length for the route (Optional) The name of a routing protocol, or the keyword connected, static, or summary. If you specify a routing protocol, use one of the following keywords: bgp, ospf, and rip. User EXEC Privileged EXEC You can display all active dynamic and static routes with both the show ip route and show ip route static commands after these active routes are added in the main routing table. The following is sample output from the show ip route command when entered without an address: Switch# show ip route Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP O - OSPF, IA - OSPF inter area 16

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 [*] - [AD/Metric] * - candidate default O 1.1.1.0/24 [110/2] via 10.10.1.1, eth-0-23, 00:34:17 O 2.2.2.0/24 [110/3] via 10.10.1.1, eth-0-23, 00:17:26 C 10.10.1.0/24 is directly connected, eth-0-23 C 10.10.1.23/32 is in local loopback, eth-0-23 O 10.10.2.0/24 [110/2] via 10.10.1.1, eth-0-23, 00:17:26 O 10.10.3.0/24 [110/3] via 10.10.1.1, eth-0-23, 00:17:26 ip route show ip route database 1.9 show ip route database To display the Routing Information Base (RIB), use the show ip route database command in user EXEC or privileged EXEC mode. show ip route database (VRF NAME ) (PROTOCOL ) VRF NAME PROTOCOL VRF instance name (Optional) The name of a routing protocol, or the keyword connected, static, or summary. If you specify a routing protocol, use one of the following keywords: bgp, ospf, and rip. User EXEC Privileged EXEC 17

You can display all active dynamic static routes with both the show ip route database and show ip route database static commands after these active routes are added in the Routing Information Base (RIB). The following is sample output from the show ip route database command: Switch# show ip route database Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 [*] - [AD/Metric] > - selected route, * - FIB route, p - stale info O *> 1.1.1.0/24 [110/2] via 10.10.1.1, eth-0-23, 00:48:58 O *> 2.2.2.0/24 [110/3] via 10.10.1.1, eth-0-23, 00:32:07 S 6.6.6.0/24 [1/0] via 3.3.3.3 inactive C *> 10.10.1.0/24 is directly connected, eth-0-23 C *> 10.10.1.23/32 is in local loopback, eth-0-23 O *> 10.10.2.0/24 [110/2] via 10.10.1.1, eth-0-23, 00:32:07 O *> 10.10.3.0/24 [110/3] via 10.10.1.1, eth-0-23, 00:32:07 ip route show ip route 1.10 show ip protocols To display the parameters and current state of the active routing protocol process, use the show ip protocols command in privileged EXEC mode. 18

show ip protocols (vrf NAME PROTOCOL ) VRF NAME PROTOCOL VRF instance name (Optional) The name of a routing protocol, or the keyword connected, static, or summary. If you specify a routing protocol, use one of the following keywords: bgp, ospf, and rip. User EXEC Privileged EXEC The information displayed by the show ip protocols command is useful in debugging routing operations. Information in the Routing Information Sources field of the show ip protocols output can help you identify a switch suspected of delivering bad routing information. The following is sample output from the show ip protocols command: Switch# show ip protocols Routing Protocol is "ospf 0" Redistributing: Routing for Networks: 3.3.3.0/24 10.10.1.0/24 10.10.4.0/24 Distance: (default is 110) 19

show ip route 1.11 show ip route summary To display the total route count and different types of route count, use the show ip route summary command in privileged EXEC mode. show ip route (vrf NAME ) summary VRF NAME VRF instance name User EXEC Privileged EXEC The following is sample output from the show ip route summary command: Switch# show ip route summary IP routing table name is -IP-Routing-Table(0) IP routing table maximum-paths is 8 20

Route source networks connected 2 static 1 Total 3 show ip route 1.12 show ip route add-fib-fail Use this command to display the routes which can not forward packet because of TCAM resource full. Use the show ip route add-fib-fail command in privileged EXEC mode. show ip route add-fib-fail Privileged EXEC If both of the command line show ip route and show ip route add-fib-file could show the same route. It represents that the route is not able to inset into the Forwarding Information Table(FIB) due to the hareware resource limit, this route is not able to forward any packets. You could delete and reconfigure this routing when some hardware resource is free. The following is sample output from the show ip route add-fib-fail command: Switch# show ip route add-fib-fail ====================================== 21

VRF Route default 1.1.1.1/32 default 1.1.1.0/24 test 2.2.2.2/32 test 2.2.2.0/24 show ip route 1.13 max-static-routes To configure the maximum static routes in system, use the max-static-routes command in global configuration mode. To configure the maximum static routes to default value, use the no form of this command. max-static-routes COUNT no max-static-routes COUNT COUNT The range is <1-65535>, default value is 1024 Global Configuration 1024 22

Users should not configure the maximum static routes more than system profile of FIB. Also, users should not configure the maximum static routes less than the current static routes count. The following example displays how to change maximum static routes to 10. Switch# confi terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# max-static-routes 10 show ip route summary 1.14 show resource fib Use this command to display the resources used by routes. show resource fib Privileged EXEC. 23

The following is sample output from the show resource fib command: Switch# show resource fib RIBFIB Resource Used Capability ============================================================= Indirect Routes 0 6144 Host Routes 0 3072 Static Routes 0 1024 IPv6 Indirect routes 0 2048 IPv6 Host routes 0 1024 IPv6 Static routes 0 1024 show ip route summary 24

2 RIP Commands 2.1 default-information originate (RIP) To generate a default route into Routing Information Protocol (RIP), use the default-information originate command in router configuration mode. To disable this feature, use the no form of this command. default-information originate (route-map ) no default-information originate route-map Route map reference Router Configuration This command is disabled by default. The route orginated will only be learned by RIP neighbor, and this route is not configured in FIB. 25

The following example originates a default route (0.0.0.0/0) over a certain interface when 192.168.0.0/24 is present. Switch(config)# router rip Switch(config-router)# version 2 Switch(config-router)# network 192.168.16.0/24 Switch(config-router)# default-information originate 2.2 default-metric (RIP) To set default metric values for Routing Information Protocol (RIP), use the default-metric command in router configuration mode. To return to the default state, use the no form of this command. default-metric NUMBER-VALUE no default-metric NUMBER-VALUE metric value is 1, the number range is 1 to 16 Router Configuration 26

By default, the metric is set to 1. The default-metric command is used in conjunction with the redistribute router configuration command to cause the current routing protocol to use the same metric value for all redistributed routes. A default metric helps solve the problem of redistributing routes with incompatible metrics. Whenever metrics do not convert, using a default metric provides a reasonable substitute and enables the redistribution to proceed. The following example shows a switch using both the RIP and the Open Shortest Path First (OSPF) routing protocols. The example advertises OSPF-derived routes using RIP and assigns the OSPF-derived routes a RIP metric of 10. Switch(config)#router rip Switch(config-router)#default-metric 10 Switch(config-router)#redistribute ospf redistribute (RIP) 2.3 distance (RIP) To define an administrative distance for routes that are inserted into the routing table, use the distance command in router configuration mode. To return the administrative distance to its default distance definition, use the no form of this command. distance DISTANCE PREFIX/PREFIX-LENGTH (ACCESSS-LIST-NAME ) 27

no distance DISTANCE PREFIX PREFIX-LENGTH ACCESSS-LIST-NAME Administrative distance, an integer from 1 to 255 (routes with a distance value of 255 are not installed in the routing table) IP prefix for the originator of the imcoming routing updates Prefix length for the originator (Optional) Named access list to be applied to incoming routing updates Router Configuration By default, the distance is 120. Route Source Connected interface 0 Static route 1 External Border Gateway Protocol (ebgp) Distance 20 Open Shortest Path First (OSPF) 110 Routing Information Protocol (RIP) 120 Internal BGP 200 Unknown 255 An administrative distance is a rating of the trustworthiness of a routing information source, such as an individual switch or a group of switches. Numerically, an administrative distance is an integer from 0 to 255. In general, the higher the value, the lower the trust rating. An 28

administrative distance of 255 means the routing information source cannot be trusted at all and should be ignored. When this command is configured, it is applied when a network is being inserted into the routing table. It filters routing updates according to the IP address of the switch that supplies the routing information. It could be used, for example, to filter possibly incorrect routing information from switches that are not under your administrative control. The optional access list name is used to filter router entries in routing update. The following is sample output from the distance command: Switch(config)#router rip Switch(config-router)# network 10.10.0.0/24 Switch(config-router)# network 20.20.0.0/24 Switch(config-router)#distance 200 20.20.0.0/24 distance (OSPF) 2.4 ip rip authentication To enable authentication for Routing Information Protocol (RIP) Version 2 packets and to specify the set of keys that can be used on an interface, use the ip rip authentication command in interface configuration mode. To prevent authentication, use the no form of this command. ip rip authentication (key-chain NAME-OF-CHAIN string STRING) no ip rip authentication (key-chain string) 29

key-chain NAME-OF-CHAIN string STRING Enables authentication and specifies the group of keys that are valid Enables authentication and specifies the authentication string Interface Configuration No authentication is provided for RIP packets. If neither key chain is configured with the key-chain command nor string is configured with the authentication string command, no authentication is performed on the interface (not even the default authentication). Key chain and authentication string can not be configured on the same interface. If you want configure one, make sure the other is not configured. The following example configures the interface to accept and send any key belonging to the key chain named trees: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip rip authentication key-chain trees ip rip authentication mode 30

2.5 ip rip authentication mode To specify the type of authentication used in Routing Information Protocol (RIP) Version 2 packets, use the ip rip authentication mode command in interface configuration mode. To restore clear text authentication, use the no form of this command. ip rip authentication mode (text md5) no ip rip authentication mode text md5 Normal text authentication Keyed Message Digest 5 (MD5) authentication Interface Configuration Clear text authentication is provided for RIP packets. RIP Version 1 does not support authentication. The following example configures the interface to use MD5 authentication: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip rip authentication mode md5 31

ip rip authentication key-chain 2.6 ip rip receive version To specify a Routing Information Protocol (RIP) version to receive on an interface basis, use the ip rip receive version command in interface configuration mode. To follow the global version rules, use the no form of this command. ip rip receive version [1 2] no ip rip receive version 1 (Optional) Accepts only RIP Version 1 packets on the interface 2 (Optional) Accepts only RIP Version 2 packets on the interface Interface Configuration Only RIPv2 packet should be received. Use this command to override the default behavior of RIP as specified by the version command. This command applies only to the interface being configured. You can configure the interface to accept both RIP versions. 32

The following example configures the interface to receive both RIP Version 1 and Version 2 packets: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip rip receive version 1 2 version (RIP) 2.7 ip rip receive-packet To enable the interface to receive Routing Information Protocol (RIP) packets, use the ip rip receive-packet command in interface configuration mode. To disable to receive RIP packets, use the no form of this command. ip rip receive-packet no ip rip receive-packet Interface Configuration Receive packet is enabled by default. Use this command to enable or disable the capability of receiving RIP packets, whether the network of this interface is added into RIP or not. 33

The following example enables the reception of RIP packets: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip rip receive-packet ip rip receive version 2.8 ip rip send version To specify a Routing Information Protocol (RIP) version to send on an interface basis, use the ip rip send version command in interface configuration mode. To follow the global version rules, use the no form of this command. ip rip send version (( [1 2]) 1-compatible) no ip rip send version 1 (Optional) Sends only RIP Version 1 packets out the interface 2 (Optional) Sends only RIP Version 2 packets out the interface 1-compatible (Optional) Sends RIP Version 2 packets out the interface with broadcast IP address Interface Configuration 34

Only RIPv2 packet should be send. Use this command to override the default behavior of RIP as specified by the version command. This command applies only to the interface being configured. You can configure the interface to send both RIP versions. The following example configures the interface to send both RIP Version 1 and Version 2 packets: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip rip send version 1 2 ip rip receive version 2.9 ip rip send-packet To enable the interface to send Routing Information Protocol (RIP) packets, use the ip rip send-packet command in interface configuration mode. To disable to send RIP packets, use the no form of this command. ip rip send-packet no ip rip send-packet 35

Interface Configuration Send packet is enabled by default. Use this command to enable or disable the capability of sending RIP packets, whether the network of this interface is added into RIP or not. The following example enables the transmission of RIP packets: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip rip send-packet ip rip send version 2.10 ip rip split-horizon To enable the split horizon mechanism for Routing Information Protocol (RIP), use the ip rip split-horizon command in interface configuration mode. To disable the split horizon mechanism, use the no form of this command. ip rip split-horizon (poisoned ) no ip rip split-horizon 36

poisoned Split horizon with poisoned reverse Interface Configuration This command is enabled with poisoned reverse by default. In general, changing the state of the default for the ip rip split-horizon command is not recommended, unless you are certain that your application requires a change in order to properly advertise routes. The following example enables split horizon without poisoned reverse: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip rip split- horizon 2.11 network (RIP) To specify a list of networks for the Routing Information Protocol (RIP) routing process, use the network command in router configuration mode. To remove an entry, use the no form of this command. 37

network (PREFIX/PREFIX-LENGTH INTERFACE-ID) no network (PREFIX/PREFIX-LENGTH INTERFACE-ID) PREFIX PREFIX-LENGTH INTERFACE-ID IP route prefix for the network Prefix length for the network The interface name for the network. Router Configuration No networks are specified. There is no limit to the number of network commands you can use on the switch. RIP routing updates will be sent and received only through interfaces on this network. RIP sends updates to the interfaces in the specified networks. Also, if the network of an interface is not specified, the interface will not be advertised in any RIP update. The following example defines RIP as the routing protocol to be used on all interfaces connected to networks 10.99.0.0/16 and 192.168.7.0/24: Switch(config)#router rip Switch(config-router)# network 10.99.0.0/16 Switch(config-router)# network 192.168.7.0/24 38

router rip 2.12 neighbor (RIP) To define a neighboring switch with which to exchange routing information, use the neighbor command in router configuration mode. To remove an entry, use the no form of this command. neighbor IP-ADDRESS no neighbor IP-ADDRESS IP-ADDRESS IP address of a peer switch with which routing information will be exchanged Router Configuration No neighboring switches are defined. This command permits the point-to-point (non-broadcast) exchange of routing information. When it is used in combination with the passive-interface router configuration command, routing information can be exchanged between a subset of switches and access servers on a LAN. Multiple neighbor commands can be used to specify additional neighbors or peers. 39

In the following example, RIP updates are sent to all interfaces on network 10.108.0.0 except eth-0-1. However, in this case a neighbor switch configuration command is included. This command permits the sending of routing updates to specific neighbors. One copy of the routing update is generated per neighbor. Switch(config)#router rip Switch(config-router)# network 10.108.0.0/16 Switch(config-router)# passive-interface eth-0-1 Switch(config-router)# neighbor 10.108.20.4 router rip 2.13 offset-list (RIP) To add an offset to incoming and outgoing metrics to routes learned via Routing Information Protocol (RIP), use the offset-list command in router configuration mode. To remove an offset list, use the no form of this command. offset-list ACCESSS-LIST-NAME (in out) METRIC-OFFSET (INTERFACE-ID ) no offset-list (in out) (INTERFACE-ID ) ACCESSS-LIST-NAME in out METRIC- OFFSET Named access list to be applied Applies the access list to incoming metrics Applies the access list to outgoing metrics Positive offset to be applied to metrics for networks matching the access list. If the offset is 0, no action is taken 40

INTERFACE-ID Interface name to which the offset list is applied Router Configuration This command is disabled by default. The offset value is added to the routing metric. An offset list with an interface is considered extended and takes precedence over an offset list that is not extended. Therefore, if an entry passes the extended offset list and the normal offset list, the offset of the extended offset list is added to the metric. In the following example, the switch applies an offset of 10 to the delay component of a switch only to access list 21: Switch(config)# router rip Switch(config-router)# offset-list 21 out 10 2.14 passive-interface (RIP) To disable sending routing updates for the Routing Information Protocol (RIP) on an interface, use the passive-interface command in router configuration mode. To re-enable the sending of routing updates, use the no form of this command. 41

passive-interface INTERFACE-ID no passive-interface INTERFACE-ID INTERFACE-ID The interface name Router Configuration Routing updates are sent on the interface. If you disable the sending of routing updates on an interface, the particular subnet will continue to be advertised to other interfaces, and updates from other switches on that interface continue to be received and processed. The following example sets the interface eth-0-1 as passive: Switch(config)#router rip Switch(config-router)# network 10.108.0.0/16 Switch(config-router)# passive-interface eth-0-1 router rip 42

2.15 redistribute (RIP) To redistribute routes from one routing domain into RIP routing domain, use the redistribute command in router configuration mode. To disable redistribution, use the no form of this command. redistribute PROTOCOL {[metric VALUE] route-map WORD} no redistribute PROTOCOL PROTOCOL metric VALUE route-map WORD (Optional) The name of a routing protocol, or the keyword connected, or static. If you specify a routing protocol, use one of the following keywords: bgp, and ospf (Optional) When redistributing other routing process to the RIP process, the default metric is 1 if no metric value is specified Route map reference Pointer to route-map entries Router Configuration Route redistribution is disabled. Metric metric-value: 1 The metric value specified in the redistribute command supersedes the metric value specified using the default-metric command. 43

The following examples redistribute the static routes into RIP with metric 10: Switch(config)#router rip Switch(config-router)# network 10.108.0.0/16 Switch(config-router)#redistribute static metric 10 default-metric 2.16 router rip To configure the Routing Information Protocol (RIP) routing process, use the router rip command in global configuration mode. To turn off the RIP routing process, use the no form of this command. router rip no router rip Global Configuration No RIP routing process is defined. 44

The following example shows how to begin the RIP routing process: Switch(config)# router rip network (RIP) 2.17 timers basic (RIP) To adjust Routing Information Protocol (RIP) network timers, use the timers basic command in router configuration mode. To restore the default timers, use the no form of this command. timers basic UPDATE TIMEOUT INVALID no timers basic UPDATE TIMEOUT INVALID Rate (in seconds) at which updates are sent. This is the fundamental timing parameter of the routing protocol Time (in seconds) after which a route is declared invalid without updates that refresh the route. The route then enters into an invalid state and is not used for forwarding packets. It is marked inaccessible and advertised as unreachable Time after which an invalid route is removed from RIP routing database Router Configuration 45

update: 30 seconds timeout: 180 seconds invalid: 120 seconds The basic timing parameters for RIP are adjustable. Because RIP is executing a distributed, asynchronous routing algorithm, these timers must be the same for all switches and access servers in the network. In addition, an address family can have explicitly specified timers that apply to that address-family only. The timers basic command must be specified for an address family or the system defaults for the timers basic command are used regardless of what is configured for RIP routing. The following example sets updates to be broadcast every 5 seconds. If a switch is not heard from in 15 seconds, the route is declared unusable. And after 15 seconds the invalid route will be removed from RIP routing database. Switch(config)#router rip Switch(config-router)#timers basic 5 15 15 2.18 show ip rip database Use this command to display RIP information database. 46

show ip rip database (vrf ) vrf VPN Routing/Forwarding instance Privileged EXEC The following is sample output from the show ip rip database command. Switch# show ip rip database Codes: R - RIP, Rc - RIP connected, Rs - RIP static, K - Kernel, C - Connected, S - Static, O - OSPF, I - IS-IS, B - BGP Network Next Hop Metric From If Time Rc 1.1.1.0/24 1 eth-0-1 Rc 2.2.2.0/24 1 eth-0-2 Rc 10.0.0.0/24 1 vlan10 show ip rip interface 47

2.19 show ip rip interface To display summary information of Routing Information Protocol (RIP) for a specific interface, use the show ip rip interface command in privileged EXEC mode. show ip rip interface (INTERFACE-ID ) INTERFACE-ID The interface name Privileged EXEC The following is sample output from the show ip rip interface command. Switch# show ip rip interface eth-0-1 eth-0-1 is up, line protocol is up Routing Protocol: RIP Receive RIP packets Send RIP packets Passive interface: Disabled Split horizon: Enabled with Poisoned Reversed IP interface address: 1.1.1.1/24 48

show ip rip database 2.20 version (RIP) To specify a Routing Information Protocol (RIP) version used globally by the router, use the version command in router configuration mode. To restore the default value, use the no form of this command. version (1 2) no version 1 Specifies RIP Version 1 2 Specifies RIP Version 2 Router Configuration System receives RIP Version 1 and Version 2 packets, but sends only Version 2 packets. To specify RIP versions used on an interface basis, use the ip rip receive version and ip rip send version commands. The following example enables the software to send and receive RIP Version 2 packets: 49

Switch(config)# router rip Switch(config-router)# version 2 ip rip receive version ip rip send version 2.21 distribute-list To Filter networks in routing updates, use the distribute-list command in router configuration mode. To restore the default value, use the no form of this command. distribute-list (prefix ) WORD (in out) no distribute-list (prefix ) WORD (in out) prefix WORD in out Filter prefixes in routing update Access-list name Filter incoming routing updates Filter outgoing routing updates Router Configuration 50

The following is sample output from the distribute-list command: Switch(config)# router rip Switch(config-router)# distribute-list prefix 1 in ip prefix-list 2.22 address-family To Enter Address Family command mode, use the Enter Address Family command mode command in router configuration mode. address-family ipv4 vrf WORD WORD VPN Routing/Forwarding instance name Router Configuration 51

The following example shows how to enter Address Family command mode: Switch(config-router)# address-family ipv4 vrf 1 2.23 show ip protocol rip To show Routing Information Protocol (RIP), use the show ip protocol rip command in in privileged EXEC mode. show ip protocol rip Privileged EXEC The following is sample output from the show ip rip interface command. 52

Switch# show ip protocol rip Routing protocol is "rip" Sending updates every 30 seconds with +/-5 seconds Timeout after 180 seconds, Garbage collect after 120 seconds Outgoing update filter list for all interface is not set Incoming update filter list for all interface is not set redistribution metric is 1 Redistributing: connected metric default version control: send version 2, receive version 2 Interface Send Recv Key-chain Routing for Networks: 10.10.11.0/24 Routing Information Sources: Gateway Distance Last Update Bad Packets Bad Routes Number of routes (including connected): 0 Distance: (default is 120) 2.24 debug rip Use this command to specify the options for the displayed debugging information for RIP events, RIP packets. Use the no parameter with this command to disable all debugging. debug rip (all events PACKET ) no debug rip (all events PACKET ) no debug all (rip ) all events PACKET recv send All RIP debug information RIP events debug information is displayed packet (recv send) (detail) Specifies RIP packets only Specifies that information for received packets be displayed Specifies that information for sent packets be displayed 53

detail Displays detailed information for the sent or received packet Privileged EXEC Disabled The following example displays information about the rip packets that are received and sent out from the connected router. Switch# debug rip packet show debugging rip 2.25 show debugging rip Use this command to display the RIP debugging status for these debugging options: nsm debugging, RIP event debugging, RIP packet debugging. show debugging rip Privileged EXEC 54

Use this command to display the debug status of RIP. The following is sample output from the show debugging rip command. Switch# show debugging rip RIP debugging status: RIP packet debugging is on debug rip 2.26 show ip rip database database-summary Use this command to display the statistics for RIP routes. show ip rip database database-summary (vrf NAME ) vrf NAME VPN Routing/Forwarding instance Privileged EXEC 55

The following is sample output from the show ip rip database database-summary command. Switch# show ip rip database database-summary Type Count RIP connected 1 RIP 1 Total 2 show ip rip database 2.27 show resource rip Use this command to display the route resources used by RIP protocol. show resource rip Privileged EXEC 56

The following is sample output from the show resource rip command. Switch# show resource rip RIP Resource Used Capability ================================================ Routes 2 6144 show ip rip database 57

3 OSPF Commands 3.1 area authentication To enable authentication for an Open Shortest Path First (OSPF) area, use the area authentication command in router configuration mode. To remove an authentication specification of an area or a specified area from the configuration, use the no form of this command. area AREA-ID authentication (message-digest ) no area AREA-ID authentication AREA-ID message-digest Identifier of the area for which authentication is to be enabled. The identifier can be specified as either a decimal value or an IP address (Optional) Enables Message Digest 5 (MD5) authentication on the area specified by the area-id argument Router Configuration Type 0 authentication (no authentication) 58

Specifying authentication for an area sets the authentication to Type 1 (simple password) as specified in RFC 1247. If this command is not included in the configuration file, authentication of Type 0 (no authentication) is assumed. The authentication type must be the same for all routers and access servers in an area. The authentication password for all OSPF routers on a network must be the same if they are to communicate with each other via OSPF. Use the ip ospf authentication-key interface command to specify this password. If you enable MD5 authentication with the message-digest keyword, you must configure a password with the ip ospf message-digest-key interface command. To remove the authentication specification for an area, use the no form of this command with the authentication keyword. The following example mandates authentication for areas 0 and 10.0.0.0 of OSPF routing process 201. Authentication keys are also provided. Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip address 192.168.251.201/24 Switch(config-if)# ip ospf authentication-key adcdefgh Switch(config)# interface eth-0-2 Switch(config-if)# no switchport Switch(config-if)# ip address 10.56.0.201/16 Switch(config-if)# ip ospf authentication-key ijklmnop Switch(config)#router ospf 201 Switch(config-router)# network 10.0.0.0 0.255.255.255 area 10.0.0.0 59

Switch(config-router)# network 192.168.0.0/16 area 0 Switch(config-router)#area 10.0.0.0 authentication Switch(config-router)#area 0 authentication ip ospf authentication-key 3.2 area default-cost To specify a cost for the default summary route sent into a stub, use the area default-cost command in router configuration mode. To remove the assigned default route cost, use the no form of this command. area AREA-ID default-cost COST no area AREA-ID default-cost AREA-ID COST Identifier of the area for which authentication is to be enabled. The identifier can be specified as either a decimal value or an IP address Cost for the default summary route used for a stub. The acceptable value is a 24-bit number Router Configuration COST: 1 60

The command is used only on an Area Border Router (ABR) attached to a stub. There are two stub area router configuration commands: the stub and default-cost options of the area command. In all routers and access servers attached to the stub area, the area should be configured as a stub area using the stub option of the area command. Use the default-cost option only on an ABR attached to the stub area. The default-cost option provides the metric for the summary default route generated by the ABR into the stub area. The following example assigns a default cost of 20 to stub network 10.0.0.0: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip address 10.56.0.201/16 Switch(config)#router ospf 201 Switch(config-router)# network 10.0.0.0/8 area 10.0.0.0 Switch(config-router)#area 10.0.0.0 stub Switch(config-router)#area 10.0.0.0 default-cost 20 3.3 area filter-list To filter prefixes advertised in type 3 link-state advertisements (LSAs) between Open Shortest Path First (OSPF) areas of an Area Border Router (ABR), use the area filter-list command in router configuration mode. To change or cancel the filter, use the no form of this command. 61

area AREA-ID filter-list (access ACCESSS-LIST-NAME prefix PREFIX-LIST-NAME ) (in out) no area AREA-ID filter-list (access ACCESSS-LIST-NAME prefix PREFIX-LIST-NAME ) (in out) AREA-ID ACCESSS ACCESSS-LIST-NAME prefix PREFIX-LIST-NAME in out Identifier of the area for which authentication is to be enabled. The identifier can be specified as either a decimal value or an IP address Indicates that an accesslist is used Name of an access list Indicates that a prefix list is used Name of a prefix list Access list or prefix list applied to prefixes advertised to the specified area from other areas Access list or prefix list applied to prefixes advertised out of the specified area to other areas Router Configuration This command has no default behavior. With this feature enabled in the in direction, all type 3 LSAs originated by the ABR to this area, based on information from all other areas, are filtered by the prefix list. Type 3 LSAs that were originated as a result of the area range command in another area are treated like 62

any other type 3 LSA that was originated individually. Any prefix that does not match an entry in the prefix list is implicitly denied. With this feature enabled in the out direction, all type 3 LSAs advertised by the ABR, based on information from this area to all other areas, are filtered by the prefix list. If the area range command has been configured for this area, type 3 LSAs that correspond to the area range are sent to all other areas, only if at least one prefix in the area range matches an entry in the prefix list. If all specific prefixes are denied by the prefix list, type 3 LSAs that correspond to the area range command will not be sent to any other area. Prefixes that are not permitted by the prefix list are implicitly denied. The following example filters prefixes that are sent from all other areas to area 1: Switch(config)# router ospf 201 Switch(config-router)# area 1 filter-list prefix AREA_1 in area range 3.4 area range To consolidate and summarize routes at an area boundary, use the area range command in router configuration mode. To disable this function, use the no form of this command. area AREA-ID range (ADDRESS MASK ADDRESS/PREFIX-LENGTH) (advertise not-advertise ) no area area-id range {ip-address mask ip-address/prefix-length} 63

AREA-ID ADDRESS PREFIX-LENGTH advertise not-advertise Identifier of the area for which authentication is to be enabled. The identifier can be specified as either a decimal value or an IP address IPv4 address Prefix length of the address Advertise this range (default) Do not advertise this range Router Configuration This command is disabled by default. The area range command is used only with Area Border Routers (ABRs). It is used to consolidate or summarize routes for an area. The result is that a single summary route is advertised to other areas by the ABR. Routing information is condensed at area boundaries. External to the area, a single route is advertised for each address range. This behavior is called route summarization. Multiple area router configuration commands specifying the range option can be configured. Thus, OSPF can summarize addresses for many different sets of address ranges. The following example specifies one summary route to be advertised by the ABR to other areas for all subnets on network 10.0.0.0 and for all hosts on network 192.168.110.0: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip address 192.168.110.201/24 64

Switch(config)# interface eth-0-2 Switch(config-if)# no switchport Switch(config-if)# ip address 192.168.120.201/24 Switch(config)# interface eth-0-3 Switch(config-if)# no switchport Switch(config-if)# ip address 10.0.0.0/8 Switch(config)# router ospf 201 Switch(config-router)# network 192.168.110.0/24 area 0 Switch(config-router)#area 10.0.0.0 range 10.0.0.0/8 Switch(config-router)#area 0 range 192.168.110.0 255.255.0.0 3.5 area stub To define an area as a stub area, use the area stub command in router configuration mode. To disable this function, use the no form of this command. area AREA-ID stub (no-summary ) no area AREA-ID stub (no-summary ) AREA-ID no-summary Identifier of the area for which authentication is to be enabled. The identifier can be specified as either a decimal value or an IP address (Optional) Prevents an Area Border Router (ABR) from sending summary link advertisements into the stub area 65

Router Configuration No stub area is defined. You must configure the area stub command on all routers and access servers in the stub area. Use the area router configuration command with the default-cost keyword to specify the cost of a default internal router sent into a stub area by an ABR. There are two stub area router configuration commands: the stub and default-cost options of the area router configuration command. In all routers attached to the stub area, the area should be configured as a stub area using the stub keyword of the area command. Use the default-cost keyword only on an ABR attached to the stub area. The default-cost keyword provides the metric for the summary default route generated by the ABR into the stub area. To further reduce the number of link-state advertisements (LSAs) sent into a stub area, you can configure the no-summary keyword on the ABR to prevent it from sending summary LSAs (LSA type 3) into the stub area. The following example assigns a default cost of 20 to stub network 10.0.0.0: Switch(config)# interface eth-0-1 Switch(config-if)# no switchport Switch(config-if)# ip address 10.56.0.201/16 Switch(config)# router ospf 201 Switch(config-router)# network 10.0.0.0/8 area 10.0.0.0 Switch(config-router)#area 10.0.0.0 stub Switch(config-router)#area 10.0.0.0 default-cost 20 66