Vyatta BasicRouting R6.3 v01

download Vyatta BasicRouting R6.3 v01

of 68

Transcript of Vyatta BasicRouting R6.3 v01

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    1/68

    Vyatta

    Suite200

    1301ShorewayRoad

    Belmont,CA94002

    vyatta.com

    6504137200

    1888VYATTA1(USandCanada)

    VYATTA,INC.

    |

    VyattaSystem

    BasicRoutingREFERENCE GUIDEForwardingandRouting

    StaticRoutes

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    2/68

    COPYRIGHT

    Copyright20052011Vyatta,Inc.Allrightsreserved.

    Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof

    documentation,visittheVyattawebsiteatvyatta.com.

    PROPRIETARYNOTICES

    VyattaisaregisteredtrademarkofVyatta,Inc.

    VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc.

    XenServer,andXenCenteraretrademarksofCitrixSystems,Inc.

    Allothertrademarksarethepropertyoftheirrespectiveowners.

    RELEASEDATE:July2011

    DOCUMENTREVISION.R6.3v01

    RELEASEDWITH:R6.3.0

    PARTNO.A00215100011

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    3/68

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    4/68

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    5/68

    http://using%20the%20cli.pdf/
  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    6/68

    http://using%20the%20cli.pdf/
  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    7/68

    BasicRouting R6.3v01 Vyatta

    vii

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    8/68

    viii

    BasicRouting R6.3v01 Vyatta

    Preface

    This document presents information about forwarding and routing on the Vyatta

    system.This preface provides information about using this guide. The following topics arepresented:

    Intended Audience

    Organization of This Guide

    Document Conventions

    Vyatta Publications

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    9/68

    IntendedAudience ix

    BasicRouting R6.3v01 Vyatta

    IntendedAudience

    This guide is intended for experienced system and network administrators.Depending on the functionality to be used, readers should have specific knowledge

    in the following areas:

    Networking and data communications

    TCP/IP protocols

    General router configuration

    Routing protocols

    Network administration

    Network security

    IP services

    OrganizationofThisGuide

    This guide has the following aid to help you find the information you are looking for:

    Quick Reference to Commands

    Use this list to help you quickly locate commands.

    Quick List of Examples

    Use this list to help you locate examples youd like to try or look at.

    This guide has the following chapters:

    Chapter Description Page

    Chapter 1:ForwardingandRouting Thischapterdescribescommandsfor

    forwardingandbasicrouting.

    1

    Chapter 2:StaticRoutes Thischapterexplainshowtosetstaticroutes

    usingtheVyattasystem.

    32

    GlossaryofAcronyms 53

    http://../copyOfWorking/BasicRoutingRefQRC.pdfhttp://../copyOfWorking/BasicRoutingRefLOE.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Glossary.pdfhttp://../copyOfWorking/Glossary.pdfhttp://../copyOfWorking/Glossary.pdfhttp://../copyOfWorking/Glossary.pdfhttp://../copyOfWorking/Glossary.pdfhttp://../copyOfWorking/Glossary.pdfhttp://../copyOfWorking/Glossary.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Static%20Routes.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/Forwarding%20and%20Routing.pdfhttp://../copyOfWorking/BasicRoutingRefLOE.pdfhttp://../copyOfWorking/BasicRoutingRefQRC.pdf
  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    10/68

    DocumentConventions x

    BasicRouting R6.3v01 Vyatta

    DocumentConventions

    This guide uses the following advisory paragraphs, as follows.

    NOTE Notesprovideinformationyoumightneedtoavoidproblemsorconfigurationerrors.

    This document uses the following typographic conventions.

    WARNING Warningsalertyoutosituationsthatmayposeathreattopersonalsafety.

    CAUTION Cautionsalertyoutosituationsthatmightcauseharmtoyoursystemordamagetoequipment,orthatmayaffectservice.

    Monospace Examples, command-line output, and representations ofconfiguration nodes.

    boldMonospace Your input: something you type at a command line.

    bold Commands, keywords, and file names, when mentionedinline.

    Objects in the user interface, such as tabs, buttons, screens,and panes.

    italics An argument or variable where you supply a value.

    A key on your keyboard, such as . Combinations of keys are joined by plus signs (+), as in +c.

    [ key1 | key2] Enumerated options for completing a syntax. An example is[enable | disable].

    num1numN A inclusive range of numbers. An example is 165535, whichmeans 1 through 65535, inclusive.

    arg1..argN A range of enumerated values. An example is eth0..eth3,which means eth0, eth1, eth2, or eth3.

    arg[ arg...]arg[,arg...]

    A value that can optionally represent a list of elements (aspace-separated list and a comma-separated list, respectively).

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    11/68

    VyattaPublications xi

    BasicRouting R6.3v01 Vyatta

    VyattaPublications

    Full product documentation is provided in the Vyatta technical library. To see whatdocumentation is available for your release, see the Guide to Vyatta Documentation.

    This guide is posted with every release of Vyatta software and provides a greatstarting point for finding the information you need.

    Additional information is available on www.vyatta.com and www.vyatta.org.

    http://www.vyatta.com/http://www.vyatta.org/http://www.vyatta.org/http://www.vyatta.com/
  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    12/68

    1

    BasicRouting R6.3v01 Vyatta

    Chapter1:ForwardingandRouting

    This chapter describes commands for forwarding and basic routing.

    This chapter presents the following topics:

    Forwarding and Routing Commands

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    13/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 2

    BasicRouting R6.3v01 Vyatta

    ForwardingandRoutingCommands

    This chapter contains the following commands.

    ConfigurationCommands

    None

    OperationalCommands

    clearipprefixlist Clearsprefixliststatisticsorstatus.

    cleariproutecache Flushesthekernelroutecache.

    clearipv6prefixlist Clearsprefixliststatisticsorstatus.

    clearipv6routecache FlushesthekernelIPv6routecache.

    showipforwarding DisplaysIPforwardingstatus.

    showiproute DisplaysroutesstoredintheRIBandFIB.

    showiproutelongerprefixes Displaysprefixeslongerthanaspecifiedprefix.

    showiproutecache Displaysthekernelroutecache.

    showiprouteconnected Displaysdirectlyconnectedroutes.

    showiprouteforward DisplaysroutesstoredintheFIB.

    showiproutestatic Displaysstaticroutes.

    showiproutekernel Displayskernelroutes.

    showiproutesummary Displaysroutessummary.

    showiproutesupernetsonly Displayssupernetroutes.

    showipv6route DisplaysIPv6routesstoredintheRIBandFIB.

    showipv6routelongerprefixes DisplaysIPv6prefixeslongerthanaspecifiedprefix.

    showipv6routebgp DisplaysIPv6BGProutes.

    showipv6routecache DisplaysthekernelIPv6routecache.

    showipv6routeconnected DisplaysIPv6connectedroutes.

    showipv6routeforward DisplaysIPv6routesstoredintheFIB.

    showipv6routekernel DisplaysIPv6kernelroutes.

    showipv6routeripng DisplaysIPv6RIPngroutes.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    14/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 3

    BasicRouting R6.3v01 Vyatta

    showipv6routestatic DisplaysIPv6staticroutes.

    showipv6routesummary DisplaysIPv6routessummary.

    showtable Displaysthesystemsroutingtable.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    15/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 4

    BasicRouting R6.3v01 Vyatta

    clearipprefixlist

    Clears prefix list statistics or status.

    Syntax

    clear ip prefix-list [list-name [ipv4net]]

    CommandMode

    Operational mode.

    Parameters

    Default

    Statistics for all prefix-lists are cleared.

    UsageGuidelines

    Use this command to clear prefix list statistics or status.

    list-name Optional. Clears statistics for the specified prefix list.

    ipv4net Optional. Clears statistics for the specified network.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    16/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 5

    BasicRouting R6.3v01 Vyatta

    cleariproutecache

    Flushes the kernel route cache.

    Syntax

    clear ip route cache [ipv4net]

    CommandMode

    Operational mode.

    Parameters

    Default

    Flushes the entire route cache.

    UsageGuidelines

    Use this command to flush the kernel route cache or a flush a specific route from the

    cache.

    ipv4net Optional. Flushes the specified route from the kernel routecache.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    17/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 6

    BasicRouting R6.3v01 Vyatta

    clearipv6prefixlist

    Clears prefix list statistics or status.

    Syntax

    clear ipv6 prefix-list [list-name [ipv6net]]

    CommandMode

    Operational mode.

    Parameters

    Default

    Statistics for all prefix-lists are cleared.

    UsageGuidelines

    Use this command to clear prefix list statistics or status.

    list-name Optional. Clears statistics for the specified prefix list.

    ipv6net Optional. Clears statistics for the specified network.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    18/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 7

    BasicRouting R6.3v01 Vyatta

    clearipv6routecache

    Flushes the kernel IPv6 route cache.

    Syntax

    clear ipv6 route cache [ipv6net]

    CommandMode

    Operational mode.

    Parameters

    Default

    Flushes the entire IPv6 route cache.

    UsageGuidelines

    Use this command to flush the kernel IPv6 route cache or a flush a specific route from

    the cache.

    ipv6net Optional. Flushes the specified route from the kernel IPv6 routecache.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    19/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 8

    BasicRouting R6.3v01 Vyatta

    showipforwarding

    Displays IP forwarding status.

    Syntax

    show ip forwarding

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display the current IP forwarding status.

    Examples

    Example 1-1 shows how to display the status of IP forwarding.

    Example11 DisplayingIPforwardingstatus

    vyatta@vyatta:~$showipforwarding

    IPforwardingison

    vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    20/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 9

    BasicRouting R6.3v01 Vyatta

    showiproute

    Displays routes stored in the RIB and FIB.

    Syntax

    show ip route [ipv4 | ipv4net]

    CommandMode

    Operational mode.

    Parameters

    Default

    Lists all routes in the RIB and FIB.

    UsageGuidelines

    Use this command to display active prefixes stored in the Routing Information Base(RIB), as well as those stored in the Forwarding Information Base (FIB).

    The routes shown in the FIB can also be seen using show ip route forward command.

    Examples

    Example 1-2 shows how to display routes in the RIB and FIB

    Example12 DisplayingroutesintheRIBandFIB

    vyatta@vyatta:~$show

    ip

    route

    Codes:K kernelroute,C connected,S static,R RIP,O OSPF,

    I ISIS,B BGP,> selectedroute,* FIBroute

    S>*0.0.0.0/0[1/0]via10.1.0.1,eth0

    O 10.1.0.0/24[110/10]isdirectlyconnected,eth0,05:35:15

    C>*10.1.0.0/24isdirectlyconnected,eth0

    ipv4 Optional. Displays routing information for the specifiedaddress.

    ipv4net Optional. Displays routing information for the specified prefix.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    21/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 10

    BasicRouting R6.3v01 Vyatta

    O>*10.192.32.0/24[110/20]via10.1.0.45,eth0,05:35:15

    O>*10.192.128.0/24[110/11]via10.1.0.66,eth0,05:35:15

    O>*10.192.128.1/32[110/11]via10.1.0.66,eth0,05:35:15

    O>*10.192.129.0/24[110/11]via10.1.0.66,eth0,05:35:15

    O>*10.192.130.0/24[110/11]via10.1.0.66,eth0,05:35:15

    O>*

    10.192.131.0/24

    [110/11]

    via

    10.1.0.66,

    eth0,

    05:35:15C>*127.0.0.0/8isdirectlyconnected,lo

    O>*172.16.0.0/24[110/11]via10.1.0.4,eth0,05:35:15

    O>*172.16.1.0/24[110/11]via10.1.0.4,eth0,05:35:15

    O>*172.16.2.0/24[110/11]via10.1.0.4,eth0,05:35:15

    O>*172.16.3.0/24[110/11]via10.1.0.4,eth0,05:35:15

    O>*172.16.4.0/24[110/11]via10.1.0.4,eth0,05:35:15

    O>*172.16.5.0/24[110/11]via10.1.0.4,eth0,05:35:15

    O>*172.16.6.0/24[110/11]via10.1.0.4,eth0,05:35:15

    O>*172.16.7.0/24[110/11]via10.1.0.4,eth0,05:35:15

    O>*172.16.8.0/24[110/11]via10.1.0.4,eth0,05:35:15

    O>*172.16.9.0/24[110/11]via10.1.0.4,eth0,05:35:15

    C>*

    172.16.234.0/25

    is

    directly

    connected,

    eth1S>*192.94.202.0/24[1/0]via172.16.234.27,eth1

    vyatta@vyatta:~$

    Example 1-3 shows information how to display information for the route to address10.192.128.1.

    Example13 Displayingroutinginformationaboutaspecificaddress

    vyatta@vyatta:~$showiproute10.192.128.1

    Routing

    entry

    for

    10.192.128.1/32 Knownvia"ospf",distance110,metric11,best

    Lastupdate09:47:07ago

    *10.1.0.66,viaeth0

    vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    22/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 11

    BasicRouting R6.3v01 Vyatta

    showiproutelongerprefixes

    Displays prefixes longer than a specified prefix.

    Syntax

    show ip routeipv4netlonger-prefixes

    CommandMode

    Operational mode.

    Parameters

    Default

    None.

    UsageGuidelines

    Use this command to display all prefixes in the Routing Information Base (RIB) that

    are longer than a given IP address or prefix.

    Examples

    Example 1-4 shows how to list prefixes longer than the prefix 10.192.128.0/24.

    Example14 Displayingrouteswithlongerprefixes

    vyatta@vyatta:~$showiproute10.192.128.0/24longerprefixes

    Codes:K kernelroute,C connected,S static,R RIP,O OSPF,

    I ISIS,B BGP,> selectedroute,* FIBroute

    O>*10.192.128.0/24[110/11]via10.1.0.66,eth0,09:36:20

    O>*10.192.128.1/32[110/11]via10.1.0.66,eth0,09:36:20

    vyatta@vyatta:~$

    ipv4net Mandatory. Displays all prefixes longer than the specifiedprefix.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    23/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 12

    BasicRouting R6.3v01 Vyatta

    showiproutecache

    Displays the kernel route cache.

    Syntax

    show ip route cache [ipv4net]

    CommandMode

    Operational mode.

    Parameters

    Default

    Lists routes in the kernel route cache.

    UsageGuidelines

    Use this command to display information about routes stored in the kernel route

    cache. The route cache contains all paths currently in use by the cache. Multipleequal-cost paths are necessary before equal-cost-multi-path (ECMP) routing can beperformed.

    Examples

    Example 1-5 shows how to list routes in the kernel route cache.

    Example15 Listingroutesinthekernelroutecache

    vyatta@vyatta:~$showiproutecache

    local

    10.1.0.62

    from

    10.1.0.1

    dev

    lo

    src

    10.1.0.62 cache users1age42seciifeth0

    multicast224.0.0.5from10.1.0.45devlo src10.1.0.62

    cache users1used8age5seciifeth0

    local10.1.0.62from69.59.150.131devlo src10.1.0.62

    cache users1used3age47seciifeth0

    10.1.0.1from10.1.0.62deveth0

    ipv4net Optional. Displays kernel route cache information for thespecified route.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    24/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 13

    BasicRouting R6.3v01 Vyatta

    cache users1age42secmtu1500advmss1460hoplimit64

    10.0.0.30from10.1.0.62toslowdelayvia10.1.0.1deveth0

    cache users2age0secmtu1500advmss1460hoplimit64

    multicast224.0.0.5from10.1.0.56devlo src10.1.0.62

    cache users1used8age8seciifeth0

    multicast

    224.0.0.5

    from

    10.1.0.66

    dev

    lo

    src

    10.1.0.62 cache users1used8age0seciifeth0

    multicast224.0.0.6deveth0 src10.1.0.62

    cache users1age21secmtu1500advmss1460hoplimit64

    multicast224.0.0.5from10.1.0.4devlo src10.1.0.62

    cache users1used9age1seciifeth0

    69.59.150.131via10.1.0.1deveth0 src10.1.0.62

    cache users1age47secmtu1500advmss1460hoplimit64

    multicast224.0.0.5deveth0 src10.1.0.62

    cache users1used8age5secmtu1500advmss1460hoplimit64

    69.59.150.131from10.1.0.62via10.1.0.1deveth0

    cache

    users

    1

    used

    1

    age

    47sec

    mtu

    1500

    advmss

    1460

    hoplimit

    64local10.1.0.62from10.0.0.30toslowdelaydevlo src10.1.0.62

    cache users1used1age0seciifeth0

    vyatta@vyatta:~$

    Example 1-6 shows how to display information about route 10.1.0.62 in the kernelroute cache.

    Example16 Displayinginformationaboutarouteinthekernelroutecache

    vyatta@vyatta:~$show

    ip

    route

    cache

    10.1.0.62

    local10.1.0.62from10.1.0.1devlo src10.1.0.62

    cache users1used3age9seciifeth0

    local10.1.0.62from69.59.150.131devlo src10.1.0.62

    cache users1used7age102seciifeth0

    local10.1.0.62from10.0.0.30toslowdelaydevlo src10.1.0.62

    cache users1used33iifeth0

    vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    25/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 14

    BasicRouting R6.3v01 Vyatta

    showiprouteconnected

    Displays directly connected routes.

    Syntax

    show ip route connected

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display routes directly connected to the local system.

    Examples

    Example 1-7 shows how to list directly connected routes.

    Example17 Displayingconnectedroutes

    vyatta@vyatta:~$showiprouteconnected

    Codes:K kernelroute,C connected,S static,R RIP,O OSPF,

    I ISIS,B BGP,> selectedroute,* FIBroute

    C>*10.1.0.0/24isdirectlyconnected,eth0

    C>*127.0.0.0/8isdirectlyconnected,lo

    C>*172.16.234.0/25isdirectlyconnected,eth1

    vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    26/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 15

    BasicRouting R6.3v01 Vyatta

    showiprouteforward

    Displays routes stored in the FIB.

    Syntax

    show ip route forward [ipv4net]

    CommandMode

    Operational mode.

    Parameters

    Default

    Lists routes in the FIB.

    UsageGuidelines

    Use this command to display the FIB.

    The FIB contains multiple equal-cost paths if existed. Multiple equal-cost paths arenecessary before equal-cost multi-path (ECMP) routing or WAN load balancing canbe performed.

    Examples

    Example 1-8 shows how to display routes recorded in the FIB.

    Example18 DisplayingroutesintheFIB

    vyatta@vyatta:~$showiprouteforward

    defaultvia10.1.0.1deveth0 protozebra

    10.1.0.0/24deveth0 protokernel scopelink src10.1.0.62

    10.192.32.0/24via10.1.0.45deveth0 protozebra metric20

    10.192.128.0/24via10.1.0.66deveth0 protozebra metric11

    10.192.128.1via10.1.0.66deveth0 protozebra metric11

    10.192.129.0/24via10.1.0.66deveth0 protozebra metric11

    10.192.130.0/24via10.1.0.66deveth0 protozebra metric11

    ipv4net Optional. Displays information from the kernel forwardingtable for the specified route.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    27/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 16

    BasicRouting R6.3v01 Vyatta

    10.192.131.0/24via10.1.0.66deveth0 protozebra metric11

    172.16.0.0/24via10.1.0.4deveth0 protozebra metric11

    172.16.1.0/24via10.1.0.4deveth0 protozebra metric11

    172.16.2.0/24via10.1.0.4deveth0 protozebra metric11

    172.16.3.0/24via10.1.0.4deveth0 protozebra metric11

    172.16.4.0/24

    via

    10.1.0.4

    dev

    eth0

    proto

    zebra

    metric

    11172.16.5.0/24via10.1.0.4deveth0 protozebra metric11

    172.16.6.0/24via10.1.0.4deveth0 protozebra metric11

    172.16.7.0/24via10.1.0.4deveth0 protozebra metric11

    172.16.8.0/24via10.1.0.4deveth0 protozebra metric11

    172.16.9.0/24via10.1.0.4deveth0 protozebra metric11

    172.16.234.0/25deveth1 protokernel scopelink src172.16.234.23

    192.94.202.0/24via172.16.234.27deveth1 protozebra

    vyatta@vyatta:~$

    Example 1-9 shows how to display information from the FIB about route10.1.0.0/24.

    Example19 DisplayinginformationaboutarouteintheFIB

    vyatta@vyatta:~$showiprouteforward10.1.0.0/24

    10.1.0.0/24deveth0 protokernel scopelink src10.1.0.62

    vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    28/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 17

    BasicRouting R6.3v01 Vyatta

    showiproutekernel

    Displays kernel routes.

    Syntax

    show ip route kernel

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display kernel routes. Kernel routes are routes that have beenadded through means other than by using the Vyatta CLI; for example by using theoperating system route command, as in the following:

    routeadd net10.172.24.0netmask255.255.255.0gw10.1.0.1

    Examples

    Example 1-10 shows how to display kernel routes.

    Example110 Displayingkernelroutes

    vyatta@vyatta:~$showiproutekernel

    Codes:K kernelroute,C connected,S static,R RIP,O OSPF,

    I ISIS,B BGP,> selectedroute,* FIBroute

    K>*

    10.172.24.0/24

    via

    10.1.0.1,

    eth0vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    29/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 18

    BasicRouting R6.3v01 Vyatta

    showiproutestatic

    Displays static routes.

    Syntax

    show ip route static

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display static routes in the Routing Information Base (RIB).

    Examples

    Example 1-11 shows how to list static routes.

    Example111 Displayingstaticroutes

    vyatta@vyatta:~$showiproutestatic

    Codes:K kernelroute,C connected,S static,R RIP,O OSPF,

    I ISIS,B BGP,> selectedroute,* FIBroute

    S>*0.0.0.0/0[1/0]via10.1.0.1,eth0

    S>*192.94.202.0/24[1/0]via172.16.234.27,eth1

    vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    30/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 19

    BasicRouting R6.3v01 Vyatta

    showiproutesummary

    Displays routes summary.

    Syntax

    show ip route summary

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display a summary of the various routes by route source.

    Examples

    Example 1-12 shows how to display a summary of routes.

    Example112 Displayingasummaryofroutes

    vyatta@vyatta:~$showiproutesummary

    RouteSource Routes FIB

    connected 4 4

    static 2 2

    ospf 1 0

    ebgp 0 0

    ibgp 289016 289011

    Totals 289023 289017

    vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    31/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 20

    BasicRouting R6.3v01 Vyatta

    showiproutesupernetsonly

    Displays supernet routes.

    Syntax

    show ip route supernets-only

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display supernet routes.

    Supernet routes are routes that have a subnet mask thatis less specific than thenatural classful mask.

    Examples

    Example 1-13 shows how to list supernet routes.

    Example113 Displayingsupernetroutes

    vyatta@vyatta:~$showiproutesupernetsonly

    Codes:K kernelroute,C connected,S static,R RIP,O OSPF,

    I ISIS,B BGP,> selectedroute,* FIBroute

    S>*0.0.0.0/0[1/0]via10.1.0.1,eth0

    vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    32/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 21

    BasicRouting R6.3v01 Vyatta

    showipv6route

    Displays IPv6 routes stored in the RIB and FIB.

    Syntax

    show ipv6 route[ipv6 | ipv6net]

    CommandMode

    Operational mode.

    Parameters

    Default

    Lists all IPv6 routes in the RIB and FIB.

    UsageGuidelines

    Use this command to display active IPv6 prefixes stored in the Routing InformationBase (RIB), as well as those stored in the Forwarding Information Base (FIB).

    The routes shown in the FIB can also be seen using show ip route forward command.

    ipv6 Optional. Displays routing information for the specified IPv6address.

    ipv6net Optional. Displays routing information for the specified IPv6prefix.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    33/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 22

    BasicRouting R6.3v01 Vyatta

    showipv6routelongerprefixes

    Displays IPv6 prefixes longer than a specified prefix.

    Syntax

    show ipv6 routeipv6netlonger-prefixes

    CommandMode

    Operational mode.

    Parameters

    Default

    None.

    UsageGuidelines

    Use this command to display all prefixes in the Routing Information Base (RIB) that

    are longer than a given IPv6 address or prefix.

    ipv6net Mandatory. Displays all prefixes longer than the specified IPv6prefix.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    34/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 23

    BasicRouting R6.3v01 Vyatta

    showipv6routebgp

    Displays IPv6 BGP routes.

    Syntax

    show ipv6 route bgp

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display IPv6 BGP routes.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    35/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 24

    BasicRouting R6.3v01 Vyatta

    showipv6routecache

    Displays the kernel IPv6 route cache.

    Syntax

    show ipv6 route cache [ipv6net]

    CommandMode

    Operational mode.

    Parameters

    Default

    Lists routes in the kernel IPv6 route cache.

    UsageGuidelines

    Use this command to display information about routes stored in the kernel IPv6

    route cache. The route cache contains all paths currently in use by the cache.Multiple equal-cost paths are necessary before equal-cost-multi-path (ECMP)routing can be performed.

    ipv6net Optional. Displays kernel IPv6 route cache information for thespecified route.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    36/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 25

    BasicRouting R6.3v01 Vyatta

    showipv6routeconnected

    Displays IPv6 connected routes.

    Syntax

    show ipv6 route connected

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display IPv6 routes directly connected to the local system.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    37/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 26

    BasicRouting R6.3v01 Vyatta

    showipv6routeforward

    Displays IPv6 routes stored in the FIB.

    Syntax

    show ipv6 route forward [ipv6net]

    CommandMode

    Operational mode.

    Parameters

    Default

    Lists IPv6 routes in the FIB.

    UsageGuidelines

    Use this command to display the FIB.

    The FIB contains multiple equal-cost paths if existed. Multiple equal-cost paths arenecessary before equal-cost multi-path (ECMP) routing or WAN load balancing canbe performed.

    ipv6net Optional. Displays information from the kernel forwardingtable for the specified IPv6 route.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    38/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 27

    BasicRouting R6.3v01 Vyatta

    showipv6routekernel

    Displays IPv6 kernel routes.

    Syntax

    show ipv6 route kernel

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display IPv6 kernel routes. Kernel routes are routes that havebeen added through means other than by using the Vyatta CLI.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    39/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 28

    BasicRouting R6.3v01 Vyatta

    showipv6routeripng

    Displays IPv6 RIPng routes.

    Syntax

    show ipv6 route ripng

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display IPv6 RIPng routes.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    40/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 29

    BasicRouting R6.3v01 Vyatta

    showipv6routestatic

    Displays IPv6 static routes.

    Syntax

    show ipv6 route static

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display IPv6 static routes in the Routing Information Base(RIB).

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    41/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 30

    BasicRouting R6.3v01 Vyatta

    showipv6routesummary

    Displays IPv6 routes summary.

    Syntax

    show ipv6 route summary

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display a summary of the various IPv6 routes by route source.

    Examples

    Example 1-14 shows a summary of IPv6 routes.

    Example114 showipv6routesummary:DisplayingasummaryofIPv6routes

    vyatta@vyatta:~$showipv6routesummary

    RouteSource Routes FIB

    connected 4 4

    static 2 2

    Totals 6 6

    vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    42/68

    Chapter1:ForwardingandRouting ForwardingandRoutingCommands 31

    BasicRouting R6.3v01 Vyatta

    showtable

    Displays the systems routing table.

    Syntax

    show table

    CommandMode

    Operational mode.

    Parameters

    None.

    Default

    None.

    UsageGuidelines

    Use this command to display the systems routing table.

    Examples

    Example 1-15 shows how to display the routing table.

    Example115 Displayingtheroutingtable

    vyatta@vyatta:~$showtable

    table0

    vyatta@vyatta:~$

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    43/68

    32

    BasicRouting R6.3v01 Vyatta

    Chapter2:StaticRoutes

    This chapter explains how to set static routes using the Vyatta system.

    This chapter presents the following topics:

    Static Route Configuration

    Static IPv6 Route Configuration

    Static Route Commands

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    44/68

    Chapter2:StaticRoutes StaticRouteConfiguration 33

    BasicRouting R6.3v01 Vyatta

    StaticRouteConfiguration

    This section presents the following topics:

    Static Routes Overview

    Configuring Static Routes

    Floating Static Routes

    Showing Static Routes in the Routing Table

    StaticRoutesOverviewA static route is a manually configured route, which, in general, cannot be updateddynamically from information the Vyatta system learns about the network topology.However, if a link fails, the router will remove routes, including static routes, from

    the Routing Information Base (RIB) that used this interface to reach the next hop.In general, static routes should only be used for very simple network topologies, orto override the behavior of a dynamic routing protocol for a small number of routes.

    The collection of all routes the router has learned from its configuration or from itsdynamic routing protocols is stored in its Routing Information Base (RIB).

    Unicast routes are directly used to determine the forwarding table used for unicastpacket forwarding.

    ConfiguringStaticRoutes

    In this example, a sample configurations are presented for basic static routes. Whenyou are finished, the system will be configured as shown in Figure 2-1. In thisexample, a static route is created that says, in effect, any packets destined for the11.0.0.0/8 network should be forwarded to 172.16.0.26.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    45/68

    Chapter2:StaticRoutes StaticRouteConfiguration 34

    BasicRouting R6.3v01 Vyatta

    Figure21 Staticroutes

    This section includes the following examples:

    Example 2-1 Creating a static route

    Example 2-1 creates a static route to network 11.0.0.0/8 directed towards172.16.0.26.

    To create a static route, perform the following steps in configuration mode:

    Floating

    Static

    RoutesUsually, static routes have a relatively short administrative distancetypically 1, andusually shorter than the administrative distances for dynamic (learned) routes. Afloating static route is a static route with an administrative distance greater thanthat for dynamic routes.

    R1

    eth0

    172.16.0.65

    172.16.0.0/24

    Static Route

    Destination: 11.0.0.0/8

    Next-Hop: 172.16.0.26

    R2 11.0.0.0/8

    10.10.40.0/24

    eth0

    172.16.0.26

    Example21 Creatingastaticroute

    Step Command

    CreateastaticroutetoR2. vyatta@R1#setprotocolsstaticroute11.0.0.0/8nexthop172.16.0.26

    Committheconfiguration. vyatta@R1#commit

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    46/68

    Chapter2:StaticRoutes StaticIPv6RouteConfiguration 35

    BasicRouting R6.3v01 Vyatta

    You can configure a static route to be a floating route by setting the administrativedistance higher than the distance applied to the routes in your dynamic routingprotocol. This renders the static route less desirable than a dynamic route. At thesame time, if the dynamic route is lost, the static route is available to take over traffic,which can be forwarded through the static route as an alternate path.

    ShowingStaticRoutesintheRoutingTableTo display route information, use the show ip route command. To show just staticroutes, use the show ip route static filter, as shown in Example 2-2.

    Example22 Showingstaticroutesintheroutingtable

    vyatta@R1:~$showiproutestatic

    Codes:K kernelroute,C connected,S static,R RIP,O OSPF,

    I ISIS,B BGP,> selectedroute,* FIBroute

    S>*11.0.0.0/8[1/0]via172.16.0.26,eth0

    vyatta@R1:~$

    StaticIPv6RouteConfiguration

    Figure 2-2 shows an IPv6 network with three nodes. In this example we will showconfiguration of the nodes using static routes to enable R2 and R4 to communicate

    via R1.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    47/68

    Chapter2:StaticRoutes StaticIPv6RouteConfiguration 36

    BasicRouting R6.3v01 Vyatta

    Figure22 StaticIPv6routingexample

    VerifyThatIPv6ForwardingisEnabledIn order for R1 to be able to pass data between interfaces eth0 and eth2 (i.e., betweenR4 and R2) it must be configured to enable forwarding. To determine if forwardingis enabled, perform the following step in operational mode.

    If forwarding is not enabled, as is the case in Example 2-3, the system must beconfigured to enable forwarding. To enable forwarding, perform the following stepsin configuration mode.

    2001:db8:2::/64

    R1

    eth2

    2001:db8:2::1

    R2

    eth0

    2001 :db8:2::2

    2001:db8:1::/64

    R4

    2001:db8:1::1

    eth0

    eth0

    2001:db8:1::4

    Example23

    Determineifforwarding

    is

    enabled

    on

    R1

    Step Command

    DisplaythestateofIPv6

    forwardingonR1.

    vyatta@R1:~$showipv6forwarding

    ipv6forwardingisoff

    Example24

    Enableforwarding

    on

    R1

    Step Command

    EnableforwardingonR1. vyatta@R1#deletesystemipv6disableforwarding

    Committhechange. vyatta@R1#commit

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    48/68

    Chapter2:StaticRoutes StaticIPv6RouteConfiguration 37

    BasicRouting R6.3v01 Vyatta

    AddtheDefaultIPv6RouteOn R4, all traffic that is not routed elsewhere will be sent to R1. To configure thedefault route, perform the following steps in configuration mode.

    Changetooperationalmode vyatta@R1#exit

    exit

    vyatta@R1:~$

    Displaythe

    state

    of

    IPv6

    forwardingonR1.vyatta@R1:~$

    show

    ipv6

    forwarding

    ipv6forwardingison

    Example24 EnableforwardingonR1

    Example25 AddthedefaultrouteonR4

    Step Command

    AddthedefaultrouteonR4. vyatta@R4#setprotocolsstaticroute6::/0nexthop2001:db8:1::1

    Committhechange. vyatta@R4#commit

    Changetooperationalmode. vyatta@R4#exit

    exit

    vyatta@R4:~$

    Verifythedefaultrouteinthe

    routingtable.

    vyatta@R4:~$showipv6route

    Codes:K kernelroute,C connected,S static,R RIPng,O OSPFv3,

    I ISIS,B BGP,* FIBroute.

    S>*::/0[1/0]via2001:db8:1::1,eth0

    C>*::1/128isdirectlyconnected,lo

    C>*2001:db8:1::/64isdirectlyconnected,eth0

    C*fe80::/64isdirectlyconnected,eth1

    C>*fe80::/64isdirectlyconnected,eth0

    K>*ff00::/8isdirectlyconnected,eth0

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    49/68

    Chapter2:StaticRoutes StaticIPv6RouteConfiguration 38

    BasicRouting R6.3v01 Vyatta

    AddaStaticIPv6RouteAs an alternative to the default route we created on R4, well create a static route onR2. To configure a static route to the 2001:db8:1::/64 network, perform thefollowing steps in configuration mode.

    ConfirmConnectivityTo confirm that R2 and R4 can communicate, use the ping6 command. To confirmconnectivity between R2 and R4, perform the following step in operational mode.

    Example26 AddastaticrouteonR2

    Step Command

    AddastaticrouteonR2. vyatta@R1# setprotocolsstaticroute62001:db8:1::/64nexthop2001:db8:2::1

    Committhechange. vyatta@R1# commit

    Changetooperationalmode. vyatta@R1# exit

    exit

    vyatta@R2:~$

    Verifythe

    static

    route

    in

    the

    routingtable.vyatta@R2:~$

    show

    ipv6

    route

    Codes:K kernelroute,C connected,S static,R RIPng,O OSPFv3,

    I ISIS,B BGP,* FIBroute.

    C>*::1/128isdirectlyconnected,lo

    S>*2001:db8:1::/64[1/0]via2001:db8:2::1,eth0

    C>*2001:db8:2::/64isdirectlyconnected,eth0

    C*fe80::/64isdirectlyconnected,eth1

    C>*fe80::/64isdirectlyconnected,eth0

    K>*ff00::/8isdirectlyconnected,eth0

    Example27 ConfirmconnectivitybetweenR2andR4

    Step Command

    PingR4fromR2. vyatta@R2:~$ ping62001:db8:1::4

    PING

    2001:db8:1::4(2001:db8:1::4)

    56

    data

    bytes64bytesfrom2001:db8:1::4:icmp_seq=1ttl=63time=5.65ms

    64bytesfrom2001:db8:1::4:icmp_seq=2ttl=63time=0.382ms

    ^C

    2001:db8:1::4pingstatistics

    2packetstransmitted,2received,0%packetloss,time1011ms

    rttmin/avg/max/mdev=0.382/3.016/5.650/2.634ms

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    50/68

    Chapter2:StaticRoutes StaticIPv6RouteConfiguration 39

    BasicRouting R6.3v01 Vyatta

    As an alternative, use traceroute6 to verify that the goes from R2 to R1 to R4. Toconfirm connectivity between R2 and R4 through R1 using traceroute6, perform thefollowing step in operational mode.

    Example28 ConfirmconnectivitybetweenR2andR4viaR1

    Step Command

    TracetheroutefromR2toR4. vyatta@R2:~$ traceroute62001:db8:1::4

    tracerouteto2001:db8:1::4(2001:db8:1::4),30hopsmax,40bytepackets

    1 (2001:db8:2::1) 4.448ms 4.148ms 4.092ms

    2 (2001:db8:1::4) 4.297ms 4.306ms 4.308ms

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    51/68

    Chapter2:StaticRoutes StaticRouteCommands 40

    BasicRouting R6.3v01 Vyatta

    StaticRouteCommands

    This chapter contains the following commands.

    ConfigurationCommands

    protocolsstaticinterfaceroute

    nexthopinterface

    Allowsyoutoconfigurethenexthopinterfaceforan

    interfacebasedstaticroute.

    protocolsstaticinterfaceroute6

    nexthopinterface

    Allowsyoutoconfigurethenexthopinterfaceforan

    interfacebasedIPv6staticroute.

    protocolsstaticrouteblackhole Allowsyoutoconfigureablackholestaticroute.

    protocolsstaticroutenexthop Allowsyoutoconfigurethenexthopforastaticroute.

    protocolsstaticroute6blackhole AllowsyoutoconfigureablackholeIPv6staticroute.

    protocolsstaticroute6nexthop

    AllowsyoutoconfigurethenexthopforanIPv6staticroute.

    OperationalCommands

    showiproutestatic Displaysstaticroutes.Seepage 18.showipv6routestatic DisplaysIPv6staticroutes.Seepage 18.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    52/68

    Chapter2:StaticRoutes StaticRouteCommands 41

    BasicRouting R6.3v01 Vyatta

    protocolsstaticinterfaceroute

    nexthopinterface

    Allows you to configure the next-hop interface for an interface-based static route.

    Syntax

    set protocols static interface-routesubnetnext-hop-interface interface [disable |distancedistance]

    delete protocols static interface-routesubnetnext-hop-interface interface[disable |distance]

    show protocols static interface-routesubnetnext-hop-interface interface[disable |distance]

    CommandMode

    Configuration mode.

    ConfigurationStatement

    protocols{

    static{

    interfaceroutesubnet{

    nexthopinterfaceinterface{

    disable

    distancedistance

    }

    }

    }

    }

    Parameters

    subnet Mandatory. Multi-node. Defines an interface-basedstatic route. The format is a destination subnet of the

    form address/prefix.You can define multiple interface-based routes bycreating multiple interface-route configuration nodes.

    interface Mandatory. The next-hop interface.

    disable Disables the interface-based static route.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    53/68

    Chapter2:StaticRoutes StaticRouteCommands 42

    BasicRouting R6.3v01 Vyatta

    Default

    None.

    UsageGuidelines

    Use this command to configure interface-based static routes on the router.

    Use the set form of this command to specify the next-hop interface for the route.

    Use the delete form of this command to remove the next-hop interface.

    Use the show form of this command to view the next-hop interface for the route.

    distance Optional. Sets the next-hop distance for this route.Routes with a smaller distance are selected before thosewith a larger distance. The range is 1 to 255. The defaultis 1.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    54/68

    Chapter2:StaticRoutes StaticRouteCommands 43

    BasicRouting R6.3v01 Vyatta

    protocolsstaticinterfaceroute6

    nexthopinterface

    Allows you to configure the next hop interface for an interface-based IPv6 staticroute.

    Syntax

    set protocols static interface-route6subnetnext-hop-interfaceethx [disable | distancedistance]

    delete protocols static interface-route6subnetnext-hop-interfaceethx [disable |distance]

    show protocols static interface-route6subnetnext-hop-interfaceethx [disable |distance]

    CommandMode

    Configuration mode.

    ConfigurationStatement

    protocols{

    static{

    interfaceroute6subnet{

    nexthopinterfaceethx{

    disable

    distancedistance

    }

    }

    }

    }

    Parameters

    subnet Mandatory. Multi-node. Defines an interface-based

    static route. The format is a destination subnet of theform IPv6-address/prefix.

    You can define multiple interface-based routes bycreating multiple interface-route6 configuration nodes.

    ethx Mandatory. The next hop Ethernet interface.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    55/68

    Chapter2:StaticRoutes StaticRouteCommands 44

    BasicRouting R6.3v01 Vyatta

    Default

    None.

    UsageGuidelines

    Use this command to configure interface-based IPv6 static routes on the system.

    Use the set form of this command to specify the next hop interface for the route.

    Use the delete form of this command to remove the next hop interface.

    Use the show form of this command to view the next hop interface for the route.

    disable Disables the interface-based IPv6 static route.

    distance Optional. Defines the next-hop distance for this route.Routes with a smaller distance are selected before thosewith a larger distance.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    56/68

    Chapter2:StaticRoutes StaticRouteCommands 45

    BasicRouting R6.3v01 Vyatta

    protocolsstaticrouteblackhole

    Allows you to configure a black-hole static route.

    Syntax

    set protocols static routesubnetblackhole [distancedistance]

    delete protocols static routesubnetblackhole [distance]

    show protocols static routesubnetblackhole [distance]

    CommandMode

    Configuration mode.

    ConfigurationStatement

    protocols{

    static{

    routesubnet{

    blackhole{

    distancedistance

    }

    }

    }

    }

    Parameters

    subnet Mandatory. Multi-node. Defines a static route. Theformat is a destination subnet of the formaddress/prefix.

    You can define multiple static routes by creatingmultiple route configuration nodes.

    distance Optional. Defines the black-hole distance for this route.

    Routes with a smaller distance are selected before thosewith a larger distance. The range is 1 to 255. The defaultis 1.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    57/68

    Chapter2:StaticRoutes StaticRouteCommands 46

    BasicRouting R6.3v01 Vyatta

    Default

    None.

    UsageGuidelines

    Use this command to configure a black-hole static route on the router. Ablack-hole route is a route for which the system silently discard packets that arematched.

    Use the set form of this command to set a black-hole route.

    Use the delete form of this command to remove a black-hole route.

    Use the show form of this command to view black-hole route configuration.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    58/68

    Chapter2:StaticRoutes StaticRouteCommands 47

    BasicRouting R6.3v01 Vyatta

    protocolsstaticroutenexthop

    Allows you to configure the next hop for a static route.

    Syntax

    set protocols static routesubnetnext-hop address[disable | distancedistance]

    delete protocols static routesubnetnext-hop address[disable | distance]

    show protocols static routesubnetnext-hop address[disable | distance]

    CommandMode

    Configuration mode.

    ConfigurationStatement

    protocols{

    static{

    routesubnet{

    nexthopaddress{

    disable

    distancedistance

    }

    }

    }

    }

    Parameters

    subnet Mandatory. Multi-node. Defines a static route. Theformat is a destination subnet of the formaddress/prefix.

    You can define multiple static routes by creatingmultiple route configuration nodes.

    address Mandatory. The address of the next-hop router.

    disable Disables the static route.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    59/68

    Chapter2:StaticRoutes StaticRouteCommands 48

    BasicRouting R6.3v01 Vyatta

    Default

    None.

    UsageGuidelines

    Use this command to configure static routes on the router.

    Use the set form of this command to specify the next hop for the route.

    Use the delete form of this command to remove the static route next hop.

    Use the show form of this command to view static route next-hop configuration.

    distance Optional. Defines the next-hop distance for this route.Routes with a smaller distance are selected before thosewith a larger distance. The range is 1 to 255. The defaultis 1.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    60/68

    Chapter2:StaticRoutes StaticRouteCommands 49

    BasicRouting R6.3v01 Vyatta

    protocolsstaticroute6blackhole

    Allows you to configure a blackhole IPv6 static route.

    Syntax

    set protocols static route6subnetblackhole [distancedistance]

    delete protocols static route6subnetblackhole [distance]

    show protocols static route6subnetblackhole [distance]

    CommandMode

    Configuration mode.

    ConfigurationStatement

    protocols{

    static{

    route6subnet{

    blackhole{

    distancedistance

    }

    }

    }

    }

    Parameters

    Default

    None.

    subnet Mandatory. Multi-node. Defines an IPv6 static route.The format is a destination subnet of the formIPv6-address/prefix.

    You can define multiple static routes by creatingmultiple route configuration nodes.

    distance Optional. Defines the blackhole distance for this route.Routes with a smaller distance will be selected before

    those with a larger distance.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    61/68

    Chapter2:StaticRoutes StaticRouteCommands 50

    BasicRouting R6.3v01 Vyatta

    UsageGuidelines

    Use this command to configure a blackhole IPv6 static route. A blackhole routesilently discards packets that are matched.

    Use the set form of this command to specify a blackhole IPv6 static route.Use the delete form of this command to remove a blackhole IPv6 static route.

    Use the show form of this command to view blackhole IPv6 static routeconfiguration.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    62/68

    Chapter2:StaticRoutes StaticRouteCommands 51

    BasicRouting R6.3v01 Vyatta

    protocolsstaticroute6nexthop

    Allows you to configure the next hop for an IPv6 static route.

    Syntax

    set protocols static route6subnetnext-hopaddress [disable | distancedistance |interfaceinterface]

    delete protocols static route6subnetnext-hopaddress [disable | distance | interface]

    show protocols static route6subnetnext-hopaddress [disable | distance | interface]

    CommandMode

    Configuration mode.

    ConfigurationStatement

    protocols{

    static{

    route6subnet{

    nexthopaddress{

    disable

    distancedistance

    interfaceinterface

    }

    }

    }

    }

    Parameters

    subnet Mandatory. Multi-node. Defines an IPv6 static route.The format is a destination subnet of the formIPv6-address/prefix.

    You can define multiple static routes by creatingmultiple route6 configuration nodes.

    address Mandatory. The IPv6 address of the next hop router.

    disable Disable the IPv6 static route.

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    63/68

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    64/68

    53

    BasicRouting R6.3v01 Vyatta

    GlossaryofAcronyms

    ACL access control list

    ADSL Asymmetric Digital Subscriber Line

    API Application Programming Interface

    AS autonomous system

    ARP Address Resolution Protocol

    BGP Border Gateway Protocol

    BIOS Basic Input Output System

    BPDU Bridge Protocol Data Unit

    CA certificate authority

    CCMP AES in counter mode with CBC-MAC

    CHAP Challenge Handshake Authentication Protocol

    CLI command-line interface

    DDNS dynamic DNS

    DHCP Dynamic Host Configuration Protocol

    DHCPv6 Dynamic Host Configuration Protocol version 6

    DLCI data-link connection identifier

    DMI desktop management interface

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    65/68

    54

    BasicRouting R6.3v01 Vyatta

    DMZ demilitarized zone

    DN distinguished name

    DNS Domain Name System

    DSCP Differentiated Services Code Point

    DSL Digital Subscriber Line

    eBGP external BGP

    EGP Exterior Gateway Protocol

    ECMP equal-cost multipath

    ESP Encapsulating Security Payload

    FIB Forwarding Information Base

    FTP File Transfer Protocol

    GRE Generic Routing Encapsulation

    HDLC High-Level Data Link Control

    I/O Input/Ouput

    ICMP Internet Control Message Protocol

    IDS Intrusion Detection System

    IEEE Institute of Electrical and Electronics Engineers

    IGP Interior Gateway Protocol

    IPS Intrusion Protection System

    IKE Internet Key Exchange

    IP Internet Protocol

    IPOA IP over ATM

    IPsec IP security

    IPv4 IP Version 4

    IPv6 IP Version 6

    ISP Internet Service Provider

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    66/68

    55

    BasicRouting R6.3v01 Vyatta

    L2TP Layer 2 Tunneling Protocol

    LACP Link Aggregation Control Protocol

    LAN local area network

    LDAP Lightweight Directory Access Protocol

    LLDP Link Layer Discovery Protocol

    MAC medium access control

    MIB Management Information Base

    MLPPP multilink PPP

    MRRU maximum received reconstructed unit

    MTU maximum transmission unit

    NAT Network Address Translation

    ND Neighbor Discovery

    NIC network interface card

    NTP Network Time Protocol

    OSPF Open Shortest Path First

    OSPFv2 OSPF Version 2

    OSPFv3 OSPF Version 3

    PAM Pluggable Authentication Module

    PAP Password Authentication Protocol

    PAT Port Address Translation

    PCI peripheral component interconnect

    PKI Public Key Infrastructure

    PPP Point-to-Point Protocol

    PPPoA PPP over ATM

    PPPoE PPP over Ethernet

    PPTP Point-to-Point Tunneling Protocol

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    67/68

    56

    BasicRouting R6.3v01 Vyatta

    PVC permanent virtual circuit

    QoS quality of service

    RADIUS Remote Authentication Dial-In User Service

    RIB Routing Information Base

    RIP Routing Information Protocol

    RIPng RIP next generation

    Rx receive

    SLAAC Stateless Address Auto-Configuration

    SNMP Simple Network Management Protocol

    SMTP Simple Mail Transfer Protocol

    SONET Synchronous Optical Network

    SSH Secure Shell

    SSID Service Set Identifier

    STP Spanning Tree Protocol

    TACACS+ Terminal Access Controller Access Control System Plus

    TCP Transmission Control Protocol

    TKIP Temporal Key Integrity Protocol

    ToS Type of Service

    Tx transmit

    UDP User Datagram Protocol

    vif virtual interface

    VLAN virtual LAN

    VPN Virtual Private Network

    VRRP Virtual Router Redundancy Protocol

    WAN wide area network

    WAP wireless access point

  • 7/31/2019 Vyatta BasicRouting R6.3 v01

    68/68

    57

    WPA Wired Protected Access