84
IP Infusion Confidential ZebOS ® Intelligent Network Software Version 7.5 Core Configuration Guide March 2007

ZebOS Core Configuration Guide Version 75

Embed Size (px)

Citation preview

Page 1: ZebOS Core Configuration Guide Version 75

IP Infusion Confidential

ZebOS® Intelligent Network Software

Version 7.5

Core Configuration GuideMarch 2007

Page 2: ZebOS Core Configuration Guide Version 75

ii IP Infusion Confidential

© 2001-2007 IP Infusion Inc. All Rights Reserved.

This documentation is subject to change without notice. The software described in this document and this documentation are furnished under a license agreement or nondisclosure agreement. The software and documentation may be used or copied only in accordance with the terms of the applicable agreement. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or any means electronic or mechanical, including photocopying and recording for any purpose other than the purchaser's internal use without the written permission of IP Infusion Inc.

IP Infusion Inc. 125 S. Market Street, 9th FloorSan Jose, CA 95113

(408) 794-1500 - main(408) 278-0521 - fax

For support, questions, or comments via E-mail, contact:[email protected]

Trademarks:

ZebOS is a registered trademark, and IP Infusion and the ipinfusion logo are trademarks of IP Infusion Inc.All other trademarks are trademarks of their respective companies.

Page 3: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential iii

Table of Contents

CHAPTER 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1About This Publication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1Conventions Used in this Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1Format used in the Configuration Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3

Enabling RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3Command Line Interface Primer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4

Command Line Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4Syntax Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4

Daemon Command Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6Modes Common to Protocols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6Modes Specific to Protocols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7

CHAPTER 2 NSM Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Enabling Static Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9

CHAPTER 3 RIP Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Enabling RIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Specifying the RIP version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12RIPv2 authentication (single key) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13RIPv2 text authentication (multiple keys) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15RIPv2 md5 authentication (multiple keys) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18

CHAPTER 4 OSPF Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Enabling OSPF on an interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21Setting priority. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23Configuring an Area Border Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25Redistributing routes into OSPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26OSPF Cost . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27Configuring Virtual Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29OSPF Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31

CHAPTER 5 IS-IS (IPv4) Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33Enabling IS-IS on an interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33Setting priority. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35Redistributing routes into IS-IS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37Configuring Metric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38L1-L2 Area Routing with Single Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41L1-L2 Area Routing with Multiple Instances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43

Page 4: ZebOS Core Configuration Guide Version 75

Table of Contents

iv ©2003-2007 IP Infusion Inc. Confidential

