==========================
R2#
R2#sh run
!
hostname R2
!
interface FastEthernet0/0
ip address 192.168.1.254 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 100.1.1.1 255.255.255.0
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
!
ip nat pool pat 100.1.1.1 100.1.1.1 netmask 255.255.255.0
ip nat inside source list 10 pool pat overload
!
access-list 10 permit 192.168.1.0 0.0.0.255
!
!
end
R2#
====================================================
R1#sh run
!
hostname R1
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 100.1.1.2 255.255.255.0
duplex auto
speed auto
!
ip route 192.168.1.0 255.255.255.0 100.1.1.1
R1#
==========================
沒有留言:
張貼留言