کد:
R1#sh star
Using 825 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
ip dhcp excluded-address 192.168.1.2 192.168.1.5
!
ip dhcp pool dpool1
network 192.168.1.0 255.255.255.192
default-router 192.168.1.1
dns-server 4.2.2.1
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.192
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 200.1.1.1 255.255.255.252
ip nat outside
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip nat pool npool 200.1.1.1 200.1.1.50 netmask 255.255.255.0
ip nat inside source list 1 interface FastEthernet0/1 overload
ip classless
!
!
access-list 1 permit 192.168.1.0 0.0.0.63
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end