LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NIC Config (https://www.linuxquestions.org/questions/linux-networking-3/nic-config-253939/)

PDD 11-12-2004 03:50 AM

NIC Config
 
Hi Guys,

n00b here, just wondering if you can help me out with my NIC config. I have done a fresh install of Debian 3.0 r2 and it failed to pick up my NIC during installation. I was able to set it up using a third party module (with alot of help) but it cant seea nything. I can see stuff on my LAN but not outside. I cant pint stuff like www.google.com like in windows so how do I tell if its getting a connection?

Anytime I do apt-get it gives me a 404. Any help on this would be really appreciated guys, in a tight spot here.

Dave

linux_terror 11-12-2004 04:00 AM

have you specified a gateway? if yes then have you specified a nameserver? check /etc/resolv.conf for a nameserver, if there isn't one add one and try again.

linux_terror

PDD 11-12-2004 04:06 AM

NIC Config
 
How do I do that?

linux_terror 11-12-2004 04:26 AM

if you are using a static ip address check in the file /etc/sysconfig/network-scripts/ifcfg-eth0 and see if this line is there

GATEWAY=192.168.0.1

the 192.168.0.1 address should be set to the address of your gateway, usually your routers ip address.
if the line isn't there then add it and do a

/etc/init.d/network restart

if the gateway is already set correctly or if you set it and it still doesnt work then take a look at the file

/etc/resolv.conf

and see if a nameserver is specified
the line would look something like this

nameserver 63.240.76.4

if its not there add it and see if you can ping yahoo.com.

NOTE:you will need to be root to edit these files.


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