Annotation of lucent/sys/man/3/iproute, revision 1.1.1.1

1.1       root        1: .TH IPROUTE 3 
                      2: .SH NAME
                      3: iproute \- Internet route table manager
                      4: .SH SYNOPSIS
                      5: .B bind -a #P /net
                      6: .PP
                      7: .B /net/iproute
                      8: .br
                      9: .B /net/ipifc
                     10: .SH DESCRIPTION
                     11: The
                     12: .I iproute
                     13: device allows the specification of routes for families of IP addresses.
                     14: It
                     15: maintains a kernel-resident routing table for IP addresses used by TCP, IL and UDP.
                     16: Each route consists of a destination IP address, an IP mask, and an IP gateway address.
                     17: Every packet sent by the system is routed according to the route table.
                     18: An address matches the route table entry when a packet's destination address
                     19: matches the table destination address under the mask. When a match is found,
                     20: the packet is sent to the gateway IP address. If there is no match, the
                     21: packet is sent with the original destination address.
                     22: If there are several matches, the one whose mask has the fewest
                     23: leading zeros is chosen.
                     24: (Because of the definition of IP
                     25: masks, this mask preserves the largest portion of the address
                     26: and is therefore the most specific.)
                     27: This is
                     28: forced by storing the routes in decreasing number of ones order
                     29: and returning the first match.  The default gateway has no ones
                     30: in the mask and is thus the last matched.
                     31: .PP
                     32: Reading
                     33: .B iproute
                     34: reports the current routes entered in the table.
                     35: Writing control
                     36: messages to
                     37: .B iproute
                     38: edits the table.
                     39: Route entries are made by writing a string of format
                     40: .IP
                     41: .EX
                     42: add \f2ipdest mask ipgateway\fP
                     43: .EE
                     44: .PP
                     45: Entries are deleted by writing a string of format
                     46: .IP
                     47: .EX
                     48: delete \f2ipdest mask\fP
                     49: .EE
                     50: .PP
                     51: The whole table can be cleared by writing the string
                     52: .LR flush .
                     53: .PP
                     54: For example, to install a gateway address to accept all IP packets from a machine:
                     55: .IP
                     56: .EX
                     57: % echo 'add 0.0.0.0 0.0.0.0 131.107.1.5' > /net/iproute
                     58: % cat /net/iproute
                     59: 0.0.0.0 & 0.0.0.0 -> 131.107.1.5
                     60: .EE
                     61: .PP
                     62: Reading
                     63: .B ipifc
                     64: reports the current IP interfaces being used, one line per interface,
                     65: showing the device, the maximum transfer unit, the local address, the
                     66: network mask, and the network address.
                     67: .PP
                     68: .SH SOURCE
                     69: .B /sys/src/9/port/deviproute.c
                     70: .SH SEE ALSO
                     71: .IR ip (3),
                     72: .IR ipconfig (8)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.