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

Implementing 2Vlans for VIOP and data 1

Status
Not open for further replies.

sdtech1

Technical User
Apr 24, 2007
2
US
Can someone send a sample config of a switch for VLAN implementation?? Please
 
You should probably provide a bit more info about what you're trying to do. Do you want these vlans routed? How many do you want? Are there other switches in this mix that are in production, or are you just setting up a sort of lab environment?
 
Well, I guess I ignored the subject, which gives me some of the info I asked for. Do you need a whole config or just the portions for setting up vlans? Below is the vlan portion:

To set up multiple vlans, you simply do:

config terminal
vlan 1
vlan 2
...
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0

Then add port members to these vlans with:

Interface Fastethernet0/1
switchport access vlan 1

Interface Fastethernet0/2
switchport voice vlan 2

You may also want to add "helper-addresses" and other configurable options for the vlans, but without more info on what your network is like...kind of hard to do.

If you do need the entire config, post your model and IOS version.
 
Thanks chipk

Getting more info for you.

Looks the same as the config we did last week on a catalyst 2924 XL, but will it be the same for ASA 5510?
 
I don't have much hands-on with that appliance, but I'm sure someone around here does.
 
If you want to route between the vlans you must activate routing on the switch :

#conf t
#ip routing
 
Am I mistaken or in the subject line you are also asking about VOIP?

Are you looking to provide both VOICE and data over a single port? If so, the above won't suffice. You will need to do auxiliary VLAN's too. Not to mention, is POE in play here, 802.3af, 802.1p yadda yadda yadda ...

We need more info :)
 
Also, on the asa platform, it is not the same. On the asa platform based on the model...the 5505 works like a switch, but the 5510 and above, you will need to configure subinterfaces on the asa and the asa assumes a trunk link to a switch off of the interface. In short the 5510 and above see their ports as routed interfaces whereas the 5505 sees them as switchports.

-Andrae
 
How do you make sure that vlan 1 is assign the correct subnet as opposed to Vlan2 - is it because of the subnet in the interface vlan 1 command- I`m coming from this from a DHCP angle how the DHCP provide the different IP address based upon Vlan and Scope

ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0

Then add port members to these vlans with:

Interface Fastethernet0/1
switchport access vlan 1

Interface Fastethernet0/2
switchport voice vlan 2

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top