Berbeda dengan Main Interface, pada Sub interface kita perlu menentukan dulu jenis interfacenya apakah point-to-point atau multipoint. Sub-interface multipoint membutuhkan mapping baik dynamic maupun static sedangkan Sub-interface point-to-point tidak memerlukan mapping.
Dynamic Mapping
R1(config-if)#encapsulation frame-relay
R1(config-if)#no shutya
R1(config-if)#int s0/0.1 multipoint
R1(config-subif)#ip add 12.12.12.1 255.255.255.0
konfigurasi dynamic mapping pada sub-interface tidak hanya mengubah enkapsulasinya saja, tapi juga "frame-relay interface-dlci" yang fungsinya mengasosikan dlci dengan interface agar router tahu dlci 102 terhubung ke int s0/0.1. apabila tidak dikonfigurasikan maka dlci 102 diasumsikan oleh router terhubung ke main interface.
R1(config-subif)#frame-relay interface-dlci 102
R3(config-if)#int s0/0.1 multipoint
R3(config-subif)#ip add 12.12.12.2 255.255.255.0
R3(config-subif)#frame-relay interface-dlci 201
R2(config)#frame-relay switching
R2(config)#int s0/0
R2(config-if)#en fr
R2(config-if)#frame-relay intf-type dce
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay route 102 int s0/1 201
R2(config-if)#no shut
R2(config-if)#int s 0/1
R2(config-if)#en fr
R2(config-if)#frame-relay intf-type dce
R2(config-if)#frame-relay lmi-type cisco
R2(config-if)#frame-relay route 201 int s0/0 102
R2(config-if)#no shut
R1(config-if)#do sh frame-relay map
Serial0/0.1 (up): ip 12.12.12.2 dlci 102(0x66,0x1860), dynamic,
broadcast,
CISCO, status defined, active
R1(config-if)#do sh frame-relay mapStatik Mapping
Serial0/0.1 (up): ip 12.12.12.2 dlci 102(0x66,0x1860), dynamic,
broadcast,
CISCO, status defined, active
R1(config-if)#int s0/0.1 multipoint
R1(config-subif)#frame-relay map ip 12.12.12.2 102 broadcast
R2(config-if)#int s0/0.1 multipoint
R2(config-subif)#frame-relay map ip 12.12.12.1 201 broadcast
R1#show frame-relay map
Serial0/0.1 (up): ip 12.12.12.2 dlci 102(0x66,0x1860), static,
broadcast,
CISCO, status defined, active
Point to Point Subinterface
state sub-interface tidak bisa dirubah dari point-to-point ke multipoint atau sebaliknya, kecuali direload. pada point-to-point tidak membutuhkan mapping tapi perlu asosiasi dlci ke subinterface.
R1(config)#interface s1/0.2 point
R1(config-subif)#ip add 12.12.12.1 255.255.255.0
R1(config-subif)#frame-relay interface-dlci 102
R3(config)#interface s1/0.2 point
R3(config-subif)#ip add 12.12.12.2 255.255.255.0
R3(config-subif)#frame-relay interface-dlci 201
tidak ada informasi L3 address pada R1, karena point-to-point hanya memiliki satu dlci
R1(config-subif)#do show frame-relay map
Serial1/0.2 (up): point-to-point dlci, dlci 102(0x66,0x1860), broadcast
status defined, active