Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using different network static ip with different MAC address
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
genfrontier
n00b
n00b


Joined: 14 Sep 2008
Posts: 6

PostPosted: Sat Jun 20, 2009 7:28 pm    Post subject: Using different network static ip with different MAC address Reply with quote

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
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Sun Jun 21, 2009 10:57 am    Post subject: Reply with quote

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
View user's profile Send private message
genfrontier
n00b
n00b


Joined: 14 Sep 2008
Posts: 6

PostPosted: Sat Jun 27, 2009 8:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum