On May 23, 12:48 pm, "Bill Grant" <not.available@online> wrote:
> The second NIC in the vm should be connected to the network which has
> the NAT clients on it. Where are these machines? How did they access the
[quoted text clipped - 3 lines]
> other NIC should be able to get to the Internet if this NIC is the default
> gateway for them and you have NAT configured on the vm.
>Hi Bill and many thanks for answering me!
>All pc are connected on the same fisical network, simply some pc use a
>class B ip and some other use a class C ip.
>Of course, there's a gateway serving class C LANs (to forward traffic
t>o class B) and a border gateway serving class B (to forward traffic
t>o internet).
>Class C LANs are WLAN and the gateway (that I should replace with the
>virtual machine) has one single network card with more IP aliases.
[quoted text clipped - 6 lines]
>Save me :) it's third day I'm trying to work it out :)
>Many thanks again!
I am a fan of virtual machines but I really can't see why you would want
to use a virtual machine to do that. I can't even see why you would use a
computer to do that rather than a wireless access point.
The only reason I run routers in vms is to route between virtual
networks or to route traffic from virtual networks on to a physical network.
If all machines are on wired or wireless network, why use a virtual machine
at all? If you must use a computer as a router why not use the host OS? What
is the host doing that prevents it being a router?
The Dark Free Soul - 24 May 2008 13:05 GMT
Well Bill I can only say you are right. A router would be best idea
but since it gotta offer radius services for wlan it's a computer (to
keep things cheap).
I know there's no need to virtualize anything here but it's not my
decision. Unfortunatly I gotta do it... it's supposed to be a kind of
demostation that it can be done.
Anyway I know it's a bad designe but I gotta do it. Do you have any
suggestion to give me? I can't understand why it wont work...
Many thanks again for your time. I really apriciate it.
Bill Grant - 25 May 2008 00:30 GMT
> Well Bill I can only say you are right. A router would be best idea
> but since it gotta offer radius services for wlan it's a computer (to
[quoted text clipped - 5 lines]
> suggestion to give me? I can't understand why it wont work...
> Many thanks again for your time. I really apriciate it.
OK. First off, even if everything is on one physical network I would use
two NICs in the router. They will both need to be set to link to the
physical NIC in the host, since this is the only connection to the network.
Virtual Machine Network Services will make sure the traffic gets to the
correct NICs in the vm.
Set one NIC to get its network config automatically. It will get its
config from DHCP on the class B LAN and look just like an extra machine on
the LAN. You have done that before and you know that it works. This is the
"public" side of your NAT router.
Manually set the second NIC with the IP addresses which are the gateway
addresses for the Class C subnets. This is the "private" side of your NAT
router.
Now configure the NAT router using itables or whatever it is in Linux .