DHCP is getting different class of IP than host machine on Solaris 10

i have a laptop with windows 7 installed . this laptop is dhcp enabled and it's details are as follows :

 IPv4 Address. . . . . . . . . . . : 10.1.5.54
 Subnet Mask . . . . . . . . . . . : 255.255.255.192
 Default Gateway . . . . . . . . . : 10.1.5.1

i installed solaris 10 on vmware on above machine.

i also enabled dhcp in solaris .
ip details of solaris machine are as follows :

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000

e1000g0: 
flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 192.168.6.130 netmask ffffff00 broadcast 192.168.6.255
        ether 0:c:29:aa:d2:90

i could not understand whay it is happening like this ?

how solaris machine can get ip of same class as host so that it can be accesses over network ?

you might using NAT on the virtual machine and so the solaris instance is getting an IP from the vmware integrated dhcp server. you have to configure a "bridged" network for your virtual machine to be able to get a dhcp address from your environment dhcp server.

1 Like

i changed vmware settings from nat ---------> bridged and restart virtual machine.

now it got these ip and it is pinging on network :

ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000

e1000g0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 10.1.5.61 netmask ffffffc0 broadcast 10.1.5.63
        ether 0:c:29:aa:d2:90

now this machine is pinging on network.

well done... have fun with your solaris installation :wink:

i want to restart samba service on this solaris machine.

under /etc/init.d directory there is no folder with name samba

so i could restart this serrvice

new problem, new thread!