CHAPTER 6 BGP Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45Enabling BGP (routers in the same AS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45Enabling BGP (between different Autonomous Systems) . . . . . . . . . . . . . . . . . . 46Route-Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47Route Reflector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49Confederations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51BGP Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

CHAPTER 7 Forwarding Plane Load Balancing . . . . . . . . . . . . . . . . . . . . . .55Enabling Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55Verifying Load Balancing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

CHAPTER 8 Configuring VLAN Interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . .59Creating a VLAN interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59Configuring an IP address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60Adding IP addresses to VLAN interface using ZebOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60Displaying VLAN interfaces using ZebOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60Deleting VLAN interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

CHAPTER 9 Tunneling and Transitioning . . . . . . . . . . . . . . . . . . . . . . . . . . .63IPv4 Configured Tunnel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63IPv6 Transition - Configured Tunnel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66IPv6 Transition - GRE Tunnel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69IPv6 Transition - 6to4 Automatic Tunnel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72IPv6 Transition - 6to4 Relay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74IPv6 Transition - ISATAP Automatic Tunnel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Index - 1

Page 5: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential 1

CHAPTER 1 Introduction

About This PublicationNetwork administrators and application developers intending to configure ZebOS® protocols should use this Configuration Guide.

This Guide attempts to make configuration simpler by adding topology illustrations and configuration samples. It covers basic configurations for NSM, OSPF, BGP, RIP, IS-IS, load balancing and tunneling. Use this Guide in conjunction with the Command References to get complete information on the commands used in the configurations displayed in this Guide.

Conventions Used in this GuideThe following table lists conventions used for describing the ZebOS commands:

Convention Type Description Example

Monospaced font

command Represents command strings entered on a command line and sample source code.

show ip ospf

Proportional font description Gives specific details about a parameter. advertise Advertises this range

UPPERCASE Variable parameter

Indicates user input. Enter a value according to the descriptions that follow. Each uppercased token expands into one or more other tokens.

area AREAID range ADDRESS

lowercase Keyword parameter

Indicates keywords. Enter values exactly as shown in the command description.

show ip ospf

| Vertical bar Delimits choices; select one from the list. Do not enter as part of the command.

A.B.C.D|<0-4294967295>

() Parentheses Enclose optional parameters. Choose none; or only one. Do not enter as part of the command.

(A.B.C.D|<0-4294967295>)

{ } Braces Enclose optional parameters. Choose none; or select one or more a maximum of once each. Do not enter as part of the command.

{priority <0-255>|poll-interval <1-65535>}

[] Square brackets

Enclose optional parameters. Choose none; or select one or more an unlimited number of times each. Do not enter as part of the command.

[parm2|parm2\parm3]

? Question mark Used with the square brackets to limit the immediately following token to one occurrence. Do not enter as part of the command.

[parm1|parm2|?parm3] expands toparm1 parm3 parm1 parm2(with parm3 occurring once)

< > Angle brackets Enclose a numeric range, endpoints inclusive. Do not enter as part of the command.

<0-65535>

= Equal sign Separates the variable from explanatory text. Do not enter as part of the command.

PROCESSID = <0-65535>

Page 6: ZebOS Core Configuration Guide Version 75

Introduction

2 ©2003-2007 IP Infusion Inc. Confidential

Note: Unless otherwise stated, press Enter after each command entry.

. dot (period) Allows the repetition of the element that immediately follows it multiple times. Do not enter as part of the command.

.AA:NN can be expanded to: 1:01 1:02 1:03.

A.B.C.D IP address IPv4-style address. 10.0.11.123

X:X::X:X IP address An IPv6-style address. 3ffe:506::1, where the:: represents all 0s for those address components not explicitly given.

LINE End-of-line input token

Indicates user input of any string, including spaces. No other parameters may be entered after input for this token.

string of words

WORD Single token Indicates user input of any contiguous string (excluding spaces).

singlewordnospaces

IFNAME Single token Indicates the name of an interface. eth0

Convention Type Description Example

Page 7: ZebOS Core Configuration Guide Version 75

Introduction

©2003-2007 IP Infusion Inc. Confidential 3

Format used in the Configuration ExamplesScenario Description The examples begin with a description of the topology and the scenario. This is an explanation of what is to be achieved by the specified configuration.

Enabling RIPThis example shows the minimum configuration required for enabling RIP on an interface...............

IllustrationThis section includes the illustration of the complete topology used in the example. The figure uses the exact IP addresses and names of routers used in the example.

ConfigurationIncludes the complete configuration of the routers involved in the example. The prompt shows the execution modes of the commands. Each example begins from the Privileged Exec mode. The method to reach every command mode is illustrated in the Daemon Command Modes section. For modes specific to different protocols, please refer to the corresponding Command Reference (for OSPF command modes, refer to the OSPF Command Reference).

ExplanationThis is the grey section next to the configuration statements and is not to be typed in the CLI. It provides step-by-step explanation of the actions performed by the configuration.

R1ZebOS# configure terminalZebOS(config)# router ripZebOS(config-router)# net..ZebOS(config-router)# net..

Names of Commands UsedThis section lists the names of the commands used in the example. Use these command names to look up the command details in the Command References. To avoid repetition, this list does not include a few common commands such as configure terminal or interface. These common commands are explained in the Common Commands chapter of the NSM Command Reference.

Names of Commands Usedrouter rip, network

Validation CommandsThese commands are usually show commands that display outputs and are used to validate the configuration.

Validation Commandsshow ip rip

R1 R2eth2 eth1

10.10.11.10 10.10.11.50

eth1 eth2

10.10.10.10 10.10.12.10

Enter the Configure mode.Define the RIP process...Associate networks with....

Page 8: ZebOS Core Configuration Guide Version 75

Introduction

4 ©2003-2007 IP Infusion Inc. Confidential

Command Line Interface PrimerThe ZebOS Command Line Interface (CLI) is a text-based facility similar to industry standards. Many of the commands may be used in scripts to automate configuration tasks. Each command CLI is usually associated with a specific function or a common function performing a specific task. Multiple users can telnet and issue commands using the Exec mode and the Privileged Exec mode. However, only one user is allowed to use the Configure mode at a time, to avoid multiple users from issuing configuration commands simultaneously.

The IMI Shell gives users and administrators the ability to issue commands to several daemons from a single telnet session.

Command Line HelpThe ZebOS CLI contains a text-based help facility. Access this help by typing in the full or partial command string then typing “?”. The ZebOS CLI displays the command keywords or parameters plus a short description.

For example, at the CLI command prompt, type show ? (the CLI does not display the question mark).The CLI displays this keyword list with short descriptions for each keyword:

bgpd# show debugging Debugging functions (see also 'undebug') history Display the session command history ip IP information memory Memory statistics route-map route-map information running-config running configuration startup-config Contents of startup configuration version Displays ZebOS version

Syntax HelpThe ZebOS CLI can complete the spelling of command or parameter keywords. Begin typing the command or parameter then press TAB. At the CLI command prompt type sh:

Router> sh

Press TAB. The CLI shows:

Router> show

If the command or parameter partial spelling is ambiguous, the ZebOS CLI displays the choices that match the abbreviation. Type show i. Press TAB. The CLI shows:

Router> show iinterface ipRouter> show i

The interface displays the interface and ip keywords. Type n to select interface and press TAB. The CLI shows:

Router> show inRouter> show interface

Type ? and the CLI shows the list of parameters for the show interface command.

[IFNAME] Interface nameRouter> show interface

This command has but one positional parameter, an interface name. Supply a value for the IFNAME parameter.

Page 9: ZebOS Core Configuration Guide Version 75

Introduction

©2003-2007 IP Infusion Inc. Confidential 5

Command AbbreviationsThe ZebOS CLI accepts abbreviations for commands. For example,

sh in 7is the abbreviation for the show interface command.

Command line errorsIf the router does not recognize the command after ENTER is pressed, it displays this message:

% Unknown command.If a command is incomplete it displays this message:

% Command incomplete.

Some commands are too long for the display line and can wrap in mid-parameter or mid-keyword if necessary:

area 10.10.0.18 virtual-link 10.10.0.19 authentication-key 57393

Page 10: ZebOS Core Configuration Guide Version 75

Introduction

6 ©2003-2007 IP Infusion Inc. Confidential

Daemon Command Modes The commands available for each protocol are separated into several modes (nodes) arranged in a hierarchy; Exec is the lowest. Each mode has its own special commands; in some modes, commands from a lower mode are available.

Note: Multiple users can telnet and issue commands using the Exec mode and the Privileged Exec mode. However, only one user is allowed to use the Configure mode at a time, to avoid multiple users from issuing configuration commands simultaneously.

Modes Common to ProtocolsExec This mode, also called the View mode, is the base mode from where users can perform basic commands like show, exit, quit, help, list, and enable. All ZebOS daemons have this mode.

Privileged Exec This mode, also called the Enable mode, allows users to perform debugging commands, the write commands (for saving and viewing the configuration), show commands, and so on.

Configure Sometimes referred to as Configure Terminal, this mode serves as a gateway into the Interface, Router, Line, Route Map, Key Chain and Address Family modes. All ZebOS daemons have this mode.

Interface This mode is used to configure protocol-specific settings for a particular interface. Any attribute configured in this mode overrides an attribute configured in the router mode.

Line This mode makes available access-class commands.

Startup Routerin EXEC mode(View mode)

PrivilegedEXEC mode

(Enable mode)

Configuremode

Interfacemode

enable(password)

configure terminal

interface IFNAME

Linemode

Line vty

Command Mode

Command used to enterthe next Command Mode

Page 11: ZebOS Core Configuration Guide Version 75

Introduction

©2003-2007 IP Infusion Inc. Confidential 7

Modes Specific to ProtocolsThe following command modes are not common to all protocols and the command used to enter these modes is different for different protocols. For an illustration of these command modes refer to the corresponding Command References.

Router Sometimes referred to as Configure Router mode, this mode is available for the LDP, BGP, OSPF, RSVP-TE and RIP protocols only and makes available router and routing commands.

Route-map This mode is used to set route metric, route-length and cost data. It is available for the BGP, OSPF, and RIP protocols only.

Address Family This mode allows support for multiprotocol BGP extension. It includes address family-specific commands.

Key Chain This mode, available for the RIP protocol only, manages the key chain.

Trunk This mode is used to create or modify RSVP trunks. A trunk is the static definition for a Labeled Switch Path (LSP). Each trunk creates a corresponding LSP, and this LSP is signalled from the machine where the trunk was created, to the egress, as specified in the trunk's configuration.

Path Use this mode to create or modify RSVP paths. You can define a possible path to be taken between two points in a network. This path could be a complete description (with each node specified) or a partial one specifying certain hops that the path must take.

Page 12: ZebOS Core Configuration Guide Version 75

Introduction

8 ©2003-2007 IP Infusion Inc. Confidential

Page 13: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential 9

CHAPTER 2 NSM Configuration

This chapter contains basic NSM configuration examples. To see details on the commands used in these examples, or to see the outputs of the validation commands, refer to the NSM Command Reference. To avoid repetition, some Common commands, like configure terminal, have not been listed under the Commands Used section. The NSM Command Reference explains these common commands.

Enabling Static RoutingThis example shows the complete configuration required to enable static routing in a simple network topology. Static routes are useful in small networks. They are simple solutions for making a few destinations reachable. Large networks use dynamic routing protocols. A static route is composed of a network prefix (host address) and a nexthop (gateway).

Router R1 is configured with three static routes, one for the remote network 10.10.12.0/24 and one each for the loopback addresses (host addresses) of routers R2 and R3. In all three routes, interface eth0 of router R2 is the gateway. Router R3 is configured with a default static route that is equivalent to configuring separate static routes with the same gateway or nexthop address. Router R2 has two routes, one for each of the remote routers' loopback address.

R1

R2

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface lo Specify loopback as the interface you want to configure.

ZebOS(config-if)# ip address 192.168.0.1/32 Configure the IP address on this interface and specify a 32-bit mask, making it a host address.

ZebOS(config-if)# exit Exit the Interface mode and return to Configure mode.

ZebOS(config)# ip route 10.10.12.0/24 10.10.10.2ZebOS(config)# ip route 192.168.0.2/32 10.10.10.2ZebOS(config)# ip route 192.168.0.3/32 10.10.10.2

Specify the destination prefix and mask for the network for which a gateway is required, for example, 10.10.12.0/24. Add a gateway for each of them (in this case 10.10.10.2 for all). Since R2 is the only next hop available, you can configure a default route instead of configuring the same static route for individual addresses, see the configuration of R3.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface lo Specify loopback as the interface you want to configure.

R1 R2eth0 eth010.10.10.0/24

eth210.10.12.0/24

R3eth0

.1 .3.2.2

192.168.0.3/32192.168.0.2/32

lo lolo192.168.0.1/32

Page 14: ZebOS Core Configuration Guide Version 75

NSM Configuration

10 ©2003-2007 IP Infusion Inc. Confidential

R3

Names of Commands Usedip route, ip address, interface

Validation Commandsshow ip route, show running-config

ZebOS(config-if)# ip address 192.168.0.2/32 Configure the IP address on this interface and specify a 32-bit mask, making it a host address.

ZebOS(config-if)# exit Exit the Interface mode and return to Configure mode.

ZebOS(config)# ip route 192.168.0.1/32 10.10.10.1ZebOS(config)# ip route 192.168.0.3/32 10.10.12.3

Specify the destination and mask for the network for which gateway is required and add a gateway for each of them.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface lo Specify loopback as the interface you want to configure.

ZebOS(config-if)# ip address 192.168.0.3/32 Configure the IP address on this interface and specify a 32-bit mask, making it a host address.

ZebOS(config-if)# exit Exit the Interface mode and return to Configure mode.

ZebOS(config)# ip route 0.0.0.0/0 10.10.12.2 Specify 10.10.12.2 as a default gateway to reach any network. Since 10.10.12.2 is the only route available you can specify it as the default gateway instead of specifying it as the gateway for individual network or host addresses.

Page 15: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential 11

CHAPTER 3 RIP Configuration

This chapter contains basic RIP configuration examples. To see details on the commands used in these examples, or to see the outputs of the Validation commands, refer to the RIP Command Reference. To avoid repetition, some Common commands, like configure terminal, have not been listed under the Commands Used section. These Common commands are explained in the NSM Command Reference.

Enabling RIPThis example shows the minimum configuration required for enabling RIP on an interface. R1 and R2 are two routers connecting to network 10.10.11.0/24. R1 and R2 are also connected to networks 10.10.10.0/24 and 10.10.12.0/24 respectively. To enable RIP, first define the RIP routing process and then associated a network with the routing process.

R1

R2

Names of Commands Usedrouter rip, network

Validation Commandsshow ip rip, show run, show ip protocols rip, show ip rip interface, show ip route

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router rip Define a RIP routing process and enter the Router mode.

ZebOS(config-router)# network 10.10.10.0/24ZebOS(config-router)# network 10.10.11.0/24

Associate networks with the RIP process.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router rip Define a RIP routing process and enter the Router mode.

ZebOS(config-router)# network 10.10.11.0/24ZebOS(config-router)# network 10.10.12.0/24

Associate networks with the RIP process.

R1 R2eth2 eth1

10.10.11.10 10.10.11.50

eth1 eth2

10.10.10.10 10.10.12.10

Page 16: ZebOS Core Configuration Guide Version 75

RIP Configuration

12 ©2003-2007 IP Infusion Inc. Confidential

Specifying the RIP versionConfigure a router to receive and send specific versions of packets on an interface. In this example, router R2 is configured to receive and send RIP version 1 and version 2 information on both eth1 and eth2 interfaces.

R2

Names of Commands Usedip rip send version, ip rip receive version

Validation Commandsshow ip rip, show run, show ip protocols rip, show ip rip interface, show ip route

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router rip Enable the RIP routing process.

ZebOS(config-router)# exit

ZebOS(config)# interface eth1 Specify interface eth1 as an interface you want to configure.

ZebOS(config-if)# ip rip send version 1 2 Allow sending RIP version 1 and version 2 packets out of this interface.

ZebOS(config-if)# ip rip receive version 1 2 Allow receiving of RIP version 1 and version 2 packets from the eth1 interface.

ZebOS(config-if)# quit Quit the Interface mode and return to Configure mode to configure the next interface.

ZebOS(config)# interface eth2 Specify interface eth2 as the interface you want to configure.

ZebOS(config-if)# ip rip send version 1 2 Allow sending RIP version 1 and version 2 packets out of this interface.

ZebOS(config-if)# ip rip receive version 1 2 Allow receiving of RIP version 1 and version 2 packets from the eth2 interface.

R1 R2eth2 eth1

10.10.11.10 10.10.11.50R3eth1eth2

10.10.12.5010.10.12.10

V1/V2

Page 17: ZebOS Core Configuration Guide Version 75

RIP Configuration

©2003-2007 IP Infusion Inc. Confidential 13

RIPv2 authentication (single key)ZebOS RIP implementation provides the choice of configuring authentication for a single key or for multiple keys. This example illustrates authentication of the routing information exchange process for RIP using a single key. Routers R1 and R2 are running RIP and exchange routing updates. To configure single key authentication on R1, specify an interface and then define a key or password for that interface. Next, specify an authentication mode. Any receiving RIP packet on this specified interface should have the same string as password. For an exchange of updates between R1 and R2, define the same password and authentication mode on R2.

R1

R2

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router rip Define a RIP routing process and enter the Router mode.

ZebOS(config-router)# network 10.10.10.0/24 Associate network 10.10.10.0/24 with the RIP process.

ZebOS(config-router)# redistribute connected Enable redistributing from connected routes.

ZebOS(config-router)# exit Quit the Router mode and return to the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) for authentication.

ZebOS(config-if)# ip rip authentication string IPI

Specify the authentication string (IPI) for this interface.

ZebOS(config-if)# ip rip authentication mode md5 Specify the authentication mode to be MD5.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router rip Define a RIP routing process and enter the Router mode.

ZebOS(config-router)# network 10.10.10.0/24 Associate network 10.10.10.0/24 with the RIP process.

ZebOS(config-router)# redistribute connected Enable redistributing from connected routes.

ZebOS(config-router)# exit Quit the Router mode and return to the Configure mode.

ZebOS(config)# interface eth0 Specify the interface (eth0) for authentication.

ZebOS(config-if)# ip rip authentication string IPI

Specify the authentication string (IPI) on this interface.

ZebOS(config-if)# ip rip authentication mode md5 Specify the authentication mode to be MD5.

R1 R2eth1 eth0

10.10.10.10 10.10.10.50

eth2 eth1

10.10.11.10 10.10.12.50

Page 18: ZebOS Core Configuration Guide Version 75

RIP Configuration

14 ©2003-2007 IP Infusion Inc. Confidential

Names of Commands Usedip rip authentication string, ip rip authentication mode, redistribute, network

Validation Commandsshow run, show ip rip, show ip protocol rip, show ip rip interface, show ip route

Page 19: ZebOS Core Configuration Guide Version 75

RIP Configuration

©2003-2007 IP Infusion Inc. Confidential 15

RIPv2 text authentication (multiple keys)This example illustrates text authentication of the routing information exchange process for RIP using multiple keys. Routers R1 and R2 are running RIP and exchanging routing updates. To configure authentication on R1, define a key chain, specify keys in the key chain and then define the authentication string or passwords to be used by the keys. Set the time period during which it is valid to receive or send the authentication key by specifying the accept and send lifetimes. After defining the key string, specify the key chain (or the set of keys) that will be used for authentication on each interface and also the authentication mode to be used.

R1 receives all packets that contain any key string that matches one of the key strings included in the specified key chain (within the accept lifetime) on that interface. The key ID is not considered for matching. For additional security, the accept lifetime and send lifetime are configured such that every fifth day the key ID and key string changes. To maintain continuity, the accept lifetimes should be configured to overlap. This will accommodate different time-setup on machines. However, the send lifetime does not need to overlap and IPI recommends to configure no overlapping for send lifetime.

R1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router rip Define a RIP routing process and enter the Router mode.

ZebOS(config-router)# network 10.10.10.0/24 Associate network 10.10.10.0/24 with the RIP process.

ZebOS(config-router)# redistribute connected Enable redistributing from connected routes.

ZebOS(config-router)# exit Quit the Router mode and return to the Configure mode.

ZebOS(config)# key chain SUN Enter the key chain management mode to add keys to the key chain SUN.

ZebOS(config-keychain)# key 10 Add authentication key ID (10) to the key chain SUN.

ZebOS(config-keychain-key)# key-string IPI Specify a password (IPI) to be used by the specified key.

ZebOS(config-keychain-key)# accept-lifetime 12:00:00 Mar 2 2003 14:00:00 Mar 7 2003

Specify the time period during which authentication key string IPI can be received. In this case, key string IPI can be received from noon of March 2 to 2 pm March 7, 2003.

ZebOS(config-keychain-key)# send-lifetime 12:00:00 Mar 2 2003 12:00:00 Mar 7 2003

Specify the time period during which authentication key string IPI can be send. In this case, key string IPI can be received from noon of March 2 to noon of March 7, 2003.

ZebOS(config-keychain-key)# exit Exit the keychain-key mode and return to keychain mode.

R1 R2eth1 eth0

10.10.10.10 10.10.10.50

eth2 eth1

10.10.11.10 10.10.12.50

Page 20: ZebOS Core Configuration Guide Version 75

RIP Configuration

16 ©2003-2007 IP Infusion Inc. Confidential

R2

ZebOS(config-keychain)# key 20 Add another authentication key (20) to the key chain SUN.

ZebOS(config-keychain-key)# key-string Earth Specify a password (Earth) to be used by the specified key.

ZebOS(config-keychain-key)# accept-lifetime 12:00:00 Mar 7 2003 14:00:00 Mar 12 2003

Specify the time period during which authentication key string Earth can be received. In this case, key string Earth can be received from noon of March 7 to 2 pm March 12, 2003.

ZebOS(config-keychain-key)# send-lifetime 12:00:00 Mar 7 2003 12:00:00 Mar 12 2003

Specify the time period during which authentication key string Earth can be send. In this case, key string IPI can be received from noon of March 7 to noon of March 12, 2003.

ZebOS(config-keychain-key)# end Enter Privileged Exec mode.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify interface eth1 as the interface you want to configure.

ZebOS(config-if)# ip rip authentication key chain SUN

Enable RIPv2 authentication on eth1 interface and specify the key chain SUN to be used for authentication.

ZebOS(config-if)# ip rip authentication mode text

Specify text authentication mode to be used for RIP packets. This step is optional, as text is the default mode.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router rip Define a RIP routing process and enter the Router mode.

ZebOS(config-router)# network 10.10.10.0/24 Associate network 10.10.10.0/24 with the RIP process.

ZebOS(config-router)# redistribute connected Enable redistributing from connected routes.

ZebOS(config-router)# exit Quit the Router mode and return to the Configure mode.

ZebOS(config)# key chain MOON Enter the key chain management mode to add keys to the key chain MOON.

ZebOS(config-keychain)# key 30 Add authentication key ID (30) to the key chain MOON.

ZebOS(config-keychain-key)# key-string IPI Specify a password (IPI) to be used by the specified key.

ZebOS(config-keychain-key)# accept-lifetime 12:00:00 Mar 2 2003 14:00:00 Mar 7 2003

Specify the time period during which authentication key string IPI can be received. In this case, key string IPI can be received from noon of March 2 to 2 pm March 7, 2003.

ZebOS(config-keychain-key)# send-lifetime 12:00:00 Mar 2 2003 12:00:00 Mar 7 2003

Specify the time period during which authentication key string IPI can be send. In this case, key string IPI can be received from noon of March 2 to noon of March 7, 2003.

ZebOS(config-keychain)# key 40 Add another authentication key (40) to the key chain MOON.

Page 21: ZebOS Core Configuration Guide Version 75

RIP Configuration

©2003-2007 IP Infusion Inc. Confidential 17

Names of Commands Usedkey chain, key, key-string, accept-lifetime, send-lifetime, ip rip authentication key-chain, ip rip authentication mode

Validation Commandsshow run, show ip rip, show ip protocol rip, show ip rip interface, show ip route

ZebOS(config-keychain-key)# key-string Earth Specify a password (Earth) to be used by the specified key.

ZebOS(config-keychain-key)# accept-lifetime 12:00:00 Mar 7 2003 14:00:00 Mar 12 2003

Specify the time period during which authentication key string Earth can be received. In this case, key string Earth can be received from noon of March 7 to 2 pm March 12, 2003.

ZebOS(config-keychain-key)# send-lifetime 12:00:00 Mar 7 2003 12:00:00 Mar 12 2003

Specify the time period during which authentication key string Earth can be send. In this case, key string IPI can be received from noon of March 7 to noon of March 12, 2003.

ZebOS(config-keychain-key)# end Enter Privileged Exec mode.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth0 Specify interface eth0 as the interface you want to configure.

ZebOS(config-if)# ip rip authentication key chain MARS

Enable RIPv2 authentication on eth1 interface and specify the key chain MARS to be used for authentication.

ZebOS(config-if)# ip rip authentication mode text

Specify authentication mode to be used for RIP packets. This step is optional, as text is the default mode.

Page 22: ZebOS Core Configuration Guide Version 75

RIP Configuration

18 ©2003-2007 IP Infusion Inc. Confidential

RIPv2 md5 authentication (multiple keys)This example illustrates the md5 authentication of the routing information exchange process for RIP using multiple keys. Routers R1 and R2 are running RIP and exchange routing updates. To configure authentication on R1, define a key chain, specify keys in the key chain and then define the authentication string or passwords to be used by the keys. Then set the time period during which it is valid to receive or send the authentication key by specifying the accept and send lifetimes. After defining the key string, specify the key chain (or the set of keys) that will be used for authentication on the interface and the authentication mode to be used. Configure R2 and R3 to have the same key ID and key string as R1 for the time that updates need to be exchanged.

In md5 authentication, both the key ID and key string are matched for authentication. R1 will receive only packets that match both the key ID and the key string in the specified key chain (within the accept lifetime) on that interface. In the following example, R2 has the same key ID and key string as R1. For additional security, the accept lifetime and send lifetime are configured such that every fifth day the key ID and key string changes. To maintain continuity, the accept lifetimes should be configured to overlap; however, the send lifetime should not be overlapping.

R1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router rip Define a RIP routing process and enter the Router mode.

ZebOS(config-router)# network 10.10.10.0/24 Associate network 10.10.10.0/24 with the RIP process.

ZebOS(config-router)# redistribute connected Enable redistributing from connected routes.

ZebOS(config-router)# exit Quit the Router mode and return to the Configure mode.

ZebOS(config)# key chain SUN Enter the key chain management mode to add keys to the key chain SUN.

ZebOS(config-keychain)# key 1 Add authentication key ID (1) to the key chain SUN.

ZebOS(config-keychain-key)# key-string IPI Specify a password (IPI) to be used by the specified key.

ZebOS(config-keychain-key)# accept-lifetime 12:00:00 Mar 2 2003 14:00:00 Mar 7 2003

Specify the time period during which authentication key string IPI can be received. In this case, key string IPI can be received from noon of March 2 to 2 pm March 7, 2003.

ZebOS(config-keychain-key)# send-lifetime 12:00:00 Mar 2 2003 12:00:00 Mar 7 2003

Specify the time period during which authentication key string IPI can be send. In this case, key string IPI can be received from noon of March 2 to noon of March 7, 2003.

ZebOS(config-keychain-key)# exit Exit the keychain-key mode and return to keychain mode.

R1 R2eth1 eth0

10.10.10.10 10.10.10.50

eth2 eth1

10.10.11.10 10.10.12.50

Page 23: ZebOS Core Configuration Guide Version 75

RIP Configuration

©2003-2007 IP Infusion Inc. Confidential 19

R2

ZebOS(config-keychain)# key 2 Add another authentication key (2) to the key chain SUN.

ZebOS(config-keychain-key)# key-string Earth Specify a password (Earth) to be used by the specified key.

ZebOS(config-keychain-key)# accept-lifetime 12:00:00 Mar 7 2003 14:00:00 Mar 12 2003

Specify the time period during which authentication key string Earth can be received. In this case, key string Earth can be received from noon of March 7 to 2 pm March 12, 2003.

ZebOS(config-keychain-key)# send-lifetime 12:00:00 Mar 7 2003 12:00:00 Mar 12 2003

Specify the time period during which authentication key string Earth can be send. In this case, key string IPI can be received from noon of March 7 to noon of March 12, 2003.

ZebOS(config-keychain-key)# end Enter Privileged Exec mode.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify interface eth1 as the interface you want to configure.

ZebOS(config-if)# ip rip authentication key chain SUN

Enable RIPv2 authentication on eth1 interface and specify the key chain SUN to be used for authentication.

ZebOS(config-if)# ip rip authentication mode md5 Specify md5 authentication mode to be used for RIP packets.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router rip Define a RIP routing process and enter the Router mode.

ZebOS(config-router)# network 10.10.10.0/24 Associate network 10.10.10.0/24 with the RIP process.

ZebOS(config-router)# redistribute connected Enable redistributing from connected routes.

ZebOS(config-router)# exit Quit the Router mode and return to the Configure mode.

ZebOS(config)# key chain MOON Enter the key chain management mode to add keys to the key chain MOON.

ZebOS(config-keychain)# key 1 Add authentication key ID (1) to the key chain MOON.

ZebOS(config-keychain-key)# key-string IPI Specify a password (IPI) to be used by the specified key.

ZebOS(config-keychain-key)# accept-lifetime 12:00:00 Mar 2 2003 14:00:00 Mar 7 2003

Specify the time period during which authentication key string IPI can be received. In this case, key string IPI can be received from noon of March 2 to 2 pm March 7, 2003.

ZebOS(config-keychain-key)# send-lifetime 12:00:00 Mar 2 2003 12:00:00 Mar 7 2003

Specify the time period during which authentication key string IPI can be send. In this case, key string IPI can be received from noon of March 2 to noon of March 7, 2003.

ZebOS(config-keychain)# key 2 Add another authentication key (2) to the key chain MARS.

ZebOS(config-keychain-key)# key-string Earth Specify a password (Earth) to be used by the specified key.

Page 24: ZebOS Core Configuration Guide Version 75

RIP Configuration

20 ©2003-2007 IP Infusion Inc. Confidential

Names of Commands Usedkey chain, key, key-string, accept-lifetime, send-lifetime, ip rip authentication key-chain, ip rip authentication mode

Validation Commandsshow run, show ip rip, show ip protocol rip, show ip rip interface

ZebOS(config-keychain-key)# accept-lifetime 12:00:00 Mar 7 2003 14:00:00 Mar 12 2003

Specify the time period during which authentication key string Earth can be received. In this case, key string Earth can be received from noon of March 7 to 2 pm March 12, 2003.

ZebOS(config-keychain-key)# send-lifetime 12:00:00 Mar 7 2003 12:00:00 Mar 12 2003

Specify the time period during which authentication key string Earth can be send. In this case, key string IPI can be received from noon of March 7 to noon of March 12, 2003.

ZebOS(config-keychain-key)# end Enter Privileged Exec mode.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth0 Specify interface eth0 as the interface you want to configure.

ZebOS(config-if)# ip rip authentication key chain MARS

Enable RIPv2 authentication on eth1 interface and specify the key chain MARS to be used for authentication.

ZebOS(config-if)# ip rip authentication mode md5 Specify authentication mode to be used for RIP packets.

Page 25: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential 21

CHAPTER 4 OSPF Configuration

This chapter contains basic OSPF configuration examples. To see details on the commands used in these examples, or to see the outputs of the Validation commands, refer to the OSPF Command Reference. To avoid repetition, some Common commands, such as configure terminal, have not been listed under the Commands Used section. These Common commands are explained in the NSM Command Reference.

Enabling OSPF on an interfaceThis example shows the minimum configuration required for enabling OSPF on an interface. R1 and R2 are two routers in Area 0 connecting to network 10.10.10.0/24.

Note: Configure one interface so that it belongs to only one area. However, you can configure different interfaces on a router to belong to different areas.

R1

R2

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.10.0/24 area 0

Define the interface (10.10.10.0/24) on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS# configure terminal Enter the Configure mode

ZebOS(config)# router ospf 200 Configure the Routing process and specify the Process ID (200). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.10.0/24 area 0

Define the interface (10.10.10.0/24) on which OSPF runs and associate the area ID (0) with the interface.

Area 0

AS1

.10

.1110.10.10.0/24

eth1

eth0

R2

R1

Page 26: ZebOS Core Configuration Guide Version 75

OSPF Configuration

22 ©2003-2007 IP Infusion Inc. Confidential

Names of Commands Usednetwork area, router ospf

Validation Commandsshow ip ospf, show ip ospf interface, show ip ospf neighbor, show ip ospf route

Page 27: ZebOS Core Configuration Guide Version 75

OSPF Configuration

©2003-2007 IP Infusion Inc. Confidential 23

Setting priorityThis example shows the configuration for setting the priority for an interface. You can set a high priority for a router to make it the Designated Router (DR). Router R3 is configured to have a priority of 10, which is higher than the default priority (default priority is 1) of R1 and R2; making it the DR.

R3

R1

R2

ZebOS(config)# interface eth1 Specify the interface (eth1)to be configured.

ZebOS(config-if)# ip ospf priority 10 Specify the router priority to a higher priority (10) to make R3 the Designated Router (DR).

ZebOS(config-if)# exit Exit the Interface mode and return to the Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.10.0/24 area 0

Define the interface (10.10.10.0/24) on which OSPF runs and associate the area ID (0) with the interface.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.10.0/24 area 0

Define the interface (10.10.10.0/24) on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config)# router ospf 200 Configure the Routing process and specify the Process ID (200). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.10.0/24 area 0

Define the interface (10.10.10.0/24) on which OSPF runs and associate the area ID (0) with the interface.

Area 0

AS 1

.10

.1110.10.10.0/24

.13

DR

eth1

eth0 eth1

R2

R3R1

Page 28: ZebOS Core Configuration Guide Version 75

OSPF Configuration

24 ©2003-2007 IP Infusion Inc. Confidential

Names of Commands Usednetwork area, ip ospf priority

Validation Commandsshow ip ospf neighbor, show ip ospf interface

Page 29: ZebOS Core Configuration Guide Version 75

OSPF Configuration

©2003-2007 IP Infusion Inc. Confidential 25

Configuring an Area Border RouterThis example shows configuration for an Area Border Router. R2 is an Area Border Router (ABR). On R2, interface eth0 is in Area 0 and interface eth1 is in Area 1.

R2

Names of Commands Usednetwork area

Validation Commandsshow ip ospf, show ip ospf interface

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.10.0/24 area 0

Define one interface (10.10.10.0/24) on which OSPF runs and associate the area ID (0) with the interface.

ZebOS(config-router)# network 10.10.11.0/24 area 1

Define the other interface (10.10.11.0/24) on which OSPF runs and associate the area ID (1) with the interface.

Area 0

10.10.10.10/24

10.10.10.0/24

eth0

eth0 eth1

eth2

eth0

10.10.10.11/24

10.10.10.12/24

10.10.11.13/24

eth1

R2

R3R1

R4

DR

Area 1

10.10.11.11/24

10.10.11.0/24

Page 30: ZebOS Core Configuration Guide Version 75

OSPF Configuration

26 ©2003-2007 IP Infusion Inc. Confidential

Redistributing routes into OSPFIn this example the configuration causes BGP routes to be imported into the OSPF routing table and advertised as Type 5 External LSAs into Area 0.

R1

Names of Commands Usedredistribute, network area

Validation Commandsshow ip ospf database external

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.10.0/24 area 0

Define one interface (10.10.10.0/24) on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config-router)# redistribute bgp Specify redistributing routes from other routing protocol (BGP) into OSPF.

Area 0

AS1

.10

.1110.10.10.0/24

.12

DR

.11

AS 2Area 2

R2

R1

R5

R3

BGP

OSPF

BGP andOSPF

OSPF

Page 31: ZebOS Core Configuration Guide Version 75

OSPF Configuration

©2003-2007 IP Infusion Inc. Confidential 27

OSPF Cost You can make a route the preferred route by changing its cost. In this example, cost has been configured to make R2 the next hop for R1.

The default cost on each interface is 10. Interface eth2 on R2 has a cost of 100 and interface eth2 on R3 has a cost of 150. The total cost to reach 10.10.14.0/24 (R4) through R2 and R3:

R2: 10+100 = 110

R3: 10+150 = 160

Therefore, R1 chooses R2 as its next hop for destination 10.10.14.0/24.

R1

R2

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.9.0/24 area 0ZebOS(config-router)# network 10.10.10.0/24 area 0ZebOS(config-router)# network 10.10.12.0/24 area 0

