华为路由器NAT配置,地址冲突问题? 华为路由器NAT地址池与WAN口地址相同的问题
\u534e\u4e3a\u8def\u7531\u5668nat\u914d\u7f6ePC\u548cserver\u5206\u522b\u914d\u597d\u7f51\u5173
\u914d\u7f6e\u597dip\u5730\u5740
\u51fa\u53e3\u7f3a\u7701\u8def\u7531
SW1 \u65e0\u914d\u7f6e##\u51fa\u53e3\u8def\u7531\u5668R1\uff1a
#
acl number 2000
rule 5 permit source 192.168.1.0 0.0.0.255
interface Ethernet0/0/0
ip address 192.168.1.1 255.255.255.0
#
interface Ethernet0/0/1
ip address 10.10.1.1 255.255.255.252
nat outbound 2000
#
ip route-static 10.10.10.0 255.255.255.0 10.10.1.2
#
R2\uff1a
interface Ethernet0/0/0
ip address 10.10.1.2 255.255.255.252
#
interface Ethernet0/0/1
ip address 10.10.10.1 255.255.255.0
#
ip route-static 192.168.1.0 255.255.255.0 10.10.1.1
#\u6a21\u62df\u5668\u6211\u7528\u7684\u8def\u7531\u5668\u662fRouter\uff0c\u63a5\u53e3\u4e0d\u540c\uff0c\u63a5\u53e3\u914d\u7f6e\u4e00\u6837\uff01
\u5730\u5740\u6c60\u7ec4\u53f7\u4e0d\u80fd\u76f8\u540c\u54e6\uff01 \u8fd8\u6709 \u5730\u5740\u6c60\u662f\u4e00\u4e2a\u6bb5\u54e6\uff01 NAT address-group 2 172.16.174.30 192.16.174.30 \u8fd9\u6837\u4e5f\u4e0d\u884c\u5417\uff1f
\u5176\u5b9e\u4f60\u6ca1\u8981\u7279\u6b8a\u7684nat\u7b56\u7565\u7684\u8bdd\uff01\uff01 \u4e00\u4e2a\u5730\u5740\u5c31\u4e0d\u8981\u7528\u5730\u5740\u6c60\u4e86 \u76f4\u63a5\u7528\u63a5\u53e3\u5427\uff01
建议你看下这个。。。。。。。
绛旓細鍏閰嶇疆濂芥簮鍦板潃acl绛栫暐锛屼緥濡俛cl 2000 锛宺ule permit souce192.168.1.0 0.0.0.255#鐒跺悗鍦ㄦ帴鍙d笂鍚敤nat outbound 2000
绛旓細棣栨閰嶇疆鏃讹紝鍗庝负WS832璺敱鍣涓婄綉璁剧疆瀹屾垚 浜屻侀噸鏂拌缃甒S832璺敱鍣ㄤ笂缃 濡傛灉浣犵殑WS832璺敱鍣ㄤ箣鍓嶅凡缁忎娇鐢ㄨ繃锛岀幇鍦ㄦ兂瑕侀噸鏂璁剧疆锛閭d箞璇峰弬鑰冧笅闈㈢殑鍐呭锛1銆佹墦寮鐢佃剳涓殑娴忚鍣紝鍦鍦板潃鏍忎腑杈撳叆锛192.168.3.1 骞舵寜涓嬮敭鐩樹腑鐨勫洖杞 鍦ㄦ祻瑙堝櫒涓緭鍏192.168.3.1 2銆佸湪寮瑰嚭鐨勭櫥褰曠獥鍙d腑杈撳叆 鐧诲綍瀵嗙爜鈥...
绛旓細宸ュ叿锛忓師鏂欙細鍗庣澶╅2銆乄INDOWS10銆佺櫨搴︽祻瑙堝櫒8.7.5銆1銆佽繘鍏ヨ矾鐢卞櫒銆傛墦寮娴忚鍣ㄥ悗鍦鍦板潃鏍忚緭鍏192.168.1.1锛屽洖杞﹀悗杞埌鍗庝负璺敱鍣鐣岄潰銆2銆佷慨鏀瑰瘑鐮併傝緭鍏ラ粯璁ょ敤鎴峰悕鍜屽瘑鐮佸悗淇敼瀵嗙爜锛岀櫥褰曡矾鐢卞櫒鍚庨夋嫨鑷姩鑾峰彇鍦板潃銆3銆佽繘琛屽箍鍩熺綉閰嶇疆銆傝繘鍏ラ厤缃悗閫夋嫨骞垮煙鐐兼矁寰缃閰嶇疆锛閫夋嫨寮鍚NAT鍔熻兘銆
绛旓細PC鍜宻erver鍒嗗埆閰嶅ソ缃戝叧 閰嶇疆濂絠p鍦板潃 鍑哄彛缂虹渷璺敱 SW1 鏃犻厤缃##鍑哄彛璺敱鍣R1锛歛cl number 2000 rule 5 permit source 192.168.1.0 0.0.0.255 interface Ethernet0/0/0 ip address 192.168.1.1 255.255.255.0 interface Ethernet0/0/1 ip address 10.10.1.1 255.255.255.252 nat ...
绛旓細鍗庝负璺敱鍣 NAT鍙奃HCP閰嶇疆瀹炰緥 sysname HUAWEI-AR28-11 nat address-group 1 125.95.190.3 125.95.190.3 nat static 192.168.100.254 125.95.190.6 nat static 192.168.100.252 125.95.190.5 nat aging-time tcp 360 radius scheme system domain system local-user admin password cipher...
绛旓細password simple xxxxxx 杩欓噷搴旇鏄痯pp chap user huawei3com ppp chap password simple huawei3com NAT鐨杞崲搴旇鏄仛涓涓狝CL 渚嬪锛歛cl number 2001 rule 0 permit source 192.168.0.0 0.0.0.255 rule 1 deny 鐒跺悗鍐嶅湪鐩稿簲鐨勬帴鍙d笂鐢細nat outbound 2001 杩欐牱瀛愬氨鍙互浜嗭紒鏈鍚璺敱鍒繕浜嗗仛锛
绛旓細2銆//閰嶇疆NAT//澶栭儴鍦板潃int fa0/0ip add 1.1.1.2 255.255.255.248 //鍐呴儴鍚堟硶鍦板潃銆(IPS缁欑殑IP)ip nat outside //鍐呴儴鍦板潃int fa0/1ip add 192.168.1.1 255.255.255.0 //鍐呴儴鍦板潃ip nat inside //璺敱ip route 0.0.0.0 0.0.0.0 1.1.1.1 //IPS缁欑殑缃戝叧鍦板潃 //NAT杞崲ip nat pool OSINet 1.1.1.2...
绛旓細192.168.2NAT鐨勮缃鍜屽崟鍑哄彛鐨勯厤缃竴鏍,瑕佸鐢典俊绾胯矾鍜岀綉閫氱嚎璺垎鍒厤缃備富鏈篒P鍦板潃鍙栧悓缃戞涓櫎涓や釜缃戝叧澶栫殑鍏朵粬涓绘満鍦板潃銆傚綋涓绘満闇瑕佷娇鐢ㄧ數淇$嚎璺椂,灏嗙綉鍏抽厤缃垚192.168.1,DNS閰嶇疆鎴愮數淇$殑DNS銆傚悓鐞,褰撻渶瑕佷娇鐢ㄧ綉閫氱嚎璺椂,缃戝叧銆丏NS浣滅浉搴旈厤缃傞夯鐑﹂噰绾筹紝璋㈣阿!
绛旓細VirtualBox涓篃鍙互閰嶇疆NAT缃戠粶鍦板潃杞崲銆備絾鏄渶杩戞帴瑙﹀埌鐨勪簯鏈嶅姟鍣紝鏈夌缃慖P鍦板潃鍜屽叕缃慖P鍦板潃锛屽叕缃慖P鎻愪緵澶栭儴閫氫俊锛岀缃慖P鍙互浣跨敤浜戜笂鐨勫悇绉嶆湇鍔°傚浜庡ぇ鍨嬬殑缃戠粶鏉ヨ锛岄氳繃璺敱鍣鏉ヨ繘琛屽湴鍧杞崲鍙兘鏇村姞楂樻晥銆備簬鏄瑪鑰呭湪鍗庝负鐨勪功绫嶄笂鎵句簡渚嬪瓙鏉ヨ繘琛岄厤缃疄璺点 IPV6...
绛旓細ip route-static 0.0.0.0 0.0.0.0 202.1.1.1 preference 60 /閰嶇疆榛樿璺敱/ user-interface con 0 user-interface vty 0 4 return 閰嶇疆鑴氭湰 sysname RouterA nat address-group 0 202.1.1.3 202.1.1.6 /鐢ㄦ埛NAT鐨勫湴鍧姹/ radius scheme system domain system acl number 2000 ...