日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

mysql lisensce_Linux之lldptool命令

發(fā)布時間:2025/3/21 数据库 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql lisensce_Linux之lldptool命令 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1. 描述

當我們想在操作系統(tǒng)里面查看網(wǎng)口和交換機連接的狀態(tài)信息,我們可以使用lldptool這個工具。

2.LLDP協(xié)議

LLDP是一個數(shù)據(jù)鏈路層發(fā)現(xiàn)協(xié)議,LLDP協(xié)議使得接入網(wǎng)絡(luò)的一臺設(shè)備可以將其主要的能力,管理地址,設(shè)備標識,接口標識等信息發(fā)送給接入同一個局域網(wǎng)絡(luò)的其它設(shè)備。lldptool工具采用的是LLDP協(xié)議,一般我們使用lldptool是為了得到設(shè)備的物理拓撲結(jié)構(gòu)以及管理配置信息,比如說,和eth1網(wǎng)口相連的網(wǎng)絡(luò)交換機的Vlan ID是多少?網(wǎng)絡(luò)交換機的名稱是什么?網(wǎng)線插在網(wǎng)絡(luò)交換機的什么地方?

在這里我們不去討論LLDP協(xié)議的架構(gòu)和具體時序狀態(tài)碼等,這里僅僅介紹怎么用它。

LLDP協(xié)議有四種工作模式:

TxRx:既發(fā)送也接收LLDP 幀

Tx? ? :只發(fā)送不接收LLDP 幀

Rx:只接收不發(fā)送LLDP 幀

Disable:既不發(fā)送也不接收

一般設(shè)置LLDP工作在TxRx模式。

3.lldptool的命令格式

lldptool [options] [參數(shù)]

Options

-i [ifname]

specifies the network interface to which the command applies

-V [tlvid]

specifies the TLV identifier

The tlvid is an integer value used to identify specific LLDP TLVs. The tlvid value is the Type value for types not equal to 127 (the organizationally specific type). For organizationally specific TLVs, the tlvid is the value represented by the 3 byte OUI and 1 byte subtype - where the subtype is the lowest order byte of the tlvid.

The tlvid can be entered as a numerical value (e.g. 10 or 0xa), or for supported TLVs, as a keyword. Review the

lldptool?help output to see the list of supported TLV keywords.

-n

"neighbor" option for commands which can use it (e.g. get-tlv)

-g [bridge scope]

specify the bridge scope this command operates on. Allows to set and query all LLDP TLV modules for "nearest_bridge" (short: "nb"), "nearest_customer_bridge" ("ncb") and "nearest_nontpmr_bridge" ("nntpmrb") group mac addresses. Configurations are saved into independent sections in lldpad.conf. If no bridge scope is supplied this default to "nearest bridge" to preserve the previous behaviour.

-c

"config" option for TLV queries. Indicates that the query is for the configuration elements for the specified TLV. The argument list specifies the specific elements to query. If no arguments are listed, then all configuration elements for the TLV are returned.

-r

show raw client interface messages

-R

show only raw Client interface messages

Commands

license

show license information

-h, help

show usage information

-v, version

show version information

-S, stats

get LLDP statistics

-t, get-tlv

get TLV information

-T, set-tlv

set TLV information

-l, get-lldp

get LLDP parameters

-L, set-lldp

set LLDP parameters

-q, quit

exit from interactive mode

4.lldptool使用舉例

ip a查看啟用網(wǎng)口:

先看一些有沒有l(wèi)ldptool工具,如果沒有的話yum裝一下:

[root@wow ~]# service lldpad status

lldpad is stopped

[root@wow~]# service lldpad start

Starting lldpad: [ OK ]

[root@wow~]#

先設(shè)置lldptool的工作模式:

[root@wow ~]# lldptool set-lldp -i eth0 adminStatus=rxtx

adminStatus= rxtx  #這樣就和網(wǎng)絡(luò)交換機建立了鄰居關(guān)系,接下來就可以查詢連接的交換機信息了

使用lldptool查看網(wǎng)口與交換機連接狀態(tài):

