08-27-2014 12:54 PM - edited 03-07-2019 08:33 PM
I am trying to connect a couple of clients to the internet but the problem is that they can ping the vlan of the ehwic card of the router but not the actual wan port and beyond that thus not getting a internet connection.
Any thoughts?
08-27-2014 02:03 PM
Below is the config you can paste into your devices that should make it work.
==Router
no ip route 0.0.0.0 0.0.0.0 Vlan1
no ip route 0.0.0.0 0.0.0.0 Vlan2
!
ip route 0.0.0.0 0.0.0.0 77.160.176.32
!
interface g0/0
ip nat outside
!
interface vlan 1
ip nat inside
!
interface vlan 2
ip nat inside
!
ip access-list standard NAT
permit 192.168.10.0 0.0.0.255
permit 10.1.10.0 0.0.0.255
!
ip nat inside source list NAT interface g0/0 overload
!
==Switch
no ip default-gateway 77.160.176.32
ip default-gateway 192.168.10.1
!If VLAN2 is needed on switch for example:
!vlan 2
!interface fa0/2
!switchport access vlan 2
08-30-2014 07:43 AM
The ip route won't work because it's the router itself. Also, why is the access list mask 0.0.0.255 and not 255.255.255.0?
08-30-2014 08:14 AM
My mistake. I meant to put after the ip route change this to whatever your ISP default gateway is. The interface in your config is set to 255.0.0.0 which could be anything. Typically you would get a /30 from a provider unless they are handing out single IP addresses from a larger block. On the ACL part it takes wildcard masks which is why I used 0.0.0.255. If you can figure out your ISP gateway and enter that in as the ip route statement then it should work no problem.
08-30-2014 01:34 PM
Thanks for the help so far! The switch can now ping outside the router but there is still one problem. The clients can't even ping to the router atm, they can to the switch though. The router is able to ping everything on our network and the switch too, but it seems if the clients can't get through the switch, any ideas?
08-30-2014 01:57 PM
08-30-2014 02:19 PM
They are on vlan 1, that's the strange part about it.
08-30-2014 03:01 PM
08-30-2014 03:09 PM
No, that certainly is not the problem.
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: