2 NIC's WAN and LAN help

This is for discussing general topics about how to use VirtualBox.
Post Reply
XM
Posts: 2
Joined: 9. Oct 2013, 14:53

2 NIC's WAN and LAN help

Post by XM »

Hello!

i have a question about networking.I've installed 4x MS server 2008r2 (virtual machines)

and one of them have 2NIC's 1 is set as WAN(Bridged) and 1 is LAN(internal)


server1{
LAN - Internal have 10.0.0.1/24 ---what gw should be here??
WAN - 192.168.1.101/24 gateway 192.168.1.1
}
server2{
Lan 10.0.0.2/24 gw 10.0.0.1
}
server 3{

Lan 10.0.0.3/24 gw 10.0.0.1
}

i want to be able to share my WAN connection to other 3 servers via LAN of server1 how to do this.? i do not know even what def Gateway should have this 10.0.0.1... adress
i've try to add static route like
route add 0.0.0.0 mask 0.0.0.0 192.168.1.1
so i want to push all my traffic from 10.0.0.x network thru 192.168.1.1

i would be greatful for any adv.
thank you!
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: 2 NIC's WAN and LAN help

Post by BillG »

That is really a straight networking problem. The fact that you are using virtual machines and virtual networks makes no difference at all.

Basically, you have to enable IP routing on the multihomed server. If you configure it as a NAT router, DHCP will configure the other machines on the private LAN for you. The default gateway on the private NIC of the router vm should be blank. Its default gateway is out to the Internet (configured on the WAN NIC).

Windows Server has RRAS built in to do that for you. If you have problems, post in a Windows networking forum. The fact that you are using vms is irrelevant.
Bill
XM
Posts: 2
Joined: 9. Oct 2013, 14:53

Re: 2 NIC's WAN and LAN help

Post by XM »

Thank you!
Post Reply