11-18-2010 01:14 AM - edited 03-04-2019 10:29 AM
Hi all,
I got a little problem when configuring a switch Cisco Catalyst 3750. Maybe, it is a kind of easy for you guys, but I couldn't do it. So, I'm asking from you.
Here is my problem. There are two vlans on the switch. Vlan 1 is connected to internet, and Vlan 2 port is involved to LAN A. My question: how can any client of LAN A access to Internet through the switch by using Vlan 1 connection? If you have any docs about that, share me URLs pls.
Thank you,
Bat
11-18-2010 01:47 AM
VLAN 2 Users should have as their gateway the ip of the vlan 2 interface on the switch. On the switch you will have to add a static default route to the internet through the ip that connects to the internet on vlan 1.
11-18-2010 01:57 AM
Thanks your comment,
I did exactly what u said.
VLAN 1 has IP address such as 10.1.1.2, and gateway is 10.1.1.1
VLAN 2 has IP address such as 192.168.2.1 which is the gateway of LAN A.
interface vlan 1
ip address 10.1.1.2 255.255.255.0
interface vlan 2
ip address 192.168.2.1 255.255.255.0
ip route 0.0.0.0 0.0.0.0 10.1.1.1
ip default-gateway 10.1.1.1
that is configured on the switch.
So, is there anything should I do?
Thanks
11-18-2010 02:06 AM
With these settings it should work. Do a show ip route and see what it gets. Is ip routing enabled in your switch (it should be).
ip default gateway is only for the switch management traffic you do not need that sent to the internet.
11-18-2010 05:06 AM
What is configured on your router where the WAN interface is? Are you Natting Vlan 2 for your user's to get out? The interface from the 3750 to your router, is it trunked, routed or have a sub-interfaces? On the router does it have both subnets in the routing table? Are you using static routes on the router or dynamic? Is there a path for LAN A?
A drawing might be helpful and a basic config of the router could help.
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