/
set protocols pimsm4 interface vif alternative-subnet

set protocols pimsm4 interface vif alternative-subnet


The set protocols pimsm4 interface vif alternative-subnet command is used to add the "alternative subnets" to a VLAN interface.


Command Syntax

set protocols pimsm4 interface <interface-name> vif <vif-name> alternative-subnet <IPv4Net>


Parameter

Parameter

Description

interface <interface-name>

Specifies a L3 VLAN interface. The value is a string.

vif <vif-name>

Specifies a vif interface. The value is a string.

alternative-subnet <IPv4Net>

Specifies a subnet address of the source. The value is an IPv4 subnet address in the address/prefix-length format, e.g., 150.0.0.0/24.


Usage Guidelines

One use of this alternative subnet is to make incoming traffic with a non-local source address appear as it is coming from a local subnet, then "alternative-subnet" can be configured on upstream interfaces connected to the Source.

NOTE

  •   The alternative-subnet should be used with extreme care, because it is possible to create forwarding loops.
  •   Configure the interface route to the "alternative-subnet" subnet on the switch configured with the "alternate-subnet".


Example

  • Add a "alternative subnet" 150.0.0.0/24.
admin@Xorplus# set protocols pimsm4 interface vlan-2 vif vlan-2 alternative-subnet 150.0.0.0/24
admin@Xorplus# commit


Copyright © 2025 Pica8 Inc. All Rights Reserved.