TIPC配置过程

 

TIPC的配置比较简单,下面以实例说明如下:

假设现在有两台机子,想利用TIPC进行通信,假定两台机子分别为机子A、机子B。

前提:

已经成功加载TIPC模块或者安装TIPC后内核做了重新编译,并且tipc-config命令       可以运行使用。

 

过程:

机子A:./tipc-config-netid=1234 -addr=1.1.2-be=eth:eth0/1.1.0

    机子B:./tipc-config -netid=1234 -addr=1.1.1-be=eth:eth0/1.1.0

  说明:

-netid[=<value>]: Set the network ID of the node to <value>.

小注:这个netid在其他地方说也可以不指定。后来尝试了下,无需指定,有默认值。

-addr[=<addr>]:Set the network address of the node。类似于平常接触的IP地址。具体说       明如下:

The TIPC address is divided into three fields:

1) Zone (8 Bit)

2) Cluster (12 Bit)

3) Node (12 Bit)

A TIPC address is written in the form <zone.cluster.node>,i.e. the address <1.2.3>

    identifies node number three inside clustertwo in zone one

小注:address一旦制定后不能更改。不过后来尝试了下,先rmmod tipc.ko,然后再加载该模块,以前设置的信息就全部清零了,可以重置。

       -be=<bearer>[/<domain>[/<priority>]]:Enablea TIPC bearer on the interface <bearer>, <domain>value specifes a "neighbour detectiondomain" which limits the nodes that TIPC can set up links to.The defalut value is 0.0.0.

小注:当时自己在80和88机子上配置的时候并没有指定domain。配置完二者也可以找到彼此。

FAQ:

     如何知道A和B已经彼此找到对方??

在A机器上执行:./tipc-config -n

如果有输出Neighbors:

<1.1.1>: up

机器B类似,说明二者已经找到彼此。

注:至于tipc-config的其他命令选项和参考用户手册。

 

  • 0
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值