LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-13-2002, 10:14 PM   #1
RUN
LQ Newbie
 
Registered: Jul 2002
Posts: 10

Rep: Reputation: 0
Net Config


I am back and still clueless. I am tring to get my linux box config for the internet on a static IP. I can get it to work with dhcp but not static. I am using netconfig to do the work. When i put in my ip to my router it configs the rest of the selections
netmask 255.255.255.0 defalt gateway 192.168.1.254
Primarynameserver 192.168.1.1 Where is it pulling these from I can ping inside the network but cant get to the internet.

Help
 
Old 07-14-2002, 01:49 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Don't use the numbers it throws in there. If your using a static IP, then you need to also specify your Gateway, Nameserver...etc. Unless what it automatically gives you is correct which in most cases isn't, most likely that is why its not working..

And if your pinging inside the network, then most likely its a problem with DNS, just add those entries to your /etc/resolv.conf
 
Old 07-14-2002, 08:02 PM   #3
RUN
LQ Newbie
 
Registered: Jul 2002
Posts: 10

Original Poster
Rep: Reputation: 0
I am behind a router. I want to static the linux box so I can forward ports to it. This box is at home but will be moved to my office in time. I only want to static this box here as a test so it will be turnkey when I move it. The problem is I have tried all the numbers I can find ie ip, gateway, subnet and I cant get any of them to work. I know the router is right. I have several of them config static for win boxes. Linux on the other hand is giving me fits.
 
Old 07-14-2002, 08:55 PM   #4
pbharris
Member
 
Registered: Apr 2001
Location: chicago, IL
Distribution: debian, redhat
Posts: 280

Rep: Reputation: 30
put the DNS entries that your ISP provides in your /etc/resolv.conf file like trickeykid suggested - what distro is this?
 
Old 07-16-2002, 05:24 AM   #5
yasasvi
LQ Newbie
 
Registered: Jul 2002
Posts: 7

Rep: Reputation: 0
Hi

If that is red hat 7.x, you can try , netconfig or linux-conf.If you are a newbie, you can use linux conf. If you use netconf, it gives you a blue screen with options. Uncheck DHCP by pressing space bar and select activate on boot.Then fill up all the columns ( your ip, gateway, dns . After that do, ifup eth0. It should work. I hope it works.

BOL

suresh
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
net config regnier Linux - Networking 5 02-11-2005 09:34 AM
net config regnier Mandriva 9 02-11-2005 08:34 AM
net config webcast Linux - Networking 1 08-23-2004 11:53 AM
Problem with net config mrant Slackware 4 06-04-2003 06:48 PM
Net card config ilyapap Linux - Networking 4 04-11-2003 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration