Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   ip-route    ( 8 )

управление таблицей маршрутизации (routing table management)

  Name  |  Synopsis  |  Description  |  Note  |    Examples    |  See also  |

Примеры (Examples)

ip ro
           Show all route entries in the kernel.

ip route add default via 192.168.1.1 dev eth0 Adds a default route (for all addresses) via the local gateway 192.168.1.1 that can be reached on device eth0.

ip route add 10.1.1.0/30 encap mpls 200/300 via 10.1.1.1 dev eth0 Adds an ipv4 route with mpls encapsulation attributes attached to it.

ip -6 route add 2001:db8:1::/64 encap seg6 mode encap segs 2001:db8:42::1,2001:db8:ffff::2 dev eth0 Adds an IPv6 route with SRv6 encapsulation and two segments attached.

ip route add 10.1.1.0/30 nhid 10 Adds an ipv4 route using nexthop object with id 10.