управление таблицей маршрутизации (routing table management)
Синопсис (Synopsis)
ip
[ ip-OPTIONS ] route
{ COMMAND | help
}
ip route
{ show
| flush
} SELECTOR
ip route save
SELECTOR
ip route restore
ip route get
ROUTE_GET_FLAGS ADDRESS [ from
ADDRESS iif
STRING ]
[ oif
STRING ] [ mark
MARK ] [ tos
TOS ] [ vrf
NAME ] [
ipproto
PROTOCOL ] [ sport
NUMBER ] [ dport
NUMBER ]
ip route
{ add
| del
| change
| append
| replace
} ROUTE
SELECTOR := [ root
PREFIX ] [ match
PREFIX ] [ exact
PREFIX ] [
table
TABLE_ID ] [ vrf
NAME ] [ proto
RTPROTO ] [ type
TYPE ] [ scope
SCOPE ]
ROUTE := NODE_SPEC [ INFO_SPEC ]
NODE_SPEC := [ TYPE ] PREFIX [ tos
TOS ] [ table
TABLE_ID ] [
proto
RTPROTO ] [ scope
SCOPE ] [ metric
METRIC ] [ ttl-
propagate
{ enabled
| disabled
} ]
INFO_SPEC := { NH | nhid
ID } OPTIONS FLAGS [ nexthop
NH ] ...
NH := [ encap
ENCAP ] [ via
[ FAMILY ] ADDRESS ] [ dev
STRING ] [
weight
NUMBER ] NHFLAGS
FAMILY := [ inet
| inet6
| mpls
| bridge
| link
]
OPTIONS := FLAGS [ mtu
NUMBER ] [ advmss
NUMBER ] [ as
[ to
]
ADDRESS ] rtt
TIME ] [ rttvar
TIME ] [ reordering
NUMBER
] [ window
NUMBER ] [ cwnd
NUMBER ] [ ssthresh
NUMBER ] [
realms
REALM ] [ rto_min
TIME ] [ initcwnd
NUMBER ] [
initrwnd
NUMBER ] [ features
FEATURES ] [ quickack
BOOL ]
[ congctl
NAME ] [ pref
PREF ] [ expires
TIME ] [
fastopen_no_cookie
BOOL ]
TYPE := [ unicast
| local
| broadcast
| multicast
| throw
|
unreachable
| prohibit
| blackhole
| nat
]
TABLE_ID := [ local
| main
| default
| all
| NUMBER ]
SCOPE := [ host
| link
| global
| NUMBER ]
NHFLAGS := [ onlink
| pervasive
]
RTPROTO := [ kernel
| boot
| static
| NUMBER ]
FEATURES := [ ecn
| ]
PREF := [ low
| medium
| high
]
ENCAP := [ ENCAP_MPLS | ENCAP_IP | ENCAP_BPF | ENCAP_SEG6 |
ENCAP_SEG6LOCAL ]
ENCAP_MPLS := mpls
[ LABEL ] [ ttl
TTL ]
ENCAP_IP := ip id
TUNNEL_ID dst
REMOTE_IP [ src
SRC ] [ tos
TOS ]
[ ttl
TTL ]
ENCAP_BPF := bpf
[ in
PROG ] [ out
PROG ] [ xmit
PROG ] [
headroom
SIZE ]
ENCAP_SEG6 := seg6 mode
[ encap
| inline
| l2encap
] segs
SEGMENTS [ hmac
KEYID ]
ENCAP_SEG6LOCAL := seg6local action
SEG6_ACTION [
SEG6_ACTION_PARAM ]
ROUTE_GET_FLAGS := [ fibmatch ]