Manual-mode MFF configuration example in a ring network
Network requirements
As shown in Figure 118, all the devices are in VLAN 100, and the switches form a ring. Host A, Host B, and Host C are configured with IP addresses manually. They are isolated at Layer 2, and can communicate with each other through the gateway. To ensure communication between hosts and the server, the IP address of the server is specified on the MFF devices manually.
Figure 118: Network diagram
Configuration procedure
Configure IP addresses of the hosts, as in shown in Figure 118.
Configure the IP address of VLAN-interface 1 on the gateway.
<Gateway> system-view [Gateway] interface Vlan-interface 1 [Gateway-Vlan-interface1] ip address 10.1.1.100 24
Configure Switch A:
# Enable STP.
[SwitchA] stp enable
# Configure manual-mode MFF.
[SwitchA] vlan 100 [SwitchA-vlan-100] mac-forced-forwarding default-gateway 10.1.1.100
# Specify the IP address of the server.
[SwitchA-vlan-100] mac-forced-forwarding server 10.1.1.200
# Enable ARP snooping.
[SwitchA-vlan-100] arp-snooping enable [SwitchA-vlan-100] quit
# Configure Ethernet 1/0/2 and Ethernet 1/0/3 as network ports.
[SwitchA] interface ethernet 1/0/2 [SwitchA-Ethernet1/0/2] mac-forced-forwarding network-port [SwitchA-Ethernet1/0/2] quit [SwitchA] interface ethernet 1/0/3 [SwitchA-Ethernet1/0/3] mac-forced-forwarding network-port
Configure Switch B:
# Enable STP.
[SwitchB] stp enable
# Configure manual-mode MFF.
[SwitchB] vlan 100 [SwitchB-vlan-100] mac-forced-forwarding default-gateway 10.1.1.100
# Specify the IP address of the server.
[SwitchB-vlan-100] mac-forced-forwarding server 10.1.1.200
# Enable ARP snooping.
[SwitchB-vlan-100] arp-snooping enable [SwitchB-vlan-100] quit
# Configure Ethernet 1/0/4 and Ethernet 1/0/6 as network ports.
[SwitchB] interface ethernet 1/0/4 [SwitchB-Ethernet1/0/4] mac-forced-forwarding network-port [SwitchB- Ethernet1/0/4] quit [SwitchB] interface ethernet 1/0/6 [SwitchB-Ethernet1/0/6] mac-forced-forwarding network-port
Enable STP on Switch C.
<SwitchC> system-view [SwitchC] stp enable