LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-14-2006, 12:52 AM   #1
Outerlimit
LQ Newbie
 
Registered: Apr 2004
Distribution: ubuntu
Posts: 20

Rep: Reputation: 0
Problem with static IPs


Hello,
I am running Ubuntu through VMware, everything is running fine but I want to be able to assign my ubuntu machine a static IP (192.168.136.2) so that it will be easier to access it. I have to use NAT because the university I am at does not give me more than one IP on my network port. If I use DHCP the internet works fine, if I assign it statically and set 192.168.136.1 as the gateway (the host OS) it no longer works. I can ping .1 just fine... but when I try to goto to a website, I get host not found.
I've had this problem before on gentoo, and I remember having to add a line to /etc/host.conf i just can't remember what it was... I tired nameserver *. Anyone that can help, it would be greatly appreciated.

Thanks!
 
Old 02-14-2006, 01:25 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 65
Quote:
but when I try to goto to a website, I get host not found.
I've had this problem before on gentoo, and I remember having to add a line to /etc/host.conf i just can't remember what it was
I think rather you just need to add a nameserver or two to /etc/resolv.conf. With DHCP this is done for you, but if configured statically, you must add it yourself. Just use the same nameserver(s) that your gateway does, in the form:
Code:
nameserver 192.168.0.100
nameserver 192.168.0.102
hth
 
Old 02-15-2006, 03:35 PM   #3
Outerlimit
LQ Newbie
 
Registered: Apr 2004
Distribution: ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
You're right the file was resolv.conf... however setting the nameserv to match the ones in windows did no work...

anything else i can do?

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up radvd with static local ips pIscIs Linux - Networking 0 12-13-2005 03:48 PM
internet router for multiple static ips shizzilla Linux - Networking 3 11-23-2005 11:20 PM
Using static ips with a router jclu Linux - Hardware 2 07-31-2005 05:35 PM
routing problem with 2 static (external) IPs gjmwalsh Linux - Networking 3 05-23-2004 09:17 PM
ADSL - Routing Static IPs NiM Linux - Networking 1 03-06-2004 06:57 AM


All times are GMT -5. The time now is 02:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration