Vous êtes sur la page 1sur 4

9.3.4.

5: Troubleshooting DHCP and NAT1


AUTHORIZED ACCESS ONLY
User Access Verification
Password:
R1>ena
Password:
Password:
R1#sho run
Building configuration...
Current configuration : 1099 bytes
!
version 12.3
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1
!
!
ip dhcp excluded-address 172.16.10.1 172.16.10.3
!
ip dhcp pool R1_LAN10
network 172.16.0.0 255.255.0.0
default-router 172.16.10.1
dns-server 172.16.2.254
ip dhcp pool R1_LAN11
network 172.16.11.0 255.255.255.0
default-router 172.16.1.1
dns-server 172.16.20.254
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
ip address 172.16.10.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1

ip address 172.16.11.1 255.255.255.0


duplex auto
speed auto
!
interface Serial0/0/0
ip address 172.16.0.1 255.255.255.252
clock rate 125000
!
interface Serial0/0/1
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
router rip
version 2
network 172.16.0.0
no auto-summary
!
ip classless
!
!
!
banner motd ^CAUTHORIZED ACCESS ONLY^C
!
!
!
!
line con 0
password cisco
login
line vty 0 4
password cisco
login
!
!
!
end
------------------------------------------------------------------------------------------------------------------R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip dh
R1(config)#ip dhcp po
R1(config)#ip dhcp pool R1_LAN10
R1(dhcp-config)#172.16.10.0 net
R1(dhcp-config)#172.16.10.0 255.255.255.0
^
% Invalid input detected at '^' marker.
R1(dhcp-config)#net172.16.10.0 255.255.255.0
R1(dhcp-config)#net
R1(dhcp-config)#network 172.16.10.0 255.255.255.0
R1(dhcp-config)#defa
R1(dhcp-config)#default-router 172.16.10.1
R1(dhcp-config)#dn

R1(dhcp-config)#dns-server 172.16.20.254
R1(dhcp-config)#
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#
-----------------------------------------------------------------------------------------------R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip dh
R1(config)#ip dhcp excl
R1(config)#ip dhcp excluded-address 172.16.11.1 172.16.11.3
R1(config)#ip dhc
R1(config)#ip dhcp poo
R1(config)#ip dhcp pool R1_LAN11
R1(dhcp-config)#net
R1(dhcp-config)#network 172.16.11.0 255.255.255.0
R1(dhcp-config)#def
R1(dhcp-config)#default-router 172.16.11.1
R1(dhcp-config)#dns
R1(dhcp-config)#dns-server 172.16.20.254
R1(dhcp-config)#
R1(dhcp-config)#
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#
-------------------------------------------------------------------------------------------------R2#config t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int
R2(config)#interface ser
R2(config)#interface serial 0/0/1
R2(config-if)#no ip na
R2(config-if)#no ip nat ins
R2(config-if)#no ip nat inside
R2(config-if)#ext
^
% Invalid input detected at '^' marker.
R2(config-if)#exit
R2(config)#int
R2(config)#interface
R2(config)#interface
R2(config-if)#ip nat
R2(config-if)#ip nat
R2(config-if)#ip nat
R2(config-if)#exit
R2(config)#

ser
serial 0/0/1
ou
outside

------------------------------------------------------------------------------------------------------------R2# config t

Enter configuration commands, one per line. End with CNTL/Z.


R2(config)#int
R2(config)#interface ser
R2(config)#interface serial 0/0/0
R2(config-if)#no ip na
R2(config-if)#no ip nat out
R2(config-if)#no ip nat outside
R2(config-if)#exit
R2(config)#int
R2(config)#interface ser
R2(config)#interface serial 0/0/0
R2(config-if)#ip nat
R2(config-if)#ip nat ins
R2(config-if)#ip nat inside
R2(config-if)#exit
R2(config)
-------------------------------------------------------------------------------------------------------------------

Vous aimerez peut-être aussi