Define interfaces on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config)# interface eth2 Specify the interface (eth2)to be configured.

ZebOS(config-if)# ip ospf cost 100 Set the OSPF cost of this link to 100.

ZebOS(config-if)# exit Exit the Interface mode and return to Configure mode.

Area 0

AS1 eth2

eth0eth2eth2

eth1

eth0

eth1

eth1

eth2eth1

10.10.14.0/2410.10.9.0/24 10.10.12.0

10.10.10.0 10.10.11.0

10.10.13

.0

R1

R3

R2

R4

Cost = 1

0

Cost = 150Cost = 10

Cost = 100

Page 32: ZebOS Core Configuration Guide Version 75

OSPF Configuration

28 ©2003-2007 IP Infusion Inc. Confidential

R3

R4

Names of Commands Usednetwork area, ip ospf cost

Validation Commandsshow ip ospf route 10.10.14.0/24

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.10.0/24 area 0ZebOS(config-router)# network 10.10.11.0/24 area 0

Define interfaces on which OSPF runs and associate the area ID (0) with the interface.

ZebOS(config)# interface eth2 Specify the interface (eth2)to be configured.

ZebOS(config-if)# ip ospf cost 150 Set the OSPF cost of this link to 100.

ZebOS(config-if)# exit Exit the Interface mode and return to Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.12.0/24 area 0ZebOS(config-router)# network 10.10.13.0/24 area 0

Define interfaces on which OSPF runs and associate the area ID (0) with the interface.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.11.0/24 area 0ZebOS(config-router)# network 10.10.13.0/24 area 0ZebOS(config-router)# network 10.10.14.0/24 area 0

Define interfaces on which OSPF runs and associate the area ID (0) with the interface.

Page 33: ZebOS Core Configuration Guide Version 75

OSPF Configuration

©2003-2007 IP Infusion Inc. Confidential 29

Configuring Virtual LinksVirtual links are used to connect a temporarily disjointed non-backbone area to the backbone area, or to repair a non-contiguous backbone area. In this example, the ABR R3 has temporarily lost connection to Area 0 disconnecting Area 2 from the backbone area. The virtual link between ABR R1 and ABR R2 connects Area 2 to Area 0. Area 1 is used as a transit area.

R1

R2

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface lo Specify loopback as the interface you want to configure.

ZebOS(config-if)# ip address 192.168.1.62/32 Configure the IP address on this interface.

ZebOS(config-if)# exit Exit the Interface mode and return to Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# ospf router-id 192.168.1.62

Configure OSPF Router ID (192.168.1.62) for this router.

ZebOS(config-router)# network 10.10.21.0/24 area 0ZebOS(config-router)# network 10.10.22.0/24 area 1

Define interfaces on which OSPF runs and associate the area IDs (0 and 1) with the interface.

ZebOS(config-router)# area 1 virtual-link 192.168.2.63

Configure a virtual link between this router R1 and R2 (Router ID 192.168.2.63) through transit area 1.

ZebOS(config)# interface lo Specify loopback as the interface you want to configure

ZebOS(config-if)# ip address 192.168.2.63/32 Configure the IP address on this interface.

10.10.21.62/24

10.10.

24.63/

24

R6

R2

R5

10.10.23.63/24

10.10.23.10/24

10.10.22.10/2410.10.22.62/24

lo = 192.168.2.63

lo = 192.168.1.62/32

ABR

ABR

Virtual link

R2R3

Area 0 Area 1

Area 2

DOWN

R1 R4

Page 34: ZebOS Core Configuration Guide Version 75

OSPF Configuration

30 ©2003-2007 IP Infusion Inc. Confidential

Names of Commands Usedarea virtual-link, network area

Validation Commandsshow ip ospf virtual link, show ip ospf neighbor, show ip ospf, show ip ospf route

ZebOS(config-if)# exit Exit the Interface mode and return to Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# ospf router-id 192.168.2.63

Configure OSPF Router ID (192.168.1.63) for this router.

ZebOS(config-router)# network 10.10.23.0/24 area 1ZebOS(config-router)# network 10.10.24.0/24 area 2ZebOS(config-router)# network 192.168.2.63/32 area 2

Define interfaces on which OSPF runs and associate the area IDs (1 and 2) with the interface.

ZebOS(config-router)# area 1 virtual-link 192.168.1.62

Configure a virtual link between this router R2 and R1(Router ID 192.168.2.62) through transit area 1.

Page 35: ZebOS Core Configuration Guide Version 75

OSPF Configuration

©2003-2007 IP Infusion Inc. Confidential 31

OSPF AuthenticationIn the ZebOS implementation there are three types of OSPF authentications--Null authentication (Type 0), Simple Text (Type 1) authentication and MD5 (Type 2) authentication. With null authentication, routing exchanges over the network are not authenticated. In Simple Text authentication, the authentication type is the same for all routers that communicate using OSPF in a network. For MD5 authentication, you configure a key and a key-id on each router. The router generates a message digest on the basis of the key, key ID and the OSPF packet and adds it to the OSPF packet.

The Authentication type can be configured on a per-interface basis or a per-area basis. Additionally, Interface and Area authentication can be used together. Area authentication is used for an area and interface authentication is used for a specific interface in the area. If the Interface authentication type is different from Area authentication type, Interface authentication type overrides the Area authentication type. If the Authentication type is not specified for an interface, the Authentication type for the area is used. The authentication command descriptions contain details of each type of authentication. Refer to the OSPF Command Reference for OSPF authentication commands.

In the example below, R1 and R2 are configured for both the interface and area authentications.The authentication type of interface eth1 on R1 and interface eth0 on R2 is md5 mode and is defined by the area authentication command; however, the authentication type of interface eth2 on R1 and interface eth1 on R2 is plain text mode and is defined by the ip ospf authentication command. This interface command overrides the area authentication command.

R1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.10.0/24 area 0ZebOS(config-router)# network 10.10.11.0/24 area 0

Define interfaces on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config-router)# area 0 authentication message-digest

Enable MD5 authentication on area 0.

ZebOS(config-router)# exit Exit the Router mode and return to Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1)to be configured.

Area 0

AS1

.10

.5010.10.10.0/24

eth0

eth1

R2

R1eth2

eth1

10.10.11.50

10.10.11.10

Page 36: ZebOS Core Configuration Guide Version 75

OSPF Configuration

32 ©2003-2007 IP Infusion Inc. Confidential

R2

Names of Commands Usedip ospf authentication, ip ospf authentication-key, network area, area authentication message-digest

Validation Commandsshow run, show ip ospf neighbor

ZebOS(config-if)# ip ospf message-digest-key 1 md5 test

Register MD5 key test for OSPF authentication. The Key ID is 1.

ZebOS(config-if)# exit Exit the Interface mode and return to Configure mode

ZebOS(config)# interface eth2 Specify the interface (eth2)to be configured.

ZebOS(config-if)# ip ospf authentication Enable OSPF packet to use text authentication on the current interface (eth2).

ZebOS(config-if)# ip ospf authentication-key test

Specify an OSPF authentication password test for the neighboring routers.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router ospf 100 Configure the Routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process.

ZebOS(config-router)# network 10.10.10.0/24 area 0ZebOS(config-router)# network 10.10.11.0/24 area 0

Define interfaces on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config-router)# area 0 authentication message-digest

Enable MD5 authentication on area 0.

ZebOS(config-router)# exit Exit the Router mode and return to Configure mode.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured.

ZebOS(config-if)# ip ospf message-digest-key 1 md5 test

Register MD5 key test for OSPF authentication. The Key ID is 1.

ZebOS(config-if)# exit Exit the Interface mode and return to Configure mode

ZebOS(config)# interface eth1 Specify the interface (eth2)to be configured.

ZebOS(config-if)# ip ospf authentication Enable OSPF packet to use text authentication on the current interface (eth1).

ZebOS(config-if)# ip ospf authentication-key test

Specify an OSPF authentication password test for the neighboring routers.

Page 37: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential 33

CHAPTER 5 IS-IS (IPv4) Configuration

This chapter contains basic IS-IS configuration examples. To see details on the commands used in these examples, or to see the outputs of the Validation commands, refer to the IS-IS Command Reference. To avoid repetition, some Common commands, like configure terminal, have not been listed under the Commands Used section. The NSM Command Reference explains these Common Commands.

Enabling IS-IS on an interfaceThis example shows the minimum configuration required for enabling IS-IS on an interface. R1 and R2 are two routers in ipi instance connecting to the network 10.10.10.0/24. After enabling IS-IS on an interface, create a routing instance and specify the Network Entity Title (NET). IS-IS explicitly specifies a NET to begin routing. NET is comprised of the area address and the system ID of the router.

R1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth0 Specify the interface (eth0) to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit the Interface mode and return to the Configure mode.

ZebOS(config)# router isis ipi Create an IS-IS routing instance for area 49 (ipi).

ZebOS(config-router)# is-type level-2-only

Configure instance ipi as Level-2-only routing.

ZebOS(config-router)# net 49.0000.0000.0001.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

Level-2-only

AS 1

.10

.1110.10.10.0/24

eth1

eth0

R2

R1

net 49.0000.0000.0002.00

net 49.0000.0000.0001.00

Page 38: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

34 ©2003-2007 IP Infusion Inc. Confidential

R2

Names of Commands Usedip router isis, net, router isis

Validation Commandsshow clns neighbors, show isis database, show isis topology

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit the Interface mode and return to the Configure mode.

ZebOS(config)# router isis ipi Create an IS-IS routing instance for area 49 (ipi).

ZebOS(config-router)# is-type level-2-only

Configure instance ipi as Level-2-only routing.

ZebOS(config-router)# net 49.0000.0000.0001.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

Page 39: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

©2003-2007 IP Infusion Inc. Confidential 35

Setting priorityThis example shows the configuration for setting the priority for an interface. Set a high priority for a router to make it the Designated IS (DIS). Router R3 is configured to have a priority of 70, this is higher than the default priority (default priority is 64) of R1 and R2. This makes R3 the DIS.

R3

R1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# isis priority 70 Specify the router priority to a higher priority (70) to make R3 the designated IS (DIS).

ZebOS(config-if)# exit Exit the Interface mode and return to the Configure mode.

ZebOS(config)# router isis ipi Create an IS-IS routing instance for area 49 (ipi).

ZebOS(config-router)# is-type level-2-only

Configure instance ipi as Level-2-only routing.

ZebOS(config-router)# net 49.0000.0000.0003.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit the Interface mode and return to the Configure mode.

ZebOS(config)# router isis ipi Create an IS-IS routing instance for area 49 (ipi).

Level-2-only

AS 1

.10

.1110.10.10.0/24

.13

DIS

eth0

eth0 eth0

R2

R3R1

net 49.0000.0000.0002.00

net 49.0000.0000.0001.00 net 49.0000.0000.0003.00

Page 40: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

36 ©2003-2007 IP Infusion Inc. Confidential

R2

Names of Commands Usedip router isis, net, router isis, isis priority

Validation Commandsshow clns neighbors, show isis database, show isis topology

ZebOS(config-router)# is-type level-2-only

Configure instance ipi as Level-2-only routing.

ZebOS(config-router)# net 49.0000.0000.0001.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit the Interface mode and return to the Configure mode.

ZebOS(config)# router isis ipi Create an IS-IS routing instance for area 49 (ipi).

ZebOS(config-router)# is-type level-2-only

Configure instance ipi as Level-2-only routing.

ZebOS(config-router)# net 49.0000.0000.0002.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

Page 41: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

©2003-2007 IP Infusion Inc. Confidential 37

Redistributing routes into IS-ISIn this example the configuration causes BGP routes to be imported into the IS-IS routing table and advertised into the ipi instance.

R1

Names of Commands Usedip router isis, redistribute, is-type, router isis

Validation Commandsshow clns neighbors, show isis database, show isis topology, show ip isis route, show ip route

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit the Interface mode and return to the Configure mode.

ZebOS(config)# router isis ipi Create an IS-IS routing instance for area 49 (ipi).

ZebOS(config-router)# is-type level-2-only Establish the IS level for this area (ipi) as Level-2-only.

ZebOS(config-router)# net 49.0000.0000.0001.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config-router)# redistribute bgp Specify redistributing routes from other routing protocol (BGP) into IS-IS.

Level-2-only

AS 1

.10

.11

.12

DIS

R2

R1

R5

R3

10.10.10.0/24

net 49.0000.0000.0001.00net 49.0000.0000.0003.00

net 49.0000.0000.0002.00

Page 42: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

38 ©2003-2007 IP Infusion Inc. Confidential

Configuring Metric You can make a route the preferred route by changing its metric. In this example, the cost has been configured to make R3 the next hop for R1.

The default metric on each interface is 10. Interface eth2 on R2 has a metric of 20 and Interface eth2 on R3 has a metric of 30. The total cost to reach 10.10.14.0/24 (R4) through R2 and R3:

R2: 10+20 = 30

R3: 10+30 = 40

In this topology, R1 chooses R2 as its next hop for destination 10.10.14.0/24.

R1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis ipi Create an IS-IS routing instance for area 49 (ipi).

ZebOS(config-router)# is-type level-2-only

Configure instance ipi as Level-2-only routing.

