Router>en
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#in f0/1
R1(config-if)#no sh
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
R1(config-if)#ip add 192.168.1.254 255.255.255.0
R1(config-if)#ip nat inside
R1(config-if)#e
R1(config)#in f0/0
R1(config-if)#no sh
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
R1(config-if)#ip add 55.55.55.5 255.255.255.0
R1(config-if)#ip nat outside
R1(config-if)#e
R1(config)#ip nat pool A 55.55.55.4 55.55.55.6 netmask 255.255.255.0
R1(config)#access-list 1 permit 192.168.1.1 0.0.0.255
R1(config)#ip nat inside source list 1 pool A
R1(config)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#w
Building configuration…
[OK]
R1#
本文出自 “Jimmy-Hu” 博客,请务必保留此出处http://jimmy1688.blog.51cto.com/12174375/1864776
原文地址:http://jimmy1688.blog.51cto.com/12174375/1864776