[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 558
  • Last Modified:

How to configure a switchport on a Cisco 2800

I have a Cisco 2800 with a add-in 4 port switch card.  I would like to configure one of the interfaces as another Ethernet port.  Unfortunaley, I have to use a VLAN setup.  A sample VLAN configuration would be greatly appreciated!

Thanks
0
cburn32
Asked:
cburn32
  • 4
  • 3
1 Solution
 
that1guy15Commented:
to set up the VLAN if not done already:

vlan 100
decription sales

then to add a port to the vlan:

int f1/0
switchport mode access
swichport access vlan 100

this will configure the port as an access port and assign it to vlan 100. This will only be able to run on the 4 switch-card ports though.

is this what you were looking for?
0
 
cburn32Author Commented:
Yes...thank you.  Another question though.  If I wanted to assign an ACL how would I assign it to the VLAN?

Thanks
0
 
that1guy15Commented:
It depends on what you are want traffic you are wanting to block.

If you want to block traffic within a VLAN (never leaves a VLAN) then you will need to create a VLAN ACL.

If you want to block traffic between VLANs then you will need to create a SVI (layer 3 interface )for each VLAN and then apply the ACL to the SVI just as you would any other interface.

ex:
int vlan 100 <---creates the SVI
ip address x.x.x.x x.x.x.x <---assignes ip to VLAN and allows routing between this vlan and others
access-group 101 in <--- applies acl to vlan 100

0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
cburn32Author Commented:
Ok I will try applying the ACL to the interface the VLan is assigned too.  It seems my Vlan is not setup correctly though.  Here my config for the VLan:

interface FastEthernet0/0/0
 description Stutz Link
 switchport access vlan 2

interface Vlan2
 ip address 206.246.130.17 255.255.255.252

I cannot even ping the FE 0/0/0 interface.  I am obviously missing something.  Thanks again for any input!
0
 
that1guy15Commented:
Right. you are unable to ping f0/0/0 becuase it is a switchport (layer 2).

you should be able to ping your vlan interface though.

remimber the SVI (interface vlan2) and the f0/0/0 (vlan2 member port) are complety different ports.

Also your acl can only be applied to the VLAN2 interface not the f0/0/0 interface
0
 
cburn32Author Commented:
I should be able to ping the IP address I assigned to the Vlan, right?  Would I be able to use the Vlan address as a routable gateway?
0
 
that1guy15Commented:
Yes you should be able to ping the address assigned to the vlan interface. this interface is a fully functional layer three routable interface once an ip address is assigned to it.
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now