✖
每日一题
☺您本月已连续签到天,打败了0%的知了达人!
今日已答题
签到规则:
1.每日可签到答题一次,每签到一次可获得5积分,连续签到10天额外奖励50积分,连续签到20天以上额外奖励100积分;连续签到30天以上额外奖励200积分;
2.签到答题正确,获得经验值5点;
3.签到成功后,当天日期会有提示。
已在NAT配置中设置了映射端口,但是在局域网的电脑中telnet对应IP的端口不通,telnet对应IP是通的。
(0)
最佳答案
您好,需要开启nat hairpin
再路由器的内网接口开启nat hairpin
参考命令
int g1/0/1
nat hairpin enable
1.# 2.version 7.1.064, Release 0615P15 3.# 4.sysname H3C 5.# 6.clock timezone Beijing add 08:00:00 7.clock protocol none 8.# 9.telnet server enable 10.# 11.dhcp enable 12.dhcp server always-broadcast 13.# 14.dns proxy enable 15.# 16.password-recovery enable 17.# 18.vlan 1 19.# 20.dhcp server ip-pool lan1 21.gateway-list 192.168.0.1 22.network 192.168.0.0 mask 255.255.254.0 23.address range 192.168.1.2 192.168.1.254 24.dns-list 192.168.0.1 25.# 26.controller Cellular0/0 27.# 28.interface Aux0 29.# 30.interface Virtual-Template0 31.# 32.interface NULL0 33.# 34.interface Vlan-interface1 35.ip address 192.168.0.1 255.255.254.0 36.# 37.interface GigabitEthernet0/0 38.port link-mode route 39.description Multiple_Line 40.bandwidth 1000000 41.ip address 222.170.230.218 255.255.255.248 42.dns server 112.100.100.100 43.nat outbound 44.nat server protocol tcp global 222.170.230.218 21 inside 192.168.1.166 21 45.nat server protocol tcp global 222.170.230.218 1433 inside 192.168.1.166 1433 46.nat server protocol tcp global 222.170.230.218 8001 inside 192.168.1.166 8001 47.# 48.interface GigabitEthernet0/1 49.port link-mode route 50.# 51.interface GigabitEthernet0/2 52.port link-mode bridge 53.# 54.interface GigabitEthernet0/3 55.port link-mode bridge 56.# 57.interface GigabitEthernet0/4 58.port link-mode bridge 59.# 60.interface GigabitEthernet0/5 61.port link-mode bridge 62.# 63.interface GigabitEthernet0/6 64.port link-mode bridge 65.# 66.interface GigabitEthernet0/7 67.port link-mode bridge 68.# 69.interface GigabitEthernet0/8 70.port link-mode bridge 71.# 72.interface GigabitEthernet0/9 73.port link-mode bridge 74.# 75.security-zone name Local 76.# 77.security-zone name Trust 78.# 79.security-zone name DMZ 80.# 81.security-zone name Untrust 82.# 83.security-zone name Management 84.# 85.scheduler logfile size 16 86.# 87.line class aux 88.user-role network-admin 89.# 90.line class tty 91.user-role network-operator 92.# 93.line class usb 94.user-role network-admin 95.# 96.line class vty 97.user-role network-operator 98.# 99.line aux 0 100.user-role network-admin 101.# 102.line vty 0 63 103.authentication-mode scheme 104.user-role network-operator 105.# 106.ip route-static 0.0.0.0 0 GigabitEthernet0/0 222.170.230.217 107.# 108.password-control length 6 109.password-control login-attempt 3 exceed lock-time 10 110.password-control update-interval 0 111.password-control login idle-time 0 112.password-control complexity user-name check 113.# 114.domain system 115.# 116.domain default enable system 117.# 118.role name level-0 119.description Predefined level-0 role 120.# 121.role name level-1 122.description Predefined level-1 role 123.# 124.role name level-2 125.description Predefined level-2 role 126.# 127.role name level-3 128.description Predefined level-3 role 129.# 130.role name level-4 131.description Predefined level-4 role 132.# 133.role name level-5 134.description Predefined level-5 role 135.# 136.role name level-6 137.description Predefined level-6 role 138.# 139.role name level-7 140.description Predefined level-7 role 141.# 142.role name level-8 143.description Predefined level-8 role 144.# 145.role name level-9 146.description Predefined level-9 role 147.# 148.role name level-10 149.description Predefined level-10 role 150.# 151.role name level-11 152.description Predefined level-11 role 153.# 154.role name level-12 155.description Predefined level-12 role 156.# 157.role name level-13 158.description Predefined level-13 role 159.# 160.role name level-14 161.description Predefined level-14 role 162.# 163.user-group system 164.# 165.local-user admin class manage 166.password hash $h$6$iZvp/PzyMGL6h8sZ$gDrwhvi6JNdSwLO89HY9iTx4iDOWxGLVyWUic5cmSxdIAlxUMon6RFMBEbDUFblcTCSgJPtO1D6C9nw45BLszQ== 167.service-type telnet http 168.authorization-attribute user-role network-admin 169.# 170.connection-limit policy 32 171.# 172.ip http enable 173.# 174.wlan global-configuration 175.# 176.wlan ap-group default-group 177.# 178.cloud-management server domain oasis.h3c.com 179.# 180.return
这是我下载的配置文件,麻烦您看一下,是这个问题吗
该问题暂时没有网友解答
你正在编辑答案
如果你要对问题或其他回答进行点评或询问,请使用评论功能。
分享扩散:
亲~登录后才可以操作哦!
亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册
注册后可访问此模块
你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
泄露了我的隐私
侵犯了我企业的权益
抄袭了我的内容
原文链接或出处
诽谤我
对根叔社区有害的内容
不规范转载
举报说明
1.# 2.version 7.1.064, Release 0615P15 3.# 4.sysname H3C 5.# 6.clock timezone Beijing add 08:00:00 7.clock protocol none 8.# 9.telnet server enable 10.# 11.dhcp enable 12.dhcp server always-broadcast 13.# 14.dns proxy enable 15.# 16.password-recovery enable 17.# 18.vlan 1 19.# 20.dhcp server ip-pool lan1 21.gateway-list 192.168.0.1 22.network 192.168.0.0 mask 255.255.254.0 23.address range 192.168.1.2 192.168.1.254 24.dns-list 192.168.0.1 25.# 26.controller Cellular0/0 27.# 28.interface Aux0 29.# 30.interface Virtual-Template0 31.# 32.interface NULL0 33.# 34.interface Vlan-interface1 35.ip address 192.168.0.1 255.255.254.0 36.# 37.interface GigabitEthernet0/0 38.port link-mode route 39.description Multiple_Line 40.bandwidth 1000000 41.ip address 222.170.230.218 255.255.255.248 42.dns server 112.100.100.100 43.nat outbound 44.nat server protocol tcp global 222.170.230.218 21 inside 192.168.1.166 21 45.nat server protocol tcp global 222.170.230.218 1433 inside 192.168.1.166 1433 46.nat server protocol tcp global 222.170.230.218 8001 inside 192.168.1.166 8001 47.# 48.interface GigabitEthernet0/1 49.port link-mode route 50.# 51.interface GigabitEthernet0/2 52.port link-mode bridge 53.# 54.interface GigabitEthernet0/3 55.port link-mode bridge 56.# 57.interface GigabitEthernet0/4 58.port link-mode bridge 59.# 60.interface GigabitEthernet0/5 61.port link-mode bridge 62.# 63.interface GigabitEthernet0/6 64.port link-mode bridge 65.# 66.interface GigabitEthernet0/7 67.port link-mode bridge 68.# 69.interface GigabitEthernet0/8 70.port link-mode bridge 71.# 72.interface GigabitEthernet0/9 73.port link-mode bridge 74.# 75.security-zone name Local 76.# 77.security-zone name Trust 78.# 79.security-zone name DMZ 80.# 81.security-zone name Untrust 82.# 83.security-zone name Management 84.# 85.scheduler logfile size 16 86.# 87.line class aux 88.user-role network-admin 89.# 90.line class tty 91.user-role network-operator 92.# 93.line class usb 94.user-role network-admin 95.# 96.line class vty 97.user-role network-operator 98.# 99.line aux 0 100.user-role network-admin 101.# 102.line vty 0 63 103.authentication-mode scheme 104.user-role network-operator 105.# 106.ip route-static 0.0.0.0 0 GigabitEthernet0/0 222.170.230.217 107.# 108.password-control length 6 109.password-control login-attempt 3 exceed lock-time 10 110.password-control update-interval 0 111.password-control login idle-time 0 112.password-control complexity user-name check 113.# 114.domain system 115.# 116.domain default enable system 117.# 118.role name level-0 119.description Predefined level-0 role 120.# 121.role name level-1 122.description Predefined level-1 role 123.# 124.role name level-2 125.description Predefined level-2 role 126.# 127.role name level-3 128.description Predefined level-3 role 129.# 130.role name level-4 131.description Predefined level-4 role 132.# 133.role name level-5 134.description Predefined level-5 role 135.# 136.role name level-6 137.description Predefined level-6 role 138.# 139.role name level-7 140.description Predefined level-7 role 141.# 142.role name level-8 143.description Predefined level-8 role 144.# 145.role name level-9 146.description Predefined level-9 role 147.# 148.role name level-10 149.description Predefined level-10 role 150.# 151.role name level-11 152.description Predefined level-11 role 153.# 154.role name level-12 155.description Predefined level-12 role 156.# 157.role name level-13 158.description Predefined level-13 role 159.# 160.role name level-14 161.description Predefined level-14 role 162.# 163.user-group system 164.# 165.local-user admin class manage 166.password hash $h$6$iZvp/PzyMGL6h8sZ$gDrwhvi6JNdSwLO89HY9iTx4iDOWxGLVyWUic5cmSxdIAlxUMon6RFMBEbDUFblcTCSgJPtO1D6C9nw45BLszQ== 167.service-type telnet http 168.authorization-attribute user-role network-admin 169.# 170.connection-limit policy 32 171.# 172.ip http enable 173.# 174.wlan global-configuration 175.# 176.wlan ap-group default-group 177.# 178.cloud-management server domain oasis.h3c.com 179.# 180.return
这是我下载的配置文件,麻烦您看一下,是这个问题吗