IP Routing in a Single Area OSPF Network



Similar documents
IP Routing in a RIP Network

Relaying DHCP Packets to a Remote Server

IP Routing Between VLANs

Dynamic LACP Trunking

Link-State Routing Protocols

How To Configure Some Basic OSPF Routing Scenarios. Introduction. Technical Guide. List of terms

Cisco - Configure the 1721 Router for VLANs Using a Switch Module (WIC-4ESW)

Routing Protocols OSPF CHAPTER. The following topics describe supported routing protocols. Topics include OSPF, page 9-1 IS-IS Protocol, page 9-3

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Layer 3 Routing User s Manual

Primary VLAN. This document shows how to view and change the primary VLAN for the HP Procurve Series 2500 Switches:

CCNP CISCO CERTIFIED NETWORK PROFESSIONAL LAB MANUAL

OSPF Configuring Multi-Area OSPF

How To Configure InterVLAN Routing on Layer 3 Switches

Routing with OSPF. Introduction

Network Simulator Lab Study Plan

Abstract. MEP; Reviewed: GAK 10/17/2005. Solution & Interoperability Test Lab Application Notes 2005 Avaya Inc. All Rights Reserved.

Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing

OSPF Version 2 (RFC 2328) Describes Autonomous Systems (AS) topology. Propagated by flooding: Link State Advertisements (LSAs).

Configuring a Gateway of Last Resort Using IP Commands

BGP (Border Gateway Protocol)

Port Trunking. Contents

Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

IP Routing Features. Contents

CCNA 2 v5.0 Routing Protocols Final Exam Answers

Brocade to Cisco Comparisons

IP Routing Configuring RIP, OSPF, BGP, and PBR

Router and Routing Basics

Route Discovery Protocols

