Sieć: konfiguracja NAT i DHCP.
Projekt sieci składającej się z 2 routerów oraz switcha przedstawiających działanie DHCP jak i NAT’a.
Program: Cisco Packet Tracer
Konfiguracje routerów:
Current configuration : 1435 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Gateway
!
boot-start-marker
boot-end-marker
!
logging message-counter syslog
!
no aaa new-model
dot11 syslog
ip source-route
!
!
!
ip dhcp pool test
network 172.10.1.0 255.255.255.0
domain-name ccna-lab.com
dns-server 209.165.200.225
default-router 172.10.1.1
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
voice-card 0
!
!
!
!
!
archive
log config
hidekeys
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 172.10.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
interface Serial0/1/0
no ip address
shutdown
!
interface Serial0/1/1
ip address 209.165.201.18 255.255.255.252
ip nat outside
ip virtual-reassembly
clock rate 125000
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 209.165.201.17
no ip http server
no ip http secure-server
!
!
ip nat pool public_access 209.165.200.242 209.165.200.254 netmask 255.255.255.224
ip nat inside source list 1 pool public_access
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
!
!
!
!
!
!
control-plane
!
!
!
ccm-manager fax protocol cisco
!
mgcp fax t38 ecm
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
scheduler allocate 20000 1000
end
Current configuration : 1166 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ISP
!
boot-start-marker
boot-end-marker
!
logging message-counter syslog
!
no aaa new-model
dot11 syslog
ip source-route
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
voice-card 0
!
!
!
!
!
username webuser privilege 15 secret 5 $1$uhW.$k8TMvI1338SOM34FA9m/K0
archive
log config
hidekeys
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 192.31.7.1 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1/0
no ip address
shutdown
!
interface Serial0/1/1
ip address 209.165.201.17 255.255.255.252
!
ip forward-protocol nd
ip route 209.165.200.224 255.255.255.224 209.165.201.18
ip http server
ip http authentication local
no ip http secure-server
!
!
!
!
!
!
!
!
!
!
control-plane
!
!
!
ccm-manager fax protocol cisco
!
mgcp fax t38 ecm
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
scheduler allocate 20000 1000
end