LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Struggling to configure my network :S (https://www.linuxquestions.org/questions/linux-newbie-8/struggling-to-configure-my-network-s-215774/)

Detriamus 08-10-2004 09:19 AM

Struggling to configure my network :S
 
Hey all - I have just installed slack 10.0 and i am having loads of problems trying to get the internet up and running.

My router supports DHCP and so I set that in netconfig. I have also loaded the driver module for the network adapter. However, when I try to use a broswer, I only get "www.mozilla.org could not be found please check the name and try again".

If I do cat /etc/resolv.conf I get: search localdomain (i specified localdomain in netconfig) and that is all.

What else must I do to be able to connect?

Please help me and I am fairly new to linux so... simple answers :D

Thanks so very much

qwijibow 08-10-2004 09:51 AM

in your browser's URL goto
http://216.239.57.99
also, trp ping 216.239.57.99

this is the IP address of Google.
if ping and the browser works with IP's and not names (google.com)
then we know your problem is a DNS problem

if it still doesnt work... we know its not a dns problem.

superbondbond 08-10-2004 09:55 AM

Check to see that your network interface is actually up and running.
Code:

jeff@rwharch:~$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr [clip]
          inet addr:192.168.1.47  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:201501 errors:0 dropped:0 overruns:0 frame:0
          TX packets:185060 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:150254740 (143.2 Mb)  TX bytes:89024228 (84.9 Mb)
          Interrupt:11 Base address:0xb000

You'll be able to see if the card is pulling an IP from the router as you want it to.
If it doesn't have an IP as it should, then check your network configuration. Slackware makes it easy to do this -> it's all in a single text file /etc/rc.d/rc.inet1.conf
Open that file in any text editor (you'll need root access). It will look like this:
Code:

# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# Config information for eth0:
IPADDR[0]="192.168.1.47"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]="no"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="IPADDR[1]"

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

All you'll be looking for is a "yes" next to USE_DHCP for the appropriate interface.
AFAIK, you won't need to specify the search domain or DNS when your using DHCP.

Detriamus 08-10-2004 12:01 PM

Thanks for the detialed replies all.

I cannot ping the ip, I get this message: Network is Unreachable.


In the /sbin/ifconfig I have:

lo link ecap: local loopback
inet addr: 127.0.0.1
Mask: 255.0.0.0
Up loopback running MTU: 16436 Metric: 1
RX packets: 68 errors: 0 dropped: 0 overuns:0 frame: 0
TX packets: 68 errors: 0 dropped: 0 overuns:0 frame: 0
Collisions: 0 txqueuelen: 0
RX bytes: 519 (5.0kb) TX bytes: 5196 (5.0kb)


In /etc/rc.d/rc.inet1.conif , there is a yes in eth0 for USE_DHCP, the rest are set to ""


Hmmm, I'm afraid this means very little to me, could someone diagnose my problem for me?

Thanks a lot

superbondbond 08-10-2004 12:17 PM

If you can't ping an IP address, then your NIC isn't up and running, which is why it (eth0) doesn't show up when you typed ifconfig. Perhaps the module (driver) for your card is not loaded.

What kind of NIC do you have? Are you sure the right module is loading? you can check for which modules are currently running by the command /sbin/lsmod

jarib 08-10-2004 12:34 PM

Try these from a terminal. You need to be root

ifconfig eth0 up
dhcpcd -r

Detriamus 08-10-2004 12:37 PM

Okay thanks, my NIC is 2wire pc port - i got this by doing ipconfig /all on this windows box and it's in the network adapters hardware section and the two boxes are on a router so they'll be the same. However, in the install of slack, it probed my Network adapter as a Via-Rhine. This does also show up in ipconfig /all but it's set as disabled....To further complicate things, Via-Rhine shows up in the /sbin/lsmod whereas the 2wire pc port does not. :confused:


I used this command to load the driver: echo "/sbin/modprobe 2wire pc port"> /etc/rc.d/rc.netdevice

and then: chmod 755 /etc/rc.d/rc.netdevice


Thanks for your help so far superbondbond

superbondbond 08-10-2004 02:20 PM

I don't have any experience with that device.

A little searching returned these threads:

http://www.linuxquestions.org/questi...t=wire+pc+port
http://www.linuxquestions.org/questi...t=wire+pc+port
http://www.linuxquestions.org/questi...t=wire+pc+port
http://www.linuxquestions.org/questi...t=wire+pc+port

Looks like an odd device to work with. It looks like others have trouble configuring that device too.

good luck.


All times are GMT -5. The time now is 04:13 PM.