More than one MAC addresses on single NIC
My machine has ONE ethernet card and is on a LAN.
IP address is assigned to hosts using DHCP. I can have more than one MAC address on LAN by running Virtual Machine and setting network to bridged. This way, my virtual machine simply acts like there is one more machine in the network. Running VMWare for this job is a a bit heavy on resources. Is there a way so that I can I can have 2 or more ip addresses with different MAC address on the same machine without having to run VirtualBox. By googling, I think its related to bridging and tap. And, I am sure that its NOT IP-ALIASING because in ip-aliasing both the ip addresses have the same MAC address. Basically, I want my system to have interfaces like:-
|
You can use http://www.primianotucci.com/default.php?view=57
If you will try to redirect some of the ports with iptables it may not work (at least i can not figure out why) |
Wonder if multiple ip addresses would suite your needs?
|
./multimac is not working...
Quote:
Code:
[root@ArchLinux multimac]# pwd |
What is the output of "route -n"? That will show all the current
routes. My guess is that the default route went away when you ran "ifconfig eth0 down" and it wasn't restored after "ifconfig eth0 up". |
Use tap1...tapx as "eth" network devices.
ifconfig eth0 0.0.0.0 ifconfig br0 0.0.0.0 ifconfig tap1 IP1 netmask MASK ifconfig tap2 IP2 netmask MASK ip r add default via GATEWAY_IP dev tap1 If you have a problem with 2 or more IP from the same range of IP try to look more info here or in google Code:
root@nmz:~# ifconfig Code:
root@nmz:~# ip r |
I've same issue which need different MAC address to sub-interface and commnicate to others networks. I used multimac and success to assign different MAC address to tap1~tap5, but all interface use br0 MAC address to identity itself. I have no idea how to resolve it.
Code:
br0 Link encap:Ethernet HWaddr 00:0c:29:68:d6:93 Code:
arp -a |
All times are GMT -5. The time now is 03:32 PM. |