Second MAC address to a network adapter
-
It is a possible to add second MAC address to a network adapter or create virtual network interfaces with separate mac addresses ?
In linux especially openwrt i use macvlanip link add link eth1 eth2 type macvlan ifconfig eth2 hw ether 00:24:01:f5:1b:84 ip link add link eth1 eth3 type macvlan ifconfig eth3 hw ether 00:24:01:f5:1b:85 ip link add link eth1 eth4 type macvlan ifconfig eth4 hw ether 00:24:01:f5:1b:86 ip link add link eth1 eth5 type macvlan ifconfig eth5 hw ether 00:24:01:f5:1b:87 ip link add link eth1 eth6 type macvlan ifconfig eth6 hw ether 00:24:01:f5:1b:88
-
You can probably use virtual IP alias for this:
http://doc.pfsense.org/index.php/What_are_Virtual_IP_Addresses%3FI'm not entirely sure if the MAC address is inherited though. :-\
Steve
-
With aliases i can add IP addresses to an interface,but with same mac. In my scenario i need each one IP addresses has different mac.
-
only way to do that is with CARP IPs, they use virtual MACs determined by the VHID chosen.
-
Hi cmb,
i got same Problem..my ISP assigns IP via mac address. To use a second Ip u need a second mac address.
I solved it by using a switch between ISP Modem and Pfsense. Then i connect 2 physical PfSsense interfaces to the switch (WAN and WAN2).
The sticking point is that 2 WAN connections share one real internet connection. Then u cant use trafficshaper properly right?To use a CARP MAC address is not really useful if it changes on every reboot.
Maybe there is a solution -> http://www.melen.org/u/jan/wp/?p=82.
Is it applicable to pfsense?
cya
-
CARP MACs never change, but they can't be used to pull IPs from DHCP. You can just add another physical NIC for that though.
-
Hi cmb,
thx for reply… yeah i know :( but i figured out that my problem is there http://forum.pfsense.org/index.php/topic,52196.0.html
Hope u can help me.
ty cya