Click to See Complete Forum and Search --> : LInux on Windows 2000 domain


klnyc
12-13-2002, 10:17 PM
hi guys,

I have mandrake linux 9.0 on a win2k domain. I have a problem regarding obtain an ip via my win2k DHCP server. I dont know why in the world it can not get an ip from the dhcp server?. So if anyone is running a linux on windows 2000 lan let me know. How do you got you linux box running in a windows LAN. It work like charm when if i enter a static ip in it...fyi

thanks

jkint
12-13-2002, 11:48 PM
what DHCP client are you running on that mandrake box? pump? dhcpcd? dhclient?

DHCP is a standard protocol. you shouldn't have any issues pulling a DHCP address from the server, unless you have a firewall that's blocking the traffic before your NIC tries to lease it's IP

-

klnyc
12-14-2002, 12:03 AM
Hi,

I dont know what i use :(. i guess the default one.
But how would linux client know how to get the ip address from win2k dhcp server?.

ShieldWolf
12-14-2002, 12:09 AM
I have an all Linux network at home using dhcp, and a mixed Novell, W2K, Solaris, Linux, BSD network at work using dhcp, and can carry my Mandrake 9.0 box between the two and never miss a beat. I can do the same using Knoppix.

All I can suggest is to open up the Mandrake Control Center, select System, then Services, and make sure that dhcpd is not running. That service should only be running if you are issueing IP addresses, not if you are trying to obtain one. Unless you are trying to set your box up as a router, getting an address from one source on one NIC, and routing it to other boxes on another NIC.

If that's what you want to do, Mandrake Control Center | Network & Internet | Connection Sharing is where you need to go.

Let me know if any of this helps. :)

klnyc
12-14-2002, 12:25 AM
hi,

No, my LAN has a router already.

jkint
12-14-2002, 01:45 AM
Linux doesn't need to know how to get an IP from a Win2k DHCP server. it needs to know how to get an IP address from a DHCP server. DHCP is a standard protocol. kinda like TCP/IP.

While the Win2k DHCP server may offer different features than a Linux DHCP server, the underlying functionality is the same.

at a bash prompt, try issuing the following commands:

# /sbin/ifconfig eth0 up
# dhcpcd eth0

klnyc
12-14-2002, 12:15 PM
Hi,

Ok i got the DHCP from win2k working finally. I finally got an ip from the dhcp server..woot,woot!!. Now I got another problem..I got an DNS issues going on here. It looks like is not resolving the name. What I need to do?. I get time out when I link to any website. I beleive is the dns problem.

ShieldWolf
12-14-2002, 12:51 PM
Yes, that sounds like a DNS problem. Make sure that you use the DNS server that you ISP gave you, and that you are not trying to run your own DNS server.

jkint
12-14-2002, 02:31 PM
add your ISP's (or your domain's) DNS server addresses to /etc/resolv.conf

nameserver x.x.x.x

-jon

klnyc
12-14-2002, 03:51 PM
Hi,