ZebOS(config-router)# net 49.0000.0000.0001.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

Level-2-only

AS 1

eth2

eth0eth2eth2

eth1

eth0

eth1

eth1

eth2eth1

R1

R3

R2

R4

metric = 20

metric = 30

net 49.0000.0000.0002.00

net 49.0000.0000.0001 .00

net 49.0000.0000.0003.00

net 49.0000.0000.0004.00

Page 43: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

©2003-2007 IP Infusion Inc. Confidential 39

R2

R3

R4

ZebOS(config)# interface eth1 Specify the interface (eth1)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# isis metric 20 Set the value of IS-IS metric (on eth2) to 20.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis ipi Create an IS-IS routing instance for area 49 (ipi).

ZebOS(config-router)# is-type level-2-only

Configure instance ipi as Level-2-only routing.

ZebOS(config-router)# net 49.0000.0000.0002.00 Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config)# interface eth1 Specify the interface (eth1)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# isis metric 30 Set the value of IS-IS metric (on eth2) to 30.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis ipi Create an IS-IS routing instance for area 49 (ipi).

ZebOS(config-router)# is-type level-2-only

Configure instance ipi as Level-2-only routing.

ZebOS(config-router)# net 49.0000.0000.0003.00 Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

Page 44: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

40 ©2003-2007 IP Infusion Inc. Confidential

Names of Commands Usedip router isis, net, isis metric, router isis

Validation Commandsshow clns neighbors, show isis database, show isis topology, show ip isis route, show ip route

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ipi Enable IS-IS routing on an interface for area 49 (ipi).

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis ipi Create an IS-IS routing instance for area 49 (ipi).

ZebOS(config-router)# is-type level-2-only

Configure instance ipi as Level-2-only routing.

ZebOS(config-router)# net 49.0000.0000.0004.00 Establish a Network Entity Title for this instance, specifying the area address and the system ID.

Page 45: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

©2003-2007 IP Infusion Inc. Confidential 41

L1-L2 Area Routing with Single InstanceIS-IS supports a two-level hierarchy for handling and scaling the functionality of large networks. The Level-1 (L1) area is mainly for Leaf networks and the Level-2 (L2) area is the backbone area connecting Level-1 areas. In this example, R3 and R4 are configured as Level-1 routers and sit in the Level-1 area. R1 and R2 are configured as Level-1-2 routers and connect these two Level-1 areas with a backbone Level-2 area. You can configure Level-1-2 routers with single or multiple instances. This configuration shows the single instance version of the Level-1-2 router.

R1

R2

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis abc Enable IS-IS routing on the interface eth0 for area abc.

ZebOS(config-if)# isis circuit-type level-2-only

Set the circuit type for the interface eth0.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis abc Enable IS-IS routing on the interface eth1 for area abc.

ZebOS(config-if)# isis circuit-type level-1 Set the circuit type for the interface eth1.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis abc Create an IS-IS routing instance for area abc.

ZebOS(config-router)# net 52.0000.0000.0001.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis bb Enable IS-IS routing on the interface eth0 for area bb.

ZebOS(config-if)# isis circuit-type level-2-only

Set the circuit type for the interface eth0.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

L2 Backbone Area

R4

R1

R3

R2

AS 1

eth0

eth0

eth1 eth1

eth0

eth0L1 Area 50L1 Area 52

Page 46: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

42 ©2003-2007 IP Infusion Inc. Confidential

R3

R4

Names of Commands Usedisis circuit-type, is-type, ip router isis, net

Validation Commandsshow ip isis route, show ip route

ZebOS(config)# interface eth1 Specify the interface (eth1)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis bb Enable IS-IS routing on the interface eth1 for area bb.

ZebOS(config-if)# isis circuit-type level-1 Set the circuit type for the interface eth1.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis bb Create an IS-IS routing instance for area bb.

ZebOS(config-router)# net 50.0000.0000.0002.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis xyz Enable IS-IS routing on the interface eth0 for area xyz.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis xyz Create an IS-IS routing instance for area xyz.

ZebOS(config-router)# is-type level-1 Establish the IS level for this area (xyz) as Level-1.

ZebOS(config-router)# net 52.0000.0000.0003.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis aa Enable IS-IS routing on the interface eth0 for area aa.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis aa Create an IS-IS routing instance for area aa.

ZebOS(config-router)# is-type level-1 Establish the IS level for this area (aa) as Level-1.

ZebOS(config-router)# net 50.0000.0000.0004.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

Page 47: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

©2003-2007 IP Infusion Inc. Confidential 43

L1-L2 Area Routing with Multiple InstancesIS-IS supports a two-level hierarchy for handling and scaling the functionality of large networks. The Level-1 (L1) area is mainly for Leaf networks and the Level-2 (L2) area is the backbone area connecting Level-1 areas. In this example, R3 and R4 are configured as Level-1 routers and sit in the Level-1 area. R1 and R2 are configured as Level-1-2 routers and connect these two Level-1 areas with a backbone Level-2 area. You can configure Level-1-2 routers with single or multiple instances. This configuration shows the multiple instance version of the Level-1-2 router.

R1

R2

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis aaa Enable IS-IS routing on the interface eth0 for area aaa.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis aaa Create an IS-IS routing instance for area aaa.

ZebOS(config-router)# is-type level-2-only Establish the IS level for this area (aaa) as Level-2-only.

ZebOS(config-router)# net bb.0000.0000.0001.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config-router)# exit Exit Router mode and return to Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis ccc Enable IS-IS routing on the interface eth1 for area ccc.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis ccc Create an IS-IS routing instance for area ccc.

ZebOS(config-router)# is-type level-1 Establish the IS level for this area (ccc) as Level-1.

ZebOS(config-router)# net 52.0000.0000.0001.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis bb Enable IS-IS routing on the interface eth0 for area bb.

L2 Backbone Area

R4

R1

R3

R2

AS 1

eth0

eth0

eth1 eth1

eth0

eth0L1 Area 50L1 Area 52

Page 48: ZebOS Core Configuration Guide Version 75

IS-IS (IPv4) Configuration

44 ©2003-2007 IP Infusion Inc. Confidential

R3

R4

Names of Commands Usedisis circuit-type, is-type, ip router isis, net

Validation Commandsshow ip isis route, show ip route

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis bb Create an IS-IS routing instance for area bb.

ZebOS(config-router)# is-type level-2-only Establish the IS level for this area (bb) as Level-2-only.

ZebOS(config-router)# net bb.0000.0000.0002.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config-router)# exit Exit Router mode and return to Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis abc Enable IS-IS routing on the interface eth1 for area abc.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis abc Create an IS-IS routing instance for area abc.

ZebOS(config-router)# is-type level-1 Establish the IS level for this area (abc) as Level-1.

ZebOS(config-router)# net 52.0000.0000.0002.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis xyz Enable IS-IS routing on the interface eth0 for area xyz.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis xyz Create an IS-IS routing instance for area xyz.

ZebOS(config-router)# is-type level-1 Establish the IS level for this area (xyz) as Level-1.

ZebOS(config-router)# net 52.0000.0000.0003.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

ZebOS(config)# interface eth0 Specify the interface (eth0)to be configured and enter the Interface mode.

ZebOS(config-if)# ip router isis aa Enable IS-IS routing on the interface eth0 for area aa.

ZebOS(config-if)# exit Exit Interface mode and return to Configure mode.

ZebOS(config)# router isis aa Create an IS-IS routing instance for area aa.

ZebOS(config-router)# is-type level-1 Establish the IS level for this area (aa) as Level-1.

ZebOS(config-router)# net 52.0000.0000.0004.00

Establish a Network Entity Title for this instance, specifying the area address and the system ID.

Page 49: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential 45

CHAPTER 6 BGP Configuration

This chapter contains basic BGP configuration examples. To see details on the commands used in these examples, or to see the outputs of the Validation commands, refer to the BGP Command Reference. To avoid repetition, some Common commands, such as configure terminal, have not been listed under the Commands Used section. These common Commands are explained in the NSM Command Reference.

Enabling BGP (routers in the same AS)This example shows the minimum configuration required for enabling BGP on an interface. R1 and R2 are two routers belonging to the same Autonomous System, AS200, connecting to network 10.10.10.0/24. First, define the routing process and the AS number to which the routers belong. Then, define BGP neighbors to start exchanging routing updates.

R1

R2

Names of Commands Usedrouter bgp, neighbor remote-as

Validation Commandsshow ip bgp summary, show ip bgp neighbors

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router bgp 200 Define the routing process. The number 200 specifies the AS number of R1.

ZebOS(config-router)# neighbor 10.10.10.11 remote-as 200

Define BGP neighbors and establish a TCP session. 10.10.10.11 is the IP address of the neighbor (R2) and 200 is the neighbor’s AS number.

ZebOS# configure terminal Enter the Configure mode

ZebOS(config)# router bgp 200 Define the routing process. The number 200 specifies the AS number of R2.

ZebOS(config-router)# neighbor 10.10.10.10 remote-as 200

Define BGP neighbors and establish a TCP session. 10.10.10.10 is the IP address of the neighbor (R1) and 200 is the neighbor’s AS number.

AS200

R110.10.10.11 R210.10.10.10

Page 50: ZebOS Core Configuration Guide Version 75

BGP Configuration

46 ©2003-2007 IP Infusion Inc. Confidential

Enabling BGP (between different Autonomous Systems)This example shows the minimum configuration required for enabling BGP on an interface when the routers belong to different Autonomous Systems. R1 and R2 are two routers in different autonomous systems, AS200 and AS300 connecting to network 10.10.10.0/24.

R1

R2

Names of Commands Usedrouter bgp, neighbor remote-as

Validation Commandsshow ip bgp summary, show ip bgp neighbors

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router bgp 200 Define the routing process. The number 200 specifies the AS number of R1.

ZebOS(config-router)# neighbor 10.10.10.11 remote-as 300

Define BGP neighbors and establish a TCP session. 10.10.10.11 is the IP address of the neighbor (R2) and 300 is the neighbor’s AS number.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router bgp 300 Define the routing process. The number 300 specifies the AS number of R2.

ZebOS(config-router)# neighbor 10.10.10.10 remote-as 200

Define BGP neighbors and establish a TCP session. 10.10.10.10 is the IP address of the neighbor (R1) and 200 is the neighbor’s AS number.

AS200

R110.10.10.11 R210.10.10.10

AS300

Page 51: ZebOS Core Configuration Guide Version 75

BGP Configuration

©2003-2007 IP Infusion Inc. Confidential 47

Route-MapUse route-maps to filter incoming updates from a BGP peer. In this example, a prefix-list ipi on R1 is configured to deny entry of any routes with the IP address 1.1.1.0/M (M = 26,27,28). To test the filter, R2 is configured to generate network addresses 1.1.1.0/27 and 1.1.2.0/24. To verify, use the show ip bgp command on R1; it displays R1 receiving updates from only 1.1.2.0/24.

R1

R2

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# ip prefix-list ipi seq 5 deny 1.1.1.0/24 ge 26 le 28ZebOS(config)# ip prefix-list ipi seq 10 permit any

Create an entry in the prefix-list. ipi is the name of the map that is created above. 5 specifies the sequence number or position of this specific route map. deny specifies the packets are to be rejected. 26 and 28 are the minimum and maximum prefix lengths to be matched.

ZebOS(config)# route-map ipi permit 1 Enter the route-map mode to set the match operation.

ZebOS(config-route-map)# match ip address prefix-list ipi

Set the match criteria. In this case, if the route-map name matches ipi, the packets from the first sequence will be denied.

ZebOS(config-route-map)# exit Exit the Route-map mode and return to Configure mode.

ZebOS(config)# router bgp 10 Define the routing process and establish a TCP session. The number 10 specifies the AS number of R1.

ZebOS(config-router)# neighbor 192.168.10.11 remote-as 11

Define BGP neighbors and establish a TCP session. 192.168.10.11 is the IP address of the neighbor (R2) and 11 is the neighbor’s AS number.

ZebOS(config-router)# neighbor 192.168.10.11 route-map ipi in

Apply a route-map to routes. 192.168.10.11 specifies the IP address of BGP neighbor. ipi is the name of the route-map and in specifies that the access list will apply to incoming advertisements.

ZebOS(config)# router bgp 11 Define the routing process and establish a TCP session. The number 11 specifies the AS number of R2.

ZebOS(config-router)# neighbor 192.168.10.10 remote-as 10

Define BGP neighbors and establish a TCP session. 192.168.10.10 is the IP address of the neighbor (R1) and 10 is the neighbor’s AS number.

ZebOS(config-router)# network 1.1.1.0/27 Specify the network to be advertised by the BGP routing process.

ZebOS(config-router)# network 1.1.2.0/24 Specify the network to be advertised by the BGP routing process.

AS10

192.168.10.11

AS11

192.168.10.10R1 R2

Page 52: ZebOS Core Configuration Guide Version 75

BGP Configuration

48 ©2003-2007 IP Infusion Inc. Confidential

Names of Commands Usedip prefix-list (NSM Command Reference), neighbor remote-as, route-map, match ip address, network and network backdoor.

Validation Commandsshow ip bgp

Page 53: ZebOS Core Configuration Guide Version 75

BGP Configuration

