h3c交换机怎么根据IP找到端口 如何查看h3c交换机端口对应的ip
h3c\u4ea4\u6362\u673a\u6839\u636eip\u67e5\u7aef\u53e3dis mac-add | i +mac\u5730\u5740\uff0c\u8fd9\u91cc\u4f1a\u663e\u793a\u4ed6\u662f\u4ece\u54ea\u4e2a\u7aef\u53e3\u51fa\u6765\u7684\u3002\u5982\u679c\u4f60\u90fd\u5f00\u542f\u4e86lldp \u4e14\u4e0d\u662f\u4ece\u8fd9\u4e2a\u4ea4\u6362\u673a\u51fa\u6765\u7684\u8bdd\uff0c\u53ef\u4f7f\u7528
dis lldp nei int +\u7aef\u53e3\u53f7
\u5982\u4f55\u67e5\u770bh3c\u4ea4\u6362\u673a\u7aef\u53e3\u5bf9\u5e94\u7684ip\u53ef\u4ee5\u8fd9\u6837\u89e3\u51b3\uff1a
1\u3001\u9996\u5148, \u51c6\u5907\u4e00\u53f0\u5e26\u6709\u4e32\u53e3\u7684\u8ba1\u7b97\u673a, \u6700\u597d\u662f\u7b14\u8bb0\u672c, \u4ee5\u4fbf\u4fbf\u4e8e\u64cd\u4f5c,\uff0c\u7136\u540e\u51c6\u5907\u4e00\u6839\u4e00\u7aef\u4e3a\u7f51\u53e3\u4e00\u7aef\u4e3a\u4e32\u53e3\u7684\u914d\u7f6e\u7ebf\uff0c\u7136\u540e\u5c06\u7535\u8111\u548c\u4ea4\u6362\u673a\u7528\u4e32\u53e3\u914d\u7f6e\u7ebf\u8fde\u63a5\u597d\u3002
2\u3001\u6253\u5f00\u8ba1\u7b97\u673a\u4e0a\u7684 "\u8bbe\u5907\u7ba1\u7406\u5668", \u67e5\u770b\u8ba1\u7b97\u673a\u7528\u4e8e\u8fde\u63a5\u4ea4\u6362\u673a\u7684\u7aef\u53e3\u3002
3\u3001\u8bbe\u5907\u7ba1\u7406\u5668\u6253\u5f00\u65b9\u6cd5\uff1a\u5728\u684c\u9762\u4e0a\uff0c\u9f20\u6807\u53f3\u51fb\u201c\u6211\u7684\u7535\u8111\u201d\u56fe\u6807\uff0c\u5728\u5f39\u51fa\u7684\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c\u8bbe\u5907\u7ba1\u7406\u5668\u201d\u3002
4\u3001\u4f9d\u6b21\u9009\u62e9\u83dc\u5355\u7684\u201c\u5f00\u59cb\u201d\u2014\u2014\u201c\u6240\u6709\u7a0b\u5e8f\u201d\u2014\u2014\u201c\u9644\u4ef6\u201d\u2014\u2014\u201c\u901a\u8baf\u201d\u2014\u2014\u201c\u8d85\u7ea7\u7ec8\u7aef\u201d\uff0c\u6253\u5f00\u8d85\u7ea7\u7ec8\u7aef\u3002
5\u3001\u5728\u8d85\u7ea7\u7ec8\u7aef\u4e2d\u9009\u62e9\u8fde\u63a5\u65f6\u4f7f\u7528com\u53e3\uff0c\u7136\u540e\u9009\u62e9\u4e0e\u524d\u9762\u8bbe\u5907\u7ba1\u7406\u5668\u4e2d\u4e00\u6837\u7684\u4e32\u53e3\u3002\u5728\u7aef\u53e3\u8bbe\u7f6e\u4e2d\uff0c\u9009\u62e9\u201c\u8fd8\u539f\u4e3a\u9ed8\u8ba4\u503c\u201d\u5c31\u53ef\u4ee5\u4e86\uff0c\u7136\u540e\u70b9\u51fb\u786e\u5b9a\uff0c\u5f00\u59cb\u8fde\u63a5\u3002
6\u3001\u8fde\u63a5\u6210\u529f\u540e, \u5b83\u5c06\u8fdb\u5165\u4ea4\u6362\u673a\u7684\u547d\u4ee4\u884c\u7ba1\u7406\u754c\u9762\uff0c\u5982\u679c\u4ea4\u63a7\u673a\u8bbe\u6709\u7ba1\u7406\u5bc6\u7801\u7684\uff0c\u9996\u5148\u8f93\u5165\u7ba1\u7406\u5bc6\u7801\uff0c\u6ca1\u6709\u7684\u8bdd\u5c31\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u547d\u4ee4\u67e5\u770b\u4ea4\u6362\u673a\u7684IP\u4e86\u3002
\u8fd9\u5c31\u662f\u5982\u4f55\u67e5\u770bh3c\u4ea4\u6362\u673a\u7aef\u53e3\u5bf9\u5e94\u7684ip\u7684\u89e3\u51b3\u6b65\u9aa4\u3002
dis arp 可以得到mac地址和端口号,但前提是交换机上有相应vlan的接口地址,如交换机本身无相应vlan地址,需要从相连的具有接口地址的交换机上用此命令获取mac地址,再在本机用dis mac-address命令获取端口
使用dis arp 命令
绛旓細棣栧厛锛屾垜浠渶瑕佷氦鎹㈡満寮鍚疶elnet杩滅▼鐧诲綍妯″紡銆鍦ㄧ郴缁熻缃晫闈㈣缃厑璁窽elnet杩滅▼鐧诲綍锛岄厤缃ソ杩滅▼鐧诲綍甯愬彿瀵嗙爜 锛岀劧鍚庡湪cmd妯″紡涓婽elnet鐧诲綍浜ゆ崲鏈虹殑杩滅▼ip 鎴戜滑浣跨敤su鍛戒护鍒囨崲鐧婚檰鏉冮檺锛屾垜浠渶瑕佸垏鎹㈠埌绠$悊妯″紡锛岃緭鍏ョ鐞嗗憳鐨勫笎鍙峰拰瀵嗙爜 杩涘叆绯荤粺妯″紡涓嬶紝鎴戜滑杈撳叆涓嬪浘鐨勫懡浠ょ洿鎺ユ暡鍥炶溅 鍚庨潰鏄垜浠渶瑕佹壘鐨刬p鍦板潃...
绛旓細鍦ㄤ綔涓虹綉鍏崇殑涓夊眰浜ゆ崲鏈轰笂鐢╠isplay arp鏌P鍜孧AC鍜岀鍙g殑瀵瑰簲鍏崇郴锛屽鏋滀笉鏄洿鎺ユ帴鍦ㄨ繖鍙颁笂鐨勶紝鍒颁笅灞備氦鎹㈡満涓婄敤display mac-address鍛戒护鏌ョ湅MAC琛ㄦ壘鍒扮鍙
绛旓細1. 鎵惧嚭璇P鎵瀵瑰簲鐨凪AC鍦板潃:閫氳繃鏌ョ湅绯荤粺鐨凙RP缂撳瓨琛ㄥ彲浠ユ壘鍑烘煇IP鎵瀵瑰簲鐨凪AC鍦板潃銆傜敱浜嶢RP涓嶈兘璺╒LAN杩涜锛屾墍浠ヨ繛鎺ュ悇涓猇LAN鐨勮矾鐢辨ā鍧桵SFC灏辨槸鏈浣崇殑閫夋嫨锛嶏紞涓鑸畠鍦ㄦ瘡涓涓猇LAN閮芥湁涓涓鍙(interface vlan n)锛岃兘姝g‘鍦拌繘琛孉RP瑙i噴銆509MSFC#ping 10.10.1.65 Type escape sequence to abort.Sen...
绛旓細1銆佸皢浜ゆ崲鏈烘帴涓婄數婧愶紝骞跺皢缃戠嚎鐨勪竴绔帴涓婄數鑴戯紝鍙︿竴绔帴涓婁氦鎹㈡満鐨勬櫘閫氱鍙d笂锛鍙抽敭鐐瑰嚮鍙充笅瑙掔殑缃戠粶鍥炬爣銆愭墦寮缃戠粶鍜屽叡浜腑蹇冦銆2銆佹墦寮缃戠粶杩炴帴锛屼竴瀹氳鏄帴缃戠嚎鐨勯偅涓綉缁滅鍙g殑杩炴帴灞炴с3銆佺収濡備笅鍥句緷娆$偣鍑汇愬睘鎬с-銆怚nternet鍗忚鐗堟湰4銆-銆愪娇鐢ㄤ笅闈㈢殑IP鍦板潃銆戯紝H3C S2600绯诲垪浜ゆ崲鏈哄唴閮ㄧ殑...
绛旓細1銆侀鍏, 鍑嗗涓鍙板甫鏈変覆鍙g殑璁$畻鏈, 鏈濂芥槸绗旇鏈, 浠ヤ究渚夸簬鎿嶄綔,锛岀劧鍚庡噯澶囦竴鏍逛竴绔负缃戝彛涓绔负涓插彛鐨勯厤缃嚎锛岀劧鍚庡皢鐢佃剳鍜浜ゆ崲鏈虹敤涓插彛閰嶇疆绾胯繛鎺ュソ銆2銆佹墦寮璁$畻鏈轰笂鐨 "璁惧绠$悊鍣", 鏌ョ湅璁$畻鏈虹敤浜庤繛鎺ヤ氦鎹㈡満鐨勭鍙c3銆佽澶囩鐞嗗櫒鎵撳紑鏂规硶锛氬湪妗岄潰涓婏紝榧犳爣鍙冲嚮鈥滄垜鐨勭數鑴戔濆浘鏍囷紝鍦ㄥ脊鍑虹殑鑿滃崟...
绛旓細1銆侀鍏閫氳繃CONSOLE鍙f垨Telnet杩炴帴浜ゆ崲鏈锛岃繛鎺ユ垚鍔熷悗锛岃繘鍏ョ敤鎴疯鍥炬ā寮忊<H3C>",濡傚浘鎵绀恒2銆佸湪鐢ㄦ埛妯″紡涓嬭緭鍏モ漵ys鈥滐紝杩涘叆绯荤粺瑙嗗浘妯″紡鈥漑H3C]鈥滐紝濡傚浘鎵绀恒3銆佸湪绯荤粺瑙嗗浘妯″紡涓嬪垱寤轰袱涓猇LAN,涓涓猇LAN 20,涓涓猇LAN 30,濡傚浘鎵绀恒4銆佹帴涓嬫潵灏嗕氦鎹㈡満鐨勬帴鍙e姞鍏ュ埌鐩稿簲鐨刅LAN涓紝灏唃1/0/5鍔犲叆鍒...
绛旓細1銆侀鍏堬紝鎴戜滑闇瑕浜ゆ崲鏈寮鍚疶elnet杩滅▼鐧诲綍妯″紡銆傚湪绯荤粺璁剧疆鐣岄潰璁剧疆鍏佽Telnet杩滅▼鐧诲綍锛岄厤缃ソ杩滅▼鐧诲綍璐﹀彿瀵嗙爜 锛岀劧鍚庡湪cmd妯″紡涓婽elnet鐧诲綍浜ゆ崲鏈虹殑杩滅▼ip 2銆佹垜浠娇鐢╯u鍛戒护鍒囨崲鐧诲綍鏉冮檺锛屾垜浠渶瑕佸垏鎹㈠埌绠$悊妯″紡锛岃緭鍏ョ鐞嗗憳鐨勮处鍙峰拰瀵嗙爜銆3銆佽繘鍏ョ郴缁熸ā寮忎笅锛屾垜浠緭鍏ヤ笅鍥剧殑鍛戒护鐩存帴鏁插洖杞 鍚庨潰鏄垜浠渶瑕...
绛旓細杩欎釜濡傛灉鏄H3C鐨勫彲缃戠浜ゆ崲鏈 鍙互鐪嬪埌浜ゆ崲鏈虹殑mac鍦板潃 ip鍦板潃鐪嬩笉鍒 浣跨敤dis ndp
绛旓細姝ラ濡備笅锛氱櫥褰曞埌鎺у埗鍙帮紝濡傛灉浣犺鐪媀LAN鐨IP鍦板潃锛岃緭鍏 interface vlanif2 ip address 192.168.1.2 255.255.255.0 鐪嬪埌杩欏氨鏄氦鎹㈡満鐨処P銆(涓婂浘鏄竴涓灞備氦鎹㈡満锛屽垝鍒嗕簡澶氫釜VLAN锛夈H3C浜ゆ崲鏈榛樿璐﹀彿h3c锛屽瘑鐮乭3c銆 鎴栬呰处鍙穉dmin锛屽瘑鐮乤dmin銆傝緭鍏is cu 杩欐槸鏌ョ湅浜ゆ崲鏈烘墍鏈夐厤缃殑鍛戒护,浠ヤ笅鏄...
绛旓細浜ゆ崲鏈鍙互鎸夊涓嬮厤缃細int vlan1 ip add 192.168.1.200 255.255.255.0 quit local-u h3c pass sim 123abc ser telnet lev 3 quit user vty 0 4 auth s user pri lev 3 quit save 淇濆瓨閰嶇疆瀹屾垚鍗冲彲銆傦紙telnet鐨勫鎴锋満蹇呴』鍜寁lan1鍦ㄤ竴涓綉娈点傚鏋滀笉鍦ㄤ竴涓綉娈甸渶瑕佸仛vlan闂磋矾鐢便傦級...