Howto:LLDP on Juniper EX Switches for innovaphone devices: Difference between revisions

From innovaphone wiki
Jump to navigation Jump to search
Line 18: Line 18:
With Juniper switches you can do this with an interface range including the ports which are used for the clients and VoIP phones.  
With Juniper switches you can do this with an interface range including the ports which are used for the clients and VoIP phones.  


<code>
    interface-range LLDPorts {
interface-range LLDPorts {
         member-range ge-0/0/0 to ge-0/0/23;
         member-range ge-0/0/0 to ge-0/0/23;
         unit 0 {
         unit 0 {
Line 30: Line 29:
         }
         }
     }
     }
</code>
Make sure, that you define an acces port only with the Client VLAN untagged.
Make sure, that you define an acces port only with the Client VLAN untagged.
Now you have to configure the two vlans used for the phones and clients:
Now you have to configure the two vlans used for the phones and clients:


<code>
  vlans {
vlans {
      Clients {
    Clients {
          vlan-id 2;
        vlan-id 2;
      }
    }
      VoIP {
    VoIP {
          vlan-id 4;
        vlan-id 4;
      }
    }
  }
}
 
</code>


Then you have to define the lldp-med protocol on the ports which you would liket to use with your phones and clients (in that case is is the above defines interface-range LLDPPorts, but you can also specify any other port)
Then you have to define the lldp-med protocol on the ports which you would liket to use with your phones and clients (in that case is is the above defines interface-range LLDPPorts, but you can also specify any other port)


<code>
 
protocols {
  protocols {
    lldp-med {
      lldp-med {
        interface LLDPorts;
          interface LLDPorts;
    }
      }
}
  }
</code>
 


At last you have to define which voip Vlan you would like to use on these ports:
At last you have to define which voip Vlan you would like to use on these ports:


<code>
 
ethernet-switching-options {
  ethernet-switching-options {
    voip {
      voip {
        interface LLDPorts {
          interface LLDPorts {
            vlan VoIP;
              vlan VoIP;
            forwarding-class assured-forwarding;
              forwarding-class assured-forwarding;
        }
          }
}
  }
</code>
 


After an reboot you should check the chosen VLAN on your phone:
After an reboot you should check the chosen VLAN on your phone:

Revision as of 15:54, 31 July 2014

Applies To

This information applies to

  • IP 3000, V10

Build 01-4001 and later.


More Information

Problem Details

System Requirements

Installation

You have two sperate VLANs: - Clients (VLAN-ID 2) - VoIP (VLAN-ID 4) The goal is that the VoIP Devices are using vlan VoIP (ID 4) and normal clients are using vlan VoIP (ID 2) on the same switch port. With Juniper switches you can do this with an interface range including the ports which are used for the clients and VoIP phones.

   interface-range LLDPorts {
       member-range ge-0/0/0 to ge-0/0/23;
       unit 0 {
           family ethernet-switching {
               port-mode access;
               vlan {
                   members Clients;
               }
           }
       }
   }

Make sure, that you define an acces port only with the Client VLAN untagged. Now you have to configure the two vlans used for the phones and clients:

  vlans {
      Clients {
          vlan-id 2;
      }
      VoIP {
          vlan-id 4;
      }
  }


Then you have to define the lldp-med protocol on the ports which you would liket to use with your phones and clients (in that case is is the above defines interface-range LLDPPorts, but you can also specify any other port)


  protocols {
      lldp-med {
          interface LLDPorts;
      }
  }


At last you have to define which voip Vlan you would like to use on these ports:


  ethernet-switching-options {
      voip {
          interface LLDPorts {
              vlan VoIP;
              forwarding-class assured-forwarding;
          }
  }


After an reboot you should check the chosen VLAN on your phone:

Configuration

Known Problems