Options

Two switches, two VLANs

Aaron.StonesAaron.Stones Member Posts: 6 ■□□□□□□□□□
Hi

My question is:

How to cable two switches -2950, with two vlans and how to configure trunking and on what ports? Do I have to loop switches?

Replays very welcome. Thanks.


Example:

Connect switch1 port fa0/24 and switch2 port fa 0/1 with crossover cable.
Configure switch2 port fa 0/1 with command - switchport mode trunk.
Will this work?

Comments

  • Options
    WebmasterWebmaster Admin Posts: 10,292 Admin
    You only need to use one cable (that's the whole idea of trunking) and you actually don't need to configure them. The interfaces default to 'dynamic desirable' (ie. run show interface trunk module 0 or show interface switchport module 0) which means the switches will use DTP to actively try to convert the link into trunk. But yes, you can use the switchport mode trunk command to explicitely configure it as a trunk. You will also want to configure a VTP domain name.

    Click here for more info.
  • Options
    Aaron.StonesAaron.Stones Member Posts: 6 ■□□□□□□□□□
    Thanks for info and the link.
  • Options
    Paul BozPaul Boz Member Posts: 2,620 ■■■■■■■■□□
    Is it good practice to manually configure trunked ports using the switchport trunk command? I've always done that for the sake of having it "propperly set up" but I know it works either way.
    CCNP | CCIP | CCDP | CCNA, CCDA
    CCNA Security | GSEC |GCFW | GCIH | GCIA
    pbosworth@gmail.com
    http://twitter.com/paul_bosworth
    Blog: http://www.infosiege.net/
  • Options
    HumperHumper Member Posts: 647
    Paul Boz wrote:
    Is it good practice to manually configure trunked ports using the switchport trunk command? I've always done that for the sake of having it "propperly set up" but I know it works either way.

    I have always forced my trunks :D If you want them to always be trunks there is no reason (IMO) to have dynamic desirable.

    command structure to trunk unconditionally and to disable DTP

    switchport mode trunk
    switchport trunk encapsulation dot1q/isl <
    not needed on 2950 but used on 3550
    switchport nonegotiate

    then there are commands for the native vlan and which vlans you'd like to cross the trunk
    Now working full time!
Sign In or Register to comment.