©2003-2007 IP Infusion Inc. Confidential 49

Route Reflector

Use Route Reflectors to reduce the IBGP mesh inside an AS. In this example, R2, R5 and R4 would have to maintain a full mesh among themselves but by making R5 the Route Reflector, R2 (Client1) has IBGP session with RR only and not with R4 (Client 2). The routes learned from R2 are advertised to the other clients and to IBGP peers outside the cluster; the IBGP routes learned from IBGP peers outside the cluster are advertised to the R2. This reduces the IBGP peer connections in AS1.

RR (R5)

RR Client 1 (R2)

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router bgp 1 Define the routing process. The number 1 specifies the AS number of R5.

ZebOS(config-router)# neighbor 10.10.10.50 remote-as 1

Define BGP neighbor and establish a TCP session. 10.10.10.50 is the IP address of one of the neighbors (R2) and 1 is the neighbor’s AS number.

ZebOS(config-router)# neighbor 10.10.10.50 route-reflector client

Configure R5 as the Route-Reflector (RR) and neighbor R2 as its client.

ZebOS(config-router)# neighbor 10.10.11.50 remote-as 1

Define BGP neighbor and establish a TCP session. 10.10.11.50 is the IP address of one of the neighbors (R4) and 1 is the neighbor’s AS number.

ZebOS(config-router)# neighbor 10.10.11.50 route-reflector client

Configure R5 as the Route-Reflector (RR) and neighbor R4 as its client.

ZebOS(config)# router bgp 1 Define the routing process. The number 1 specifies the AS number of R2.

ZebOS(config-router)# neighbor 10.10.10.10 remote-as 1

Define BGP neighbor and establish a TCP session. 10.10.10.10 is the IP address of the neighbor (R5) and 1 is the neighbor’s AS number.

AS1

RR

RR Client 1

RR Client 2

10.10.10.10

10.10.11.50

10.10.10.50

10.10.11.10

R2

R1

R5

R4

R6

R3

Page 54: ZebOS Core Configuration Guide Version 75

BGP Configuration

50 ©2003-2007 IP Infusion Inc. Confidential

RR Client 2 (R4)

Names of Commands Usedneighbor remote-as, neighbor route-reflector-client

Validation Commandsshow ip bgp, show ip bgp neighbors

ZebOS(config)# router bgp 1 Define the routing process. The number 1 specifies the AS number of R4.

ZebOS(config-router)# neighbor 10.10.11.10 remote-as 1

Define BGP neighbor and establish a TCP session. 10.10.11.10 is the IP address of the neighbor (R5) and 1 is the neighbor’s AS number.

Page 55: ZebOS Core Configuration Guide Version 75

BGP Configuration

©2003-2007 IP Infusion Inc. Confidential 51

ConfederationsIn this example, AS1 contains three Confederation Autonomous Systems--AS 1000, AS 1001 and AS 1002. To any outside AS, the Confederation is a single Autonomous System AS1. Confederation eIBGP is run between R2 and R5, and between R5 and R7. R2 is configured so that its local AS is 1000. Its peer connection to R5 is set up like any other eBGP session. The bgp confederation identifier command tells the router that it is a member of a Confederation and the Confederation ID. The bgp confederation peers command lists the member autonomous system to which R2 is connected. The command tells the BGP process that the eBGP connection is a Confederation eBGP rather than normal eBGP.

R2

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router bgp 1000 Define the routing process. The number 1000 specifies the AS number of R2.

ZebOS(config-router)# bgp confederation identifier 1

Specify BGP Confederation Identifier, to others the group will appear as a single AS and the identifier as its AS number.

ZebOS(config-router)# bgp confederation peers 1001 1002

Specify AS 1001 and 1002 to become members of the Confederation.

ZebOS(config-router)# neighbor 10.10.10.5 remote-as 1001ZebOS(config-router)# neighbor 10.10.9.1 remote-as 1000ZebOS(config-router)# neighbor 10.10.7.3 remote-as 1000

Define BGP neighbors for R2 and establish a TCP session by specifying the IP addresses and the AS numbers of neighbors.

R5

R3

AS1

R4

R7

R6

R2

R8R1

Confederations

AS 1000

AS 1001

AS 1002eIBGP

10.10.7.3

10.10.9.2

10.10.12.5

10.10.10.5 10.10.11.5

10.10.11.7

10.10.15.7

10.10.15.810.10.9.1

10.10.12.4

10.10.10.2

10.10.7.2

10.10.13.6

eIBGP

Page 56: ZebOS Core Configuration Guide Version 75

BGP Configuration

52 ©2003-2007 IP Infusion Inc. Confidential

R5

R7

Names of Commands Usedneighbor remote-as, bgp confederation peer, bgp confederation identifier

Validation Commandsshow ip bgp, show ip bgp neighbors

ZebOS(config)# router bgp 1001 Define the routing process. The number 1001 specifies the AS number of R5.

ZebOS(config-router)# bgp confederation identifier 1

Specify BGP Confederation Identifier, to others the group will appear as a single AS and the identifier as its AS number.

ZebOS(config-router)# bgp confederation peers 1000 1002

Specify AS 1000 and 1002 to become members of the Confederation.

ZebOS(config-router)# neighbor 10.10.10.2 remote-as 1000ZebOS(config-router)# neighbor 10.10.11.7 remote-as 1002ZebOS(config-router)# neighbor 10.10.13.6 remote-as 1001ZebOS(config-router)# neighbor 10.10.12.4 remote-as 1001

Define BGP neighbors for R5 and establish a TCP session by specifying the IP addresses and the AS numbers of neighbors.

ZebOS(config)# router bgp 1002 Define the routing process. The number 1001 specifies the AS number of R5.

ZebOS(config-router)# bgp confederation identifier 1

Specify BGP Confederation Identifier, to others the group will appear as a single AS and the identifier as its AS number.

ZebOS(config-router)# bgp confederation peers 1000 1001

Specify AS 1000 and 1001 to become members of the Confederation.

ZebOS(config-router)# neighbor 10.10.11.5 remote-as 1001ZebOS(config-router)# neighbor 10.10.15.8 remote-as 1002

Define BGP neighbors for R7 and establish a TCP session by specifying the IP addresses and the AS numbers of neighbors.

Page 57: ZebOS Core Configuration Guide Version 75

BGP Configuration

©2003-2007 IP Infusion Inc. Confidential 53

BGP AuthenticationBGP authentication allows users to receive selected routing information, enhancing security of their network traffic. When BGP authentication is enabled on a router, the router verifies routing packet it receives by exchanging a password that is configured on both the sending and the receiving routers.

Note: To enable BGP authentication on TCP/IP you need to apply a kernel patch and specific MD5 libraries. Refer to the Installation Guide for detailed information on how to apply the MD5 authentication patch and the required libraries.

In this example, both R1 and R2 have ipi as the password. Configure the same password on all routers that are to communicate using BGP in a network

R1

R2

Names of Commands Usedneighbor remote-as, neighbor password

Validation Commandsshow ip bgp, show ip bgp neighbors

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# router bgp 200 Define the routing process. The number 200 specifies the AS number of R1.

ZebOS(config-router)# neighbor 10.10.10.11 remote-as 200

Define BGP neighbors and establish a TCP session. 10.10.10.11 is the IP address of the neighbor (R2) and 200 is the neighbor’s AS number.

ZebOS(config-router)# neighbor 10.10.10.11 password 1 ipi

Specify the encryption type and the password.

ZebOS# configure terminal Enter the Configure mode

ZebOS(config)# router bgp 200 Define the routing process. The number 200 specifies the AS number of R2.

ZebOS(config-router)# neighbor 10.10.10.10 remote-as 200

Define BGP neighbors and establish a TCP session. 10.10.10.10 is the IP address of the neighbor (R1) and 200 is the neighbor’s AS number.

ZebOS(config-router)# neighbor 10.10.10.10 password 1 ipi

Specify the encryption type and the password.

AS200

R110.10.10.11 R210.10.10.10

AS300

Page 58: ZebOS Core Configuration Guide Version 75

BGP Configuration

54 ©2003-2007 IP Infusion Inc. Confidential

Page 59: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential 55

CHAPTER 7 Forwarding Plane Load Balancing

The ZebOS implementation leverages the Forwarding Plane Load Balancing, when the underlying kernel supports ECMP (Equal Cost Multipath).

ZebOS installs the maximum number of ECMP routes supported by a kernel. This allows for load balancing to be performed with more than one nexthop to reach a destination. In case the router receives and installs multiple paths with the same administrative distance and cost to a destination, load-balancing is possible.

Ideally, multiple nexthops have different interfaces to the destination, but this is not mandatory. The algorithm for distributing traffic across ECMP routes is dependant on the kernel and typically based on the protocol, source address, destination address and the port.

The following example illustrates how you can enable Equal Cost Multipath (ECMP) and configure a routing protocol (OSPF is used in this example) for load balancing. However this example will not work if your kernel does not support load balancing. In this setup, R1, R2 and R3 are three Linux routers connected to each other. R1 can reach R3 through two links available to R2.

Enabling Load Balancing

R1 - Kernel• Enable multipath support by enabling the following options under Networking options:

TCP/IP Networking

IP:advanced router

IP: equal cost multipath

• Enable the following option under Network Device Support options:

EQL (serial line load balancing) support

R1 - NSM• Enable multipath support in ZebOS and set the maximum number of paths to be installed in the FIB (Forward

Information Base):ZebOS# configure terminal

R1 R3R2

N1N3

N2

10.10.10.0/24

20.10.10.0/24

10.10.11.0/24

N1

N2

N3

.3.2.1

.2

Page 60: ZebOS Core Configuration Guide Version 75

Forwarding Plane Load Balancing

56 ©2003-2007 IP Infusion Inc. Confidential

ZebOS(config)# maximum-paths 2

R1 - OSPF• Configure OSPF on all interfaces on R1, R2 and R3.

R1 learns about R3 through 2 nexthops (both networks N1 and N2)

Verifying Load Balancing

R1 - OSPF• Run the show ip ospf route command on R1. The OSPF routing table displays that it can reach R3 through

both the nexthops:

R1# show ip ospf route

O 10.10.10.0/24 [10] is directly connected, eth1, Area 0.0.0.0O 10.10.11.0/24 [10] is directly connected, eth2, Area 0.0.0.0O 20.10.10.0/24 [20] via 10.10.10.2, eth1, Area 0.0.0.0

via 10.10.11.2, eth2, Area 0.0.0.0

• Run the show ip route command on R1. It displays that R1 has installed both nexthops to reach R3 in the NSM routing table:

R1# show ip route

Codes: 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 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default

K 10.10.0.0/24 via 10.70.0.1, eth0C 10.10.10.0/24 is directly connected, eth1C 10.10.11.0/24 is directly connected, eth2C 10.70.0.0/24 is directly connected, eth0O 20.10.10.0/24 [110/20] via 10.10.10.2, eth1, 00:12:40

[110/20] via 10.10.11.2, eth2, 00:12:40C 127.0.0.0/8 is directly connected, loS 192.16.1.0/24 [1/0] is directly connected, eth1

R1- Kernel• Run the ip route command on R1 kernel. The kernel routing table (FIB) displays that R1 can reach R3 through

both the nexthops.

# ip route

20.10.10.0/24 proto zebra metric 20 nexthop via 10.10.10.2 dev eth1 weight 1 nexthop via 10.10.11.2 dev eth2 weight 1

10.70.0.0/24 dev eth0 scope link 10.10.0.0/24 via 10.70.0.1 dev eth0 10.10.10.0/24 dev eth1 proto kernel scope link src 10.10.10.1 10.10.11.0/24 dev eth2 proto kernel scope link src 10.10.11.1

Page 61: ZebOS Core Configuration Guide Version 75

Forwarding Plane Load Balancing

©2003-2007 IP Infusion Inc. Confidential 57

127.0.0.0/8 dev lo scope link

The above three show outputs display the two routes (N1 and N2) in the OSPF, NSM and the kernel routing tables. This illustrates that two routes are reaching R3 and load balancing is occurring.

Page 62: ZebOS Core Configuration Guide Version 75

Forwarding Plane Load Balancing

58 ©2003-2007 IP Infusion Inc. Confidential

Page 63: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential 59

CHAPTER 8 Configuring VLAN Interfaces

This chapter describes configuring VLAN interfaces and using them with the ZebOS routing software. Several Virtual LAN (VLAN) interfaces can be configured on a single ethernet interface. Once created, a VLAN interface functions the same as any physical interface.

Note: For VLAN support, enable the configuration option 802.1Q VLAN Support under Networking Options before compiling the kernel. If you have installed the kernel RPM provided by IPI, this option is enabled automatically.

The ZebOS NSM recognizes VLAN interfaces like physical interfaces. Once VLAN interfaces are created in the kernel and an IP address is assigned to them, the ZebOS commands can be used to configure and display VLAN interfaces like any physical interface. The ZebOS routing protocols, such as, RIP, OSPF and BGP can run across networks using VLAN interfaces.

Two systems having physical connectivity (either directly connected or connected through a switch) can communicate with each other through VLAN interfaces that have the same VLAN IDs and belong to the same network.

