04-01-2011 03:10 AM - edited 03-06-2019 04:23 PM
I have a problem with Cisco Catalyst 2960 Series switches, I created a vlan 1 to 10 and a subnet with a DHCP server that hands out IP address that works but can not connect to the ISP who can help with so I'm using the internet switches ?
04-01-2011 03:18 AM
I dont get what you mean? you created 10 vlans? or 2 vlans 1 and 10?
Where did you create them? The 2960 will not route traffic, you will need to connect them to a layer 3 device to hit the internet.
04-01-2011 03:24 AM
the switches is connected to the modem that connects to the ISP
on the switches, there is an active DHCP server which hands out ip address but the switch ports that works but I can not connect to the ISP, have access-lists applied but that is not how you let your internet traffic through the switches
04-01-2011 03:34 AM
How does the modem know about the address on the switches in each VLAN?
How does your traffic route to the ISP modem?
where is your gateway for each VLAN? it should be on a layer 3 device
04-01-2011 03:42 AM
If I switch the default much less than the switches get a public IP address of the modem and works, then I can on the internet, but if I use a private ip address vlan I can no internet connection
04-01-2011 03:48 AM
What you need is a Layer 3 switch or create sub-interfaces on a router for each VLAN.
You will not hit the intenet for 2 reasons, you have no way to route from a privte address to the public address and if you do route you will need to NAT the traffic on the router/modem so that the traffic has a return path from the internet.
Get a cisco 800 or 1800 series router to sit in front of your 2960 and connect that to the ISP modem.
04-01-2011 03:58 AM
how can a public IP address to assign a vlan, so you can connect to the ISP, and that you can leach into the remote switches
04-01-2011 04:22 AM
You cant do that!
If you had enough public IP address and assigned it to a VLAN and then each PC on the network had a public IP address, you could route out to the internet. But that brings security issues, RIPE or IONA will get you to change it for not using IP address's correctly.
To get this working correctly.
you will need to create sub-interfaces on a router 1800 series, connect that to a trunk port on the 2960, assign access ports as you need for each VLAN.
Traffic will leave the PC's hit the switch then on to the router, from there route the traffic to the outside and NAT it so that traffic can flow back to the router and back to your PC's
04-01-2011 04:30 AM
follow Noel's instructions
04-01-2011 04:57 AM
No that is not the intention is the intention to connect to the router to the switches and nothing to do with a vlan as a public ip address in order to connect to the ISP and I just can remotely switch on liquors via telnet and ssh to my studies
04-01-2011 06:01 AM
Sorry dude, I may be getting totally confused in what you are looking for, maybe I'm misunderstanding your english
But understand the basics.
2960 are layer 2 switches and will not route traffic.
Private IP address are not routable on the internet.
All traffic routed to the internet needs to be NATted behind a routable public IP address.
In order to get a VLAN to talk to the internet you need a private address connected to a layer 3 device to routed/natted to the public address then off to the internet
04-01-2011 06:08 AM
no, it is the public ip address that I want to connect to ISP, get it a layer 2 switches, that is okay but through the public ip address would it?
04-01-2011 06:18 AM
you can connect a switch using the default vlan (1) and connect it to the modem and connect a PC to it. Give the LAN interface of the modem a public IP address and the PC a public IP and it will work.
you wont be able to create more then 1 vlan unless you have public IP on different subnets, DHCP cant work as that gives out private address, unless you own your own ISP.
what you need is private address's to route to the public then on to the ISP, which means you need a router or layer 3 device.
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