Router internet interface Fastethernet0/0 192.168.0.17 (ip nat outside)
internal interface 192.168.1.1 (ip nat inside)
able to ping 8.8.8.8 from router
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.0.17 YES DHCP up up
FastEthernet0/1 192.168.1.1 YES NVRAM up up
NVI0 unassigned NO unset up up
router config:
interface FastEthernet0/0
ip address dhcp
ip nat outside
ip virtual-reassembly
no ip route-cache
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
no ip route-cache
duplex auto
speed auto
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
ip nat inside source list 1 interface FastEthernet0/0 overload
access-list 1 permit 192.168.1.0 0.0.0.255
From switch able to ping both router intefaces but not 8.8.8.8
set default gateway on switch
ip default-gateway 192.168.1.1
Both are CISCO
switch config:
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname nemanja_SW1_35550
!
enable secret 5 $1$vc35$d7PthbPyFSMsiQlnQTMIU0
enable password 7 1218011A1B05
!
no aaa new-model
clock timezone CST 1
ip subnet-zero
no ip domain-lookup
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
interface FastEthernet0/1
switchport mode dynamic desirable
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport mode dynamic desirable
interface Vlan1
ip address 192.168.1.3 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.1.1