Get the App
SLTechnology News&Howtos  ›  Servers  › 

Ip commands in linux

Shulou Source: shulou.com Published: 2022-06-03 02:07:59 10月04日 Update

Ip is a powerful network configuration tool in iproute2 software package. It can replace some traditional network management tools, such as ifconfig, route and so on. This command is supported by almost all Linux distributions.

As every Linux network administrator and all Linux users, the ip command is a must-have tool, which perfectly replaces the ifconfig command, so this article will give a comprehensive summary of the ip command. I hope that through my summary, you can be more familiar with the ip command.

The common command formats for ip are as follows:

Ip [OPTIONS] OBJECT {COMMAND | help}

Object OBJECT= {link | addr | addrlabel | route | rule | neigh | ntable | tunnel | maddr | mroute | mrule | monitor | xfrm | token}

Option OPTIONS= {- V [ersion] |-s [tatistics] |-d [etails] |-r [esolve] |-h [uman-readable] |-iec |-f [amily] {inet | inet6 | ipx | link} |-o [neline] |-t [imestamp] |-b [atch] [filename] |-rc [vbuf] [size]}

The values of commonly used objects are as follows:

Link: network device address: protocol (IP or IPv6) address on device addrlabel: label configuration for protocol address selection route: routing table entry rule: rules in routing policy database

The values of common options are as follows:

-VMagneMutual version: display instruction version information-sfurology stats statistics: output details-hfujimi humankinewishi readable: output human readable statistics and suffix-omai Methoneline: output each record to one line, replacing the newline character with the'\ 'character

These are the details of what linux's ip command is. Please pay more attention to other related articles!

Tags: Commands networks information tools commonly used output meaning address object version device routing configuration power one line human tradition user content suffix Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Apple Shulou Tech Info macOS Linux