cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
36756
Views
5
Helpful
12
Replies

No internet connection from switch

linuxwiz54
Beginner
Beginner

I configured  router to internet and was able to ping several DNS address ex: 8.8.8.8 with success.

on router  g0/1 configured IP address 10.0.0.0 255.255.255.0

on switch  g1/1 configured IP address 10.0.0.2 255.255.255.0

Switch setup with IP route to 0.0.0.0 0.0.0.0 10.0.0.0

on switch I also have the dhcp server setup with a different VLAN ID (rebooted all the devices modem, router and switch)

connected the workstation....got the ip address from but no internet access what could I be doing wrong here.

your help will be greatly appreciated

I have attached my switch configuration.

1 Accepted Solution

Accepted Solutions

Hi

I can't say if IP addresses are ok or not because you've masked them. 

However you have an issue with your nat:

ip nat inside source list 1 interface GigabitEthernet0/0 overload
!
access-list 101 permit ip 10.x.x.x. 0.0.0.255 any
!

First of all, you're using 2 networks 10.x.x.x/24 for vlan 1 and 100. 2nd issue is you're calling the wrong acl on your nat statement  

your config should looks like:

ip nat inside source list 101 interface GigabitEthernet0/0 overload
!
access-list 101 permit ip 10.x.x.x. 0.0.0.255 any ==> Vlan 1 subnet 
!

access-list 101 permit ip 10.x.x.x. 0.0.0.255 any ==> Vlan 100 subnet
!

Thanks

PS: Please don't forget to rate and mark as correct answer if this answered your question  


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

View solution in original post

12 Replies 12

Francesco Molino
VIP Mentor VIP Mentor
VIP Mentor

Hi

from your pc, are you able to reach your router?

what's your router config? Did you configured nat?

thanks

PS: Please don't forget to rate and mark as correct answer if this answered your question 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

I have upload the switch and router configuration

- Deepak

I have attached router configuration as well to make more sense.

- Sarathpa

Yes I have access to the router and internal.

Pawan

I have configured the nat on the router.

Hi

I can't say if IP addresses are ok or not because you've masked them. 

However you have an issue with your nat:

ip nat inside source list 1 interface GigabitEthernet0/0 overload
!
access-list 101 permit ip 10.x.x.x. 0.0.0.255 any
!

First of all, you're using 2 networks 10.x.x.x/24 for vlan 1 and 100. 2nd issue is you're calling the wrong acl on your nat statement  

your config should looks like:

ip nat inside source list 101 interface GigabitEthernet0/0 overload
!
access-list 101 permit ip 10.x.x.x. 0.0.0.255 any ==> Vlan 1 subnet 
!

access-list 101 permit ip 10.x.x.x. 0.0.0.255 any ==> Vlan 100 subnet
!

Thanks

PS: Please don't forget to rate and mark as correct answer if this answered your question  


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

I upload the switch and router configuration without masking the IP address for internal except for Public IP address.

I change the access-list with the above command and still not able to get any internet access from the switch. however I do able to get the dhcp ip with 10.1.1.100 with the client.

SupportLan you are awesome, internet now works. at first I forgot to fix the ip nat source list from 1 to 101.

Thank you all for the help.

You're welcome 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

I am going through the same problem, Unable to access internet from switch, PFA router and switch configure and do the needful

Hello,

 

there is one tiny thing in your configuration that kills your NAT, which is the 'log' keyword in your NAT access list. Remove that and try again:

 

So this statement:

 

permit ip 192.168.10.0 0.0.0.255 any log

 

needs to be changed to:

 

permit ip 192.168.10.0 0.0.0.255 any 

I have done this changes but no luck ,kindly do the needful

Pawan Raut
Enthusiast
Enthusiast

Its look Natting issue o router. Could you please check if NAT/PAT present on router for LAN (PC subnet) ?

sarathpa
Beginner
Beginner

Hi,

May i know where the router is connected to. Do you have access to that device. 

Also we need to the router interface ip address which is connecting to internet.

Deepak Kumar
Advocate
Advocate

Hi,

There is lots of confusion in your switch configuration and question.  

1. Is your Router is connected to switch on switch port Gig1/1

(This is L3 Switch and you assigned IP address on this port)

2. You mentioned "on router g0/1 configured IP address 10.0.0.0 255.255.255.0", If this same IP address is assigned to the router then you have wrong IP address configured on the router because it is Network ID.

Please share switch and Router configuration again with Public IP and Password hide (Only)

Advice: If my question 1 is right then It is suggestion to check LAN side routing on router. Because after the router you are using L3 device.

Regards,

Deepak Kumar

www.deepuverma.in

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers