08-27-2007 01:37 PM - edited 03-03-2019 06:29 PM
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
08-27-2007 10:58 PM
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
08-28-2007 10:37 AM
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.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: