==================ubuntu=====================
sudo apt-get update
sudo apt-get install iproute2
tipc [ OPTIONS ] COMMAND ARGUMENTS
COMMAND := { bearer | link | media | nametable | node | socket }
OPTIONS := { -h[help] }
=================centos======================
yum install tipcutils
[root@localhost ~]# tipc-config
Usage:
tipc-config command [command ...]
valid commands:
-addr [=<addr>] Get/set node address
-b [=<bearerpat>] Get bearers
-bd =<bearerpat> Disable bearer
-be =<bearer>[/<domain>[/<priority>]]] Enable bearer
-dest =<addr> Command destination node
-help This usage list
-i Interactive set operations
-l [=<domain>|<linkpat>] Get links to domain
-log [=<size>] Dump/resize log
-lp =<linkpat>|<bearer>|<media>/<value> Set link priority
-ls [=<linkpat>] Get link statistics
-lsr =<linkpat> Reset link statistics
-lt =<linkpat>|<bearer>|<media>/<value> Set link tolerance
-lw =<linkpat>|<bearer>|<media>/<value> Set link window
-m Get media
-max_ports [=<value>] Get/set max number of ports
-max_publ [=<value>] Get/set max publications
-max_subscr [=<value>] Get/set max subscriptions
-mng [=enable|disable] Get/set remote management
-n [=<domain>] Get nodes in domain
-netid[=<value>] Get/set network id
-nt [=[<depth>,]<type>[,<low>[,<up>]]] Get name table
where <depth> = types|names|ports|all
-p Get port info
-s Get TIPC status info
-v Verbose output
-V Get tipc-config version info
==============================================
yum install kernel-devel-$(uname -r)
查看已安裝的kernel-devel
[root@localhost dev]# uname -a ; rpm -qa kernel\* | sort
Linux localhost.localdomain 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
kernel-3.10.0-1062.el7.x86_64
kernel-devel-3.10.0-1062.1.2.el7.x86_64
kernel-devel-3.10.0-1062.el7.x86_64
kernel-headers-3.10.0-1062.1.2.el7.x86_64
cd /usr/src/kernels/3.10.0-1062.el7.x86_64
modprobe tipc
==============================================
https://github.com/TIPC/tipcutils
yum -y install automake
cd tipcutils
./bootstrap
./configure
make