"telnet_ip" /連接設備,出現提示後輸入用戶和密碼/
提示符爲#時輸入中"conf_ter" /進入特權配置模式/
提示符爲<config>#輸入"ip_nat_inside_source_static_tcp_內網IP_端口_公網IP_端口" /設置地址映射/
輸入"exit" /退出特權配置模式/
回到提示符#輸入"show_ip_nat_translations" /查看映射是否成功/
Pro Inside global Inside local Outside local Outside global
udp 58.35.148.63:50 192.168.1.3:137 192.168.1.255:137 192.168.1.255:137
udp 58.35.148.63:138 192.168.1.3:138 192.168.1.255:138 192.168.1.255:138
tcp 203.148.19.146:211 192.168.1.3:211 --- ---
udp 58.35.148.63:1620 192.168.1.3:1620 152.104.168.162:53 152.104.168.162:53
出現後面有"---"這麼種的,是手動設置的,列表裏有這條的話,就測試一下應用。
沒問題的話,在#提示符下輸入"copy_running-config_startup-config" /存儲配置信息/
提示Destination filename [startup-config]直接回車
提示Building configuration...
提示[OK]
存上了,應該一切OK了!