[root@wow ~]# lldptool -t -n -i eth0

Chassis ID TLV

MAC:48:xx:xx:xx:xx:51  #mac地址Port ID TLV

Ifname: GE1/0/1#網(wǎng)線插在交換機上的端口位置Time to Live TLV120System Name TLV

xx-xx-CE5850-xxxxx#交換機設(shè)備名System Description TLV

Huawei Versatile Routing Platform Software

VRP (R) software, Version8.150(CE5855EI V200R002C50SPC800)

Copyright (C)2012-2017Huawei Technologies Co., Ltd.

HUAWEI CE5855-xxxx-xxx  #華為的交換機

System Capabilities TLV

System capabilities: Bridge, Router

Enabled capabilities: Bridge, Router

Management Address TLV

IPv4: xx.xxx.xxx.xx  #ip地址

Ifindex:4OID:+[)

Port VLAN ID TLV

PVID:Port and Protocol VLAN ID TLV

PVID:0, not supported, not enabled

VLAN Name TLV

VID3652: Name VLAN3652

MAC/PHY Configuration Status TLV

Auto-negotiation supported and enabled

PMD auto-negotiation capabilities: 0xxxxxMAU type:1000BaseXFD

Link Aggregation TLV

Aggregation capable

Currently not aggregated

Aggregated Port ID:0Maximum Frame Size TLV9216End of LLDPDU TLV

[root@wow~]#

如果想利用lldptool對網(wǎng)口進行一些設(shè)置,可以參考手冊,下面是在Linux上找男人看到的一些例子:

Configure LLDP adminStatus to Receive and Transmit forinterface eth2  #為網(wǎng)口eth2配置LLDP的收發(fā)工作模式

lldptool-L -i eth2 adminStatus=rxtx

lldptool set-lldp -i eth2 adminStatus=rxtx

Disable the LLDP adminStatusforall interfaces  #讓所有網(wǎng)口都不可用LLDP

lldptool set-lldp adminStatus=disabled

Query the LLDP adminStatusforinterface eth3  #查詢網(wǎng)口eth3的LLDP狀態(tài)

lldptool-l -i eth3 adminStatus

lldptool get-lldp -i eth3 adminStatus

Query the LLDP statisticsforinterface eth3   #查詢網(wǎng)口eth3的統(tǒng)計信息

lldptool-S -i eth3 adminStatus

lldptool stats-i eth3 adminStatus

Query the local TLVswhich are being transmitted fora given interface:   #查詢?yōu)榻o定接口傳輸?shù)谋镜?/p>

lldptool-t -i eth3

lldptool get-tlv -i eth3

Query the received neighbor TLVs received on a given interface:  #查詢給定接口上收到的接收鄰居TLV

lldptool-t -n -i eth3

lldptool get-tlv -n -i eth3

Query the value of the System Description TLV as received from the neighbor on a given interface:

lldptool-t -n -i eth3 -V sysDesc

lldptool get-tlv -n -i eth3 -V 6Disable transmit of the IEEE802.3 MAC/PHY Configuration Status TLV fora given interface:

lldptool-T -i eth3 -V macPhyCfg enableTx=no

lldptool set-tlv -i eth3 -V 0x120f01 enableTx=no

Enable transmit of the Port Description TLVforall interfaces:

lldptool-T -V portDesc enableTx=yes

lldptool set-tlv -V 4 enableTx=yes

Query value of the transmit settingfor the Port Description TLV fora given interface:

lldptool-t -V portDesc -c enableTx

lldptool get-tlv -V 4 -c enableTx

Set a Management Address TLV on eth3 to carry IPv4 address192.168.10.10lldptool-T -i eth3 -V mngAddr ipv4=192.168.10.10Set a Management Address TLV on eth3 to carry IPv6 address ::192.168.10.10lldptool-T -i eth3 -V mngAddr ipv6=::192.168.10.10Get the configured IPv4 addressforthe Management Address TLV on eth3

lldptool-t -i eth3 -V mngAddr-c ipv4

Get all configured attributesforthe Management Address TLV on eth3