VLAN Workshop. Presenter: Paul Eriksson. VLAN Workshop 2009 RoamingNet Sweden ( 1

Interconnecting Cisco Networking Devices Part 2

Quick Note 20. Configuring a GRE tunnel over an IPSec tunnel and using BGP to propagate routing information. (GRE over IPSec with BGP)

ProCurve Networking. Hardening ProCurve Switches. Technical White Paper

Chapter 6 Configuring IP

Table of Contents. Cisco How Does Load Balancing Work?

BRI to PRI Connection Using Data Over Voice

BGP Best Path Selection Algorithm

FSM73xx GSM73xx GMS72xxR Shared access to the Internet across Multiple routing VLANs using a Prosafe Firewall

O /27 [110/129] via , 00:00:05, Serial0/0/1

Configuring the Switch with the CLI-Based Setup Program

Welcome to Todd Lammle s CCNA Bootcamp

Networking. Palo Alto Networks. PAN-OS Administrator s Guide Version 6.0. Copyright Palo Alto Networks

GregSowell.com. Mikrotik Routing

Interconnecting Cisco Network Devices 1 Course, Class Outline

Chapter 12 Configuring VRRP and VRRPE

Cisco Configuring Commonly Used IP ACLs

ICND IOS CLI Study Guide (CCENT)

Example: Advertised Distance (AD) Example: Feasible Distance (FD) Example: Successor and Feasible Successor Example: Successor and Feasible Successor

Configuring RADIUS Server Support for Switch Services

Configuration of HP ProCurve Devices in a Campus Environment Best Practice Document

Advanced Traffic Management Guide. ProCurve Switches Q.10.XX.

Understanding Route Aggregation in BGP

Switching Basics and Intermediate Routing CCNA 3 Labs and Study Guide Allan Johnson

Configuration Examples. D-Link Switches L3 Features and Examples IP Multicast Routing

Lab 7.1.9b Introduction to Fluke Protocol Inspector

IPv6 Diagnostic and Troubleshooting

Cisco Discovery 3: Introducing Routing and Switching in the Enterprise hours teaching time

Port Trunking. Contents

CCNA2 Chapter 11 Practice

21.4 Network Address Translation (NAT) NAT concept

: Interconnecting Cisco Networking Devices Part 2 v1.1

- Advanced IOS Functions -

Configuring Network Address Translation (NAT)

Objectives. Router as a Computer. Router components and their functions. Router components and their functions

How to Configure Cisco 2600 Routers

Chapter 7 Configuring Trunk Groups and Dynamic Link Aggregation

Cisco Configuring Basic MPLS Using OSPF

Release Notes for Version of the HP ProCurve Routing Switch 9304M and 9308M Operating System

HP 5820X & 5800 Switch Series Layer 3 - IP Services. Configuration Guide. Abstract

Configuration IP Routing and Multicast Avaya Ethernet Routing Switch 4500 Series

Skills Assessment Student Training Exam

Juniper Exam JN0-343 Juniper Networks Certified Internet Specialist (JNCIS-ENT) Version: 10.1 [ Total Questions: 498 ]

Introduction to TCP/IP

ZXR /5200 Series

Interoperability between Avaya IP phones and ProCurve switches

- Redundancy and Load Balancing -

Interconnecting Multiple OSPF Areas

Border Gateway Protocol (BGP)

Administrative Distance

Abstract. Avaya Solution & Interoperability Test Lab

Wireless Local Area Networks (WLANs)

Intel Active Management Technology with System Defense Feature Quick Start Guide

Abstract. Avaya Solution & Interoperability Test Lab

NetStream (Integrated) Technology White Paper HUAWEI TECHNOLOGIES CO., LTD. Issue 01. Date

Network Configuration Example

Operating System for Ubiquiti EdgeRouters Release Version: 1.4

GVRP Overview. Overview

Chapter 11 Network Address Translation

Configuring H.323 over Port Network Address Translation (PNAT) for Avaya IP Endpoints using the Avaya SG200 Security Gateway - Issue 1.

Monitoring Routing. Monitoring OSPF LSAs. Type 1 CHAPTER

Simple MPLS network topology for Dynamips/Olive

INTERCONNECTING CISCO NETWORK DEVICES PART 1 V2.0 (ICND 1)

: Interconnecting Cisco Networking Devices Part 2 v2.0 (ICND2)

Chapter 8 Advanced Configuration

Multimedia Traffic Control with IP Multicast (IGMP)

Flow-Based per Port-Channel Load Balancing

MAC Address Management

Understanding Route Redistribution & Filtering

Using OSPF in an MPLS VPN Environment

Transcription:

hp p ro curve 10/ 100- Tx l m o dule J4820A hpprocurve switch 5304XL J4850A hp proc urve 10 / 1 00 -T x l mo d ul e J4 820A hpprocurve switch 5308XL J4819A hp procurve Mini-GBIC xlm o d ule J4 878A hp proc urve Mini -GBIC xl m o dule J4 878A Use xl m o d u l e s o n ly Use xl m o d u l e s o n ly IP Routing in a Single Area OSPF Network The example configurations below provide IP routing between two HP ProCurve 5300XL Switches (Switch A and Switch B) using OSPF as the routing protocol. The two switches are within a single area OSPF domain. Switch A and B configured to provide IP routing between VLANs using only OSPF as the routing protocol. All protocols are switched within each VLAN. Switch B is configured to restrict advertisement of VLAN 40 by OSPF. This configuration example applies to the following products: J4819A HP ProCurve Switch 5308XL J4850A HP ProCurve Switch 5304XL OPSPF Area Switch A VLAN 20 20.20.20.0 IP address 10.10.10.2 xl mo dule VLAN 10 10.10.10.0 link untagged for VLAN 10 IP address 10.10.10.3 xl m o dule VLAN 40 198.168.40.0 Switch B VLAN 30 30.30.30.0 Page 1

WARNING: The example configuration below was created from a factory default configuration on the HP ProCurve 5300XL Switch. The first 3 commands in the sequence of CLI commands given below will first reset the switch back to factory default settings. We recommend saving your current configuration if necessary. Otherwise, skip the first 3 commands. NOTES: 1. The interface port numbers (e.g. interface a1) and the IP address (e.g. 10.10.10.2) may differ in your network, so adjust these values accordingly. 2. The HP ProCurve Switch 5300XL Series (e.g. HP 5304XL), type of module(s), and software version number below may not accurately reflect the device(s) you are configuring. 3. The area 0.0.0.0 command is used to assign the 5300XLSwitches to the single backbone area. 4. The ip ospf area 0.0.0.0 command is used to assign the individual interfaces to the OSPF area. 5. In the example below for Switch B, as soon as the redistribute connected command is issued for a given routing protocol, ALL connected routes are advertised within that routing protocol. The restrict 198.168.40.0/24 command is used in order to keep this directly connected network (e.g. VLAN 40) from being advertised through OSPF to Switch A. 6. In the example below, the redistribute connected command is needed in order for Switch A to learn (via OSPF) the directly connected network (e.g., the 30.30.30.0 network) on Switch B and vice versa. By default the Switch 5300XL will not advertise directly connected OSPF networks. By default the Switch 5300XL will advertise directly connected RIP networks. 7. The configuration examples below were created on software version E.06.01. Page 2

CONFIGURATION COMMANDS: (created on software version E.06.01) Switch A HP ProCurve Switch 5304XL# con HP ProCurve Switch 5304XL(config)# hostname Switch_A Switch_A(config)# vlan 10 Switch_A(vlan-10)# untag a1 Switch_A(vlan-10)# ip address 10.10.10.2/24 Switch_A(vlan-10)# Switch_A(config)# ip routing Switch_A(config)# router ospf Switch_A(ospf)# area 0.0.0.0 Switch_A(ospf)# redistribute connected Switch_A(ospf)# vlan 10 Switch_A(vlan-10)# ip ospf area 0.0.0.0 Switch_A(vlan-10)# vlan 20 Switch_A(vlan-20)# untag b1 Switch_A(vlan-20)# ip address 20.20.20.2/24 Switch B HP ProCurve Switch 5308XL# con HP ProCurve Switch 5308XL(config)# hostname Switch_B Switch_B(config)# vlan 10 Switch_B(vlan-10)# untag a1 Switch_B(vlan-10)# ip address 10.10.10.3/24 Switch_B(vlan-10)# Switch_B(config)# ip routing Switch_B(config)# router ospf Switch_B(ospf)# area 0.0.0.0 Switch_B(ospf)# redistribute connected Switch_B(ospf)# restrict 198.168.40.0/24 Switch_B(ospf)# vlan 10 Switch_B(vlan-10)# ip ospf area 0.0.0.0 Switch_B(vlan-10)# vlan 30 Switch_B(vlan-30)# untag b1 Switch_B(vlan-30)# ip address 30.30.30.2/24 Switch_B(vlan-30)# vlan 40 Switch_B(vlan-40)# untag b4 Switch_B(vlan-40)# ip address 198.168.40.1/24 Page 3

RESULTING CONFIGURATION: Switch A Startup configuration: ; J4850A Configuration Editor; Created on release #E.06.01 hostname "Switch_A" time daylight-time-rule None cdp run module 2 type J4821A module 1 type J4820A ip routing snmp-server community "public" Unrestricted vlan 1 name "DEFAULT_VLAN" untagged A2-A24,B2-B4 ip address dhcp-bootp no untagged A1,B1 vlan 10 name "VLAN10" untagged A1 ip address 10.10.10.2 255.255.255.0 vlan 20 name "VLAN20" untagged B1 ip address 20.20.20.2 255.255.255.0 no aaa port-access authenticator active ip router-id 10.10.10.2 router ospf area backbone redistribute connected vlan 10 ip ospf area backbone Page 4

RESULTING CONFIGURATION: Switch B Startup configuration: ; J4819A Configuration Editor; Created on release #E.06.01 hostname "Switch_B" time daylight-time-rule None cdp run module 2 type J4821A module 1 type J4820A ip routing snmp-server community "public" Unrestricted vlan 1 name "DEFAULT_VLAN" untagged A2-A24,B2-B3 ip address dhcp-bootp no untagged A1,B1,B4 vlan 10 name "VLAN10" untagged A1 ip address 10.10.10.3 255.255.255.0 vlan 30 name "VLAN30" untagged B1 ip address 30.30.30.2 255.255.255.0 vlan 40 name "VLAN40" untagged B4 ip address 198.168.40.1 255.255.255.0 no aaa port-access authenticator active ip router-id 10.10.10.3 router ospf area backbone redistribute connected restrict 198.168.40.0 255.255.255.0 vlan 10 ip ospf area backbone Page 5

VERIFICATION COMMANDS: 1. The following CLI commands can be used to display OSPF information: show ip ospf general show ip ospf interface show ip route ospf show ip route show ip ospf neighbor show ip ospf database link-state show ip ospf database external-link-state show ip ospf restrict Outputs from these show commands for this example follow below. Refer to Chapter 16 of the HP Procurve Series 5300XL Switches Management and Configuration Guide for detailed descriptions of each command's output. Switch_A# sh ip ospf general OSPF General Status OSPF protocol : enabled Router ID : 10.10.10.2 RFC 1583 compatability : compatible Default import metric : 10 Default import metric type : external type 2 Area Border : no AS Border : yes External LSA Count : 2 External LSA Checksum Sum : 31803 Originate New LSA Count : 57 Receive New LSA Count : 115 Switch_B# sh ip ospf general OSPF General Status OSPF protocol : enabled Router ID : 10.10.10.3 RFC 1583 compatability : compatible Default import metric : 10 Default import metric type : external type 2 Area Border : no AS Border : yes External LSA Count : 2 External LSA Checksum Sum : 30781 Originate New LSA Count : 115 Receive New LSA Count : 53 Switch_A# sh ip ospf interface OSPF Interface Status IP Address Status Area ID State Auth-type Cost Priority --------------- -------- --------------- ------- --------- ------ --------- 10.10.10.2 enabled backbone BDR none 1 1 Page 6

Switch_B# sh ip ospf interface OSPF Interface Status IP Address Status Area ID State Auth-type Cost Priority --------------- -------- --------------- ------- --------- ------ --------- 10.10.10.3 enabled backbone DR none 1 1 Switch_A# sh ip route ospf IP Route Entries Destination Network Mask Gateway Type Sub-Type Metric --------------- --------------- + --------------- --------- ---------- ------ 30.30.30.0 255.255.255.0 10.10.10.3 ospf External2 10 Switch_B# sh ip route ospf IP Route Entries Destination Network Mask Gateway Type Sub-Type Metric --------------- --------------- + --------------- --------- ---------- ------ 20.20.20.0 255.255.255.0 10.10.10.2 ospf External2 10 Switch_A# sh ip route IP Route Entries Destination Network Mask Gateway Type Sub-Type Metric --------------- --------------- + --------------- --------- ---------- ------ 10.10.10.0 255.255.255.0 VLAN10 connected 0 20.20.20.0 255.255.255.0 VLAN20 connected 0 30.30.30.0 255.255.255.0 10.10.10.3 ospf External2 10 127.0.0.0 255.0.0.0 reject static 0 127.0.0.1 255.255.255.255 lo0 connected 0 Switch_B# sh ip route IP Route Entries Destination Network Mask Gateway Type Sub-Type Metric --------------- --------------- + --------------- --------- ---------- ------ 10.10.10.0 255.255.255.0 VLAN10 connected 0 20.20.20.0 255.255.255.0 10.10.10.2 ospf External2 10 30.30.30.0 255.255.255.0 VLAN30 connected 0 127.0.0.0 255.0.0.0 reject static 0 127.0.0.1 255.255.255.255 lo0 connected 0 198.168.40.0 255.255.255.0 VLAN40 connected 0 Page 7

Switch_A# sh ip ospf neighbor OSPF Neighbor Information Router ID Pri IP Address NbIfState State Rxmt QLen Events --------------- --- --------------- --------- -------- --------- ---------- 10.10.10.3 1 10.10.10.3 DR FULL 0 6 Switch_B# sh ip ospf neighbor OSPF Neighbor Information Router ID Pri IP Address NbIfState State Rxmt QLen Events --------------- --- --------------- --------- -------- --------- ---------- 10.10.10.2 1 10.10.10.2 BDR FULL 0 6 Switch_A# sh ip ospf link-state OSPF Link State Database for Area 0.0.0.0 Advertising LSA Type Link State ID Router ID Age Sequence # Checksum ---------- --------------- --------------- ---- ----------- ---------- Router 10.10.10.2 10.10.10.2 1553 0x80000033 0x00008914 Router 10.10.10.3 10.10.10.3 1555 0x8000002c 0x0000950c Network 10.10.10.3 10.10.10.3 1550 0x80000025 0x0000436f Switch_B# sh ip ospf link-state OSPF Link State Database for Area 0.0.0.0 Advertising LSA Type Link State ID Router ID Age Sequence # Checksum ---------- --------------- --------------- ---- ----------- ---------- Router 10.10.10.2 10.10.10.2 322 0x80000034 0x00008715 Router 10.10.10.3 10.10.10.3 321 0x8000002d 0x0000930d Network 10.10.10.3 10.10.10.3 316 0x80000026 0x00004170 Switch_A# sh ip ospf external-link-state OSPF External LSAs Link State ID Router ID Age Sequence # Checksum --------------- --------------- ---- ----------- ---------- 20.20.20.0 10.10.10.2 1616 0x80000001 0x000077f4 30.30.30.0 10.10.10.3 1747 0x80000003 0x00000447 Switch_B# sh ip ospf external-link-state OSPF External LSAs Link State ID Router ID Age Sequence # Checksum --------------- --------------- ---- ----------- ---------- 20.20.20.0 10.10.10.2 452 0x80000002 0x000075f5 30.30.30.0 10.10.10.3 580 0x80000004 0x00000248 Page 8

Switch_A# sh ip ospf restrict OSPF restrict list IP Address Mask --------------- --------------- Switch_B# sh ip ospf restrict OSPF restrict list IP Address Mask --------------- --------------- 198.168.40.0 255.255.255.0 Page 9