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

歡迎訪問 生活随笔!

生活随笔

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

linux

linux查看端口pvid,交换机端口及常见问题定位(二)

發布時間:2023/12/14 linux 43 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux查看端口pvid,交换机端口及常见问题定位(二) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Agenda

1,常用線纜及收發器

2,交換機端口類型

3,常用命令

4,常用診斷工具

5,光口不能UP故障

6,電口為半雙工故障

7,端口UP/DOWN故障

8,端口err-disable故障

9,網絡排障方法總結

10,Console Port介紹

11,Lenovo TOR 交換機家族

端口類型:

Cisco 交換機

對 Cisco 設備來說,交換機的端口分三種: access、 trunk、三層口(no switchport)

華為交換機

對華為交換機來說,交換機的端口分為 :access、 trunk、 hybrid(雜合端口)

Lenovo ToR交換機

對BNT交換機來說,交換機的端口分為:untagging 和 tagging 端口

access 端口:

1,一個 access 端口只能屬于一個 VLAN,它只能轉發這個 VLAN 的數據,它是一個端口最后的歸宿,

即它不能和所連的端口靜態或動態地形成 trunk,那么它就回歸為 access

2,Cisco 交換機的端口缺省為 dynamic desirable,或 dynamic auto

3,dynamic desirable:動態可取模式,主動對端協商,也就是通常的Trunk模式優先。在可以和對端

協商成trunk模式時使用trunk模式,不行則改為access模式

4,華為交換機的access 端口等同于Cisco的access 端口

trunk 端口:

1,當一個端口要轉發多個 VLAN 的流量,那么這個端口要屬于多個 VLAN,對 Cisco 的設備來說,這個

端口的類型要設置為 trunk,也就是當一個端口屬于 trunk 類型,那么它屬于任何 VLAN

2,對于華為的設備來說, 等同 Cisco 的 trunk。 不同的是缺省情況下,華為的 trunk 只屬于

VLAN 1,要想屬于哪些 VLAN,要手工加入

untagging 端口:

相同于 Cisco 交換機的 access 口,是端口的缺省模式

tagging 端口:

1,相當于 Cisco 交換機的 trunk 口,不同的是,缺省情況下, trunk 口屬于所有的 VLAN,

tagging 口可以屬于多個或所有 VLAN,但要手工加入

2,對于刀片交換機,外部端口缺省為 untagging 端口,內部端口缺省為 tagging 端口

hybrid 端口:

華為交換機的特殊端口類型,介于 access 和 trunk 之間即雜合模式,象 trunk 一樣可以讓多個

VLAN 通過,但又不象 trunk 那樣,除了 PVID 的幀外,把其它所有的 VLAN 都要打上 TAG 發去,

hybrid 端口可對這些非PVID VLAN 打 TAG 或不打 TAG

三層口:

交換機的端口既有三層路由功能,也具有二層交換功能。三層交換機端口默認為二層口,如果需要啟用

三層功能就需要在此端口輸入no switchport命令

常用命令:

show running-config 與 show startup-config //對于配置是否被修改, 或者判斷交換機是否運行

正確的配置很有幫助

show logging reverse命令

Mar 5 0:59:04 0.0.0.0 ALERT stg: STG 1, topology change detected

Mar 5 0:59:04 0.0.0.0 ALERT stg: STG 1, new root bridge

Mar 5 0:59:03 0.0.0.0 ALERT system: link up on management port MGT1

Mar 5 0:59:03 0.0.0.0 NOTICE system: SR SFP+ inserted at port EXT1 is Approved

Mar 5 0:59:02 0.0.0.0 NOTICE link: link up on port EXT1

Mar 5 0:59:02 0.0.0.0 NOTICE server: link up on port INTA6

Mar 5 0:59:01 0.0.0.0 NOTICE mgmt: Booting up with compatibility mode.

Mar 5 0:59:01 0.0.0.0 INFO system: booted version 7.8.6 from FLASH image1, active configuration

Mar 5 0:58:52 0.0.0.0 ERROR cfg: Error: CEE is not enabled. Please enable CEE (cee ena) prior toconfiguring the port(s) as Fibre Channel port(s).

Mar 5 0:58:51 0.0.0.0 NOTICE Norm: Init normalization done.

Mar 5 0:58:40 0.0.0.0 NOTICE mgmt: CME A DOWN and CME B UP because Management Module 1 is active

Mar 5 0:58:38 0.0.0.0 NOTICE system: rebooted (power cycle)

show interface命令

Router(config)#show interface link

Alias Port Speed Duplex Flow Ctrl Link Description

