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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VLAN Setup Help

Status
Not open for further replies.

thec0dy

IS-IT--Management
Apr 16, 2010
41
US
I have never really setup VLANs before from scratch. I have a Cisco 881 Router and 2 Cisco Switches (SG200-50 and SF300-48P). I need to have two vlans. Vlan1 (10.100.20.0) and Vlan21 (10.100.21.0). Both these should be able to talk to each other for various reasons. The Cisco router is configured with two interfaces. FA0 using VLAN1 and FA1 using VLAN21 currently. I have VLAN1 plugged into G1 on the SG200-50. I have VLAN2 plugged into G4 on SF300-48P. Now, I know this probably isn't a good setup. Each VLAN will work on their own switch, but I want to be able to use both VLANs on each switch. I tried linking the switches together, but that ended up in no connectivity. It may have been due to a loop since VLAN1 and VLAN21 can talk to each other. Can someone help me figure out the best way of doing this. It should be simple for someone experienced in networking. I have attached a diagram to help make sense of the matter. Thanks!


881w Router Config (Main Things)

!
interface FastEthernet0
description .20 Interface
switchport mode trunk
no ip address
!
interface FastEthernet1
description .21 Interface
switchport access vlan 21
no ip address
!
interface Vlan1
description .20 Interface
ip address 10.100.20.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
zone-member security in-zone
ip tcp adjust-mss 1452
!
interface Vlan21
description .21 Interface
ip address 10.100.21.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
zone-member security in-zone
!
 
if your diag is correct then to switch 2 you are only sending vlan 21 .. and not a trunk (vlan 1 and vlan 21) ...

fix that.


We must go always forward, not backward
always up, not down and always twirling twirling towards infinity.
 
Yup, like L2 trunk

and switchport trunk encaps dot1q 1 (native, optional)

ip access-list extended IP-Options-and-Powerball
deny ip any any winning-powerball-ticket
permit ip any any option any-options
!
class-map ACL-Options-and-Powerball
match access-group name IP-Options-and-Powerball
!
policy-map CoPP-POLICY
class ACL-Options-and-Powerball
drop
!
control-plane
service-policy input CoPP-POLICY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top