computing
  • 0

Copy Port Config

  • 0

Can anyone please kindly share the command to copy a ports config to another port, Basically I need a command to be able to make a port work be it a phone or a PC is plugged into the port on the switch…

thanks in advance.

Share

1 Answer

  1. You should not be making the ports trunk ports. A trunk port is used to interconnect network appliances and carries all VLAN’s with VLAN 1 as the PVID.

    Each port should only have one VLAN assigned to it. There is only one exception to that (other than a trunk port) that comes to my mind and that’s if you can plug a computer into your VoIP phone.

    We can with ours and if 20 is VoIP and 40 is Data I would assign both to the port and make 20 the PVID since it’s the device plugged directly into the port (the PC plugs into the phone).

    Setting up a port for VoIP:

    interface GigabitEthernet3/0/5
    description Phone – CLAN & TLAN
    switchport access vlan 20
    mls qos trust device cisco-phone
    mls qos trust dscp
    spanning-tree portfast

    Setting up the same port for Data:

    interface GigabitEthernet3/0/5
    description Data
    switchport access vlan 40
    spanning-tree portfast

    Finally, setting up the port for both VLAN’s:

    interface GigabitEthernet3/0/5
    switchport access vlan 20
    switchport access vlan 40
    mls qos trust device cisco-phone
    mls qos trust dscp
    spanning-tree portfast

    The above are examples only.

    To be honest, I believe you’re in over your head here and should probably hire a professional.

    It matters not how straight the gate,
    How charged with punishments the scroll,
    I am the master of my fate;
    I am the captain of my soul.

    ***William Henley***

    • 0