06-21-2018 01:40 AM - edited 03-08-2019 03:25 PM
Hello!
I need your help. I configured a Layer 3 Cisco 3560 Switch with VLANs 10,20,30. Each VLAN has been configured to provide DHCP services. They are able to issue IP address to my PC’s but I don’t have internet and they are not able to ping each other. Do I need a router to get internet?
Note: my Layer 3 switch is connected to a Layer 2 Switch that’s serving as ISP.
06-21-2018 07:04 AM
If we knew more about your environment we might be able to provide better responses. You describe having a layer 3 switch. Does that mean that you have used the command ip routing on the switch? If so then it should be able to route between vlans. If you have not used the ip routing command then this would explain why vlans are not able to communicate with each other.
You have not told us what IP addressing and subnets are used on these vlans. Would we be correct in believing that they are private addressing (like 10.0.0.0, 172.16.0.0, and 192.168.0.0)? If so then you need address translation to get internet access. Either you will need a router for that or your ISP must agree that they will provide NAT for your traffic.
HTH
Rick
06-21-2018 12:21 PM
06-21-2018 05:27 PM
You need to specify a DNS server in the scopes and the ISP router will need to know the routes to the private IP address space you are using. Not sure of your situation, but that has to happen for things to work. Maybe if you could provide more details we may be able to provide more assistance.
06-22-2018 10:22 AM
I assume that this is a typo but thought we should clarify it
IP DHCP pool vlan 20
Network 192.168.20.0 255.255.255.0
Default-router 192.168.30.1
The original post mentioned two issues 1) not have Internet 2) can not ping each other. I suggest that we work on these separately. Which one would you want to do first?
HTH
Rick
06-28-2018 05:05 AM
Hi Rick,
I changed my configuration and included a Router in my network. I configure DHCP on the Router and it's able to issue IP addresses to PC's but no Internet access. The PC's are able to ping the router but can not ping other PC's on the network. I have not configure VLAN yet, I want to figure out the internet issue first. Here is a show run from my router:
06-28-2018 10:28 AM
Thanks for the information. I agree that we will prioritize solving the issue with Internet access and when that is resolved we will look at issues about pinging between hosts in the network. For Internet access there frequently are two important things in the config. The first is address translation and I see that you have configured address translation with the Ether0/1 as the inside network and Ether0/0 as the outside. The second important thing is a default route. And I do not see a default route in your config. I do see that you are running EIGRP on both interfaces and it might be possible that you are learning a default route via EIGRP. Would you post the output of show ip route? That will clarify whether there is a default route or not.
Also can you tell us what is connected on Ether0/0? Is this your gateway to the Internet?
HTH
Rick
06-28-2018 11:00 AM
06-28-2018 11:37 AM
Thank you for the additional information. It does show that the router has a default route. That default route shows as a static route but there is no matching static route in the config that you posted. I am assuming that the default route was learned in the DHCP negotiation for Ether0/0.
As far as you know is the Internet gateway connected to Ether0/0 working?
There are a few things that I would like to check on. Can the router ping the next hop of the default route 10.31.198.1? Can the router ping an address in the Internet (for example ping 8.8.8.8)?
HTH
Rick
07-02-2018 03:03 PM
07-08-2018 02:39 PM
Your post says see attached but I do not see any attachment.
To have three vlans and to have PCs on each vlan and to have the PCs ping each other you would follow these steps:
1) configure the vlans on the switch.
2) assign an IP subnet for each vlan.
3) configure the switch to assign switch ports to each vlan.
4) connect PCs to the vlans.
5) configure each PC so that it has an IP address in the appropriate subnet with the appropriate subnet mask and appropriate gateway. You might configure the PCs manually or you might set up DHCP for this.
6) provide inter vlan routing. Ordinarily I would suggest connecting the switch to the router using a trunk and have the router do the inter vlan routing. But when the router has Ethernet interfaces (instead of FastEthernet) I am not sure that it will support vlan sub interfaces. So it is probably best to enable ip routing on your switch and have the switch do inter vlan routing.
HTH
Rick
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