routed.8 (4c723140a407d2ba326c134a26cec9569dc52d46) | routed.8 (d04b5dfe6cb5c950c97bcc0c5742c01d1d8d33f9) |
---|---|
1.\" $Revision: 2.26 $ 2.\" 3.\" Copyright (c) 1983, 1991, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 98 unchanged lines hidden (view full) --- 107.Nm 108formulates a reply based on the information maintained in its 109internal tables. 110The 111.Em response 112packet generated contains a list of known routes, each marked 113with a "hop count" metric (a count of 16 or greater is 114considered "infinite"). | 1.\" $Revision: 2.26 $ 2.\" 3.\" Copyright (c) 1983, 1991, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 98 unchanged lines hidden (view full) --- 107.Nm 108formulates a reply based on the information maintained in its 109internal tables. 110The 111.Em response 112packet generated contains a list of known routes, each marked 113with a "hop count" metric (a count of 16 or greater is 114considered "infinite"). |
115Th advertised metric for a route reflects the metrics associated | 115The advertised metric for a route reflects the metrics associated |
116with interfaces 117(see 118.Xr ifconfig 8 ) 119though which it is received and sent, 120so setting the metric on an interface 121is an effective way to steer traffic. 122See also 123.Cm adj_inmetric --- 99 unchanged lines hidden (view full) --- 223file. 224.Pp 225While using Router Discovery (which happens by default when 226the system has a single network interface and a Router Discover Advertisement 227is received), there is a single default route and a variable number of 228redirected host routes in the kernel table. 229On a host with more than one network interface, 230this default route will be via only one of the interfaces. | 116with interfaces 117(see 118.Xr ifconfig 8 ) 119though which it is received and sent, 120so setting the metric on an interface 121is an effective way to steer traffic. 122See also 123.Cm adj_inmetric --- 99 unchanged lines hidden (view full) --- 223file. 224.Pp 225While using Router Discovery (which happens by default when 226the system has a single network interface and a Router Discover Advertisement 227is received), there is a single default route and a variable number of 228redirected host routes in the kernel table. 229On a host with more than one network interface, 230this default route will be via only one of the interfaces. |
231Thus, multi-homed hosts running with \f3\-q\f1 might need | 231Thus, multi-homed hosts running with 232.Fl q 233might need |
232.Cm no_rdisc 233described below. 234.Pp 235See the 236.Cm pm_rdisc 237facility described below to support "legacy" systems 238that can handle neither RIPv2 nor Router Discovery. 239.Pp --- 269 unchanged lines hidden (view full) --- 509.Fl t , 510such lines create pseudo-interfaces. 511To set parameters for remote or external interfaces, 512a line starting with 513.Cm if=alias(Hname) , 514.Cm if=remote(Hname) , 515etc. should be used. 516.Ss Parameters | 234.Cm no_rdisc 235described below. 236.Pp 237See the 238.Cm pm_rdisc 239facility described below to support "legacy" systems 240that can handle neither RIPv2 nor Router Discovery. 241.Pp --- 269 unchanged lines hidden (view full) --- 511.Fl t , 512such lines create pseudo-interfaces. 513To set parameters for remote or external interfaces, 514a line starting with 515.Cm if=alias(Hname) , 516.Cm if=remote(Hname) , 517etc. should be used. 518.Ss Parameters |
517.Pp | |
518Lines that start with neither "net" nor "host" must consist of one 519or more of the following parameter settings, separated by commas or 520blanks: | 519Lines that start with neither "net" nor "host" must consist of one 520or more of the following parameter settings, separated by commas or 521blanks: |
521.Bl -tag -width Ds 522.It Cm if Ns \&= Ns Ar ifname | 522.Bl -tag -width indent 523.It Cm if Ns = Ns Ar ifname |
523indicates that the other parameters on the line apply to the interface 524name 525.Ar ifname . | 524indicates that the other parameters on the line apply to the interface 525name 526.Ar ifname . |
526.It Cm subnet Ns \&= Ns Ar nname[/mask][,metric] | 527.It Cm subnet Ns = Ns Ar nname Ns Oo / Ns Ar mask Oc Ns Op , Ns Ar metric |
527advertises a route to network 528.Ar nname 529with mask 530.Ar mask 531and the supplied metric (default 1). 532This is useful for filling "holes" in CIDR allocations. 533This parameter must appear by itself on a line. 534The network number must specify a full, 32-bit value, as in 192.0.2.0 535instead of 192.0.2. 536.Pp 537Do not use this feature unless necessary. It is dangerous. | 528advertises a route to network 529.Ar nname 530with mask 531.Ar mask 532and the supplied metric (default 1). 533This is useful for filling "holes" in CIDR allocations. 534This parameter must appear by itself on a line. 535The network number must specify a full, 32-bit value, as in 192.0.2.0 536instead of 192.0.2. 537.Pp 538Do not use this feature unless necessary. It is dangerous. |
538.It Cm ripv1_mask Ns \&= Ns Ar nname/mask1,mask2 | 539.It Cm ripv1_mask Ns = Ns Ar nname Ns / Ns Ar mask1 , Ns Ar mask2 |
539specifies that netmask of the network of which | 540specifies that netmask of the network of which |
540.Cm nname/mask1\f1 | 541.Ar nname Ns / Ns Ar mask1 |
541is 542a subnet should be | 542is 543a subnet should be |
543.Cm mask2 . 544For example \f2ripv1_mask=192.0.2.16/28,27\f1 marks 192.0.2.16/28 | 544.Ar mask2 . 545For example, 546.Dq Li ripv1_mask=192.0.2.16/28,27 547marks 192.0.2.16/28 |
545as a subnet of 192.0.2.0/27 instead of 192.0.2.0/24. 546It is better to turn on RIPv2 instead of using this facility, for example | 548as a subnet of 192.0.2.0/27 instead of 192.0.2.0/24. 549It is better to turn on RIPv2 instead of using this facility, for example |
547with \f2ripv2_out\f1. 548.It Cm passwd Ns \&= Ns Ar XXX[|KeyID[start|stop]] | 550with 551.Cm ripv2_out . 552.It Cm passwd Ns = Ns Ar XXX[|KeyID[start|stop]] |
549specifies a RIPv2 cleartext password that will be included on 550all RIPv2 responses sent, and checked on all RIPv2 responses received. 551Any blanks, tab characters, commas, or '#', '|', or NULL characters in the 552password must be escaped with a backslash (\\). 553The common escape sequences \\n, \\r, \\t, \\b, and \\xxx have their 554usual meanings. 555The 556.Cm KeyID --- 158 unchanged lines hidden (view full) --- 715.Sh BUGS 716It does not always detect unidirectional failures in network interfaces, 717for example, when the output side fails. 718.Sh HISTORY 719The 720.Nm 721utility appeared in 722.Bx 4.2 . | 553specifies a RIPv2 cleartext password that will be included on 554all RIPv2 responses sent, and checked on all RIPv2 responses received. 555Any blanks, tab characters, commas, or '#', '|', or NULL characters in the 556password must be escaped with a backslash (\\). 557The common escape sequences \\n, \\r, \\t, \\b, and \\xxx have their 558usual meanings. 559The 560.Cm KeyID --- 158 unchanged lines hidden (view full) --- 719.Sh BUGS 720It does not always detect unidirectional failures in network interfaces, 721for example, when the output side fails. 722.Sh HISTORY 723The 724.Nm 725utility appeared in 726.Bx 4.2 . |
723\" LocalWords: loopback ICMP rtquery ifconfig multicasting Solicitations RIPv 724\" LocalWords: netstat rdisc | 727.\" LocalWords: loopback ICMP rtquery ifconfig multicasting Solicitations RIPv 728.\" LocalWords: netstat rdisc |