华为怎么看交换机端口IP? 华为交换机怎么查每个接口下的MAC地址和IP地址
\u534e\u4e3a\u4ea4\u6362\u673a\u600e\u6837\u67e5\u770b\u67d0\u4e2a\u7aef\u53e3\u4e0b\u7684ip\u4f60\u53ef\u4ee5\u5728\u4ea4\u6362\u673a\u4e2d\u8f93\u5165dis arp\uff0c\u901a\u8fc7\u67e5\u770barp\u7f13\u5b58\u8868\u77e5\u9053IP-MAC\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u7136\u540e\u518d\u8f93\u5165dis mac-address\u67e5\u770bmac\u5730\u5740\u7aef\u53e3\u8f6c\u53d1\u8868\uff0c\u901a\u8fc7\u8fd9\u4e24\u4e0d\u4f60\u53ef\u4ee5\u83b7\u5f97\u67d0\u4e2a\u7aef\u53e3\u4e0b\u7684IP\u5730\u5740\u3002
ipconfig\u547d\u4ee4\u4e3b\u8981\u7528\u6765\u663e\u793a\u5f53\u524d\u7cfb\u7edf\u7684TCP/IP\u914d\u7f6e\u3002\u5f53IP\u5730\u5740\u53d8\u5316\u65f6MAC\u5730\u5740\u662f\u552f\u4e00\u7684\uff0c\u80fd\u591f\u6807\u8bc6\u8ba1\u7b97\u673a\u3002\u63a7\u5236\u547d\u4ee4\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u3002
==========
<s3600-28p-ei>dis arp
Type: S-Static D-Dynamic
IP Address MAC Address VLAN ID Port Name / AL ID Aging Type
192.168.10.10 000f-e23b-eb7d 100 Ethernet1/0/24 16 D
192.168.3.11 00a0-d189-5cc5 3 Ethernet1/0/22 2 D
192.168.3.16 0015-f2d2-019c 3 Ethernet1/0/22 12 D
192.168.3.23 001c-252a-1638 3 Ethernet1/0/23 19 D
192.168.3.63 0018-f326-f81a 3 Ethernet1/0/21 20 D
192.168.2.56 0001-4a9d-b456 2 Ethernet1/0/21 11 D
192.168.2.150 001c-2507-5dd3 2 Ethernet1/0/23 14 D
192.168.2.101 001c-250e-cf9b 2 Ethernet1/0/21 14 D
192.168.2.22 0018-f326-f7e8 2 Ethernet1/0/23 14 D
192.168.2.66 0013-a9a4-d6b4 2 Ethernet1/0/23 15 D
192.168.2.20 0015-f2d0-d9f1 2 Ethernet1/0/23 18 D
单位的局域网划分了VLAN,做了NAT,用华为3026交换机如何实现端口和IP地址的绑定,以实现各联网电脑不能私自更改私网IP地址,以免发生地址冲突。
#2
acl number 2010
rule 0 deny
rule 1 permit source 76.24.25.66 0
interface Ethernet1/0/15
stp disable
port access vlan 3
packet-filter inbound ip-group 2010 rule 0
packet-filter inbound ip-group 2010 rule 1
#3
acl number 2010
rule 0 deny
rule 1 permit source 76.24.25.66 0
interface Ethernet1/0/15
stp disable
packet-filter inbound ip-group 2010
绛旓細瑕佹煡鐪嬪崕涓轰氦鎹㈡満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鍦板潃锛屽彲浠ヤ娇鐢ㄥ懡...
绛旓細瑕佹煡鐪嬫瘡涓帴鍙g殑IP鍦板潃锛鍙互浣跨敤鍗庝负浜ゆ崲鏈虹殑鍛戒护琛岀晫闈傗渄isplayipinterfacebrief鈥濆懡浠ゅ彲浠ユ樉绀烘瘡涓帴鍙g殑IP鍦板潃浠ュ強鎺ュ彛鐨勭姸鎬佷俊鎭銆傛墽琛岃鍛戒护鍚庯紝灏嗘樉绀轰竴涓〃鏍硷紝鍏朵腑鍒楀嚭浜嗕氦鎹㈡満涓婃墍鏈夋帴鍙g殑IP鍦板潃鍜屽叾浠栫浉鍏充俊鎭傝鍛戒护鐨勮緭鍑洪潪甯哥洿瑙傦紝鍥犳寰堝鏄撶悊瑙c傞櫎浜嗕娇鐢ㄥ懡浠よ鐣岄潰涔嬪锛岃繕鍙互浣跨敤鍗庝负浜ゆ崲...
绛旓細棣栧厛锛鍙互鍒╃敤浜ゆ崲鏈虹殑ARP琛ㄦ潵鏌ユ壘銆傚綋璁惧鍦ㄥ悓涓灞鍩熺綉鍐呴氫俊鏃讹紝瀹冧滑浼氫娇鐢ˋRP鍗忚鏉ヨВ鏋怣AC鍦板潃鍜孖P鍦板潃鐨勫搴斿叧绯汇傞氳繃鏌ョ湅浜ゆ崲鏈虹殑ARP琛紝鍙互鎵惧埌鍝簺IP鍦板潃涓庡摢浜汳AC鍦板潃鐩稿叧鑱斻傝孧AC鍦板潃鍙堜笌浜ゆ崲鏈虹殑鐗瑰畾绔彛缁戝畾锛屽洜姝ゅ彲浠ラ棿鎺ユ帹鏂嚭绔彛鎵杩炶澶囩殑IP銆備妇涓緥瀛愶紝濡傛灉鎴戜滑鍦ㄥ崕涓轰氦鎹㈡満涓婃墽琛&ld...
绛旓細鍦ㄥ崕涓轰氦鎹㈡満涓婏紝鏌ョ湅绔彛涓嬫墍杩炶澶囩殑IP鍦板潃鏄彲琛岀殑锛浣嗗叿浣撴柟娉曚細鏍规嵁浜ゆ崲鏈虹殑鍨嬪彿銆侀厤缃互鍙婃墍杩愯鐨勬搷浣滅郴缁熺増鏈湁鎵宸紓銆備竴鑸潵璇达紝鍙互閫氳繃浠ヤ笅姝ラ杩涜锛1. **鐧诲綍浜ゆ崲鏈**锛氶鍏堬紝闇瑕侀氳繃SSH銆乀elnet鎴栨帶鍒跺彴绔彛绛夋柟寮忕櫥褰曞埌鍗庝负浜ゆ崲鏈虹殑绠$悊鐣岄潰銆2. **杩涘叆鍛戒护琛屾ā寮**锛氬湪鐧诲綍鎴愬姛鍚庯紝...
绛旓細鍗庝负浜ゆ崲鏈虹鍙涓嬫墍杩炶澶囩殑ip鍙互鏌ョ湅鍚楋紵鍙互鏌ョ湅銆傚叿浣撴楠ゅ涓嬶細鐐瑰嚮display arp 鍗冲彲锛屽脊鍑虹殑璇︾粏淇℃伅閲岋紝IP鍦板潃鍚庨潰鏈夋墍鍦ㄧ鍙e鏋滄槸浜屽眰鐨勮瘽锛屽彧鑳界敤display mac-address鏉鏌ョ湅绔彛涓嬬殑MAC 鐒跺悗鍦ㄤ笁灞備笂鐢╠isplay arp 鎵綢P瀵瑰簲鐨凪AC锛屽氨鍙互鐭ラ亾浜屽眰鏌愪釜绔彛涓嬫墍杩炴帴鐨勮澶囦俊鎭 ...
绛旓細1銆佸鏋滀竴鍙浜ゆ崲鏈涓婃湁澶氫釜缃戞锛屽彲浠ヤ娇鐢 display arp 鏌ョ湅鎵鏈夌綉娈电殑arp淇℃伅銆2銆佸鏋滃彧鎯虫煡鐪嬪叾涓煇涓涓綉娈碉紙姣斿鏌ョ湅192.168.1.0锛夌殑arp锛岄偅涔堝彲浠ョ敤 display arp | include 192.168.1. 鏉ユ煡鐪嬶紝杩欐牱灏卞彧鏄樉绀192.168.1.0缃戞鐨刟rp淇℃伅銆3銆佸彲浠ヨ繘鍏鎺ュ彛鏌ョ湅鎺ュ彛閰嶇疆锛屽锛歩nterface g0/0/...
绛旓細1銆佸噯澶囦竴鍙板甫涓插彛鐨勭數鑴戯紝鏈濂芥槸绗旇鏈紝鏂逛究鎿嶄綔锛岀劧鍚庡噯澶囦竴鏍逛竴绔负缃戝彛涓绔负涓插彛鐨勯厤缃嚎锛2銆佸皢鐢佃剳鍜浜ゆ崲鏈鐢ㄤ覆鍙i厤缃嚎杩炴帴濂姐3銆佸湪鐢佃剳涓婃墦寮璁惧绠$悊鍣紝鏌ョ湅鐢佃剳杩炴帴浜ゆ崲鏈烘墍鐢ㄧ殑绔彛鏄摢涓竴涓4銆佽澶囩鐞嗗櫒鎵撳紑鏂规硶锛氭闈笂锛屽彸鈥滄垜鐨勭數鑴戔濆浘鏍囷紝寮瑰嚭鑿滃崟涓紝閫夋嫨鈥滆澶囩鐞嗗櫒鈥濄5...
绛旓細濡傛灉鎮ㄥ湪浣跨敤璁$畻鏈虹殑杩囩▼涓紝闇瑕佹煡鐪嬭澶囩殑IP鍦板潃鍜孌NS鏈嶅姟鍣ㄥ湴鍧锛岃鎸変互涓嬫柟娉曡繘琛屾搷浣滐細1銆佺偣鍑昏绠楁満鍙充笅瑙掔殑缃戠粶鍥炬爣銆2銆佹墦寮缃戠粶鍜孖nternet璁剧疆>鏇存敼閫傞厤鍣ㄩ夐」銆3銆佸弻鍑诲凡杩炴帴鐨勭綉缁滐紙浠ュお缃戞垨鑰匴LAN锛夛紝鍦ㄦ柊寮瑰嚭绐楀彛閫夋嫨璇︾粏淇℃伅锛屽嵆鍙鏌ョ湅IP鍦板潃鍜孌NS鏈嶅姟鍣ㄥ湴鍧銆
绛旓細浠NSP妯℃嫙鍣ㄤ负渚嬶紝瑙佸涓嬫嫇鎵戝浘锛氶紶鏍囧乏閿弻鍑鍗庝负5700妯℃嫙鍣紝杩涘叆閰嶇疆鐣岄潰銆傚湪褰撳墠鐢ㄦ埛妯″紡涓嬶紝杈撳叆system-view杩涘叆閰嶇疆妯″紡銆傛墦寮鐢佃剳鍥剧墖锛屽鍥撅紝鏌ョ湅鐢佃剳鐨IP涓嶮AC鍦板潃銆傜櫥褰曞埌鎺у埗鍙帮紝濡傛灉浣犺鐪媀LAN鐨処P鍦板潃锛岃緭鍏nterfacevlanif2ipaddress191622525250鐪嬪埌杩欏氨鏄浜ゆ崲鏈鐨処P銆(涓婂浘鏄竴涓灞備氦鎹㈡満...