Académique Documents
Professionnel Documents
Culture Documents
| VyattaSystem
BasicRouting
REFERENCEGUIDE
ForwardingandRouting
StaticRoutes
Vyatta
Suite200
1301ShorewayRoad
Belmont,CA94002
vyatta.com
6504137200
1888VYATTA1(USandCanada)
COPYRIGHT
Copyright20052012Vyatta,Inc.Allrightsreserved.
Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof
documentation,visittheVyattawebsiteatvyatta.com.
PROPRIETARYNOTICES
VyattaisaregisteredtrademarkofVyatta,Inc.
HyperVisaregisteredtrademarkofMicrosoftCorporation.
VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc.
XenServer,andXenCenteraretrademarksofCitrixSystems,Inc.
Allothertrademarksarethepropertyoftheirrespectiveowners.
RELEASEDATE:October2012
DOCUMENTREVISION.6.5R1v01
RELEASEDWITH:6.5R1
PARTNO.A00215100016
iii
Contents
QuickListofCommands......................................................... v
ListofExamples ............................................................... vii
Preface..................................................................... viii
IntendedAudience ...............................................................................ix
OrganizationofThisGuide .........................................................................ix
DocumentConventions ............................................................................x
VyattaPublications...............................................................................xi
BasicRouting
6.5R1v01
Vyatta
iv
showipv6routesummary..................................................................... 33
showmonitoringprotocolsrib ................................................................. 34
showtable ................................................................................. 35
traceroute<host> ........................................................................... 36
GlossaryofAcronyms.......................................................... 70
BasicRouting
6.5R1v01
Vyatta
QuickListofCommands
Use this list to help you quickly locate commands.
clearipprefixlist ................................................................................. 4
clearipv6prefixlist ............................................................................... 5
ping<host> ..................................................................................... 6
protocolsstaticinterfaceroute<subnet>nexthopinterface<interface> ................................. 46
protocolsstaticinterfaceroute6<subnet>nexthopinterface<ethx> .................................... 48
protocolsstaticroute<subnet>blackhole........................................................... 50
protocolsstaticroute<subnet>nexthop<address> .................................................. 52
protocolsstaticroute6<subnet>blackhole.......................................................... 54
protocolsstaticroute6<subnet>nexthop<address> ................................................. 56
protocolsstatictable<table>interfaceroute<subnet>nexthopinterface<interface> ..................... 58
protocolsstatictable<table>interfaceroute6<subnet>nexthopinterface<ethx>........................ 60
protocolsstatictable<table>route<subnet>blackhole ............................................... 62
protocolsstatictable<table>route<subnet>nexthop<address> ....................................... 64
protocolsstatictable<table>route6<subnet>blackhole .............................................. 66
protocolsstatictable<table>route6<subnet>nexthop<address> ...................................... 68
resetiproutecache............................................................................... 8
resetipv6routecache............................................................................. 9
showipforwarding.............................................................................. 10
showiproute<ipv4net>longerprefixes ............................................................ 13
showiproutecache ............................................................................. 14
showiprouteconnected ......................................................................... 16
showiprouteforward ........................................................................... 17
showiproutekernel ............................................................................. 19
showiproutestatic.............................................................................. 20
showiproutesummary .......................................................................... 21
showiproutesupernetsonly...................................................................... 22
showiproutetable<table>....................................................................... 23
showiproute ................................................................................... 11
showipv6route<ipv6net>longerprefixes .......................................................... 25
showipv6routebgp............................................................................. 26
showipv6routecache ........................................................................... 27
showipv6routeconnected ....................................................................... 28
BasicRouting
6.5R1v01
Vyatta
vi
showipv6routeforward ......................................................................... 29
showipv6routekernel ........................................................................... 30
showipv6routeripng ............................................................................ 31
showipv6routestatic............................................................................ 32
showipv6routesummary ........................................................................ 33
showipv6route ................................................................................. 24
showmonitoringprotocolsrib ..................................................................... 34
showtable..................................................................................... 35
traceroute<host>............................................................................... 36
BasicRouting
6.5R1v01
Vyatta
vii
ListofExamples
Use this list to help you locate examples youd like to look at or try.
Example11 DisplayingIPforwardingstatus ......................................................... 10
Example12 DisplayingroutesintheRIBandFIB..................................................... 11
Example13 Displayingroutinginformationaboutaspecificaddress .................................... 12
Example14 Displayingrouteswithlongerprefixes................................................... 13
Example15 Listingroutesinthekernelroutecache .................................................. 14
Example16 Displayinginformationaboutarouteinthekernelroutecache.............................. 15
Example17 Displayingconnectedroutes........................................................... 16
Example18 DisplayingroutesintheFIB............................................................ 17
Example19 DisplayinginformationaboutarouteintheFIB ........................................... 18
Example110 Displayingkernelroutes.............................................................. 19
Example111 Displayingstaticroutes .............................................................. 20
Example112 Displayingasummaryofroutes ....................................................... 21
Example113 Displayingsupernetroutes ........................................................... 22
Example114 Displayingroutesinalternateroutingtable5............................................ 23
Example115 showipv6routesummary:DisplayingasummaryofIPv6routes .......................... 33
Example116 Displayingtheroutingtable........................................................... 35
Example21Creatingastaticroute ................................................................. 39
Example22Showingstaticroutesintheroutingtable ................................................. 40
Example23DetermineifforwardingisenabledonR1................................................. 41
Example24EnableforwardingonR1............................................................... 41
Example25AddthedefaultrouteonR4 ............................................................ 42
Example26AddastaticrouteonR2............................................................... 43
Example27ConfirmconnectivitybetweenR2andR4 ................................................. 43
Example28ConfirmconnectivitybetweenR2andR4viaR1 ........................................... 44
BasicRouting
6.5R1v01
Vyatta
viii
Preface
This document presents information about forwarding and routing on the Vyatta
system.
This preface provides information about using this guide. The following topics are
presented:
BasicRouting
Intended Audience
Document Conventions
Vyatta Publications
6.5R1v01
Vyatta
IntendedAudience ix
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:
TCP/IP protocols
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:
List of Examples
Use this list to help you locate examples youd like to try or look at.
Description
Page
Chapter 1:ForwardingandRouting
Thischapterdescribescommandsfor
forwardingandbasicrouting.
Chapter 2:StaticRoutes
Thischapterexplainshowtosetstaticroutes
usingtheVyattasystem.
37
GlossaryofAcronyms
BasicRouting
70
6.5R1v01
Vyatta
DocumentConventions x
DocumentConventions
This guide uses the following advisory paragraphs, as follows.
WARNINGWarningsalertyoutosituationsthatmayposeathreattopersonalsafety.
CAUTIONCautionsalertyoutosituationsthatmightcauseharmtoyoursystemordamageto
equipment,orthatmayaffectservice.
NOTENotesprovideinformationyoumightneedtoavoidproblemsorconfigurationerrors.
boldMonospace
bold
BasicRouting
italics
<key>
[ key1 | key2]
num1numN
arg1..argN
arg[ arg...]
arg[,arg...]
6.5R1v01
Vyatta
VyattaPublications xi
VyattaPublications
Full product documentation is provided in the Vyatta technical library. To see what
documentation is available for your release, see the Guide to Vyatta Documentation.
This guide is posted with every release of Vyatta software and provides a great
starting point for finding the information you need.
Additional information is available on www.vyatta.com and www.vyatta.org.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 2
ForwardingandRoutingCommands
This chapter contains the following commands.
ConfigurationCommands
None
OperationalCommands
clearipprefixlist
Clearsprefixliststatisticsorstatus.
clearipv6prefixlist
Clearsprefixliststatisticsorstatus.
ping<host>
SendsICMPECHO_REQUESTpacketstonetworkhosts.
resetiproutecache
Flushesthekernelroutecache.
resetipv6routecache
FlushesthekernelIPv6routecache.
showipforwarding
DisplaysIPforwardingstatus.
showiproute
DisplaysroutesstoredintheRIBandFIB.
showiproute<ipv4net>longerprefixes
Displaysprefixeslongerthanaspecifiedprefix.
showiproutecache
Displaysthekernelroutecache.
showiprouteconnected
Displaysdirectlyconnectedroutes.
showiprouteforward
DisplaysroutesstoredintheFIB.
showiproutestatic
Displaysstaticroutes.
showiproutekernel
Displayskernelroutes.
showiproutesummary
Displaysroutessummary.
showiproutesupernetsonly
Displayssupernetroutes.
showiproutetable<table>
Displaysroutesstoredinanalternateroutingtable
showipv6route
DisplaysIPv6routesstoredintheRIBandFIB.
showipv6route<ipv6net>longerprefixes
DisplaysIPv6prefixeslongerthanaspecifiedprefix.
showipv6routebgp
DisplaysIPv6BGProutes.
showipv6routecache
DisplaysthekernelIPv6routecache.
showipv6routeconnected
DisplaysIPv6connectedroutes.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 3
showipv6routeforward
DisplaysIPv6routesstoredintheFIB.
showipv6routekernel
DisplaysIPv6kernelroutes.
showipv6routeripng
DisplaysIPv6RIPngroutes.
showipv6routestatic
DisplaysIPv6staticroutes.
showipv6routesummary
DisplaysIPv6routessummary.
showmonitoringprotocolsrib
DisplaysRoutingInformationBase(RIB)debuggingflags.
showtable
Displaysthesystemsroutingtable.
traceroute<host>
Displaystheroutepacketstaketoanetworkhost.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 4
clearipprefixlist
Clears prefix list statistics or status.
Syntax
clear ip prefix-list [list-name [ipv4net]]
CommandMode
Operational mode.
Parameters
list-name
ipv4net
Default
Statistics for all prefix-lists are cleared.
UsageGuidelines
Use this command to clear prefix list statistics or status.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 5
clearipv6prefixlist
Clears prefix list statistics or status.
Syntax
clear ipv6 prefix-list [list-name [ipv6net]]
CommandMode
Operational mode.
Parameters
list-name
ipv6net
Default
Statistics for all prefix-lists are cleared.
UsageGuidelines
Use this command to clear prefix list statistics or status.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 6
ping<host>
Sends ICMP ECHO_REQUEST packets to network hosts.
Syntax
ping [ipv4 | ipv6] host
CommandMode
Operational mode
Parameters
ipv4
ipv6
host
The host being pinged. Can be specified either as hostname (if DNS
is being used on the network) or as an IPv4 or IPv6 address. If a
hostname is specified and neither the ipv4 or ipv6 options are used,
the IPv4 or the IPv6 address associated with the hostname will be
pinged depending on which of these is resolved first.
UsageGuidelines
The pingcommand is used to test whether a network host is reachable or not.
The ping command uses the ICMP protocols mandatory ECHO_REQUEST
datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway.
ECHO_REQUEST datagrams (pings) have an IP and ICMP header, followed by a
structtimeval and then an arbitrary number of pad bytes used to fill out the
packet.
When using ping for fault isolation, it should first be run on the local host, to verify
that the local network interface is up and running. Then, hosts and gateways further
and further away should be pinged. Round-trip times and packet loss statistics are
computed.
If duplicate packets are received, they are not included in the packet loss calculation,
although the round-trip time of these packets is used in calculating the
minimum/average/maximum round-trip time numbers.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 7
When the ping command is interrupted, using <Ctrl>+c, a brief statistical summary
is displayed.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 8
resetiproutecache
Flushes the kernel route cache.
Syntax
reset ip route cache [ipv4net]
CommandMode
Operational mode.
Parameters
ipv4net
Optional. Flushes the specified route from the kernel route cache.
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.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 9
resetipv6routecache
Flushes the kernel IPv6 route cache.
Syntax
reset ipv6 route cache [ipv6net]
CommandMode
Operational mode.
Parameters
ipv6net
Optional. Flushes the specified route from the kernel IPv6 route
cache.
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.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 10
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.
Example11DisplayingIPforwardingstatus
vyatta@vyatta:~$showipforwarding
IPforwardingison
vyatta@vyatta:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 11
showiproute
Displays routes stored in the RIB and FIB.
Syntax
show ip route [ipv4 | ipv4net]
CommandMode
Operational mode.
Parameters
ipv4
ipv4net
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.
Example12DisplayingroutesintheRIBandFIB
vyatta@vyatta:~$showiproute
Codes:Kkernelroute,Cconnected,Sstatic,RRIP,OOSPF,
IISIS,BBGP,>selectedroute,*FIBroute
S>*0.0.0.0/0[1/0]via10.1.0.1,eth0
O10.1.0.0/24[110/10]isdirectlyconnected,eth0,05:35:15
C>*10.1.0.0/24isdirectlyconnected,eth0
O>*10.192.32.0/24[110/20]via10.1.0.45,eth0,05:35:15
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 12
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]via10.1.0.66,eth0,05:35:15
C>*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/25isdirectlyconnected,eth1
S>*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 address
10.192.128.1.
Example13Displayingroutinginformationaboutaspecificaddress
vyatta@vyatta:~$showiproute10.192.128.1
Routingentryfor10.192.128.1/32
Knownvia"ospf",distance110,metric11,best
Lastupdate09:47:07ago
*10.1.0.66,viaeth0
vyatta@vyatta:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 13
showiproute<ipv4net>longerprefixes
Displays prefixes longer than a specified prefix.
Syntax
show ip route ipv4net longer-prefixes
CommandMode
Operational mode.
Parameters
ipv4net
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.
Example14Displayingrouteswithlongerprefixes
vyatta@vyatta:~$showiproute10.192.128.0/24longerprefixes
Codes:Kkernelroute,Cconnected,Sstatic,RRIP,OOSPF,
IISIS,BBGP,>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:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 14
showiproutecache
Displays the kernel route cache.
Syntax
show ip route cache [ipv4net]
CommandMode
Operational mode.
Parameters
ipv4net
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. Multiple
equal-cost paths are necessary before equal-cost-multi-path (ECMP) routing can be
performed.
Examples
Example 1-5 shows how to list routes in the kernel route cache.
Example15Listingroutesinthekernelroutecache
vyatta@vyatta:~$showiproutecache
local10.1.0.62from10.1.0.1devlosrc10.1.0.62
cache<local,srcdirect>users1age42seciifeth0
multicast224.0.0.5from10.1.0.45devlosrc10.1.0.62
cache<local,mc>users1used8age5seciifeth0
local10.1.0.62from69.59.150.131devlosrc10.1.0.62
cache<local>users1used3age47seciifeth0
10.1.0.1from10.1.0.62deveth0
cacheusers1age42secmtu1500advmss1460hoplimit64
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 15
10.0.0.30from10.1.0.62toslowdelayvia10.1.0.1deveth0
cacheusers2age0secmtu1500advmss1460hoplimit64
multicast224.0.0.5from10.1.0.56devlosrc10.1.0.62
cache<local,mc>users1used8age8seciifeth0
multicast224.0.0.5from10.1.0.66devlosrc10.1.0.62
cache<local,mc>users1used8age0seciifeth0
multicast224.0.0.6deveth0src10.1.0.62
cache<mc>users1age21secmtu1500advmss1460hoplimit64
multicast224.0.0.5from10.1.0.4devlosrc10.1.0.62
cache<local,mc>users1used9age1seciifeth0
69.59.150.131via10.1.0.1deveth0src10.1.0.62
cacheusers1age47secmtu1500advmss1460hoplimit64
multicast224.0.0.5deveth0src10.1.0.62
cache<local,mc>users1used8age5secmtu1500advmss1460hoplimit
64
69.59.150.131from10.1.0.62via10.1.0.1deveth0
cacheusers1used1age47secmtu1500advmss1460hoplimit64
local10.1.0.62from10.0.0.30toslowdelaydevlosrc10.1.0.62
cache<local>users1used1age0seciifeth0
vyatta@vyatta:~$
Example 1-6 shows how to display information about route 10.1.0.62 in the kernel
route cache.
Example16Displayinginformationaboutarouteinthekernelroutecache
vyatta@vyatta:~$showiproutecache10.1.0.62
local10.1.0.62from10.1.0.1devlosrc10.1.0.62
cache<local,srcdirect>users1used3age9seciifeth0
local10.1.0.62from69.59.150.131devlosrc10.1.0.62
cache<local>users1used7age102seciifeth0
local10.1.0.62from10.0.0.30toslowdelaydevlosrc10.1.0.62
cache<local>users1used33iifeth0
vyatta@vyatta:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 16
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.
Example17Displayingconnectedroutes
vyatta@vyatta:~$showiprouteconnected
Codes:Kkernelroute,Cconnected,Sstatic,RRIP,OOSPF,
IISIS,BBGP,>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:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 17
showiprouteforward
Displays routes stored in the FIB.
Syntax
show ip route forward [ipv4net]
CommandMode
Operational mode.
Parameters
ipv4net
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 are
necessary before equal-cost multi-path (ECMP) routing or WAN load balancing can
be performed.
Examples
Example 1-8 shows how to display routes recorded in the FIB.
Example18DisplayingroutesintheFIB
vyatta@vyatta:~$showiprouteforward
defaultvia10.1.0.1deveth0protozebra
10.1.0.0/24deveth0protokernelscopelinksrc10.1.0.62
10.192.32.0/24via10.1.0.45deveth0protozebrametric20
10.192.128.0/24via10.1.0.66deveth0protozebrametric11
10.192.128.1via10.1.0.66deveth0protozebrametric11
10.192.129.0/24via10.1.0.66deveth0protozebrametric11
10.192.130.0/24via10.1.0.66deveth0protozebrametric11
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 18
10.192.131.0/24via10.1.0.66deveth0protozebrametric11
172.16.0.0/24via10.1.0.4deveth0protozebrametric11
172.16.1.0/24via10.1.0.4deveth0protozebrametric11
172.16.2.0/24via10.1.0.4deveth0protozebrametric11
172.16.3.0/24via10.1.0.4deveth0protozebrametric11
172.16.4.0/24via10.1.0.4deveth0protozebrametric11
172.16.5.0/24via10.1.0.4deveth0protozebrametric11
172.16.6.0/24via10.1.0.4deveth0protozebrametric11
172.16.7.0/24via10.1.0.4deveth0protozebrametric11
172.16.8.0/24via10.1.0.4deveth0protozebrametric11
172.16.9.0/24via10.1.0.4deveth0protozebrametric11
172.16.234.0/25deveth1protokernelscopelinksrc172.16.234.23
192.94.202.0/24via172.16.234.27deveth1protozebra
vyatta@vyatta:~$
Example 1-9 shows how to display information from the FIB about route
10.1.0.0/24.
Example19DisplayinginformationaboutarouteintheFIB
vyatta@vyatta:~$showiprouteforward10.1.0.0/24
10.1.0.0/24deveth0protokernelscopelinksrc10.1.0.62
vyatta@vyatta:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 19
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 been
added through means other than by using the Vyatta CLI; for example by using the
operating system route command, as in the following:
routeaddnet10.172.24.0netmask255.255.255.0gw10.1.0.1
Examples
Example 1-10 shows how to display kernel routes.
Example110Displayingkernelroutes
vyatta@vyatta:~$showiproutekernel
Codes:Kkernelroute,Cconnected,Sstatic,RRIP,OOSPF,
IISIS,BBGP,>selectedroute,*FIBroute
K>*10.172.24.0/24via10.1.0.1,eth0
vyatta@vyatta:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 20
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.
Example111Displayingstaticroutes
vyatta@vyatta:~$showiproutestatic
Codes:Kkernelroute,Cconnected,Sstatic,RRIP,OOSPF,
IISIS,BBGP,>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:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 21
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.
Example112Displayingasummaryofroutes
vyatta@vyatta:~$showiproutesummary
RouteSourceRoutesFIB
connected44
static22
ospf10
ebgp00
ibgp289016289011
Totals289023289017
vyatta@vyatta:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 22
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 the
natural classful mask.
Examples
Example 1-13 shows how to list supernet routes.
Example113Displayingsupernetroutes
vyatta@vyatta:~$showiproutesupernetsonly
Codes:Kkernelroute,Cconnected,Sstatic,RRIP,OOSPF,
IISIS,BBGP,>selectedroute,*FIBroute
S>*0.0.0.0/0[1/0]via10.1.0.1,eth0
vyatta@vyatta:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 23
showiproutetable<table>
Displays routes stored in an alternate routing table
Syntax
show ip route table table
CommandMode
Operational mode.
Parameters
table
Default
None.
UsageGuidelines
Use this command to display routes stored in the alternate routing table specified.
The alternate routing tables are used with policy based routing. See the Vyatta Policy
Based Routing Reference Guide for information on policy based routing.
Examples
Example 1-4 shows how to display routes in an alternate routing table.
Example114Displayingroutesinalternateroutingtable5
vyatta@vyatta:~$showiproutetable5
table5:
Codes:Kkernelroute,Cconnected,Sstatic,RRIP,OOSPF,
IISIS,BBGP,>selectedroute,*FIBroute
S>*12.34.56.0/24[1/0]via192.168.1.254,eth0
vyatta@vyatta:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 24
showipv6route
Displays IPv6 routes stored in the RIB and FIB.
Syntax
show ipv6 route [ipv6 | ipv6net]
CommandMode
Operational mode.
Parameters
ipv6
ipv6net
Default
Lists all IPv6 routes in the RIB and FIB.
UsageGuidelines
Use this command to display active IPv6 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.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 25
showipv6route<ipv6net>longerprefixes
Displays IPv6 prefixes longer than a specified prefix.
Syntax
show ipv6 route ipv6net longer-prefixes
CommandMode
Operational mode.
Parameters
ipv6net
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.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 26
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.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 27
showipv6routecache
Displays the kernel IPv6 route cache.
Syntax
show ipv6 route cache [ipv6net]
CommandMode
Operational mode.
Parameters
ipv6net
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.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 28
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.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 29
showipv6routeforward
Displays IPv6 routes stored in the FIB.
Syntax
show ipv6 route forward [ipv6net]
CommandMode
Operational mode.
Parameters
ipv6net
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 are
necessary before equal-cost multi-path (ECMP) routing or WAN load balancing can
be performed.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 30
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 have
been added through means other than by using the Vyatta CLI.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 31
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.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 32
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).
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 33
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-15 shows a summary of IPv6 routes.
Example115showipv6routesummary:DisplayingasummaryofIPv6routes
vyatta@vyatta:~$showipv6routesummary
RouteSourceRoutesFIB
connected44
static22
Totals
6
6
vyatta@vyatta:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 34
showmonitoringprotocolsrib
Displays Routing Information Base (RIB) debugging flags.
Syntax
show monitoring protocols rib
CommandMode
Operational mode.
Parameters
None
Default
None.
UsageGuidelines
Use this command to see how debugging is set for the Routing Information Base.
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 35
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-16 shows how to display the routing table.
Example116Displayingtheroutingtable
vyatta@vyatta:~$showtable
table0
vyatta@vyatta:~$
BasicRouting
6.5R1v01
Vyatta
Chapter1:ForwardingandRouting
ForwardingandRoutingCommands 36
traceroute<host>
Displays the route packets take to a network host.
Syntax
traceroute [ipv4 | ipv6] host
CommandMode
Operational mode
Parameters
ipv4
Display the route packets take to the hosts IPv4 address. This
option is to be used when the host specified is a hostname rather
than an IP address.
ipv6
Display the route packets take to the hosts IPv6 address. This
option is to be used when the host specified is a hostname rather
than an IP address.
host
The host that is the destination for the trace. Can be specified
either as a name (if DNS is being used on the network) or as an
IPv4 or IPv6 address.
UsageGuidelines
Use this command to perform a traceroute operation for a network host.
Traceroute utilizes the IP protocol time to live (ttl) field and attempts to elicit an
ICMP TIME_EXCEEDED response from each gateway along the path to some host
to track the route a set of packets follows. It attempts to trace the route an IP packet
would follow to some Internet host by launching UDP probe packets with a small
time to live, then listening for an ICMP Time exceeded reply from a gateway.
BasicRouting
6.5R1v01
Vyatta
37
Chapter2:StaticRoutes
This chapter explains how to set static routes using the Vyatta system.
This chapter presents the following topics:
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteConfiguration 38
StaticRouteConfiguration
This section presents the following topics:
StaticRoutesOverview
A static route is a manually configured route, which, in general, cannot be updated
dynamically 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, or
to 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 its
dynamic routing protocols is stored in its Routing Information Base (RIB).
Unicast routes are directly used to determine the forwarding table used for unicast
packet forwarding.
ConfiguringStaticRoutes
In this example, a sample configurations are presented for basic static routes. When
you are finished, the system will be configured as shown in Figure 2-1. In this
example, a static route is created that says, in effect, any packets destined for the
11.0.0.0/8 network should be forwarded to 172.16.0.26.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteConfiguration 39
Figure21Staticroutes
R2
11.0.0.0/8
eth0
172.16.0.26
172 .16.0.0/24
eth0
172.16.0.65
Static Route
Destination: 11.0.0.0/8
Next-Hop: 172 .16.0.26
R1
10.10.40.0/24
Command
CreateastaticroutetoR2.
vyatta@R1#setprotocolsstaticroute11.0.0.0/8nexthop
172.16.0.26
Committheconfiguration.
vyatta@R1#commit
Viewtheconfiguration.
vyatta@R1#showprotocolsstaticroute
route11.0.0.0/8{
nexthop172.16.0.26{
}
}
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticIPv6RouteConfiguration 40
FloatingStaticRoutes
Usually, static routes have a relatively short administrative distancetypically 1, and
usually shorter than the administrative distances for dynamic (learned) routes. A
floating static route is a static route with an administrative distance greater than
that for dynamic routes.
You can configure a static route to be a floating route by setting the administrative
distance higher than the distance applied to the routes in your dynamic routing
protocol. This renders the static route less desirable than a dynamic route. At the
same 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.
ShowingStaticRoutesintheRoutingTable
To display route information, use the show ip route command. To show just static
routes, use the show ip route static filter, as shown in Example 2-2.
Example22Showingstaticroutesintheroutingtable
vyatta@R1:~$showiproutestatic
Codes:Kkernelroute,Cconnected,Sstatic,RRIP,OOSPF,
IISIS,BBGP,>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 show
configuration of the nodes using static routes to enable R2 and R4 to communicate
via R1.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticIPv6RouteConfiguration 41
Figure22StaticIPv6routingexample
R4
eth0
2001:db8:1::4
2001:db8:1::/64
2001:db8:1::1
eth0
R1
R2
eth2
2001:db8:2::1
eth0
2001 :db8:2::2
2001:db8:2::/64
VerifyThatIPv6ForwardingisEnabled
In order for R1 to be able to pass data between interfaces eth0 and eth2 (i.e., between
R4 and R2) it must be configured to enable forwarding. To determine if forwarding
is enabled, perform the following step in operational mode.
Example23DetermineifforwardingisenabledonR1
Step
Command
DisplaythestateofIPv6
forwardingonR1.
vyatta@R1:~$showipv6forwarding
ipv6forwardingisoff
If forwarding is not enabled, as is the case in Example 2-3, the system must be
configured to enable forwarding. To enable forwarding, perform the following steps
in configuration mode.
Example24EnableforwardingonR1
Step
Command
EnableforwardingonR1.
vyatta@R1#deletesystemipv6disableforwarding
Committhechange.
vyatta@R1#commit
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticIPv6RouteConfiguration 42
Example24EnableforwardingonR1
Changetooperationalmode
vyatta@R1#exit
exit
vyatta@R1:~$
DisplaythestateofIPv6
forwardingonR1.
vyatta@R1:~$showipv6forwarding
ipv6forwardingison
AddtheDefaultIPv6Route
On R4, all traffic that is not routed elsewhere will be sent to R1. To configure the
default route, perform the following steps in configuration mode.
Example25AddthedefaultrouteonR4
Step
Command
AddthedefaultrouteonR4.
vyatta@R4#setprotocolsstaticroute6::/0nexthop
2001:db8:1::1
Committhechange.
vyatta@R4#commit
Changetooperationalmode.
vyatta@R4#exit
exit
vyatta@R4:~$
Verifythedefaultrouteinthe
routingtable.
vyatta@R4:~$showipv6route
Codes:Kkernelroute,Cconnected,Sstatic,RRIPng,
OOSPFv3,
IISIS,BBGP,*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
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticIPv6RouteConfiguration 43
AddaStaticIPv6Route
As an alternative to the default route we created on R4, well create a static route on
R2. To configure a static route to the 2001:db8:1::/64 network, perform the
following steps in configuration mode.
Example26AddastaticrouteonR2
Step
Command
AddastaticrouteonR2.
vyatta@R1#setprotocolsstaticroute62001:db8:1::/64
nexthop2001:db8:2::1
Committhechange.
vyatta@R1#commit
Changetooperationalmode.
vyatta@R1#exit
exit
vyatta@R2:~$
Verifythestaticrouteinthe
routingtable.
vyatta@R2:~$showipv6route
Codes:Kkernelroute,Cconnected,Sstatic,RRIPng,
OOSPFv3,
IISIS,BBGP,*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
ConfirmConnectivity
To confirm that R2 and R4 can communicate, use the ping command. To confirm
connectivity between R2 and R4, perform the following step in operational mode.
Example27ConfirmconnectivitybetweenR2andR4
Step
Command
PingR4fromR2.
vyatta@R2:~$ping2001:db8:1::4
PING2001:db8:1::4(2001:db8:1::4)56databytes
64bytesfrom2001: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
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticIPv6RouteConfiguration 44
Command
TracetheroutefromR2toR4.
vyatta@R2:~$traceroute2001:db8:1::4
tracerouteto2001:db8:1::4(2001:db8:1::4),30hopsmax,40
bytepackets
1(2001:db8:2::1)4.448ms4.148ms4.092ms
2(2001:db8:1::4)4.297ms4.306ms4.308ms
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 45
StaticRouteCommands
This chapter contains the following commands.
ConfigurationCommands
protocolsstaticinterfaceroute<subnet>
nexthopinterface<interface>
Allowsyoutoconfigurethenexthopinterfaceforan
interfacebasedstaticroute.
protocolsstaticinterfaceroute6<subnet>
nexthopinterface<ethx>
Allowsyoutoconfigurethenexthopinterfaceforan
interfacebasedIPv6staticroute.
protocolsstaticroute<subnet>blackhole
Allowsyoutoconfigureablackholestaticroute.
protocolsstaticroute<subnet>nexthop
<address>
Allowsyoutoconfigurethenexthopforastaticroute.
protocolsstaticroute6<subnet>blackhole
AllowsyoutoconfigureablackholeIPv6staticroute.
protocolsstaticroute6<subnet>nexthop
<address>
AllowsyoutoconfigurethenexthopforanIPv6static
route.
protocolsstatictable<table>interfaceroute
<subnet>nexthopinterface<interface>
Allowsyoutoconfigurethenexthopinterfaceforan
interfacebasedstaticrouteinanalternateroutingtable.
protocolsstatictable<table>interfaceroute6
<subnet>nexthopinterface<ethx>
Allowsyoutoconfigurethenexthopinterfaceforan
interfacebasedIPv6staticrouteinanalternaterouting
table.
protocolsstatictable<table>route<subnet>
blackhole
Allowsyoutoconfigureablackholestaticrouteinan
alternateroutingtable.
protocolsstatictable<table>route<subnet>
nexthop<address>
Allowsyoutoconfigurethenexthopforastaticrouteinan
alternateroutingtable.
protocolsstatictable<table>route6<subnet>
blackhole
AllowsyoutoconfigureablackholeIPv6staticrouteinan
alternateroutingtable.
protocolsstatictable<table>route6<subnet>
nexthop<address>
AllowsyoutoconfigurethenexthopforanIPv6static
routeinanalternateroutingtable.
OperationalCommands
showiproutestatic
Displaysstaticroutes.Seepage 20.
showipv6routestatic
DisplaysIPv6staticroutes.Seepage 32.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 46
protocolsstaticinterfaceroute<subnet>
nexthopinterface<interface>
Allows you to configure the next-hop interface for an interface-based static route.
Syntax
set protocols static interface-route subnet next-hop-interface interface [disable |
distance distance]
delete protocols static interface-route subnet next-hop-interface interface [disable |
distance]
show protocols static interface-route subnet next-hop-interface interface [disable |
distance]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
interfaceroutesubnet{
nexthopinterfaceinterface{
disable
distancedistance
}
}
}
}
Parameters
subnet
BasicRouting
interface
disable
6.5R1v01
Vyatta
Chapter2:StaticRoutes
distance
StaticRouteCommands 47
Optional. Sets the next-hop distance for this route. Routes with a
smaller distance are selected before those with a larger distance.
The range is 1 to 255. The default is 1.
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.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 48
protocolsstaticinterfaceroute6<subnet>
nexthopinterface<ethx>
Allows you to configure the next hop interface for an interface-based IPv6 static
route.
Syntax
set protocols static interface-route6 subnet next-hop-interface ethx [disable | distance
distance]
delete protocols static interface-route6 subnet next-hop-interface ethx [disable |
distance]
show protocols static interface-route6 subnet next-hop-interface ethx [disable |
distance]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
interfaceroute6subnet{
nexthopinterfaceethx{
disable
distancedistance
}
}
}
}
Parameters
subnet
BasicRouting
ethx
disable
6.5R1v01
Vyatta
Chapter2:StaticRoutes
distance
StaticRouteCommands 49
Optional. Defines the next-hop distance for this route. Routes with
a smaller distance are selected before those with a larger distance.
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.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 50
protocolsstaticroute<subnet>blackhole
Allows you to configure a black-hole static route.
Syntax
set protocols static route subnet blackhole [distance distance]
delete protocols static route subnet blackhole [distance]
show protocols static route subnet blackhole [distance]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
routesubnet{
blackhole{
distancedistance
}
}
}
}
Parameters
subnet
distance
Default
None.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 51
UsageGuidelines
Use this command to configure a black-hole static route on the router. A
black-hole route is a route for which the system silently discard packets that are
matched.
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.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 52
protocolsstaticroute<subnet>nexthop<address>
Allows you to configure the next hop for a static route.
Syntax
set protocols static route subnet next-hop address [disable | distance distance]
delete protocols static route subnet next-hop address [disable | distance]
show protocols static route subnet next-hop address [disable | distance]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
routesubnet{
nexthopaddress{
disable
distancedistance
}
}
}
}
Parameters
subnet
BasicRouting
address
disable
distance
Optional. Defines the next-hop distance for this route. Routes with
a smaller distance are selected before those with a larger distance.
The range is 1 to 255. The default is 1.
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 53
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.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 54
protocolsstaticroute6<subnet>blackhole
Allows you to configure a blackhole IPv6 static route.
Syntax
set protocols static route6 subnet blackhole [distance distance]
delete protocols static route6 subnet blackhole [distance]
show protocols static route6 subnet blackhole [distance]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
route6subnet{
blackhole{
distancedistance
}
}
}
}
Parameters
subnet
distance
Default
None.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 55
UsageGuidelines
Use this command to configure a blackhole IPv6 static route. A blackhole route
silently 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 route
configuration.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 56
protocolsstaticroute6<subnet>nexthop<address>
Allows you to configure the next hop for an IPv6 static route.
Syntax
set protocols static route6 subnet next-hop address [disable | distance distance |
interface interface]
delete protocols static route6 subnet next-hop address [disable | distance | interface]
show protocols static route6 subnet next-hop address [disable | distance | interface]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
route6subnet{
nexthopaddress{
disable
distancedistance
interfaceinterface
}
}
}
}
Parameters
subnet
BasicRouting
address
disable
distance
Optional. Defines the next-hop distance for this route. Routes with
a smaller distance will be selected before those with a larger
distance.
6.5R1v01
Vyatta
Chapter2:StaticRoutes
interface
StaticRouteCommands 57
Default
None.
UsageGuidelines
Use this command to configure IPv6 static routes on the system.
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.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 58
protocolsstatictable<table>interfaceroute<subnet>
nexthopinterface<interface>
Allows you to configure the next-hop interface for an interface-based static route in
an alternate routing table.
Syntax
set protocols static table table interface-route subnet next-hop-interface interface
[disable | distance distance]
delete protocols static table table interface-route subnet next-hop-interface interface
[disable | distance]
show protocols static table table interface-route subnet next-hop-interface interface
[disable | distance]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
tabletable
interfaceroutesubnet{
nexthopinterfaceinterface{
disable
distancedistance
}
}
}
}
}
Parameters
table
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
subnet
StaticRouteCommands 59
interface
disable
distance
Optional. Sets the next-hop distance for this route. Routes with a
smaller distance are selected before those with a larger distance.
The range is 1 to 255. The default is 1.
Default
None.
UsageGuidelines
Use this command to configure interface-based static routes in an alternate routing
table. The alternate routing tables are used with policy based routing. See the Vyatta
Policy Based Routing Reference Guide for information on policy based routing.
Use the set form of this command to specify the next-hop interface.
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.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 60
protocolsstatictable<table>interfaceroute6<subnet>
nexthopinterface<ethx>
Allows you to configure the next hop interface for an interface-based IPv6 static
route in an alternate routing table.
Syntax
set protocols static table table interface-route6 subnet next-hop-interface ethx
[disable | distance distance]
delete protocols static table table interface-route6 subnet next-hop-interface ethx
[disable | distance]
show protocols static table table interface-route6 subnet next-hop-interface ethx
[disable | distance]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
tabletable{
interfaceroute6subnet{
nexthopinterfaceethx{
disable
distancedistance
}
}
}
}
}
Parameters
table
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
subnet
StaticRouteCommands 61
ethx
disable
distance
Optional. Defines the next-hop distance for this route. Routes with
a smaller distance are selected before those with a larger distance.
Default
None.
UsageGuidelines
Use this command to configure interface-based IPv6 static routes in an alternate
routing table. The alternate routing tables are used with policy based routing. See the
Vyatta Policy Based Routing Reference Guide for information on policy based
routing.
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.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 62
protocolsstatictable<table>route<subnet>blackhole
Allows you to configure a black-hole static route in an alternate routing table.
Syntax
set protocols static table table route subnet blackhole [distance distance]
delete protocols static table table route subnet blackhole [distance]
show protocols static table table route subnet blackhole [distance]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
tabletable{
routesubnet{
blackhole{
distancedistance
}
}
}
}
}
Parameters
table
subnet
distance
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 63
Default
None.
UsageGuidelines
Use this command to configure a black-hole static route in an alternate routing
table. A black-hole route is a route for which the system silently discard packets that
are matched.
The alternate routing tables are used with policy based routing. See the Vyatta Policy
Based Routing Reference Guide for information on policy based routing.
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.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 64
protocolsstatictable<table>route<subnet>nexthop
<address>
Allows you to configure the next hop for a static route in an alternate routing table.
Syntax
set protocols static table table route subnet next-hop address [disable | distance
distance]
delete protocols static table table route subnet next-hop address [disable | distance]
show protocols static table table route subnet next-hop address [disable | distance]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
tabletable{
routesubnet{
nexthopaddress{
disable
distancedistance
}
}
}
}
}
Parameters
table
subnet
address
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 65
disable
distance
Optional. Defines the next-hop distance for this route. Routes with
a smaller distance are selected before those with a larger distance.
The range is 1 to 255. The default is 1.
Default
None.
UsageGuidelines
Use this command to configure static routes in an alternate routing table. The
alternate routing tables are used with policy based routing. See the Vyatta Policy
Based Routing Reference Guide for information on policy based routing.
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.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 66
protocolsstatictable<table>route6<subnet>blackhole
Allows you to configure a blackhole IPv6 static route in an alternate routing table.
Syntax
set protocols static table table route6 subnet blackhole [distance distance]
delete protocols static table table route6 subnet blackhole [distance]
show protocols static table table route6 subnet blackhole [distance]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
tabletable{
route6subnet{
blackhole{
distancedistance
}
}
}
}
}
Parameters
table
subnet
distance
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 67
Default
None.
UsageGuidelines
Use this command to configure a blackhole IPv6 static route in an alternate routing
table. A blackhole route silently discards packets that are matched.
The alternate routing tables are used with policy based routing. See the Vyatta Policy
Based Routing Reference Guide for information on policy based routing.
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 route
configuration.
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
StaticRouteCommands 68
protocolsstatictable<table>route6<subnet>nexthop
<address>
Allows you to configure the next hop for an IPv6 static route in an alternate routing
table.
Syntax
set protocols static table table route6 subnet next-hop address [disable | distance
distance | interface interface]
delete protocols static table table route6 subnet next-hop address [disable | distance
| interface]
show protocols static table table route6 subnet next-hop address [disable | distance |
interface]
CommandMode
Configuration mode.
ConfigurationStatement
protocols{
static{
tabletable{
route6subnet{
nexthopaddress{
disable
distancedistance
interfaceinterface
}
}
}
}
}
Parameters
table
BasicRouting
6.5R1v01
Vyatta
Chapter2:StaticRoutes
subnet
StaticRouteCommands 69
address
disable
distance
Optional. Defines the next-hop distance for this route. Routes with
a smaller distance will be selected before those with a larger
distance.
interface
Default
None.
UsageGuidelines
Use this command to configure IPv6 static routes on the system in an alternate
routing table. The alternate routing tables are used with policy based routing. See the
Vyatta Policy Based Routing Reference Guide for information on policy based
routing.
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.
BasicRouting
6.5R1v01
Vyatta
70
GlossaryofAcronyms
ACL
ADSL
AMI
API
AS
autonomous system
ARP
AWS
BGP
BIOS
BPDU
CA
certificate authority
CCMP
CHAP
CLI
command-line interface
DDNS
dynamic DNS
DHCP
DHCPv6
BasicRouting
6.5R1v01
Vyatta
71
DLCI
DMI
DMZ
demilitarized zone
DN
distinguished name
DNS
DSCP
DSL
eBGP
external BGP
EBS
EC2
EGP
ECMP
equal-cost multipath
ESP
FIB
FTP
GRE
HDLC
I/O
Input/Ouput
ICMP
IDS
IEEE
IGP
IPS
IKE
IP
Internet Protocol
IPOA
IP over ATM
BasicRouting
6.5R1v01
Vyatta
72
IPsec
IP security
IPv4
IP Version 4
IPv6
IP Version 6
ISP
KVM
L2TP
LACP
LAN
LDAP
LLDP
MAC
MIB
MLPPP
multilink PPP
MRRU
MTU
NAT
ND
Neighbor Discovery
NIC
NTP
OSPF
OSPFv2
OSPF Version 2
OSPFv3
OSPF Version 3
PAM
PAP
PAT
PCI
BasicRouting
6.5R1v01
Vyatta
73
PKI
PPP
Point-to-Point Protocol
PPPoA
PPPoE
PPTP
PTMU
PVC
QoS
quality of service
RADIUS
RHEL
RIB
RIP
RIPng
Rx
receive
S3
SLAAC
SNMP
SMTP
SONET
SSH
Secure Shell
SSID
STP
TACACS+
TBF
TCP
TKIP
BasicRouting
6.5R1v01
Vyatta
74
ToS
Type of Service
TSS
Tx
transmit
UDP
VHD
vif
virtual interface
VLAN
virtual LAN
VPC
VPN
VRRP
WAN
WAP
WPA
BasicRouting
6.5R1v01
Vyatta