10-15-2019 01:38 PM
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
10-15-2019 01:43 PM
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...
10-15-2019 01:43 PM
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
10-15-2019 01:43 PM
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.
10-15-2019 02:17 PM
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
10-15-2019 02:25 PM
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
10-15-2019 04:10 PM
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
10-15-2019 02:26 PM - edited 10-15-2019 02:28 PM
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
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