------- ---- ----- -------- ------------TX-----RX-- ------ -------------

INTA6 6 10000 full no no up INTA6

INTB6 20 1G/10G full yes yes down INTB6

EXT1 43 10000 full no no up EXT1

EXT2 44 1G/10G full no no down EXT2

EXT11 53 10000 full no no down EXT11

EXT12 54 10000 full no no down EXT12

EXT13 55 10000 full no no down EXT13

EXT14 56 10000 full no no down EXT14

EXT15 57 Auto full no no down EXT15

EXT16 58 Auto full no no down EXT16

EXT17 59 10000 full no no down EXT17

EXT18 60 10000 full no no down EXT18

EXTM 65 any auto yes yes down EXTM

MGT1 66 1000 full no no up MGT1

show interface命令

Router(config)#show interface port INTA6

Current port INTA6 configuration: enabled, PVID/Native-VLAN 1 //PVID

Description INTA6

ErrDisable recovery enabled

STP: edge, auto link-type, no guard //邊緣端口

The Unicast storm control currently turned off

The Multicast storm control currently turned off

The Broadcast storm control currently turned off

802.1p priority: 0

Bandwidth percentage for unicast traffic: global

DSCP remarking for port: disabled

BPDU guard: disabled //BPDU守護

Flood blocking: disabled

L2 Learning: enabled

ACL Port config is empty //訪問控制列表

UDLD: disabled, mode normal

OAM: disabled, mode active

EVB Profile: 0

Reflective Relay is configured off

VLANs:1 //Native vlan

Current Port INTA6 Gig link configuration:

speed 1000/10000, mode full duplex, fctl both, auto on

//速率,雙工模式,流控制,自協商狀態

display interface

display interface GigabitEthernet1/0/5

GigabitEthernet1/0/5 current state : UP //物理端口狀態: UP or DOWN

Line protocol current state : UP

Description:

Switch Port, PVID : 1, TPID : 8100(Hex), The Maximum Frame

Length is 9216

IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0000-0a88-15cd

Last physical up time : -

Last physical down time : 2010-04-15 09:19:17

Current system time: 2010-04-19 13:53:58

Port Mode: COMMON FIBER //FIBER or COPPER

Speed : 1000, Loopback: NONE //速率 環回狀態

Duplex: FULL, Negotiation: ENABLE //雙工狀態 自協商狀態

Mdi : NORMAL

display transceiver verbose

display transceiver interface GigabitEthernet4/0/11 verbose

GigabitEthernet4/0/11 transceiver information:

-------------------------------------------------------------

Common information:

Transceiver Type :1000_BASE_SX_SFP //光模塊類型

Connector Type :LC //接口類型

Wavelength(nm) :850 //光模塊波長

Transfer Distance(m) :500(50um),300(62.5um) //光模塊支持光纖的傳輸距離

Digital Diagnostic Monitoring :YES

Vendor Name :JDSU

Vendor Part Number :PLRXPL-VI-S24-HW

Ordering Name :

-------------------------------------------------------------

Alarm information: //光模塊告警信息

RX loss of signal

RX power low

-------------------------------------------------------------

收集Log: 將打印出來的log保存成txt文件,可使用Putty,SecureCRT或者xShell等

華為交換機:

display logbuffer //打印log

display cur //打印當前配置

思科交換機:

show log //打印log, //收集syslog需配置syslog服務器

show env //硬件日志(風扇,電源,溫度等)

Lenovo ToR交換機:

show logging //打印log

show tech-support //打印當前配置

常用診斷工具

Wireshark抓包分析軟件 (經常與交換機的端口鏡像相結合)

端口鏡像(port-mirror)

1,把一個端口(mirrored-port)的收發數據鏡像到另一個端口(Monitor-port),可選擇單向收或發,

也可選擇雙向收發。

2,當在 trouble-shooting 中,在 Monitor-port 上連接安裝抓包軟件的主機,由此可抓到某個

交換機端口的收發包情況及具體包中的數據,以做進一步深入的分析。

Linux tcpdump

PING 回應: 成功與失敗

PING 包根本沒有發出去 or 被目的主機拒絕

PING 包發出去了,到達中間路由器,但目的主機不可達

PING 包發出去了, 被中間的路由器所阻擋(由被 ACL 所deny)

包被目的主機收到,但目的主機拒絕了 PING ,當目的主機能夠發 ICMP 拒絕信息時 (如 Linux 服務

器上設置: #iptables –I INPUT –p icmp –j REJECT)

總結

以上是生活随笔為你收集整理的linux查看端口pvid,交换机端口及常见问题定位(二)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。