取消
显示结果 
搜索替代 
您的意思是: 
cancel
3933
查看次数
30
有帮助
3
回复

Cisco 2900配置求助

zhao11908
Level 1
Level 1
gi0/1端口接入的是互联网 gi0/2端口接入本地网络
我现在分别在两个直接接入了一台笔记本,接gi0/1的笔记本地址为125.71.238.19,接gi0/2的笔记本地址为192.168.1.11 互ping,ping不通 为什么
Current configuration : 1071 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
ip dhcp excluded-address 192.168.0.1 192.168.2.2
!
ip dhcp pool qbj
network 192.168.0.0 255.255.240.0
default-router 192.168.1.1
dns-server 202.98.96.68
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX15249GME
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
ip address 125.71.238.18 255.255.255.0
ip nat outside
duplex auto
speed auto
!
interface GigabitEthernet0/2
ip address 192.168.1.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip nat pool 2 192.168.0.0 192.168.3.255 netmask 255.255.240.0
ip nat inside source list 2 pool 2
ip classless
ip route 0.0.0.0 0.0.0.0 125.71.238.1
ip flow-export version 9
!
!
access-list 2 permit any
!
no cdp run
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
3 条回复3

one-time
Level 13
Level 13
感谢您的提问,会有小伙伴为您解答的!:):handshake

ilay
VIP
VIP
nat 的pool配置错误 如果你想指定192.168.x.x的地址用几个公网地址做nat, 那么pool需要定义的地址应该是125.71.238.x 或者其他已在此链路申请的公网地址
还可以直接配置 ip nat inside source list 2 interface gi0/1 overload 直接使用接口地址做pat转换

zhao307663518
Level 1
Level 1
ip nat pool 2 192.168.0.0 192.168.3.255 netmask 255.255.240.0
ip nat inside source list 2 pool 2
access-list 2 permit any
很明显,你这个NAT配置有误。。。我给你纠正下。
access-list 1 permit 192.168.0.0 0.0.15.0
ip nat inside source list 1 interface gi0/1 overload
快捷链接