route

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2021 License: GPL-2.0, GPL-2.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Man = `` /* 16868-byte string literal not displayed */

Variables

View Source
var Goes = &goes.Goes{
	NAME: "route",
	USAGE: `
	ip route [ show ]
	ip route { show | flush } SELECTOR
	ip route save SELECTOR
	ip route restore
	ip route { add | del | change | append | replace } ROUTE
	ip route get ADDRESS [ from ADDRESS iif IFNAME  ] [ oif IFNAME ]
		[ tos TOS ] [ vrf NAME ]

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 ]

INFO_SPEC := NH OPTIONS [ nexthop NH ] ...

NH := [ encap ENCAP ] [ via ADDRESS ] [ dev STRING ] [ weight NUMBER ]
	NHFLAGS

OPTIONS := [ mtu NUMBER ] [ advmss NUMBER ] [ as [ to ] ADDRESS ]
	[ rtt TIME ] [ rttvar TIME ] [ reordering NUMBER ]
	[ window NUMBER ] [ cwnd NUMBER ] [ ssthresh REALM ]
	[ realms REALM ] [ rto_min TIME ] [ initcwnd NUMBER ]
	[ initrwnd NUMBER ] [ features FEATURES ] [ quickack BOOL ]
	[ congctl NAME ] [ pref PREF ] [ expires TIME ]

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 := [ MPLS | IP ]

ENCAP_MPLS := mpls [ LABEL ]

ENCAP_IP := ip id TUNNEL_ID dst REMOTE_IP [ tos TOS ] [ ttl TTL ]`,
	APROPOS: lang.Alt{
		lang.EnUS: "routing table management",
	},
	MAN: lang.Alt{
		lang.EnUS: Man,
	},
	ByName: map[string]cmd.Cmd{
		"add":     mod.Command("add"),
		"append":  mod.Command("append"),
		"change":  mod.Command("change"),
		"delete":  mod.Command("delete"),
		"replace": mod.Command("replace"),
		"":        show.Command(""),
		"show":    show.Command("show"),
		"flush":   show.Command("flush"),
		"get":     show.Command("get"),
		"save":    show.Command("save"),
		"restore": show.Command("restore"),
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
ip route show (default) | flush | get | save | restore
ip route show (default) | flush | get | save | restore

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL