setup Cisco router

roeselare

Commendable
Sep 29, 2016
4
0
1,510
hi,
It's the first time i set up a cisco router and i want to be sure if it's working before plugin it in my network.

test envirronmet:
ISP --> Router1 + Server running dhcp 192.168.0.0/24 --> Router2 running dhcp 192.168.2.0/24 --> Cisco router (no dhcp) 192.168.0.254
The Cisco router needs to replace router1
Can ping from client to 192.168.2.1 (router2)
Can ping from client to 192.168.0.254(cisco router)

can't ping google.com --> get response of Translating "google.be"...domain server (192.168.2.1) [OK] but no pings

Can't ping the local server.

My question: Is this because there are 2 networks 192.168.0.0/24 or because a wrong setting on my router?

Here's my router setting

Building configuration...

Current configuration : 2344 bytes
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 #hash
enable password Password
!
no aaa new-model
!
!
!
!
!
!
!
!
!
!


!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
license udi pid C891F-K9 sn FCZ2039102B
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
isdn termination multidrop
!
interface FastEthernet0
description WAN port
ip address dhcp
ip nat outside
ip nat enable
ip virtual-reassembly in
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0
switchport access vlan 10
no ip address
!
interface GigabitEthernet1
switchport access vlan 10
no ip address
!
interface GigabitEthernet2
switchport access vlan 10
no ip address
!
interface GigabitEthernet3
switchport access vlan 10
no ip address
!
interface GigabitEthernet4
switchport access vlan 10
no ip address
!
interface GigabitEthernet5
switchport access vlan 10
no ip address
!
interface GigabitEthernet6
switchport access vlan 10
no ip address
!
interface GigabitEthernet7
switchport access vlan 10
no ip address
!
interface GigabitEthernet8
description WAN port
ip address dhcp
ip nat outside
ip nat enable
ip virtual-reassembly in
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.0.254 255.255.255.0
ip nat inside
ip nat enable
ip virtual-reassembly in
!
interface Async3
no ip address
encapsulation slip
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip nat inside source list 10 interface GigabitEthernet8 overload
ip route 0.0.0.0 0.0.0.0 FastEthernet0
ip route 0.0.0.0 0.0.0.0 GigabitEthernet8
!
!
snmp-server community 192.168.0.254 RO
access-list 10 permit 192.168.0.0 0.0.0.255
!
control-plane
!
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
!
!
!
!
!
!
line con 0
no modem enable
line aux 0
line 3
modem InOut
speed 115200
flowcontrol hardware
line vty 0 4
password Password123
login
transport input none
!
scheduler allocate 20000 1000
!
!
end
 

roeselare

Commendable
Sep 29, 2016
4
0
1,510
I thought this was not necessary because the ISP automatically granted with DHCP (DNS will not be automatically granted?)
I'll add the DNS records and give it a try
 

roeselare

Commendable
Sep 29, 2016
4
0
1,510
hi,
I'm still not able to ping on the router. thx for the help

R1#ping google.be
Translating "google.be"...domain server (208.67.222.222) (208.67.220.220)
% Unrecognized host or address, or protocol not running.


 

roeselare

Commendable
Sep 29, 2016
4
0
1,510
Hi,
i've specified a nameserver without succes.
Extra info below

The router has 2 vlans (vlan 10 internal users - vlan 20 visitors)

The isp gives a dynamic ip to my router.



The router recieves his IP from my ISP because he uses the dns-server of my ISP but failes to resolves google.

I've added a some nameservers (Open dns and google 8.8.8.8) but I had the same issue



Ethernet (internal use)

interface GigabitEthernet0
switchport access vlan 10
no ip address

Ethernet (visitors)

interface GigabitEthernet3
switchport access vlan 20
no ip address

Internal Ethernet (ISP)

interface GigabitEthernet8
description WAN port
ip address dhcp
ip nat outside
ip nat enable
ip virtual-reassembly in
duplex auto
speed auto

Configuration vlans


interface Vlan10
ip address 192.168.0.254 255.255.255.0
ip nat inside
ip nat enable
ip virtual-reassembly in
!
interface Vlan20
ip address 10.10.10.1 255.255.255.0
ip virtual-reassembly in
!

premisions and routing

access-list 10 permit 192.168.0.0 0.0.0.255

ip dns server
ip nat inside source list 10 interface GigabitEthernet8 overload
ip route 0.0.0.0 0.0.0.0 FastEthernet0
ip route 0.0.0.0 0.0.0.0 GigabitEthernet8



Can you tell me what i'm missing?