Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cisco 3560 L3 switch with multiple vlans.

Status
Not open for further replies.

desertscorpio

Technical User
Joined
Jul 24, 2006
Messages
8
Location
KW
Hi,

I have been trying to get this to work but cannot. I have a cisco soho 97 connected to the internet. I have bought a cisco 3560 L3 switch I have configured a single vlan(vlan 2) with a ip address and I want a host to access the internet.
Drawing
* Cisco soho(213.132.x.x)-----Cisco 3560(213.132.x.x)

1)I have configured a fastethernet port (f0/1) as L3 port on the 3560 which is directly connected to the modem.I can ping the internet from the switch.

2)I created a vlan(vlan 2) with a ip address of 192.168.2.1/24 and configure a pc with an ip of the same range.

3)I enabled ip routing and applied a default route:-
* ip route 0.0.0.0 0.0.0.0 213.132.x.x(ip of the modem).

From the switch there is no problem, the DNS is fine and I can ping outside but when I configure a another vlan and want hosts on that vlan to access the internet they cannot.I plan to have multiple vlans on that switch but to begin I wanted to check this it with one vlan.
Any ideas?
 
Here is the configuration of the 3560 l3 switch and the modem.
Switch:
ip subnet-zero
ip routing
ip name-server 194.54.234.234
ip name-server 194.54.234.235
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
no switchport
ip address 213.132.x.x 255.255.255.240
interface Vlan1
no ip address
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0
!
ip default-gateway 213.132.x.x
ip classless
ip route 0.0.0.0 0.0.0.0 213.132.x.x

Modem
ip route 0.0.0.0 0.0.0.0 10.1.4.157
ip route 192.168.2.0 255.255.255.0 10.1.4.157
ip http server
no ip http secure-server
!
ip nat inside source list 10 interface Ethernet0 overload
ip nat inside source list 20 interface Ethernet0 overload
!
access-list 10 permit 192.168.1.0 0.0.0.255
access-list 20 permit 192.168.2.0 0.0.0.255
 
Do a "show vlan " adn make sure both vlans show up and active . Don't see anywhere that you have applied vlan 2 to any ports .
 
yeah i have checked that up. The f0/2 port belongs to vlan 2 on my switch. I checked on the cisco Soho 97 ADSL router it doesnt support vlans. Does anyone know anything about this?
 
If you have the 3560 configured as a layer-3 device (the port) why do have the SOHO router still? Why don't you just plug your Cable/DSL modem directly into the L3 switchport?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top