06-12-2012 11:04 PM - edited 03-07-2019 07:13 AM
Dear All,
We have cisco 3550 switch i have configured 3 vlans in this switch vlans are not able to accessing internet
Please find the attached configuration
06-13-2012 12:12 AM
Hi Narsimha,
A very obvious question first, are you able to ping your gateway IP address ??
If yes, that can you share the config of your gateway device...
Also, as seen in attached diagram, you haven't configured any port for any specific vlan, so by default all the vlans would be in Vlan 1...
Regards,
Smitesh
06-13-2012 09:50 PM
Hi Smitesh,
I have configure 3 ports for vlans port no 0/5,0/6/,0/7 i have given route to gateway 192.168.2.1 but vlans not able to accessing internet
nterface FastEthernet0/1
no switchport
ip address 192.168.2.2 255.255.255.0
!
interface FastEthernet0/2
switchport mode access
!
interface FastEthernet0/3
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport access vlan 100
switchport mode access
!
interface FastEthernet0/6
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/7
switchport access vlan 300
switchport mode access
!
06-13-2012 10:46 PM
Hi Narsimha,
Did you add routes to those VLANs in your gateway? If you didn't then your gateway would not know how to return traffic to computers in those three VLANs.
To verify whether it's the case, run below pings from your 3550:
ping 192.168.2.1 source 172.16.17.1
ping 192.168.2.1 source 172.16.18.1
ping 192.168.2.1 source 172.16.19.1
Hope it helps.
06-13-2012 11:42 PM
Hello friends
Gateway should have these statements
ip route 172.16.17.0 255.255.255.0 192.168.2.2
ip route 172.16.18.0 255.255.255.0 192.168.2.2
ip route 172.16.19.0 255.255.255.0 192.168.2.2
interface FastEthernet0/1
no switchport
ip address 192.168.2.2 255.255.255.0
Be sure you can ping outside from source fa0/1
Regards
Sabby
06-15-2012 10:48 AM
Hi,
Thanks for replay I have configured default route in switch
ip route 0.0.0.0 0.0.0.0 192.168.2.1
switch able to accessing internet but vlan user not able to accessing Internet vlans are communicating each other & ableto ping 192.168.2.2 also
Regards
Narsimha
06-13-2012 11:37 PM
Reviewed your attached zip file for your config.
I assume that the 3550 switch is connected to a router (i.e., your default gateway), though this isn't stated in your description.
You have 3 different VLANs on int fa0/5, fa0/6, and fa0/7, respectively.
I do not see your config setup for InterVLAN routing; thus you would require one of your interfaces to be setup as a trunking port ---> this should be the interface that connects to your router (i.e., default gateway).
Simple test: workstation on int fa0/5 cannot ping workstation on int fa0/6 or int fa0/7 since each of these interfaces are in different VLANs. To pass traffic amongst different VLANs, one requires a trunking port; this holds true to also reach your default gateway.
Another approach is to setup InterVLAN routing since the 3550 is a Layer 3 switch.
06-16-2012 04:28 AM
Hi,
Your router connected to switch should have below routes as Sarbjit mentioned
ip route 172.16.17.0 255.255.255.0 192.168.2.2
ip route 172.16.18.0 255.255.255.0 192.168.2.2
ip route 172.16.19.0 255.255.255.0 192.168.2.2
and make sure you have proper Nat statements for all 172.16.x.x networks on the gateway router...
HTH
Hitesh Vinzoda
Pls rate useful posts
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