1811 8-port switch

Unanswered Question
Aug 27th, 2007
User Badges:

Hey all. I usually use 1750 routers and connect E0 to the WAN link and FA0 to the LAN ip.


Now, I have an 181 with 2 FA ports and an 8 port built in switch. How can I put all 8 ports into a vlan sharing the same ip range so that I don't have to use an external switch directly plugged into fa1?


Assume that fa1 is ip 192.168.1.2/24.


Thanks


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Jon Marshall Mon, 08/27/2007 - 22:58
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Hi


router(config)# vlan database

router(vlan)# vlan 10 media ethernet name vlan10

router(vlan)# exit


This will create your vlan.


Create your layer 3 interface for vlan 10


int vlan 10

ip address 192.168.1.2 255.255.255.0

no shut


to add ports to that vlan


int fa2

switchport mode access

switchport access vlan 10

spanning-tree portfast


HTH


Jon

a.cruea1980 Tue, 08/28/2007 - 10:37
User Badges:
  • Bronze, 100 points or more

All the switch ports are in VLAN1 by default, but this is a more secure method.


And FYI, in global config mode, you can do "int range fa2 - 9" and edit all 8 switch ports at once.


Saves a little time. And only use the portfast command if you're sure no one will be plugging in any switches downstream.

Actions

This Discussion