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
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.
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 ...
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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.