MACFF Configuration Commands I Table of Contents Table of Contents 1.1 macff enable.......................................................................................................................................1 1.2 macff vlan vlan_id enable.................................................................................................................2 1.3 macff vlan vlan_id default-ar A.B.C.D............................................................................................ 2 1.4 macff vlan vlan_id other_ar A.B.C.D.............................................................................................. 3 1.5 macff disable.......................................................................................................................................4 1.6 debug macff........................................................................................................................................4 II MACFF Configuration Commands Chapter 1 MACFF Configuration Commands MACFF configuration commands include:  macff enable  macff vlan vlan_id enable  macff vlan vlan_id default-ar A.B.C.D  macff vlan vlan_id other_ar A.B.C.D  debug macff 1.1 macff enable Syntax To enable or disable the MACFF function globally, run the following command. To return to the default setting, use the no form of this command. macff enable no macff enable Parameters None Default Value MACFF function is disabled by default. Usage Guidelines None Example The following example shows how to enable the MACFF function. Switch_config#macff enable Switch_config# 1 MACFF Configuration Commands 1.2 macff vlan vlan_id enable Syntax macff vlan vlan_id enable no macff vlan vlan_id enable Parameters Parameters Description vlan id Stands for the ID of a VLAN. Value range: 1-4094 Default Value None Usage Guidelines The command is used to send MAC-Based VLAN. Example The following example shows how to enable MACFF on VLAN 2 and the default gateway address is 192.168.1.1. Switch_config#arp 192.168.1.1 00:e0:0f:17:92:ed vlan 2 Switch_config#macff vlan 2 enable Switch_config# 1.3 macff vlan vlan_id default-ar A.B.C.D Syntax To bind DHCP snooping to standby TFTP server, run ip dhcp-relay snooping database-agent A.B.C.D. macff vlan vlan_id default-ar A.B.C.D no macff vlan vlan_id default-ar A.B.C.D Parameters Parameters Description A.B.C.D IP address of the default gateway 2 MACFF Configuration Commands Default Value None Usage Guidelines This command is used when you set the IP address of the client host and the default gateway manually. Of course, you also need to add the DHCP snooping binding table manually. Example The following example shows how to set the address of MACFF binding gateway in vlan1 to 192.168.1.1 and the client's address to 192.168.1.10. Switch_config#arp 192.168.1.1 00:e0:0f:17:92:ed vlan 1 Switch_config#ip source binding 6c:62:6d:59:18:b6 192.168.1.10 interface GigaEthernet0/1 Switch_config# macff vlan 1 default-ar 192.168.1.1 Switch_config# 1.4 macff vlan vlan_id other_ar A.B.C.D Syntax macff vlan vlan_id other_ar A.B.C.D no macff vlan vlan_id other_ar A.B.C.D Parameters Parameters Description A.B.C.D Stands for the IP address of service AR. Default Value None Usage Guidelines When the network segment where the client host is has other service ARs and these ARs are only accessed by the client directly without the need of gateway to forwarding packets, this command can be used to add these service ARs. 3 MACFF Configuration Commands Example The following example shows how to set an AR with its IP being 192.168.2.254 and its MAC being 00:e0:0f:23:02:fc on port g0/1 in vlan1. Switch_config#arp 192.168.2.254 00:e0:0f:23:02:fc vlan 1 Switch_config#interface g0/1 Switch_config_g0/1# dhcp snooping trust Switch_config_g0/1#exit Switch_config#macff vlan 1 other_ar 90.1.1.1 1.5 macff disable Syntax macff disable no macff disable Parameters None Default Value A specified port is allowed to enable MACFF. Usage Guidelines Though MACFF is enabled in a VLAN, MACFF can be disabled on one of the ports in this VLAN. The DHCPR snooping functionality is not affected on this port after disabled its MACFF functionality. Example The following example shows how to disable MACFF on port g0/1. Switch_config_g0/1#macff disable Switch_config_g0/1# 1.6 debug macff Syntax debug macff 4 MACFF Configuration Commands no debug macff Parameters None Default Value None Usage Guidelines This command is used to enable or disable the MACFF debugging switch. Example The following example shows how to enable the debugging switch of MACFF. Switch_config#debug macff Switch_config# 5