router>en
router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#int f0/1
router(config-if)#ip nat inside
router(config-if)#exit
router(config)#int f0/0
router(config-if)#ip nat outside
router(config-if)#exit
router(config)#ip nat pool onlyone 202.202.202.203 202.202.202.205 netmask 255.255.0.0
?
router#config t
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#ip nat pool onlyone 202.202.202.203 202.202.202.205 netmask 255.255.0.0
?
这是在PT配置PAT的例子,感觉比你那个模拟器要简单
!
interface FastEthernet0/0
ip address 192.168.10.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface Serial0/0/0
ip address 192.168.20.1 255.255.255.0
ip nat outside
!
ip nat inside source list 10 interface Serial0/0/0 overload
ip classless
!
!
access-list 10 permit 192.168.10.0 0.0.0.255
!
刚才把真机开了给lz看一下。。。是2611
Router#show ver
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IK9O3S3-M), Version 12.3(26), RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by cisco Systems, Inc.
Compiled Mon 17-Mar-08 15:23 by dchih
ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)
Router uptime is 1 minute
System returned to ROM by power-on
System image file is "flash:c2600-ik9o3s3-mz.123-26.bin"
......(省略)
cisco 2611 (MPC860) processor (revision 0x203) with 56320K/9216K bytes of memory.
Processor board ID JAD050601RM (2225264936)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
2 Ethernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)
Configuration register is 0x2102
Router(config)#ip nat pool
Router(config)#ip nat pool ?
WORD Pool name
Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 n
Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 ?
type Specify the pool type
<cr>
Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 ty
Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 type ?
match-host Keep host numbers the same after translation
rotary Rotary address pool
Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 type mat
Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 type match-host ?
<cr>
Router(config)#ip nat pool aaa 192.168.1.1 192.168.1.200 netmask 255.255.255.0 type rotary ?
<cr>