I just cracked this problem.I used 3 routers (c2691) with virtual win server 2008
For this you need a simple router topology like I have shown in figure 1
This topology contain
(i) 3 well connected routers (c2691)with ips 192.168.X.X
(ii) virtual server in server 2008 (in vmware)
(iii) as virtual win xp (in VMWARE)
Network goal:----
To create virtual dhcp server in server 2008 (in vmware) and give automatic ip to host machine(win 7) as well as virtual win xp (in VMWARE).
Firstly you should connect all 3 routers with ips as I shown with needed routing to ping every network.
Attachment:
New Bitmap Image.jpg [ 37.31 KiB | Viewed 9768 times ]
now Create loopback adapter on real machine to connect to gns .
Install server 2008 in vmware (
note please stop dhcp of vmware) host only (my nic—vnnet1)
Attachment:
vm.jpg [ 57.49 KiB | Viewed 9768 times ]
pic shows method to stop dhcp of vmwareGive static ip in server 2008 --->192.168.0.1.
Create dhcp server in server 2008 by adding roles .
Create 3 scopes i.e (192.168.x.x --1.0 , 2.0 , 3.0 ) for each network .
Start dhcp server .
Install win xp in vmware (stop dhcp & install nic with connectivity of host only)(my nic----vmnet2)
Add 3 cloud as shown (i just change symbol of cloud don't confuse)
Attachment:
with clouds.jpg [ 73.45 KiB | Viewed 9768 times ]
Now right click each cloud and connect it with respective nic for ex
Connect c0 with vmnet1
Connect c1 with loopback(ms loopback).
Connect c2 with vmnet2.
(Note :even dhcp of VMWARE is OFF but stil it gives static ip one’s so please check vmnet1 and vmnet 2 and check on obtain ip automatically on trio (i.e on vmnet1, vmnet 2 , and loopback )
Even now you don’t get automatic ip since you didn’t add routes in your win routing table for that follow these steps :-
In server 2008 cmd ---> route add 0.0.0.0 mask 0.0.0.0 192.168.0.254
In real pc cmd ----->route add 0.0.0.0 mask 0.0.0.0 192.168.1.254
In win xp cmd ---->route add 0.0.0.0 mask 0.0.0.0 192.168.2.254
(note –>>here I used default routing for win routing table youcan even you can use static but remember to add all networks) Add ip helper command for router to be acting like relay agentIn R3 int fa 0/0 –
R3(config-if) ip helper-address 192.168.0.1
In R2 int fa 0/0 –
R2(config-if) ip helper-address 192.168.0.1
Ipconfig every where and check if you got ip
(NOTE:- if you are getting169.254.X.X 255.255.0.0 then ypu have mistaken somewhere)
Ping whole network .
If not pinging check if you have mistaken in upper steps
my network is working and taking ip from dhcp of win server 2008 (192.168.0.1) some more pics :-----
Attachment:
Copy of cmd.jpg [ 131.73 KiB | Viewed 9768 times ]
this is pic of my win7 cmd rahulchhabra.com shows my dns from where it is taking ipAttachment:
xp.jpg [ 69.08 KiB | Viewed 9768 times ]
this shows my virtual xp cmd it is also taking ip from server (rahulchhabra.com ie dnd shows this )
even it is pinging to server you can see ping to 192.168.0.1 which is my serverthanks for watching this tutorial
hope this helped
this is my first post so please rate it any response is very much welcomes