Voip Port configuration

nelnel Member Posts: 2,859 ■□□□□□□□□□
Hi Guys,

Just lightly reading through the bcmsn book on my dinner break and wanted some clarification on this.

Say you are trunking between a port and an IP phone. When using the "switch voice vlan X" command it puts the voice traffice through that vlan and it defaults the data to the native vlan. So if you wanted to change that data vlan would you have to statically use "switch trunk native vlan X" on the port or could you just use the good old "switch access vlan x" to change the data vlan once you have created the vlans etc?

I was going to try this at home but i wont be in till another 6 hours or so andits driving me crazy :D
Xbox Live: Bring It On

Bsc (hons) Network Computing - 1st Class
WIP: Msc advanced networking

Comments

  • networker050184networker050184 Mod Posts: 11,962 Mod
    You would just change the access vlan on the port.
    An expert is a man who has made all the mistakes which can be made.
  • nelnel Member Posts: 2,859 ■□□□□□□□□□
    Thanks networker. My mind is now at rest!
    Xbox Live: Bring It On

    Bsc (hons) Network Computing - 1st Class
    WIP: Msc advanced networking
  • nice343nice343 Member Posts: 391
    There are 2 ways of configuring ports that connect IP phones to the switch.

    The first one is by configuring it as an access port and the second is by making it a trunking port.

    either way works

    the
    switchport trunk native vlan X
    
    command should represent the data vlan and also make sure that vlan is tagged as such when doing router-on-a-stick
    My daily blog about IT and tech stuff
    http://techintuition.com/
  • nelnel Member Posts: 2,859 ■□□□□□□□□□
    nice343 wrote:
    There are 2 ways of configuring ports that connect IP phones to the switch.

    The first one is by configuring it as an access port and the second is by making it a trunking port.

    either way works

    the
    switchport trunk native vlan X
    
    command should represent the data vlan and also make sure that vlan is tagged as such when doing router-on-a-stick

    So you could do it either way of?:

    switch voice vlan x
    switch access vlan x

    or

    switch trunk encap dot1q
    switch mode trunk
    switch voice vlan x
    switch trunk native vlan x

    Something along the lines of that?
    Xbox Live: Bring It On

    Bsc (hons) Network Computing - 1st Class
    WIP: Msc advanced networking
  • wagnerbmwagnerbm Member Posts: 38 ■■□□□□□□□□
    If you have a pc behind the phone then you would want it to be a access vlan:
    switch voice vlan x
    switch access vlan x

    If not then the config does work:
    switch trunk encap dot1q
    switch mode trunk
    switch voice vlan x
    switch trunk native vlan x - You only want this if you are chaning the native vlan

    But you will want to add: switchport trunk allowed vlan 2

    Does that make sense to you?

    :D
  • nelnel Member Posts: 2,859 ■□□□□□□□□□
    wagnerbm wrote:
    If you have a pc behind the phone then you would want it to be a access vlan:
    switch voice vlan x
    switch access vlan x

    If not then the config does work:
    switch trunk encap dot1q
    switch mode trunk
    switch voice vlan x
    switch trunk native vlan x - You only want this if you are chaning the native vlan

    But you will want to add: switchport trunk allowed vlan 2

    Does that make sense to you?

    :D

    So basically what i said icon_lol.gif

    Why would you have to put ......allowed vlan 2? would this not be allowed by default like normal trunk ports?
    Xbox Live: Bring It On

    Bsc (hons) Network Computing - 1st Class
    WIP: Msc advanced networking
  • wagnerbmwagnerbm Member Posts: 38 ■■□□□□□□□□
    You won't need too do the last allow statement. You just need to make sure the native vlan is the same on both ends.

    I was multi-tasking at the time and it didn't go well. icon_redface.gif
  • nelnel Member Posts: 2,859 ■□□□□□□□□□
    wagnerbm wrote:
    You won't need too do the last allow statement. You just need to make sure the native vlan is the same on both ends.

    I was multi-tasking at the time and it didn't go well. icon_redface.gif

    ha! i knew what you meant icon_wink.gif

    Thanks for the input.
    Xbox Live: Bring It On

    Bsc (hons) Network Computing - 1st Class
    WIP: Msc advanced networking
Sign In or Register to comment.