在eNSP模拟器中配置华为AR1220路由器NAT功能遇到的几点问题 在华为路由器AR1220上配置OSPF,启动OSPF协议时为...
\u534e\u4e3a\u8def\u7531\u5668ar1220-s 10.24.24.24 \u4e3a\u516c\u7f51IP\u5730\u5740\uff0c\u5982\u4f55\u914d\u7f6enat\u8f6c\u6362\u7ed9192.168.1.0\u7f51\u6bb5\u7684\u7528\u6237\u4f7f\u7528\uff1f\u914d\u7f6e\u6b65\u9aa4
# \u914d\u7f6e\u5730\u5740\u6c60\u548c\u5730\u5740\u5217\u8868
[Router] nat address-group 10.24.24.24 pool1
[Router] acl 1
[Router-acl-1]rule permit source 192.168.1.0 0.0.0.255
# \u5141\u8bb8192.168.1.0/24\u7684\u7f51\u6bb5\u8fdb\u884c\u5730\u5740\u8f6c\u6362
\u8fdb\u5165\u4f60\u914d\u7f6e\u516c\u7f51\u5730\u5740\u7684\u7aef\u53e3\uff0c\u4e0b\u9762\u4ee5Serial0\u53e3\u4e3a\u4f8b\uff1a
[Router-Serial0] nat outbound 1 address-group pool
\u641e\u5b9a\uff01\u5982\u679c\u63d0\u4f9b\u5bf9\u5916\u670d\u52a1\u522b\u5fd8\u4e86\u914d\u7f6e\u5185\u90e8\u670d\u52a1\u5668\uff0c\u5426\u5219\u5916\u754c\u65e0\u6cd5\u8bbf\u95ee\u5185\u7f51
# \u8bbe\u7f6e\u5185\u90e8FTP\u670d\u52a1\u5668
[Router-Serial0] nat server global 202.38.160.101 inside 192.168.1.1 ftp tcp
# \u8bbe\u7f6e\u5185\u90e8WWW\u670d\u52a1\u56681
[Router-Serial0] nat server global 202.38.160.102 inside 192.168.1.2 www tcp
# \u8bbe\u7f6e\u5185\u90e8WWW\u670d\u52a1\u56682
[Router-Serial0] nat server global 202.38.160.102 8080 inside 192.168.1.3 www tcp
# \u8bbe\u7f6e\u5185\u90e8SMTP\u670d\u52a1\u5668
[Router-Serial0] nat server global 202.38.160.103 inside 192.168.1.4 smtp udp
\u4e0d\u662f\u5b66\u534e\u4e3a\u7684\uff0c\u77e5\u9053\u601d\u79d1\u7684\uff0c\u4f46\u5e94\u8be5\u662f\u76f8\u901a\u7684\u3002\u770b\u4f60\u7684\u63d0\u793a\u662f\u60f3\u544a\u8bc9\u4f60\u4ece^\u5f00\u59cb\u547d\u4ee4\u4e0d\u5bf9\uff08\u6216\u8005\u8bf4\u6ca1\u6709\uff09\u3002\u5c31\u662f\u4f60\u542f\u52a8OSPF\u7684\u547d\u4ee4\u9519\u8bef\uff0c\u4f60\u5c1d\u8bd5ospf 90\u6216\u8005ospf \uff1f\u5e94\u8be5\u53ef\u884c\u3002
1、rule 0 permit ip(输入这条命令总显示输入错误,求解)格式错了吧,实例
rule 7 permit source 10.133.53.22 0
rule 8 permit source 10.133.100.0 0.0.0.255
ar46:
XXZX-acl-basic-2002]rule permit ?
fragment Match fragmented packet
logging Log matched packet
source Match source address
time-range Specify a special time to activate this acl rule
vpn-instance Match a VPN-Instance
2、[MSR20-20- Ethernet0/0/1] nat outbound 3000 address-group 1 (输入这条命令的时候总是提示outbound处有错误,求解)
nat outbound 3000 是否建立列表
3、route-stac 0.0.0.0 0.0.0.0 183.237.240.1(设置外网网关不是应该在外网接口Ethernet0/0/1中设置吗)
不是
你在3定义ACL 规则的时候命令不全,可以在后面使用?号看一下后续的参数。在4应用ACL的时候由于前面没有定义成功才会出现这样的错误。另外,ACL编号3000是否正确,一般的标准ACL编号范围是1-99,扩展ACL范围是100-199.
绛旓細鈶 鍦╡NSP涓锛屾垜浠垱寤轰竴涓柊鎷撴墤锛屽皢AR1璺敱鍣ㄥ拰PC1绱у瘑鐩歌繛銆傛瘡涓姝ラ兘鏃ㄥ湪娓呮櫚灞曠幇缃戠粶鏋勫缓鐨勯昏緫锛氭斁缃瓵R1璺敱鍣ㄥ拰PC1锛岀‘淇濈墿鐞嗚繛鎺ャ傚惎鍔ㄨ澶囷紝涓篈R1閰嶇疆IP鍦板潃锛屽悓鏃跺湪PC1涓婅繘琛岄潤鎬両P閰嶇疆銆傝繘琛屽叧閿殑杩為氭ф祴璇曪紝閫氳繃PC1 ping AR1锛岀‘璁P閰嶇疆鐨勬纭э紝濡傚浘10鎵绀猴紝缁撴灉鏄剧ず杩炴帴鎴愬姛銆傛暟鎹...
绛旓細璇峰府鎴戣В绛旀嫭鍙烽噷鐨勯棶棰 1銆閰嶇疆鍐呯綉鎺ュ彛Ethernet0/0/0: [MSR20-20] interface Ethernet0/0/0 [MSR20-20- Ethernet0/0/0]ip add 192.168.1.1 255.255.255.0 2銆佷娇鐢ㄥ姩鎬佸垎閰嶅湴鍧鐨勬柟寮忎负灞鍩熺綉涓殑PC鍒嗛厤鍦板潃 [MSR20-20]dhcp server ip-pool 1 (鍏ㄩ儴鍛... 灞曞紑 鏉ㄨ壘鏂 | 娴忚3582 娆 |涓炬姤 鎴戞湁...
绛旓細鎵惧埌eNSP_VboxServer鍓嶉潰鎵撲簡鈥溾垰鈥濈殑閭i」锛岀劧鍚庡皢璇ラ」鍦ㄢ滃叕鐢ㄢ濋偅鍒椾笅鎵撲笂鍕銆傝繖鏍峰崟鍑烩滅‘瀹氣濆悗锛岄噸鏂版墦寮eNSP,灏卞彲浠ュ惎鍔ˋR璺敱鍣ㄤ簡銆
绛旓細瀹夎瀹屾瘯鍚庯紝鍙兘閬囧埌鍚姩璁惧AR1澶辫触鐨勯敊璇紙閿欒浠g爜41锛夈瑙e喅鏂规硶鏄竻鐞嗗伐鍏蜂腑鐨勫啑浣欙紝鐒跺悗閲嶆柊娉ㄥ唽璁惧銆傚叿浣撴搷浣滀负鍒犻櫎绾㈣壊椤圭洰锛屽叏閮ㄥ嬀閫夊苟娉ㄥ唽銆傝嫢娉ㄥ唽浠嶅け璐ワ紝鍙兘闇鍒犻櫎VBoxServer鐩綍涓嬬殑鐩稿叧鏂囦欢鍚庨噸鍚痚NSP銆傛祴璇曢樁娈碉紝鍙氳繃娣诲姞璺敱鍣ㄥ苟杩涘叆CLI妯″紡杈撳叆鍛戒护锛屽灏嗚澶囧悕绉版敼涓虹缉鍐欍傝嚦姝わ紝eNSP鐨...
绛旓細棣栧厛鍒╃敤鍗庝负妯℃嫙鍣╡NSP鏉ヨ璁¢昏緫缃戠粶鎷撴湸鍥撅紝鏈変竴鍙拌矾鐢鍣ˋR1220锛屼竴鍙颁簩灞備氦鎹㈡満S3700锛屼簩鍙癙C涓绘満銆傚叾涔嬮棿鐢ㄧ嚎缂嗚繛鎺ュ苟浣滃ソ鏍囨敞銆2/5 鍦ㄥ崕涓烘ā鎷熷櫒eNSP涓鎵撳紑缁堢閰嶇疆浜ゆ崲鏈篠3700,閰嶇疆鍐呭鎴浘濡備笅 system-view sysname SW1 //璁剧疆浜ゆ崲鏈哄悕瀛椾负SW1 vlan batch 2 3 //杩炵画鍒涘缓vlan 2 3...
绛旓細01. eNSP瀹夎娴佺▼鍦ㄥ畨瑁呭墠锛岃纭繚鍏抽棴鎵鏈夐槻鐏鍜屾潃姣掕蒋浠讹紙濡360锛夛紝鍥犱负瀹冧滑鍙兘骞叉壈瀹夎杩囩▼锛屽鑷撮棶棰樸傦紙1锛夊畨瑁呯増鏈帹鑽愪娇鐢╒1.3锛學indows 7銆10銆11鐢ㄦ埛浣跨敤V1.3浠ラ伩鍏峍box鐗堟湰鍏煎鎬ч棶棰橈紝寤鸿浣跨敤v5.2.26浠ヤ笂鐗堟湰銆02. 瀹夎娉ㄦ剰浜嬮」 鍚姩AR璺敱鍣ㄦ椂鍙兘鍑虹幇鎶ラ敊锛屽40銆41鎴43锛岄渶瑕佹帓鏌...
绛旓細瑙e喅鍗庝负璺敱鍣ㄧ殑DHCP閰嶇疆闂鐨 鏂规硶 鍦ㄦā鎷熷櫒eNSP涓婇厤缃瓵R1220璺敱鍣―HCP閰嶇疆锛屼竴鍙癆R1220璺敱鍣紝涓鍙癝3700浜ゆ崲鏈猴紝浜屽彴PC缁堢銆傜敤妯℃嫙鍣╡NSP璁捐濂芥嫇鏈村浘锛屾爣娉ㄥソ绔彛濂斤紝閫変腑鎵鏈夎澶囧啀鎸夊惎鍔ㄨ澶囬敭銆傚湪璺敱鍣≧1涓婇厤缃矾鐢卞櫒鍚嶇О锛岃缃矾鐢卞櫒IP鍦板潃锛屾煡鐪嬭矾鐢卞櫒鎺ュ彛淇℃伅绠瑕侊紝鏌ョ湅璺敱鍣↖P鍦板潃鎺...
绛旓細鍗庝负ensp鐜板湪鍙互妯℃嫙,AR1220,S5700,S3700杩3绉嶄腑浣庣鐨勮矾鐢卞櫒鍜屼氦鎹㈡満,浠ュ悗鏈夊彲鑳戒細缁х画澧炲姞鍑犵璁惧鍨嬪彿.鍒╃敤妯℃嫙鍣鍙互鍙鍖栧畬鎴愭坊鍔犲垹闄よ澶囥璁剧疆妲戒綅绔彛銆佺鐞嗘嫇鎵戙佸惎鍔ㄥ仠姝㈣澶囩瓑鎿嶄綔,澶уぇ鍑忚交浜嗗鏉傚害.涓涓懡浠ゆ晥鏋滅殑涓嶇‘瀹氭垨鑰呮湁浜涜鍋忓樊閮藉彲鑳介犳垚鎹熷け,鑰屾ā鎷熷櫒濡傛灉涓嶈兘鍙嶆槧鐪熷疄璁惧鐨勬晥鏋, ...
绛旓細鍦‥NSP涓锛屽缓绔嬬綉缁滄嫇鎵戣嚦鍏抽噸瑕併備緥濡傦紝鍙互鍒涘缓濡傚浘鎵绀鐨凙R1涓嶢R2閫氳繃copper绾跨浉杩炵殑缃戠粶缁撴瀯銆傝繘鍏NSP鐨勫懡浠よ妯″紡鏄涔犵殑璧风偣锛屽垵濮嬫ā寮忎负鐢ㄦ埛妯″紡锛坰ystem-view锛夈傞氳繃杈撳叆"system-view"锛屽彲浠ヨ繘鍏ョ壒鏉冩ā寮忥紝鎺ョ潃浣跨敤"interface Ethernet 0/0/x"鍛戒护杩涘叆鎺ュ彛妯″紡锛屽畬鎴閰嶇疆鍚庯紝閫氳繃"quit"杩斿洖鍒颁笂...
绛旓細AR1 Ethe0/0/0鍙o紝閰嶇疆port trunk pvid vlan 10 褰揤LAN10鍒拌揪AR1鐨凟TH0/0/0鍙f椂锛岀敱浜庡尮閰峆VID锛屼細鍓ョ璇LAN锛屽埌杈続R2鐨凟0/0/0鍙o紝鍒欎細鍐嶆琚墦涓婅绔彛鐨凱VID鍊硷紝涔熷氨鏄疺LAN20銆侫R2 Ethe0/0/0鍙o紝閰嶇疆port trunk pvid vlan 20 ...