Configure Manual Mac Adress



Matt Cone March 15, 2013 TutorialsMacNetwork

MAC (Media Access Control) is a unique identity to any IP devices. So, using MAC address, you can easily prevent unauthorized access to your router. MikroTik router provides various ways by which you can easily filter MAC address of any IP device and allow internet access to this device. Manual address: 1: An address that is entered manually. When using this address, specify the prefix length and default router address. Stateless address: 6: An address that is generated automatically using the MAC address of the machine and the network prefix that is advertised by the router.

When your Mac is connected to a private network in a home or office, it’s probably assigned what’s known as a dynamic IP address. (To check, see How to Find Your Mac’s IP Address.) That’s not a problem for the majority of users - most people don’t care whether their IP addresses changes or not. But dynamic IP addresses won’t work for certain tasks like port forwarding, dynamic DNS, or client-to-client file sharing on the local network. For those unique situations and others, only a static IP address will work.

By setting a static IP address in OS X, you’ll create a permanent, private IP address for your Mac that won’t change from one day to the next. Other devices connected to the local network will be able to access your Mac, and if you set up port forwarding, certain services running on your Mac will be accessible to the outside world.

Here’s how to set a static IP address in OS X:

Configure Manual Mac AdressStatic
  1. If you own a MacBook, you may want to create a new network location. This will allow you to use the static IP address for certain networks and not others. See How to Configure Network Locations in OS X for instructions.

  2. From the Apple menu, select System Preferences.

  3. Select Network. The window shown below appears.

  4. From the sidebar, select an active network interface. In this example, I’m connected to a wireless network, so I’ll select Wi-Fi.

  5. Make a note of the current IP address assigned to your Mac. You’ll need to select a new IP address from within the private IP address range listed. More on that in a minute.

  6. Click Advanced.

  7. Select TCP/IP. The window shown below appears.

  8. From the Configure IPv4 menu, select Manually.

  9. Enter a static IP address in the IPv4 Address field. What number should you enter? One method is to take your current IP address and change the last part of the number. In this example, my current dynamically-assigned IP address was 10.0.1.8, so I picked 10.0.1.129. I could have picked any address between 10.0.1.0 and 10.0.1.255, as long as the address was not already assigned to another device.

  10. Click OK.

  11. Click Apply.

Congratulations! You have successfully set a static IP address for your Mac. Now the other devices on the private network can access your Mac by using the static IP address you assigned it. Just remember to switch network locations if you start using a different network - others may not take kindly to you using a static IP address on their network.

Related Articles

Subscribe to our email newsletter

Sign up and get Macinstruct's tutorials delivered to your inbox. No spam, promise!

To fence off MAC address spoofing attacks and improve port security, you can manually add static MAC address table entries to bind ports with MAC addresses.

You can also configure blackhole MAC address entries to filter out packets with certain source or destination MAC addresses.

Configure Manual Mac Adresse

Static

Follow these steps to add, modify, or remove entries in the MAC address table in system view:

Configure

To do…

Use the command…

Remarks

Enter system view

system-view

Configure MAC address table entries

Configure static or dynamic MAC Address Table Entries

mac-address { dynamic | static } mac-addressinterfaceinterface-type interface-numbervlanvlan-id

Required

Use either command.

Make sure that you have created the VLAN and assign the interface to the VLAN.

Configure blackhole MAC Address Table Entries

mac-address blackholemac-addressvlanvlan-id

Follow these steps to add or modify a MAC address table entry in interface view:

Configure Mac Wifi

To do…

Use the command…

Remarks

Enter system view

system-view

Enter interface view

interface interface-type interface-number

Configure a MAC address table entry

mac-address { dynamic | static } mac-addressvlanvlan-id

Required

Ensure that you have created the VLAN and assign the interface to the VLAN