- Table of Contents
-
- 09-Configuration Examples
- 01-Web Login Configuration Examples
- 02-Internet Access Through a Static IP Address Configuration Examples
- 03-Internet access through PPPoE configuration examples
- 04-License Configuration Examples
- 05-Signature Library Upgrade Configuration Examples
- 06-Software Upgrade Examples
- 06-Software Upgrade Examples (only for F50X0-D and F5000-AK5X5 firewalls)
- 07-Routing deployment configuration examples
- 08-Transparent deployment configuration examples
- 09-Static routing configuration examples
- 10-RIP configuration examples
- 11-OSPF configuration examples
- 12-BGP configuration examples
- 13-Policy-based routing configuration examples
- 14-Security Policy Configuration Examples
- 15-APR-Based Security Policy Configuration Examples
- 16-Object Group Configuration Examples
- 17-User identification configuration examples
- 18-Attack defense configuration examples
- 19-IPCAR Configuration Examples
- 20-IPS Configuration Examples
- 21-URL Filtering Configuration Examples
- 22-Anti-Virus Configuration Examples
- 23-File Filtering Configuration Examples
- 24-Data Filtering Configuration Examples
- 25-WAF Configuration Examples
- 26-IP Reputation Configuration Examples
- 27-APT Defense Configuration Examples
- 28-NetShare Control Configuration Examples
- 29-Bandwidth Management Configuration Examples
- 30-IPsec configuration examples
- 31-SSL VPN IP access configuration examples
- 31-SSL VPN TCP access configuration examples
- 31-SSL VPN Web access configuration examples
- 32-L2TP Configuration Examples
- 33-NAT configuration examples
- 34-NPTv6 Configuration Examples
- 35-Policy-based NAT configuration examples
- 36-NAT hairpin configuration examples
- 37-NAT Flow Logging Configuration Examples
- 38-Inbound Link Load Balancing Configuration Examples
- 39-Outbound Link Load Balancing Configuration Examples
- 40-Server Load Balancing Configuration Examples
- 41-Transparent DNS Proxy Configuration Examples
- 42-High Availability Group Configuration Examples
- 43-Context Configuration Examples
- 43-Context Configuration Examples(only for F50X0-D and F5000-AK5X5 firewalls)
- 44-IRF configuration examples
- 44-IRF configuration examples(only for F50X0-D and F5000-AK5X5 firewalls)
- 45-DHCP configuration examples
- 46-DNS configuration examples
- 47-Server Connection Detection Configuration Examples
- 48-Connection Limit Configuration Examples
- 49-Public key management configuration examples
- 50-SSL Decryption Configuration Examples
- 51-MAC Address Learning Through a Layer 3 Device Configuration Examples
- 52-4G Configuration Examples
- 53-WLAN Configuration Examples
- Related Documents
-
Title | Size | Download |
---|---|---|
51-MAC Address Learning Through a Layer 3 Device Configuration Examples | 80.81 KB |
MAC address learning through a Layer 3 device configuration examples
· Example: Configuring MAC address learning through a Layer 3 device
The following information provides configuration examples for MAC address learning through a Layer 3 device.
This document is not restricted to specific software or hardware versions. Procedures and information in the examples might be slightly different depending on the software or hardware version of the device.
The configuration examples were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.
The following information is provided based on the assumption that you have basic knowledge of the feature of MAC address learning through a Layer 3 device.
Example: Configuring MAC address learning through a Layer 3 device
Network configuration
As shown in Figure 1, hosts in an internal network are connected to the device through a Layer 3 gateway and the device is connected to the Internet. Configure MAC address learning through a Layer 3 device to ensure that the device can learn the MAC addresses of the hosts. Configure security policies to allow only Host A and Host B in the internal network to access the network.
Software versions used
This configuration example was created and verified on R8860 of the F1000-AI-55 device.
Procedure
Configuring the gateway
1. Assign IP addresses to interfaces and configure routing features to ensure network reachability. (Details not shown.)
2. Specify SNMPv2 and create a read-only community with the plaintext form name public.
Configuring the device
1. Assign IP addresses to interfaces and add the interfaces to security zones.
# On the top navigation bar, click the Network tab.
# From the navigation pane, select Interface Configuration > Interfaces.
# Click the Edit icon for GE 1/0/1.
# In the dialog box that opens, configure the interface:
a. Select the Trust security zone.
b. On the IPv4 Address tab, enter the IP address and mask of the interface. In this example, enter 2.2.2.2/24.
Retain the default configuration for the remaining parameters.
c. Click OK.
# Add GE 1/0/2 to the Untrust security zone and set its IP address/mask to 3.3.3.3/24 in the same way you configure GE 1/0/1.
2. Configure routing settings.
This example configures a static route. To use dynamic routing, configure dynamic routing protocols as required.
# On the top navigation bar, click Network.
# From the navigation pane, select Routing > Static Routing.
# Click Create.
# In the dialog box that opens, configure a static route.
a. Enter destination IP address 1.1.1.0.
b. Enter mask length 24.
c. Enter next hop address 2.2.2.1.
d. Retain the default setting for the other parameters.
# Click OK.
3. Create a Layer 3 device.
# On the top navigation bar, click System.
# From the navigation pane, select Maintenance > MAC Leaning Through L3 Device > L3 Device Access Setting.
# Enable MAC learning through a L3 device and configure the polling interval and idle timeout for SNMP requests.
# Click Apply.
Figure 2 Enabling MAC learning through a Layer 3 device
# In the L3 Devices area, click Add.
# In the dialogue box that opens, enter the Layer 3 device's IP address 2.2.2.1 and community name public.
# Click OK.
Figure 3 Creating a Layer 3 device
4. Create a MAC address object group groupmac and add MAC addresses of Host A and Host B to the object group.
# On the top navigation bar, click Objects.
# From the navigation pane, select Object Groups > MAC Address Object Groups.
# Click Create.
# In the dialog box that opens, configure the MAC address object group:
a. Enter group name groupmac.
b. Click Add.
c. In the dialog box that opens, select the MAC address type, and then enter Host A's MAC address 5c-07-1c-cd-02-06.
d. Click OK.
e. Repeat steps b to d to add Host B's MAC address 5c-07-22-3b-03-06 to the object group.
5. Create a security policy from zone Local to zone Trust to allow the device to access the gateway.
# On the top navigation bar, click Policies.
# From the navigation pane, select Security Policies > Security Policies.
# Click Create.
# In the dialog box that opens, configure a security policy:
¡ Enter policy name policy1.
¡ Select source zone Local.
¡ Select destination zone Trust.
¡ Select action Permit.
¡ Select source IPv4 address 2.2.2.0/24.
¡ Select destination IPv4 address 2.2.2.0/24.
# Click OK.
6. Create a security policy from zone Trust to zone Untrust to allow Host A and Host B to access the Internet.
# On the top navigation bar, click Policies.
# From the navigation pane, select Security Policies > Security Policies.
# Click Create.
# In the dialog box that opens, configure a security policy:
¡ Enter policy name policy2.
¡ Select source zone Trust.
¡ Select destination zone Untrust.
¡ Select action Permit.
¡ Select Source IP/MAC address groupmac.
# Click OK.
Verifying the configuration
1. View the ARP entries learned by the device.
# On the top navigation bar, click System.
# From the navigation pane, select Maintenance > MAC Leaning Through L3 Device > Learned ARP entries.
Figure 4 Learned ARP entries
2. Verify that Host A and Host B can access the Internet but Host C cannot.