If the physical interfaces are connected to a switch and not directly, the corresponding ports on the switch have to be configured as trunks and should not be put in any VLANs in the switch. The commands to configure switch ports as trunks depend on the make/type of the switch and hence are beyond the scope of this document.

An example is used here to describe the VLAN interface configuration. In this example, there are two routers R1 and R2 and the interface eth1 of R1 is connected directly to eth2 using a crossover ethernet cable.

VLAN interface eth1.10 is created on R1 and eth2.10 is created on R2. The VLAN interfaces are configured to be in the same network. Now R1 and R2 can reach each other using the VLAN connection.

Note that the VLAN ID of both VLAN interfaces is the same (10). Two systems with different VLAN IDs are unable to communicate even if they are in the same network (the VLAN ID is used to tag packets sent on the VLAN interface).

Creating a VLAN interfaceUse the vconfig utility to add a VLAN interface. The vconfig utility can be used to create/delete VLAN interfaces to a physical interface. The VLAN interface identifier has two parts separated by a period, the first of which is the identifier of the physical interface (such as, eth1, eth2...). The second part is the VLAN ID (on Linux, this number can be any number from 2-4095). In this example, eth1.10 denotes that the physical interface is eth1 and the VLAN ID is 1.

[root]# vconfig add eth1 10Added VLAN with VID == 10 to IF -:eth1:-

eth1 eth2

eth1.10 eth2.10

Physical connection through crossover ethernet cable

VLAN connection R1 R2

Page 64: ZebOS Core Configuration Guide Version 75

Configuring VLAN Interfaces

60 ©2003-2007 IP Infusion Inc. Confidential

Configuring an IP addressOnce a VLAN interface is created, configure an IP address on it. Use the ipconfig command to configure the IP address of the VLAN interface and then use the same command to display information about the VLAN interface.

[root]# ifconfig eth1.10 inet 1.1.1.145 netmask 255.255.255.0 broadcast 1.1.1.255 up[root]# ifconfig eth1.10eth1.10 Link encap:Ethernet HWaddr 00:0E:0C:01:48:4D inet addr:1.1.1.145 Bcast:1.1.1.255 Mask:255.255.255.0 inet6 addr: fe80::20e:cff:fe01:484d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:172 (172.0 b)

Adding IP addresses to VLAN interface using ZebOSIn ZebOS NSM you can add/remove IP addresses from VLAN interfaces just like normal interfaces. Using IMISH type:

ZebOS# configure terminalZebOS(config)# interface eth1.10ZebOS(config-if)# no ip address 1.1.1.145/24ZebOS(config-if)# ip address 192.168.1.50/24

Displaying VLAN interfaces using ZebOSIn ZebOS, VLAN interfaces appear like any physical interfaces, in the show run or the show ip interface brief outputs and can be configured just like any other interface.

The following is a sample output of the show ip interface brief command on R1. Note that the IP address of interface eth1.1 has correctly been changed by NSM:

ZebOS# show ip interface briefInterface IP-Address Status Protocollo 127.0.0.1 up upgre0 unassigned administratively down downeth0 10.70.0.77 up up....sit0 unassigned administratively down downeth1.10 192.168.1.50 up uptunl0 unassigned administratively down down

Given below is the NSM routing table. Note that it shows the connected network 192.168.1.0/24 of eth1.10.

These interfaces will now act as any physical interfaces and all routing protocols will run across this network.

ZebOS# show ip routeCodes: 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 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default

Page 65: ZebOS Core Configuration Guide Version 75

Configuring VLAN Interfaces

©2003-2007 IP Infusion Inc. Confidential 61

Gateway of last resort is 10.70.0.1 to network 0.0.0.0K* 0.0.0.0/0 via 10.70.0.1, eth0B 2.2.2.0/24 [200/0] via 192.168.1.145, eth4.2, 01:14:38....C 127.0.0.0/8 is directly connected, loK 169.254.0.0/16 is directly connected, eth4C 192.168.1.0/24 is directly connected, eth1.10

Deleting VLAN interfacesUse the vconfig utility to delete VLAN interfaces.

To remove the eth1.10 interface on R1:

[root]# vconfig rem eth1.10Removed VLAN -:eth1.10:-

Now if you use the ifconfig command and try to display information about the eth1.10 interface:

[root]# ifconfig eth1.10eth1.10: error fetching interface information: Device not found

This shows that VLAN interfaces were successfully removed.

Using the ZebOS CLI, when you try to configure this interface, a message is displayed showing that the interface does not exist:

ZebOS# configure terminalEnter configuration commands, one per line. End with CNTL/Z.ZebOS(config)# interface eth1.10% No such interface

Page 66: ZebOS Core Configuration Guide Version 75

Configuring VLAN Interfaces

62 ©2003-2007 IP Infusion Inc. Confidential

Page 67: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential 63

CHAPTER 9 Tunneling and Transitioning

This chapter contains basic IPv4 and IPv6 Transition Tunneling configuration examples. To see details on the commands used in these examples, or to see the outputs of the Validation commands, refer to the NSM Command Reference. To avoid repetition, some Common commands, like configure terminal, have not been listed under the Commands Used section. These Common commands are explained in the NSM Command Reference. For commands used to enter each command mode see the Command Modes section in the Introduction chapter.

Typically, tunneling is used to transmit private data over a public network, such as the Internet. Tunnels enable carrying of incompatible data over an existing network. For example, IPv6 data can be transmitted over IPv4 networks. Secure tunneling protocols (such as IPSec) can be used for transfering sensitive data over public networks.

Tunneling is acheived by encapsulating IP packets of private networks within IP packets of public networks. This allows packets destined for one IP address to be wrapped and redirected to another IP address. To encapsulate an IP packet, an outer IP header is inserted before the packet’s existing header. The source and destination addresses in the inner IP header, specify the original sender and recipient of the packet.

IPv4 Configured TunnelThe ZebOS IPv4 Tunneling implementation supports Generic Routing Encapsulation (GRE) and IP in IP (IPIP) Tunneling. This section includes the configuration of GRE tunneling only. For configuring IPIP tunnels use the same configuration, but specify the tunnel mode as ipip instead of gre.

R1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 10.100.1.1/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 100 Create a tunnel interface.

ZebOS(config-if)# tunnel mode gre Set the tunnel mode.

R1

R2

GRE Tunnel

eth1

eth1eth1

eth2

IPv4 Network

10.200.1.0/2410.100.1.0/24

IPv4 Network

Tunnel100 Tunnel100

9.3.0.0/24

IPv4 Network9.1.0.0/24

9.1.2.0/24 .2.1R3

.1

.2

.2

.1

Page 68: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

64 ©2003-2007 IP Infusion Inc. Confidential

R2

R3

ZebOS(config-if)# tunnel source 10.100.1.1 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# tunnel destination 10.200.1.2

Specifies the destination IPv4 address of the tunnel interface.

ZebOS(config-if)# ip address 9.1.2.1/24 Set the IP address of the tunnel interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.57 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 10.100.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config-router)# exit Exit the Router mode and enter Configure mode.

ZebOS(config)# ip route 9.3.0.0/24 Tunnel100 Configure a static route for the tunnel interface.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 10.100.1.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 10.200.1.1/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.58 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 10.200.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config-router)# network 10.100.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 10.200.1.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 100 Create a tunnel interface.

ZebOS(config-if)# tunnel mode gre Set the tunnel mode.

ZebOS(config-if)# tunnel source 10.200.1.2 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# tunnel destination 10.100.1.1

Specifies the destination IPv4 address of the tunnel interface.

ZebOS(config-if)# ip address 9.1.2.2/24 Set the IP address of the tunnel interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# router ospf Create an OSPF routing instance.

Page 69: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

©2003-2007 IP Infusion Inc. Confidential 65

Names of Commands Usedtunnel mode, tunnel source, tunnel destination, interface tunnel (NSM Command Reference)

Validation Commandsshow interface, show ip route

ZebOS(config-router)# router-id 10.70.0.59 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 10.200.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config-router)# exit Exit the Router mode and enter Configure mode.

ZebOS(config)# ip route 9.1.0.0/24 Tunnel100 Configure a static route for the tunnel interface.

Page 70: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

66 ©2003-2007 IP Infusion Inc. Confidential

IPv6 Transition - Configured TunnelIn this method of IPv6 transition, tunnels are enabled and configured statically. IPv4 and IPv6 addresses are manually assigned on both sides of the tunnel interface. To configure a tunnel interface, assign:

• an IPv4 address for reaching the local dual-stack router over the IPv4 network. For example, IPv4 address 192.168.1.1 is assigned on R1 as tunnel source.

• an IPv4 address for reaching the dual-stack router at the other end of the tunnel over the IPv4 network. For example, 192.168.2.2 is assigned on R1 as tunnel destination.

• an IPv6 address locally on the tunnel interface. For example, the IPv6 address 3ffe:b00:ffff:2::1/64, is assigned on R1.

R3 is configured similarly to allow forwarding of IPv6 packets over the IPv4 network.

R1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.1.1/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ipv6 address 2001:420:ffff:a::2/64

Set the IPv6 address of eth2 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 100 Create a tunnel interface.

ZebOS(config-if)# tunnel mode ipv6ip Set the tunnel mode.

ZebOS(config-if)# tunnel source 192.168.1.1 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# tunnel destination 192.168.2.2

Specifies the destination IPv4 address of the tunnel interface.

ZebOS(config-if)# ipv6 address 3ffe:b00:ffff:2::1/64

Set the IPv6 address on the Tunnel100 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# ipv6 route 3ffe:b00:ffff::/48 Tunnel100

Specify a static route to the network via a configured tunnel.

R1

R2

R3

eth1

eth1eth1

eth2

IPv4 Network

Configured Tunnel

192.168.2.1192.168.1.2

Tunnel100Tunnel100 IPv6Network

IPv6Network

2001:420:ffff::/48

3ffe:b00:ffff:2::2/64

eth2 eth2

3ffe:b00:ffff:a::2/642001:420:ffff:a::2/64

3ffe:b00:ffff:2::1/64

192.168.2.2192.168.1.1

3ffe:b00:ffff::/48

Page 71: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

©2003-2007 IP Infusion Inc. Confidential 67

R2

R3

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.58 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.1.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ip address 192.168.2.1/24 Set the IP address of eth2 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.59 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config-router)# network 192.168.2.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.2.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ipv6 address 3ffe:b00:ffff:a::2/64

Set the IPv6 address of eth2 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 100 Create a tunnel interface.

ZebOS(config-if)# tunnel mode ipv6ip Set the tunnel mode.

ZebOS(config-if)# tunnel source 192.168.2.2 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# tunnel destination 192.168.1.1

Specifies the destination IPv4 address of the tunnel interface.

ZebOS(config-if)# ipv6 address 3ffe:b00:ffff:2::2/64

Set the IPv6 address on the Tunnel100 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# ipv6 route 2001:420:ffff::/48 Tunnel100

Specify a static route to the network via a configured tunnel.

ZebOS(config)# router ospf Create an OSPF routing instance.

Page 72: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

68 ©2003-2007 IP Infusion Inc. Confidential

Names of Commands Usedtunnel mode, tunnel source, network area, router-id, tunnel destination

Validation Commandsshow interface, show ipv6 route

ZebOS(config-router)# router-id 10.70.0.57 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.2.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

Page 73: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

©2003-2007 IP Infusion Inc. Confidential 69

IPv6 Transition - GRE TunnelConfiguring the GRE (Generic Routing Encapsulation) Tunnel for IPv6 transition is similar to configuring the Configured Tunnel.To configure a GRE Tunnel, a route is statically configured between two routers to enable forwarding of IPv6 packets over an IPv4 network. To configure a GRE tunnel, assign:

• an IPv4 address for reaching the local dual-stack router over the IPv4 network. For example, IPv4 address 192.168.1.1 is assigned on R1 as tunnel source.

• an IPv4 address for reaching the dual-stack router at the other end of the tunnel over the IPv4 network. For example, 192.168.2.2 is assigned on R1 as tunnel destination.

• an IPv6 address locally on the tunnel interface. For example, the IPv6 address 3ffe:b00:ffff:2::1/64, is assigned on R1.

R3 is configured similarly to allow forwarding of IPv6 packets over the IPv4 network.

R1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.1.1/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ipv6 address 2001:420:ffff:a::2/64

Set the IPv6 address of eth2 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 100 Create a tunnel interface.

ZebOS(config-if)# tunnel mode gre Set the tunnel mode.

ZebOS(config-if)# tunnel source 192.168.1.1 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# tunnel destination 192.168.2.2

Specifies the destination IPv4 address of the tunnel interface.

ZebOS(config-if)# ipv6 address 3ffe:b00:ffff:2::1/64

Set the IPv6 address on the Tunnel100.

R1

R2

R3

eth1

eth1eth1

eth2

IPv4 Network

GRE Tunnel

192.168.2.1192.168.1.2

Tunnel100Tunnel100 IPv6Network

IPv6Network

2001:420:ffff::/48

3ffe:b00:ffff:2::2/64

eth2 eth2

3ffe:b00:ffff:a::2/642001:420:ffff:a::2/64

3ffe:b00:ffff:2::1/64

192.168.2.2192.168.1.1

3ffe:b00:ffff::/48

Page 74: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