lldptool-t -i eth3 -V mngAddr -c

Query the current DCBX mode that will be usediflldpad is restarted. (this is not a persistent setting)

lldptool-t-i eth3 -V IEEE-DCBX -c mode

Reset the DCBX mode to be'auto' (start inIEEE DCBX mode) after the next lldpad restart

lldptool-T -i eth3 -V IEEE-DCBX mode=reset

Enable transmit of the Edge Virtual Bridging TLVforinterface eth4

lldptool-i eth4-T -V evbCfg enableTx=yes

Configure EVB TLV to set reflective relay and RTE,ECP and VDP capabilities

lldptool-T -i eth4 -V evbCfg fmode=reflectiverelay

lldptool-T -i eth4 -V evbCfg capabilities=rte,ecp,vdp

Enable transmit of the VDPforinterface eth4

lldptool-i eth4 -T -V vdp enableTx=yes

Configurations per port have higher precedence than global configurations.

總結(jié)

以上是生活随笔為你收集整理的mysql lisensce_Linux之lldptool命令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 人妻久久一区二区三区 | 韩日三级视频 | 日本深夜福利 | 欧美一区二区三区激情 | 国产精品情侣自拍 | 欧美69久成人做爰视频 | 丝袜 亚洲 另类 欧美 重口 | 成人mv| 久久国产精品99久久人人澡 | 欧美日韩在线播放 | 正在播放久久 | 香蕉视频免费看 | 欧美少妇毛茸茸 | 日本新japanese乱熟 | 大战熟女丰满人妻av | 青青草小视频 | 少妇免费毛片久久久久久久久 | 久草视频资源 | 欧美xxxxx视频 | 欧美日韩中文字幕视频 | 91资源在线视频 | 青青伊人精品 | 国产a一级| 欧美三级自拍 | 亚洲精品综合在线 | 精品国产一区在线观看 | 午夜久久剧场 | 欧美精品国产 | 国产一线天粉嫩馒头极品av | 国产白丝在线观看 | 国产区精品 | 91porny丨首页入口在线 | 久久精品视频观看 | 免费av网站观看 | 欧美精品在线一区二区三区 | 色婷婷婷婷色 | 日本男女啪啪 | 在线观看福利视频 | 亚洲国产极品 | 色妞av| 福利网站在线 | 在线免费亚洲 | 男生把女生困困的视频 | 亚洲成人一级片 | 色悠悠国产 | 无码国产精品一区二区色情男同 | 欧美一区中文字幕 | 国产精品96 | 精品国产乱码久久久久久婷婷 | 久久99久久精品 | 久久久久久中文字幕 | 麻豆91精品 | 在线观看福利视频 | 欧美一级视频免费观看 | 在线观看日本 | 日韩欧美第一页 | 天堂国产| 国产一区二区三区免费观看视频 | 另类激情亚洲 | 第一章豪妇荡乳黄淑珍 | 久久精品丝袜 | 国产精品九九 | 久久日本精品字幕区二区 | 人人看av| 色av导航 | 一区二区在线免费看 | 日韩av一卡 | 国产日韩欧美在线播放 | 日韩无码专区 | 成人性做爰片免费视频 | 亚洲成人中文 | 亚欧激情 | 蜜臀av无码精品人妻色欲 | 日韩18p| 涩色视频| 亚洲区久久 | 日韩欧美国产综合 | 午夜天堂网 | 国产又粗又深又猛又爽又在线观看 | 美女久久久 | 国产一级片久久 | 国产成人亚洲精品无码h在线 | 成年人精品视频 | 艳母日本动漫在线观看 | 中国丰满熟妇xxxx性 | 国产色视频在线 | 欧美精品黑人猛交高潮 | 99re在线播放 | 日韩天天操 | 轮乱| 欧美性猛交ⅹ乱大交3 | 精品久久a | 午夜成人免费视频 | 久热这里只有 | 久久精品国产电影 | 日本色中色 | 少妇精品高潮欲妇又嫩中文字幕 | 少妇又色又紧又黄又刺激免费 | 91精品久久人妻一区二区夜夜夜 |