11-03-2024 01:32 AM
I configured my cisco router to connect to the internet and it does connect but any connected devices don't have internet. My router is a cisco 897VA-VAB something and here is my configuration I suspect it has to do something with the vlan:
Using 4528 out of 262136 bytes
!
! Last configuration change at 07:58:52 UTC Sun Nov 3 2024 by karakas
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname karakas
!
boot-start-marker
boot-end-marker
!
!
logging buffered 51200 warnings
!
no aaa new-model
memory-size iomem 10
!
!
!
!
!
!
!
!
!
!
!
ip dhcp excluded-address 10.10.10.1
ip dhcp excluded-address 192.168.1.1
!
ip dhcp pool ccp-pool
import all
network 10.10.10.0 255.255.255.128
default-router 10.10.10.1
lease 0 2
!
ip dhcp pool 192.168.1.0 255.255.255.0
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8 4.2.2.2
!
!
!
no ip domain lookup
ip domain name yourdomain.com
ip name-server 8.8.8.8
ip name-server 4.2.2.2
ip cef
no ipv6 cef
!
!
!
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
cts logging verbose
license udi pid C897VAB-K9 sn FCZ2229E352
!
!
vtp version 2
username karakas privilege 15 secret 5 $1$/iTv$MydhEFx5bow43C/pA2gbN1
!
!
!
!
!
controller VDSL 0
no cdp run
!
!
!
!
!
!
!
!
!
!
!
!
interface ATM0
no ip address
shutdown
no atm ilmi-keepalive
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
isdn termination multidrop
!
interface Ethernet0
no ip address
shutdown
!
interface GigabitEthernet0
no ip address
!
interface GigabitEthernet1
no ip address
!
interface GigabitEthernet2
no ip address
!
interface GigabitEthernet3
no ip address
!
interface GigabitEthernet4
no ip address
!
interface GigabitEthernet5
no ip address
!
interface GigabitEthernet6
no ip address
!
interface GigabitEthernet7
no ip address
!
interface GigabitEthernet8
ip address 192.168.2.2 255.255.255.0
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface Vlan1
description $ETH_LAN$
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
ip tcp adjust-mss 1452
!
ip forward-protocol nd
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 Vlan1 overload
ip route 0.0.0.0 0.0.0.0 192.168.2.1
ip route 0.0.0.0 0.0.0.0 Vlan1
!
!
tftp-server flash:/firmware/vdsl_bond.bin
access-list 1 permit 192.168.1.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
!
!
!
!
!
!
banner exec ^C
% Password expiration warning.
Solved! Go to Solution.
11-03-2024 01:40 AM
Try below and device in the Lan able to get Interenet.
no ip nat inside source list 1 interface Vlan1 overload
no ip route 0.0.0.0 0.0.0.0 Vlan1
ip routing (some device have default enable in case required add)
ip nat inside source list 1 interface GigabitEthernet8 overload
any connected devices don't have internet.
This was not sure, using Lan PC you trying to connect to remote vpn server using any connect ?
before connecting make sure you have internet connection to PC - so lets fix that before you proceed further.
still issue post below output
show run
show ip interface brief
show ip route
what is the PC IP you get ?
from PC post ipconfig /all and ping 8.8.8.8 and google.com
11-03-2024 01:56 AM
This route is not necessary
no ip route 0.0.0.0 0.0.0.0 Vlan1
And you NAT is incorrect
no ip nat inside source list 1 interface Vlan1 overload
Change to this
ip nat inside source list 1 interface GigabitEthernet8 overload
11-03-2024 01:40 AM
Try below and device in the Lan able to get Interenet.
no ip nat inside source list 1 interface Vlan1 overload
no ip route 0.0.0.0 0.0.0.0 Vlan1
ip routing (some device have default enable in case required add)
ip nat inside source list 1 interface GigabitEthernet8 overload
any connected devices don't have internet.
This was not sure, using Lan PC you trying to connect to remote vpn server using any connect ?
before connecting make sure you have internet connection to PC - so lets fix that before you proceed further.
still issue post below output
show run
show ip interface brief
show ip route
what is the PC IP you get ?
from PC post ipconfig /all and ping 8.8.8.8 and google.com
11-03-2024 01:56 AM
Brother I have internet thank you very much
11-03-2024 01:56 AM
This route is not necessary
no ip route 0.0.0.0 0.0.0.0 Vlan1
And you NAT is incorrect
no ip nat inside source list 1 interface Vlan1 overload
Change to this
ip nat inside source list 1 interface GigabitEthernet8 overload
11-03-2024 01:57 AM
Thank you very much as well
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide