ESR series service routers.ESR-Series. User manual
Solution:
First create VLAN 10 and 20 and configure the gi 1/0/1 interface in the trunk mode:
esr(config)# vlan 10,20
esr(config-vlan)# exit
esr(config)# interface gigabitethernet 1/0/1
esr(config-if-gi)# mode switchport
esr(config-if-gi)# switchport mode trunk
esr(config-if-gi)# switchport trunk allowed vlan add 10,20
esr(config-if-gi)# exit
Enable LLDP and MED capability in LLDP globally on the router:
esr(config)# lldp enable
esr(config)# lldp med fast-start enable
Create and configure network policy in the way that VLAN ID 20 is specified for the voice application:
esr(config)# network-policy VOICE_VLAN
esr(config-net-policy)# application voice
esr(config-net-policy)# vlan 20 tagged
esr(config-net-policy)# exit
Configure LLDP on the interface and set a network policy:
esr(config)# interface gigabitethernet 1/0/1
esr(config-if-gi)# lldp transmit
esr(config-if-gi)# lldp receive
esr(config-if-gi)# lldp network-policy VOICE_VLAN
esr(config-if-gi)# exit
8.4 Sub-interface termination configuration
To terminate Ethernet frames of a certain VLAN on a specific physical interface, create a sub-interface with the
number of VLAN, frames of which will be terminated. When creating two sub-interfaces having the same VLAN
but located on different physical/aggregated interfaces, switching of Ethernet frames between these sub-
interfaces will not be possible as external segments will be separate broadcast domains. For data exchange
between subscribers of different sub-interfaces (even with the same VLAN-ID) routing will be used, i.e. data
exchange will occur at the third level of the OSI model.