I have a CISCO 1801 Router with an ADSL connection and I have configured a VLan1 with NAT.
This is the current configuration:
==========================
==========
==========
==========
====
!This is the running config of the router: 10.10.10.1
!-------------------------
----------
----------
----------
----------
----------
-
!version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname yourname
!
boot-start-marker
boot-end-marker
!
logging buffered 51200 warnings
enable secret 5 $1$LFhK$fPo4ZBwF82vhZRCqIN
Daj.
!
no aaa new-model
!
resource policy
!
clock timezone PCTime 1
clock summer-time PCTime date Mar 30 2003 2:00 Oct 26 2003 3:00
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1 10.10.10.10
!
ip dhcp pool sdm-pool1
import all
network 10.10.10.0 255.255.255.0
dns-server 195.110.128.1 212.48.4.11
default-router 10.10.10.1
!
!
ip domain name yourdomain.com
ip name-server 195.110.128.1
ip name-server 212.48.4.11
!
!
crypto pki trustpoint TP-self-signed-3889528204
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certifi
cate-38895
28204
revocation-check none
rsakeypair TP-self-signed-3889528204
!
!
crypto pki certificate chain TP-self-signed-3889528204
certificate self-signed 01
3082024F 308201B8 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 33383839 35323832 3034301E 170D3037 30323231 31383239
35395A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D33 38383935
32383230 3430819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100CEFA 2F4C4519 1E4ECB7D 05F0F6C4 C8DD02CA C8B098CC 8DA27886 95EAF1F6
4DD8761A 0142FD11 BF470EAF 33A0DB5D 15F35ED0 FB501B67 B094701E E94912FE
6D988497 2CFB8198 FDC9C6A4 5804C975 7E92FB92 7305461D 1A38ADF4 2A13948C
F73547A7 A56BDCF4 9A7F6B2E 07BF6E4C 441D550C 261CDFC4 091ECF04 0724EE7C
D39B0203 010001A3 77307530 0F060355 1D130101 FF040530 030101FF 30220603
551D1104 1B301982 17796F75 726E616D 652E796F 7572646F 6D61696E 2E636F6D
301F0603 551D2304 18301680 14FA83D9 CBE097CD CD23783D 00831DB2 0616A61C
B1301D06 03551D0E 04160414 FA83D9CB E097CDCD 23783D00 831DB206 16A61CB1
300D0609 2A864886 F70D0101 04050003 81810045 070C2001 8A975888 F3FD9184
A30B8BA0 2CF68F9E E50E6949 E98E0F46 BAF66D48 E65EC38F BEC87007 3E1EFF9E
95DCD777 5B034550 6A97E779 4B3DA439 6684CF47 29E08010 CFFE45B2 AA008234
1034CD74 9375AE1D 89212937 39C60B91 41F11375 D00DA6F7 CED5298E 95EEAC21
47E32611 B300F1DF 8460BDDE A4CCD8AC 915A0B
quit
username myusername privilege 15 secret 5 $1$7I1u$4wynicobPAoTM85eSZ
tnG.
!
!
!
!
!
!
interface FastEthernet0
no ip address
shutdown
duplex auto
speed auto
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
!
interface FastEthernet1
!
interface FastEthernet2
!
interface FastEthernet3
!
interface FastEthernet4
!
interface FastEthernet5
!
interface FastEthernet6
!
interface FastEthernet7
!
interface FastEthernet8
!
interface ATM0
no ip address
no atm ilmi-keepalive
dsl operating-mode auto
!
interface ATM0.1 point-to-point
description $ES_WAN$$FW_OUTSIDE$
no snmp trap link-status
pvc 8/75
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
interface Vlan1
description $ETH-SW-LAUNCH$$INTF-INFO-
FE 1$$ES_LAN$$FW_INSIDE$
ip address 10.10.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly
ip tcp adjust-mss 1452
!
interface Dialer0
ip address negotiated
ip nat outside
ip virtual-reassembly
encapsulation ppp
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication pap callin
ppp pap sent-username XXXXXXXX password 7 061E0B651E170D
!
ip route 0.0.0.0 0.0.0.0 Dialer0
!
!
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
ip nat inside source list 1 interface Dialer0 overload
!
access-list 1 remark INSIDE_IF=Vlan1
access-list 1 remark SDM_ACL Category=2
access-list 1 permit 10.10.10.0 0.0.0.255
dialer-list 1 protocol ip permit
no cdp run
!
!
!
!
!
!
control-plane
!
banner exec ^C
% Password expiration warning.
--------------------------
----------
----------
----------
----------
-----
Cisco Router and Security Device Manager (SDM) is installed on this device and
it provides the default username "cisco" for one-time use. If you have already
used the username "cisco" to login to the router and your IOS image supports the
"one-time" user option, then this username has already expired. You will not be
able to login to the router with this username after you exit this session.
It is strongly suggested that you create a new username with a privilege level
of 15 using the following command.
username <myuser> privilege 15 secret 0 <mypassword>
Replace <myuser> and <mypassword> with the username and password you want to
use.
--------------------------
----------
----------
----------
----------
-----
^C
banner login ^CAuthorized access only!
Disconnect IMMEDIATELY if you are not an authorized user!^C
!
line con 0
login local
line aux 0
line vty 0 4
privilege level 15
login local
transport input telnet ssh
line vty 5 15
privilege level 15
login local
transport input telnet ssh
!
!
webvpn context Default_context
ssl authenticate verify all
!
no inservice
!
end
==========================
==========
==========
==========
====
The computers on Vlan1 can ping any address (ping 84.233.183.147), reach any ftp using ip address but they are not able to resolve dns query (ping
www.google.com).
BUT
If I change the instruction
"ip nat inside source list 1 interface Dialer0 overload" with the instruction
"ip nat inside source list 1 interface 84.250.74.80 overload" (where 84.250.74.80 is a my public ip)
then all run ok and the pc on Vlan1 can resolve dns query.
I would like use the IP address of the Dialer0 because I need to configure an ISDN backup interface for it.
My ISDN connection does not have a fixed IP address.
Could you help me to allow the pc on Vlan1 to resolve dns query using the IP address of the Dialer0 interface?
Thank you.