华为交换机怎样查看某个端口下的ip 华为交换机如何查看vlan端口下对应的ip地址?
\u534e\u4e3a\u4ea4\u6362\u673a\u5982\u4f55\u67e5\u770b\u7aef\u53e3\u6240\u8054\u8bbe\u5907\u7684MAC\u53ef\u4ee5\u7528display mac-address\u6765\u67e5\u770b\u7aef\u53e3\u4e0b\u7684MAC\uff0c\u7136\u540e\u5728\u4e09\u5c42\u4e0a\u7528display arp \u627eIP\u5bf9\u5e94\u7684MAC\uff0c\u901a\u8fc7IP\u540e\u9762\u7684\u7aef\u53e3\u53f7\u5c31\u53ef\u4ee5\u77e5\u9053\u4e8c\u5c42\u67d0\u4e2a\u7aef\u53e3\u4e0b\u6240\u8fde\u63a5\u7684\u8bbe\u5907\u4fe1\u606f\u3002\u5177\u4f53\u65b9\u6cd5\u6b65\u9aa4\u5982\u4e0b\uff1a
1\u3001\u9996\u5148\u8fde\u63a5\u4ea4\u6362\u673a\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8fdc\u7a0b\u64cd\u63a7\u767b\u5f55\u5230\u4ea4\u6362\u673a\u3002
2\u3001\u627e\u5230\u672c\u673a\u7684MAC\u5730\u5740\uff0c\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u201cipconfig/all\u201d\u6765\u8fdb\u884c\u67e5\u8be2\u3002\u627e\u5230\u5f53\u524d\u7f51\u5361\u5730\u5740\uff0c\u5373\u56fe\u4e2d\u6807\u8bb0\u5185\u5bb9\u3002
3\u3001\u7136\u540e\u5728\u4ea4\u6362\u673a\u4e2d\u8f93\u5165\u547d\u4ee4\u201cdis mac-address 448A-5BE2-5800\u201d\uff0c\u5c31\u53ef\u4ee5\u67e5\u5230\u8fd9\u4e2amac\u5730\u5740\u6240\u5bf9\u5e94\u7684\u7aef\u53e3\u3002
4\u3001\u53ef\u4ee5\u770b\u5230\u7ed3\u679c\u662f\u8be5\u7535\u8111\u6240\u5bf9\u5e94\u7684\u662f\u4ea4\u6362\u673a\u7684\u7b2c\u516b\u4e2a\u53e3\u3002
5\u3001\u5982\u679c\u4f60\u60f3\u8981\u627e\u5230\u63a5\u53e3\u5bf9\u5e94\u7684\u662f\u90a3\u53f0\u7535\u8111\uff0c\u6216\u8005\u662f\u90a3\u4e2aIP\u5730\u5740\u3002\u7528\u201cdis mac-address gig0/0/8\u201d\u6216\u8005\u201cdis ip interface gig 0/0/8\u201d\u547d\u4ee4\u3002
6\u3001\u8fd9\u6837\u5c31\u80fd\u5bb9\u6613\u7684\u627e\u5230\uff0c\u7aef\u53e3\u548c\u7535\u8111\u7684\u5bf9\u5e94\u60c5\u51b5\u3002
\u6269\u5c55\u8d44\u6599\uff1a
\u534e\u4e3a\u4ea4\u6362\u673a\u548c\u8def\u7531\u5668\u7684\u533a\u522b
\u534e\u4e3a\u4ea4\u6362\u673a\u4ece\u7f51\u6865\u53d1\u5c55\u800c\u6765\uff0c\u5c5e\u4e8eOSI\u7b2c\u4e8c\u5c42\u5373\u6570\u636e\u94fe\u8def\u5c42\u8bbe\u5907\u3002\u5b83\u6839\u636eMAC\u5730\u5740\u5bfb\u5740\uff0c\u901a\u8fc7\u7ad9\u8868\u9009\u62e9\u8def\u7531\uff0c\u7ad9\u8868\u7684\u5efa\u7acb\u548c\u7ef4\u62a4\u7531 CISCO\u601d\u79d1\u4ea4\u6362\u673a\u81ea\u52a8\u8fdb\u884c\u3002
\u8def\u7531\u5668\u5c5e\u4e8eOSI\u7b2c\u4e09\u5c42\u5373\u7f51\u7edc\u5c42\u8bbe\u5907\uff0c\u5b83\u6839\u636eIP\u5730\u5740\u8fdb\u884c\u5bfb\u5740\uff0c\u901a\u8fc7\u8def\u7531\u8868\u8def\u7531\u534f\u8bae\u4ea7\u751f\u3002 \u4e09\u5c42\u4e07\u5146\u4ea4\u6362\u673a\u6700\u5927\u7684\u597d\u5904\u662f\u5feb\u901f\uff0c\u7531\u4e8e\u4ea4\u6362\u673a\u53ea\u987b\u8bc6\u522b\u5e27\u4e2dMAC\u5730\u5740\uff0c\u76f4\u63a5\u6839\u636eMAC\u5730\u5740\u4ea7\u751f\u9009\u62e9\u8f6c\u53d1\u7aef\u53e3\u7b97\u6cd5\u7b80\u5355\uff0c\u4fbf\u4e8eASIC\u5b9e\u73b0\uff0c\u56e0\u6b64\u8f6c\u53d1\u901f\u5ea6\u6781\u9ad8\u3002
\u53ef\u4ee5\u6839\u636e\u67e5\u770barp\u4fe1\u606f\u6765\u67e5\u770b\uff0c\u4f46\u662f\u6240\u663e\u793a\u7684arp\u4fe1\u606f\uff0c\u5bf9\u5e94\u7684\u8981\u5728\u672c\u53f0\u4ea4\u6362\u673a\u4e0a\u6709\u76f8\u540c\u6bb5\u7684\u5730\u5740\u3002\u6bd4\u5982\u67e5\u770b192.168.1.0\u7f51\u6bb5\u7684arp\u4fe1\u606f\uff0c\u90a3\u4e48\u5728\u8fd9\u53f0\u4ea4\u6362\u673a\u4e0a\u5fc5\u987b\u8981\u6709192.168.1.0\u7f51\u6bb5\u7684\u5730\u5740\u3002
1\u3001\u5982\u679c\u4e00\u53f0\u4ea4\u6362\u673a\u4e0a\u6709\u591a\u4e2a\u7f51\u6bb5\uff0c\u53ef\u4ee5\u4f7f\u7528 display arp \u67e5\u770b\u6240\u6709\u7f51\u6bb5\u7684arp\u4fe1\u606f\u3002
2\u3001\u5982\u679c\u53ea\u60f3\u67e5\u770b\u5176\u4e2d\u67d0\u4e00\u4e2a\u7f51\u6bb5\uff08\u6bd4\u5982\u67e5\u770b192.168.1.0\uff09\u7684arp\uff0c\u90a3\u4e48\u53ef\u4ee5\u7528 display arp | include 192.168.1. \u6765\u67e5\u770b\uff0c\u8fd9\u6837\u5c31\u53ea\u662f\u663e\u793a192.168.1.0\u7f51\u6bb5\u7684arp\u4fe1\u606f\u3002
3\u3001\u53ef\u4ee5\u8fdb\u5165\u63a5\u53e3\u67e5\u770b\u63a5\u53e3\u914d\u7f6e\uff0c\u5982\uff1a
interface g0/0/1
dis this
4\u3001\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u547d\u4ee4\u67e5\u770b\u6240\u6709\u914d\u7f6e\u7684ip\u5730\u5740\uff1adisplay ip interface brief
Cisco\u7684vlan\u8bbe\u7f6e\u5982\u4e0b\uff1a
switch>enable(\u8fdb\u5165\u7279\u6743\u6a21\u5f0f)
switch#config terminal(\u8fdb\u5165\u5168\u5c40\u914d\u7f6e\u6a21\u5f0f)
switch(config)#vlan 2 (\u5efavlan2)
switch(config-vlan)#name taihaole(\u7ed9vlan\u8d77\u540d)
\u8fd8\u6709\u4e00\u79cd\u521b\u5efavlan\u7684\u65b9\u6cd5\u662f\u76f4\u63a5\u5728\u7279\u6743\u6a21\u5f0f\u4e0b\u521b\u5efa\u3002
switch>enable
switch#vlan database
switch(vlan)#vlan 2 name taihaole(\u5efavlan2\u5e76\u8d77\u540d\u5b57)
命令全局模式下:display ip interface bri
可以查看所有端口下的ip地址及物理状态
可以进入接口查看接口配置
如:
interface g0/0/1
dis this
也可以直接使用命令查看所有配置的ip地址
display ip interface brief
display mac-address | include 0/0/1
display arp | include XXXX-XXXX-XXXX
XXXX-XXXX-XXXX为第一条命令查出来的mac地址
1、进入端口下面 int g 0/0/1
2、dis th
绛旓細瑕佹煡鐪嬪崕涓轰氦鎹㈡満VLAN绔彛涓嬪搴旂殑IP鍦板潃锛鍙互浣跨敤鍛戒护鈥渄isplay ip interface brief鈥濇垨鑰呪渄isplay vlan [vlan-id]鈥銆1. 浣跨敤鈥渄isplay ip interface brief鈥濆懡浠 杩欎釜鍛戒护鍙互鏄剧ず浜ゆ崲鏈轰笂鎵鏈夋帴鍙g殑IP鍦板潃淇℃伅锛屽寘鎷琕LAN鎺ュ彛銆傛墽琛屾鍛戒护鍚庯紝鍙互鏌ョ湅VLAN鎺ュ彛鐨処P鍦板潃锛屼互鍙婅鎺ュ彛鐨勭姸鎬佷俊鎭備緥濡傦紝濡...
绛旓細鍗庝负浜ゆ崲鏈烘煡鐪嬫瘡涓帴鍙d笅鐨凪AC鍦板潃鍜孖P鍦板潃鐨勬柟娉曟槸锛浣跨敤display鍛戒护銆傚叿浣撴潵璇达紝鍙互浣跨敤"display mac-address"鏌ョ湅MAC鍦板潃锛屼娇鐢"display ip interface brief"鏌ョ湅IP鍦板潃銆傞鍏堬紝鍗庝负浜ゆ崲鏈烘彁渚涗簡涓绉嶅懡浠よ鐣岄潰锛岀敤鎴峰彲浠ラ氳繃涓绯诲垪鍛戒护鏉ユ煡鐪嬪拰绠$悊浜ゆ崲鏈虹殑鐘舵併備负浜嗘煡鐪嬫瘡涓帴鍙d笅鐨凪AC鍦板潃锛屽彲浠ヤ娇鐢ㄥ懡...
绛旓細鍦ㄥ懡浠よ妯″紡涓嬶紝鏈夊嚑绉嶆柟娉曞彲浠ユ煡鐪媀LAN绔彛涓嬪搴旂殑IP鍦板潃銆涓绉嶅父鐢ㄧ殑鏂规硶鏄娇鐢ㄢ渄isplay ip interface brief鈥濆懡浠銆傝繖涓懡浠や細鍒楀嚭浜ゆ崲鏈轰笂鎵鏈夋帴鍙g殑鐘舵併両P鍦板潃銆佸瓙缃戞帺鐮佺瓑淇℃伅锛屽寘鎷琕LAN鎺ュ彛銆傞氳繃鏌ョ湅杈撳嚭缁撴灉锛屽彲浠ョ瓫閫夊嚭VLAN鎺ュ彛锛屽苟鎵惧埌瀵瑰簲鐨処P鍦板潃銆傚彟澶栵紝濡傛灉闇瑕佹煡鐪嬬壒瀹歏LAN鐨勮缁嗕俊鎭紝鍖...
绛旓細1. **鐧诲綍浜ゆ崲鏈**锛氶鍏堬紝闇瑕侀氳繃SSH銆乀elnet鎴栨帶鍒跺彴绔彛绛夋柟寮忕櫥褰曞埌鍗庝负浜ゆ崲鏈虹殑绠$悊鐣岄潰銆2. **杩涘叆鍛戒护琛屾ā寮**锛氬湪鐧诲綍鎴愬姛鍚庯紝杩涘叆浜ゆ崲鏈虹殑鍛戒护琛屾ā寮忥紙CLI锛夛紝杩欐槸鎵ц鍚勭閰嶇疆鍜鏌ョ湅鍛戒护鐨勭幆澧冦3. **鏌ョ湅ARP琛**锛氬湪鍛戒护琛屾ā寮忎笅锛屽彲浠ヤ娇鐢╜display arp`鍛戒护鏉ユ煡鐪嬩氦鎹㈡満鐨凙RP琛ㄣ侫RP...
绛旓細鍙互鐢╠isplay mac-address鏉ユ煡鐪嬬鍙d笅鐨凪AC锛岀劧鍚庡湪涓夊眰涓婄敤display arp 鎵綢P瀵瑰簲鐨凪AC锛岄氳繃IP鍚庨潰鐨勭鍙e彿灏卞彲浠ョ煡閬撲簩灞傛煇涓鍙d笅鎵杩炴帴鐨勮澶囦俊鎭傚叿浣撴柟娉曟楠ゅ涓嬶細1銆侀鍏堣繛鎺ヤ氦鎹㈡満锛屾垜浠彲浠ラ氳繃杩滅▼鎿嶆帶鐧诲綍鍒颁氦鎹㈡満銆2銆佹壘鍒版湰鏈虹殑MAC鍦板潃锛鍦ㄥ懡浠よ涓緭鍏モ渋pconfig/all鈥濇潵杩涜鏌ヨ銆
绛旓細1銆佸鏋滀竴鍙浜ゆ崲鏈涓婃湁澶氫釜缃戞锛屽彲浠ヤ娇鐢 display arp 鏌ョ湅鎵鏈夌綉娈电殑arp淇℃伅銆2銆佸鏋滃彧鎯虫煡鐪嬪叾涓煇涓涓綉娈碉紙姣斿鏌ョ湅192.168.1.0锛夌殑arp锛岄偅涔堝彲浠ョ敤 display arp | include 192.168.1. 鏉ユ煡鐪嬶紝杩欐牱灏卞彧鏄樉绀192.168.1.0缃戞鐨刟rp淇℃伅銆3銆佸彲浠ヨ繘鍏ユ帴鍙f煡鐪嬫帴鍙i厤缃紝濡傦細interface g0/0/...
绛旓細鍗庝负浜ゆ崲鏈绔彛涓嬫墍杩炶澶囩殑ip鍙互鏌ョ湅鍚楋紵鍙互鏌ョ湅銆傚叿浣撴楠ゅ涓嬶細鐐瑰嚮display arp 鍗冲彲锛屽脊鍑虹殑璇︾粏淇℃伅閲岋紝IP鍦板潃鍚庨潰鏈夋墍鍦ㄧ鍙e鏋滄槸浜屽眰鐨勮瘽锛屽彧鑳界敤display mac-address鏉鏌ョ湅绔彛涓嬬殑MAC 鐒跺悗鍦ㄤ笁灞備笂鐢╠isplay arp 鎵綢P瀵瑰簲鐨凪AC锛屽氨鍙互鐭ラ亾浜屽眰鏌愪釜绔彛涓鎵杩炴帴鐨勮澶囦俊鎭 ...
绛旓細鍗庝负浜ゆ崲鏈烘煡鐪嬬鍙鐘舵佸懡浠ゅ強璇存槑锛1銆乧urrent state 绔彛褰撳墠鐘舵侊細鍚戜笅琛ㄧず绔彛鍏抽棴锛屽悜涓婅〃绀虹鍙f墦寮锛2銆丩ast 300 seconds input rate锛氬墠5鍒嗛挓绔彛鎺ユ敹鍒扮殑瀛楄妭鐜囧拰娑堟伅鐜囷紱3銆丳ort Mode绔彛鐨宸ヤ綔妯″紡锛氬叕鍏遍摐绾夸负鐢电鍙fā寮忥紝鍏叡鍏夌氦涓哄厜绔彛妯″紡锛4銆丩ast 300 seconds output rate锛氬墠5鍒嗛挓绔彛...
绛旓細瑕鏌ョ湅鍗庝负浜ゆ崲鏈姣忎釜鎺ュ彛鐨処P鍦板潃锛屽彲浠ヤ娇鐢ㄥ懡浠よ鐣岄潰锛圕LI锛夋墽琛屸渄isplayipinterfacebrief鈥濆懡浠ゃ傚崕涓轰氦鎹㈡満鏄竴绉嶇綉缁滆澶囷紝鐢ㄤ簬鍦ㄥ眬鍩熺綉鍐呬紶杈撴暟鎹傛瘡涓帴鍙i兘鍙互閰嶇疆涓涓狪P鍦板潃锛屼互渚夸笌鍏朵粬璁惧杩涜閫氫俊銆傝鏌ョ湅姣忎釜鎺ュ彛鐨処P鍦板潃锛屽彲浠ヤ娇鐢鍗庝负浜ゆ崲鏈虹殑鍛戒护琛岀晫闈傗渄isplayipinterfacebrief鈥濆懡浠ゅ彲浠...
绛旓細1. 浣跨敤鍛戒护鈥渄isplay interface brief鈥濇煡鐪浜ゆ崲鏈绔彛绠瑕佺姸鎬佷俊鎭2. 纭鐢佃剳涓庝氦鎹㈡満缃戠粶杩炴帴閫氱晠鍚庯紝浣跨敤浠跨湡绋嬪簭锛堝SecureCRT锛夐氳繃TELNET鏂瑰紡杩炴帴浜ゆ崲鏈恒3. 閫氳繃鍛戒护鈥渄isplay interface interface-number鈥鏌ョ湅鎸囧畾绔彛鐨璇︾粏鐘舵佷俊鎭4. 鑻ヨ鍏抽棴鎸囧畾绔彛锛岄鍏堣繘鍏ョ郴缁熻鍥撅紝鐒跺悗杈撳叆鍛戒护鈥...