I dont see "resolv.conf" on the /etc :(
i have mdk 9.0 btw..

klnyc
12-14-2002, 05:05 PM
ok i find it.

heres whats look like:

in the "/etc/resolv.conf"

nameserver 192.168.1.2
namerserver 151.xx.xx.84
namerserver 151.xx.xx.85

the 192.168.1.2 is my dns server also.

anyone can post their relsolv.conf out here??

jkint
12-14-2002, 05:18 PM
unless you have a typo in your post, the reason you're not resolving names is the

namerserver 151.x.x.84

this needs to be changed to nameserver.

BTW, the 192.168.1.2 name server on your network... what's that being used for? the local network? a caching/forwarding server?

is the service setup correctly? do you have your root hints file? what DNS server are you using? Win2k's DNS implementation? BIND, djbdns, etc?

-jon

agconsult
12-14-2002, 05:38 PM
If you have access to a windows computer with a working connection onon this lan.

In Win 95, 98 ME
Start Run "winipcfg /all" without the quotes

or

Win XP Start Run "cmd" without the quotes "ipconfig /all" without the quotes

this will show you what DHCP and DNS you need to point the Linux box to.

Of coures if you do not have access to a Windows machine on the LAN this the above information is worthless to you.

klnyc
12-14-2002, 06:45 PM
Originally posted by jkint
unless you have a typo in your post, the reason you're not resolving names is the

namerserver 151.x.x.84

this needs to be changed to nameserver.

BTW, the 192.168.1.2 name server on your network... what's that being used for? the local network? a caching/forwarding server?

is the service setup correctly? do you have your root hints file? what DNS server are you using? Win2k's DNS implementation? BIND, djbdns, etc?

-jon

hi,

No the namserver is correct, I didnt want to fill in the blank.
And 192.168.1.2 is my DNS server, I use that to resolve name as well in my windowze LAN.

On the Service, what I suppose to see or need to look for?.

klnyc
12-14-2002, 06:49 PM
Originally posted by agconsult
If you have access to a windows computer with a working connection onon this lan.

In Win 95, 98 ME
Start Run "winipcfg /all" without the quotes

or

Win XP Start Run "cmd" without the quotes "ipconfig /all" without the quotes

this will show you what DHCP and DNS you need to point the Linux box to.

Of coures if you do not have access to a Windows machine on the LAN this the above information is worthless to you.

192.168.1.2 is my DNS and it work flawlessy with windoze. Heres the thing, I cant ping my damn Gateway, whatta joke. I can ping everyone else in my LAN(10 machines).

I think this was causing it too( cant ping Gway).

need help badly..:(

agconsult
12-14-2002, 07:15 PM
Try going to the Mandrake Control center then Network and internet then connection then click on wizard. If I remember right it will walk you through and allow you to enter the dhcp and dns servers and will reset them.
If it doesnt work after this I am guessing it is firewall related, at least that seems to be the normal Windows problem when you cant ping

I know there is a way to do this through the console but I havn't a clue how.

klnyc
12-14-2002, 08:00 PM
Originally posted by agconsult
Try going to the Mandrake Control center then Network and internet then connection then click on wizard. If I remember right it will walk you through and allow you to enter the dhcp and dns servers and will reset them.
If it doesnt work after this I am guessing it is firewall related, at least that seems to be the normal Windows problem when you cant ping

I know there is a way to do this through the console but I havn't a clue how.

hi,

Thanks for replying, see it works when i enter a static ip's and enter the dns server ip manually. But if i set it to get ip from my dhcp server, I cant surf the net, I cant ping the gateway, I only can ping the locally. Once again, it work like a charm with a static ip's.
Come on guys, I know you know this type of problem. :)

agconsult
12-14-2002, 08:41 PM
If you use the wizard as I described and select expert mode as you go through, it allows youy to put in your dhcp and dns addresses.
But as jkinit said in his post if your resolve.conf file says
namerserver 151.xx.xx.84
namerserver 151.xx.xx.85
Then that is probabley your problem as it should be nameserver with no r in the middle.

Here is what my resolv.conf looks like
nameserver (DHCP Server address here)
nameserver (DNS Server address1 here)
nameserver (DNS Server address2 here)
nameserver (DNS Server address3 here)
search (Domain Server Name .com) all without the parenthesis

Hope this helps

edit
I forgot to add that my DHCP/DNS servers are Win 2000 servers

klnyc
12-14-2002, 10:11 PM
hey again,

Sorry about that, I did type an typo in here. But on the /etc/resolv.conf is Nameserver 151.xx.xx.84,etc.

Let me try again..brb

jkint
12-14-2002, 11:11 PM
the typo that I'd mentioned was not related to the 151.x.x.84. it was in the "nameRserver". look at the post again, and you'll find what I'm talking about.

as far as the gateway issue is concerned... try running the command /sbin/route. that should give you some information on your route table. it'll also let you know if the default gateway is setup.

is the gateway a computer or a router? are you able to ping the mandrake box from the gateway? which IP on the gateway can't you ping? the internal ethernet or external ethernet?

klnyc
12-14-2002, 11:52 PM
Originally posted by jkint
the typo that I'd mentioned was not related to the 151.x.x.84. it was in the "nameRserver". look at the post again, and you'll find what I'm talking about.

as far as the gateway issue is concerned... try running the command /sbin/route. that should give you some information on your route table. it'll also let you know if the default gateway is setup.

is the gateway a computer or a router? are you able to ping the mandrake box from the gateway? which IP on the gateway can't you ping? the internal ethernet or external ethernet?

Hi,

Yes nameRserver is spell correctlly, I added a 'R' by mistake.
Any way I have good news, I finally fixed that damn thing. I done serach on google and came with "DHCPCD -B" and voola, instant internet. I can ping just everything...woot!!!.

Well guys, I thank you for all your time and effort to help me. I really appreciated.

thanks again.

Let me start look for more trouble...my 3 day of Linux and loving it :)