View previous topic :: View next topic |
Author |
Message |
genfrontier n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Sep 2008 Posts: 6
|
Posted: Sat Jun 20, 2009 7:28 pm Post subject: Using different network static ip with different MAC address |
|
|
Hello guys,
I am trying to use my gentoo install both in a VM and running with no virtualization.
What i want to do is, because i can set up whatever mac i want in the virtual machine, to have gentoo look at the MAC address and set up a different static ip.
Is this possible?
Thanks |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Raniz l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/734529121659526f988451.jpg)
Joined: 13 Sep 2003 Posts: 967 Location: Varberg, Sweden
|
Posted: Sun Jun 21, 2009 10:57 am Post subject: |
|
|
You might be able to use the udev files for persistent naming of network devices for this, you can set up your different MAC addresses as different devices, such as the device in your VM will be eth1 and the one outside the VM eth0. You can then use /etc/conf.d/net and specify different options since it will be different devices.
Take a look in /etc/udev/rules.d/70-persistent-net.rules. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
genfrontier n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Sep 2008 Posts: 6
|
Posted: Sat Jun 27, 2009 8:59 pm Post subject: |
|
|
Thanks Raniz,
After much trail and error, found that it was much easier to set up static dhcp with my router running tomato firmware. In there you can set up with the mac address a predetemined ip when the host ask for the ip.
now i am trying to figure out how to seamless select between the ati-drivers and the vmware display drivers automatically....
thanks
Emilio |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|