70 ©2003-2007 IP Infusion Inc. Confidential

R2

R3

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# ipv6 route 3ffe:b00:ffff::/48 Tunnel100

Specify a static route to the network via a configured tunnel.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.58 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.1.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ip address 192.168.2.1/24 Set the IP address of eth2 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.59 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config-router)# network 192.168.2.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.2.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ipv6 address 3ffe:b00:ffff:a::2/64

Set the IPv6 address of eth2 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 100 Create a tunnel interface.

ZebOS(config-if)# tunnel mode gre Set the tunnel mode.

ZebOS(config-if)# tunnel source 192.168.2.2 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# tunnel destination 192.168.1.1

Specifies the destination IPv4 address of the tunnel interface.

ZebOS(config-if)# ipv6 address 3ffe:b00:ffff:2::2/64

Set the IPv6 address on the Tunnel100 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# ipv6 route 2001:420:ffff::/48 Tunnel100

Specify a static route to the network via a configured tunnel.

Page 75: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

©2003-2007 IP Infusion Inc. Confidential 71

Names of Commands Usedtunnel mode, tunnel source, network area, router-id, tunnel destination

Validation Commandsshow interface, show ipv6 route

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.57 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.2.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

Page 76: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

72 ©2003-2007 IP Infusion Inc. Confidential

IPv6 Transition - 6to4 Automatic TunnelIPv6 transition is required for migrating from IPv4 to IPv6. One method to connect to the global IPv6 network over IPv4 existing network is called 6to4 automatic tunneling. Using this method, you do not require to specify destination address of the tunnel endpoint, instead, destination IPv6 address itself contains destination IPv4 address to be used for the tunnel encapsulation. ZebOS implementation allows automatic creation of 6to4 global IPv6 address, which is derived from the configured tunnel source address.

R1

R2

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.1.1/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ipv6 address 2002:c0a8:101:1::10/64

Set the IPv6 address of eth2 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 100 Create a tunnel interface.

ZebOS(config-if)# tunnel mode ipv6ip 6to4 Set the tunnel mode.

ZebOS(config-if)# tunnel source 192.168.1.1 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.57 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

R2

R3

eth1

eth1eth1

eth2

IPv4 Network

6to4 Tunnel

192.168.2.0/24192.168.1.0/24

Tunnel100Tunnel100

.2 .1

.2.1

IPv6Site

IPv6Site

2002:coa8:202::/482002:coa8:101::/48

2002: coa8:202 ::1/16

192.168.2.2192.168.1.1

2002:coa8:101 ::1/16

eth2 eth2

2002:coa8:202:2::10/642002:coa8:101:1::10/64

R1

Page 77: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

©2003-2007 IP Infusion Inc. Confidential 73

R3

Names of Commands Usedtunnel mode ipv6ip, tunnel source, interface tunnel (NSM Command Reference)

Validation Commandsshow interface, show ipv6 route

ZebOS(config-if)# ip address 192.168.1.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ip address 192.168.2.1/24 Set the IP address of eth2 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.58 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config-router)# network 192.168.2.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.2.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ipv6 address 2002:c0a8:202:2::10/64

Set the IPv6 address of eth2 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 100 Create a tunnel interface.

ZebOS(config-if)# tunnel mode ipv6ip 6to4 Set the tunnel mode.

ZebOS(config-if)# tunnel source 192.168.2.2 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.76 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.2.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

Page 78: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

74 ©2003-2007 IP Infusion Inc. Confidential

IPv6 Transition - 6to4 RelayThe 6to4 Relay method is used to enable the sending of IPv6 packets to destinations that have other prefixes than 2002::/16. To make these prefixes reachable, one of the 6to4 routers on the IPv4 network must act as a gateway and forward 6to4 traffic to the IPv6 Internet. This router is called the 6to4 relay. Typically, the 6to4 relay is at the border of the IPv4 and IPv6 Internet.

In this example, R3 is the 6to4 Relay, forwarding IPv6 packets received from 6to4 networks to the IPv6 Internet and receiving routes from the IPv6 Internet. To configure a 6to4 relay, a default route (::/0) is added on R1, which points to R3. This allows all prefixes (other than 2002::/16) to be forwarded to the IPv6 Internet.

R1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.1.1/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ipv6 address 2002:c0a8:101:1::10/64

Set the IPv6 address of eth2 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 100 Create a tunnel interface.

ZebOS(config-if)# tunnel mode ipv6ip 6to4 Set the tunnel mode.

ZebOS(config-if)# tunnel source 192.168.1.1 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# ipv6 route ::/0 ::192.168.2.2 Tunnel100

Specify the IPv6 default route to the 6to4 Relay router.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.59 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

R1

R2

R3

eth1

eth1eth1

eth2

IPv4 Network

6to4 Tunnel

192.168.2.0/24192.168.1.0/24

Tunnel100Tunnel100

.2 .1

.2.1

IPv6Internet

IPv6Site

2002:coa8:101::/48

2002: coa8:202 ::1/16

192.168.2.2192.168.1.1

2002:coa8:101 ::1/16

eth2 eth2

3ffe:b00:ffff:a::1/642002:coa8:101:1::10/64

6to4 Relay6to4 Router

Page 79: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

©2003-2007 IP Infusion Inc. Confidential 75

R2

R3

Names of Commands Usedtunnel mode ipv6ip, tunnel source, network area, router-id

Validation Commandsshow interface, show ipv6 route

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.1.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ip address 192.168.2.1/24 Set the IP address of eth2 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.58 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.1.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS(config-router)# network 192.168.2.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 192.168.2.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface eth2 Specify the interface (eth2) to be configured.

ZebOS(config-if)# ipv6 address 3ffe:b00:ffff:a::1/64

Set the IPv6 address of eth2 interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 100 Create a tunnel interface.

ZebOS(config-if)# tunnel mode ipv6ip 6to4 Set the tunnel mode.

ZebOS(config-if)# tunnel source 192.168.2.2 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# router ospf Create an OSPF routing instance.

ZebOS(config-router)# router-id 10.70.0.76 Specify a Router ID for the OSPF routing process.

ZebOS(config-router)# network 192.168.2.0/24 area 0

Define the interface on which OSPF runs and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).

Page 80: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

76 ©2003-2007 IP Infusion Inc. Confidential

IPv6 Transition - ISATAP Automatic TunnelISATAP (Intra-Site Automatic Tunnel Address Protocol) is typically used for a site that does not have a fully native IPv6 network. Every ISATAP router and ISATAP host can talk to each other through the ISATAP automatic tunnel over the existing IPv4 network.

The difference between the ISATAP and 6to4 tunnel is that ISATAP tunnel interface treats underlying IPv4 as an NBMA (Non Broadcast Multi Access) network. Thus, each ISATAP interface has the same IPv6 prefix. The Router Advertisement (RA) functionality is used to assign prefix automatically.

In this IPv6 transition method, IPv6 address is manually configured on a tunnel interface of the ISATAP Router. On the ISATAP Host, the IPv4 address is manually configured using the tunnel destination command. Once the ISATAP Host receives RA from the ISATAP Router, it automatically generates the IPv6 address.

R1

H1

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 10.100.1.1 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 11 Create a tunnel interface.

ZebOS(config-if)# tunnel mode ipv6ip isatap Set the tunnel mode.

ZebOS(config-if)# tunnel source 10.100.1.1 Define the IPv4 address to be used as the source address for the tunnel interface.

ZebOS(config-if)# no ipv6 nd suppress-ra Enable Router Advertisement (RA).

ZebOS(config-if)# ipv6 address 2002::5efe:c0a8:102/64

Assign IPv6 address to tunnel interface.

ZebOS# configure terminal Enter the Configure mode.

ZebOS(config)# no ipv6 forwarding Turn off IPv6 forwarding. Since H1 is a host, it does not require packet forwarding.

ZebOS(config)# interface eth1 Specify the interface (eth1) to be configured.

ZebOS(config-if)# ip address 10.100.1.2/24 Set the IP address of eth1 interface.ZebOS(config-if)# exit Exit Interface mode and enter Configure mode.

ZebOS(config)# interface tunnel 11 Create a tunnel interface.

ZebOS(config-if)# tunnel mode ipv6ip isatap Set the tunnel mode.

R1 H1

10.100.1.1 10.100.1.2

ISATAP Router ISATAP Host

Tunnel11Tunnel11

IPv4 Network

ISATAP Tunnel

2002::5efe:coa8:102/64

eth1 eth1

Page 81: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

©2003-2007 IP Infusion Inc. Confidential 77

Names of Commands Usedtunnel mode ipv6ip, tunnel source, interface tunnel, tunnel destination, no ipv6 nd suppress-ra (NSM Command Reference)

Validation Commandsshow interface, show ipv6 route

ZebOS(config-if)# tunnel destination 10.100.1.1

Specifies the destination IPv4 address of the tunnel interface.

ZebOS(config-if)# tunnel source 10.100.1.2 Define the IPv4 address to be used as the source address for the tunnel interface.

Page 82: ZebOS Core Configuration Guide Version 75

Tunneling and Transitioning

78 ©2003-2007 IP Infusion Inc. Confidential

Page 83: ZebOS Core Configuration Guide Version 75

©2003-2007 IP Infusion Inc. Confidential Index - 1

Index

Symbols(), meaning in command syntax notation 1, meaning in command syntax notation 1, meaning in command syntax notation 1?, meaning in command syntax notation 1|, meaning in command syntax notation 1

Numerics6to4 automatic tunnel 726to4 relay 74

Aabbreviated commands 5adding IP addresses to VLAN interface using ZebOS 60address family command mode 7angle brackets 1area border router 25authentication BGP 53authentication OSPF 31authentication rip multiple keys 15authentication rip-multiple keys 18authentication rip-single key 13

BBGP configuration 45

confederations 51enabling bgp 45enabling BGP- different autonomous systems 46route reflector 49route-map 47

Ccommand abbreviation 5command abbreviations 5command line errors 5command line help 4command line interface

syntax 4Command Modes

address family 7key chain 7path 7route-map 7router 6

command modesdefinitions 6

command nodes

see command modes 6confederations 51Configure, command mode definition 6configured tunnel 66configuring an IP address on VLAN 60configuring BGP 45configuring BGP authentication 53configuring IS-IS 33configuring metric 38configuring NSM 9, 55configuring OSPF 21

redistributing routes into OSPF 26configuring RIP 11configuring VLAN interfaces 59cost

OSPF 27creating a VLAN interface 59

Ddeleting VLAN interface 61displaying VLAN interface using ZebOS 60

Eenable BGP 45enable IS-IS 33Exec, command mode definition 6

GGeneric Routing Encapsulation 63GRE 63GRE tunnel 69

Hhow to configure a route-reflector 49how to configure an area border router 25how to configure cost in OSPF 27how to configure route-map 47how to configure virtual links 29how to configure VLAN interface 59how to enable authentication on an area 31how to enable authentication on an interface 31how to enable BGP 45how to enable IS-IS 33how to enable OSPF on an interface 21how to enable rip 11how to enable static routing 9how to redistribute routes into OSPF 26how to set priority in OSPF 23

Page 84: ZebOS Core Configuration Guide Version 75

Index - 2 ©2003-2007 IP Infusion Inc. Confidential

Index

how to set priority-IS-IS 35how to specify RIP version 12how to use VLAN interfaces with ZebOS 59

IInterface, command mode definition 6intra-site automatic tunnel address protocol 76IP-IP tunneling 63IPv4 and IPv6 transition tunneling 63IPv4 Tunneling 63IPv6 transition

6to4 automatic tunnel 726to4 relay 74configured tunnel 66GRE tunnel 69ISATAP automatic tunnel 76

ISATAP automatic tunnel 76IS-IS configuration 33

configuring metric 38enabling IS-IS on an interface 33L1 L2 area routing with multiple instances 43L1 L2 area routing with single instance 41redistributing routes into IS-IS 37setting priority 35

Kkernel patch MD5 authentication 53key chain command mode 7

LL1L2 area routing 41, 43Line, command mode definition 6lowercase, meaning in command syntax notation 1

Mmanual

conventions, procedures and syntax 1MD5 authentication on BGP 53MD5 libraries 53metric in IS-IS 38

NNBMA 76NSM configuration 9, 55

enabling static routing 9

OOSPF configuration 21

configuring an area border router 25configuring virtual links 29enabling authentication 31enabling OSPF on an interface 21

OSPF cost 27redistributing routes into ospf 26setting priority 23

Pparenthesis not part of command 1path command mode 7Privileged Exec, command mode definition 6

Qquestion mark 1

Rredistribute routes 26redistributing routes into IS-IS 37redistributing routes into OSPF 26RIP Configuration

RIPv2 authentication 13RIP configuration 11

enabling rip 11RIPv2 md5 authentication 18RIPv2 text authentication-multiple keys 15specifying the RIP version 12

RIP configurations 11RIP version 12route-map command mode 7route-map configure 47Router Advertisement 76router command mode 6route-reflector 49

Ssetting-priority 35Square brackets 1static routes 9syntax conventions 1syntax help 4

Ttunnel destination 76tunneling 63

UUPPERCASE, meaning in command syntax notation 1

Vvertical bar 1virtual links 29vlan interface 59