cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1293
Views
15
Helpful
3
Replies

not Accessing internet after vlan configuration

vlan database
vlan 22,33
exit
voice vlan oui-table add 0001e3 Siemens_AG_phone________
voice vlan oui-table add 00036b Cisco_phone_____________
voice vlan oui-table add 00096e Avaya___________________
voice vlan oui-table add 000fe2 H3C_Aolynk______________
voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone
voice vlan oui-table add 00d01e Pingtel_phone___________
voice vlan oui-table add 00e075 Polycom/Veritel_phone___
voice vlan oui-table add 00e0bb 3Com_phone______________
bonjour interface range vlan 1
hostname switch41f6b0
ip telnet server
!
interface vlan 1
ip address 192.168.0.254 255.255.255.0
no ip address dhcp
!
interface vlan 22
ip address 192.168.1.2 255.255.255.0
!
interface vlan 33
ip address 192.168.33.1 255.255.255.0
!
interface fastethernet1
switchport mode access
switchport access vlan 33
!
interface fastethernet2
switchport mode access
switchport access vlan 33
!
interface fastethernet3
switchport mode access
switchport access vlan 33
!
interface fastethernet4
spanning-tree disable
switchport mode access
switchport access vlan 33
!
interface fastethernet5
switchport mode access
switchport access vlan 33
!
interface fastethernet6
switchport mode access
switchport access vlan 33
!
interface fastethernet7
switchport mode access
switchport access vlan 33
!
interface fastethernet8
switchport mode access
switchport access vlan 33
!
interface fastethernet9
switchport mode access
switchport access vlan 33
!
interface fastethernet10
switchport mode access
switchport access vlan 33
!
interface fastethernet13
switchport mode access
switchport access vlan 22
!
interface fastethernet14
switchport mode access
switchport access vlan 22
!
interface fastethernet15
spanning-tree disable
switchport mode access
switchport access vlan 22
!
interface fastethernet16
switchport mode access
switchport access vlan 22
!
interface fastethernet17
switchport mode access
switchport access vlan 22
!
interface fastethernet18
switchport mode access
switchport access vlan 22
!

 

exit
ip default-gateway 192.168.1.1
ip route 192.168.1.0 /24 192.168.1.1
ip route 192.168.33.0 /24 192.168.1.1
switch41f6b0#

 

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

what VLAN configuration you added - explain more.

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Sir i created two vlans 22 and 33  i configured 33 towards my router and 22 to access my local lan 

I added default gateway and add local network by static route it ping between VLans but it can not connect to internet

Orginal config was :

 

interface vlan 1
ip address 192.168.0.254 255.255.255.0
no ip address dhcp

 

===

 

you have added below route :

 

ip default-gateway 192.168.1.1
ip route 192.168.1.0 /24 192.168.1.1
ip route 192.168.33.0 /24 192.168.1.1

 

 

Since everything was default VLAN it was working - (Looks like one of the port connected to Router also changed to Access port belong to VLAN 22 or 33 - that is the reason it was broken as per my understanding).

what port connected to the router, that port needs to be a trunk port- as per the config i do not see any trunk port?

what router is this connected to? what is the IP address of the router ?

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help