cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1036
Views
0
Helpful
7
Replies

Cannot access internet from L3 switch

moman62
Level 1
Level 1

Hello,

I have a cisco 3750E switch and a cisco 2921 router, I have configured the router with information to connect with my isp. On my switch, I enabled a port with the no switch command so that I could use it for routing, I am unable to access the internet from my pc's

 

3750E Switch:

 

int gi 1/0/40

no switchport

ip address 192.168.1.40 255.255.255.0

ip route 0.0.0.0 0.0.0.0 192.168.1.1

7 Replies 7

Hello,

 

on the router, you need to make sure that the networks connected to the switch are included in the NAT translation access list.

 

Post the full configurations of both the router and the switch...

luis_cordova
VIP Alumni
VIP Alumni

Hi @moman62 

 

Queries:
Is your LAN network, connected to the switch, included in the NAT parameters?
Does the router have a route to reach your LAN, connected to your switch?

 

Regards

Hello

is your rtr performing NAT for your lan subnet if not it needs to as your that subnet isn’t a public routable address.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

2921 Router:

int g0/0

ip address 192.168.1.x 255.255.255.0

ip nat inside

 

int g0/1

ip address 27.81.25.30 255.255.255.x - ISP

ip nat outside

 

ip route 0.0.0.0 27.81.25.30

 

access-list

192.168.1.x 255.255.255.0 allow

 

 

Hello,

 

the access list needs to include the subnets of the client PCs connected to the switch. If these are 192.168.x.x networks, change the access list to e.g.:

 

access-list 1 permit 192.168.0.0 0.0.255.255

Hi @moman62 

 

Try this:

 

2921 Router:

int g0/0

ip address 192.168.1.1 255.255.255.0

ip nat inside

 

int g0/1

ip address 27.81.25.30 255.255.255.x - ISP

ip nat outside

 

ip route 0.0.0.0 <next hop>

ip route <network connected to your switch> 192.168.1.40

 

access-list

<network connected to your switch> allow

 

Regards

Hello

Can you amend the following:

no ip route 0.0.0.0 27.81.25.30

ip route 0.0.0.0 27.81.25.x.<—- This will be   Your next hop of the your router 

ip nat inside source list < access-list > interface gig0/1


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card