以下为两台路由器的配置
华为 2621
YRWB#show run Now create configuration... Current configuration ! version 1.5.6 enable password .>8BEZYIPa9E8L9V$MO#GA!! access-list normal 1 permit 192.168.0.0 0.0.0.255 access-list normal 1 deny any hostname YRWB ! interface Aux0 async mode interactive encapsulation ppp ! interface Ethernet0 speed auto duplex auto no loopback ip address 61.153.252.42 255.255.255.252 nat inside 1 interface nat server global 61.153.252.42 7200 inside 192.168.0.233 7200 tcp nat server global 61.153.252.42 7100 inside 192.168.0.233 7100 tcp nat server global 61.153.252.42 7000 inside 192.168.0.233 7000 tcp nat server global 61.153.252.42 www inside 192.168.0.231 www tcp nat server global 61.153.252.42 ftp inside 192.168.0.231 ftp tcp ! interface Ethernet1 speed auto duplex auto no loopback ip address 192.168.0.1 255.255.255.0 ! interface Serial0 encapsulation ppp ! interface Serial1 encapsulation ppp ! exit ip route 0.0.0.0 0.0.0.0 61.153.252.41 preference 60 !
end
思科 2621 XM
Router#show run Building configuration...
Current configuration : 968 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router ! enable secret 5 $1$uetD$3uDIZVFjRK85fRftHtV2y0 enable password Frankline00100 ! ip subnet-zero ! ! ! call rsvp-sync ! ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 61.153.252.42 255.255.255.252 ip nat outside duplex auto speed auto no mop enabled ! interface FastEthernet0/1 ip address 192.168.0.1 255.255.255.0 ip access-group 101 out ip nat inside duplex auto speed auto ! ip nat inside source list 1 interface FastEthernet0/0 overload ip nat inside source static tcp 192.168.0.233 80 interface FastEthernet0/0 80 ip classless ip route 0.0.0.0 0.0.0.0 61.153.252.41 60 no ip http server ! access-list 1 permit 192.168.0.0 0.0.0.255 log access-list 101 deny ip host 211.155.224.140 any access-list 101 permit ip any any ! ! dial-peer cor custom ! ! ! ! line con 0 line aux 0 line vty 0 4 password frankline login ! end
以上两套配置.都是放在网吧当网关的。结果NAT做了以后。都是发现内网无法访问
比如输入61.153.252.42 无法访问网页。而在外网。输入61.153.252.42 一切正常
思科路由器。在运行后还发现无法进入泡泡糖游戏...输入帐号密码后。提示udp协议运行不正常
开始游戏。发现卡住。然后提示网络不稳定。断开连接
换成华为2621 就无此问题。也没有提示
但是他们共同的毛病就是。做了NAT到内网 192.168.0.233 的80 7000 7100 7200
都是外网游戏和访问一切正常。网吧内部。无法访问网页。进入游戏不开门.晕了
欢迎光临 千家论坛_智能建筑与智能家居技术交流社区 (http://bbs.qianjia.com:8020/) | Powered by Discuz! X3.2 |