Allocate IP using Granular Scheme

You can choose granular IP allocation scheme for Router ID and VTEP Loopback.

About this task

Follow this procedure to allocate an IP for Router ID and VTEP Loopback using granular scheme.

Procedure

To allocate an IP for Router ID and VTEP Loopback using granular scheme, run the following command:
efa fabric setting update --name <fabric-name> --loopback-scheme <uniform|granular>
efa fabric setting update --name <fabric-name> --router-id-loopback-ip-range <ip-range> 
--vtep-loopback-ip-range <ip-range>

Example

efa fabric show --name fs-1

Fabric Name: fs-1, Fabric Description: , Fabric Type: non-clos, Fabric Status: configure-success, Fabric Health: Green
+-------------+------+-----------+------------+------+--------------+-------------+-----------+---------+------+----+
| IP ADDRESS  | RACK | HOST NAME |    ASN     | ROLE | DEVICE STATE |  APP STATE  | CONFIG    | PENDING | VTLB | LB |
|             |      |           |            |      |              |             | GEN REASON| CONFIGS | ID   | ID |
+-------------+------+-----------+------------+------+--------------+-------------+-----------+---------+------+----+
| 10.20.246.3 | r1   | NH-Leaf1  | 4200000001 | leaf | provisioned  | cfg in-sync | NA        | NA      | 2    | 1  |
| 10.20.246.4 | r1   | NH-Leaf2  | 4200000001 | leaf | provisioned  | cfg in-sync | NA        | NA      | 2    | 1  |
+-------------+------+-----------+------------+------+--------------+-------------+-----------+---------+------+----+


efa fabric setting show --name fs-1 | grep -i loopback 

| Loopback Scheme            | granular              |
| Loopback IP Range          | 172.31.254.0/24       |
| RouterID Loopback IP Range | 172.31.128.0/24       |
| VTEP Loopback IP Range     | 172.31.64.0/24        |
| Loopback Port Number       | 1                     |
| VTEP Loopback Port Number  | 2                     |
Rack1-Device1(config)# do show running-config ip router-id
ip router-id 172.31.128.77
Rack1-Device1(config)# do show running-config interface Loopback
interface Loopback 1
 ip address 172.31.128.77/32
 no shutdown
!
interface Loopback 2
 ip address 172.31.64.96/32
 no shutdown
!
Rack1-Device1(config)# do show running-config overlay-gateway
overlay-gateway fs-1
 ip interface Loopback 2
 no map vni auto
 map vlan 24 vni 30300
 map vlan 25 vni 30301
 map bridge-domain 4094 vni 30212
 activate
!
Rack1-Device1(config)# do show running-config router bgp address-family ipv4 unicast
router bgp
 address-family ipv4 unicast
  network 172.31.64.96/32
  network 172.31.128.77/32
  maximum-paths 8
  graceful-restart
 !
!
Rack1-Device1(config)#
Rack1-Device2(config)# do show running-config ip router-id
ip router-id 172.31.128.171
Rack1-Device2(config)# do show running-config interface Loopback
interface Loopback 1
 ip address 172.31.128.171/32
 no shutdown
!
interface Loopback 2
 ip address 172.31.64.96/32
 no shutdown
!
Rack1-Device2(config)# do show running-config overlay-gateway
overlay-gateway fs-1
 ip interface Loopback 2
 no map vni auto
 map vlan 24 vni 30300
 map vlan 25 vni 30301
 map bridge-domain 4094 vni 30212
 activate
!
Rack1-Device2(config)# do show running-config router bgp address-family ipv4 unicast
router bgp
 address-family ipv4 unicast
  network 172.31.64.96/32
  network 172.31.128.171/32
  maximum-paths 8
  graceful-restart
 !
!
Rack1-Device2(config)#