LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Resolv.conf correct or missing something? (https://www.linuxquestions.org/questions/linux-networking-3/resolv-conf-correct-or-missing-something-240628/)

Lostboy7500 10-09-2004 12:42 PM

Resolv.conf correct or missing something?
 
I have set my SuSe pro system up about 50 different ways and have yet to be able to ping anything and when i try to ping localhost it times out after about 100 attempts.

My /etc/Resolv.conf:
Nameserver 63.240.76.198
Nameserver 204.127.199.8
search comcast.net

My IFCONFIG:
eth0 Link encap:Ethernet HWaddr 00:0D:88:3*:2C:9E
inet addr:24.0.110.102 Bcast:24.0.111.255 Mask:255.255.248.0
inet6 addr: fe80::20d:88ff:fe37:2c9e/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:95776 errors:0 dropped:0 overruns:0 frame:0
TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqeuelan:100
RX bytes:6017570 (5.7 Mb) TX bytes:36282 (35.4 kb)
Interupt:10 Base address:0x1000

lo Link encap: Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1

All the addresses look correct, the only one i am not familiar with is the Bcast address....I cannot ping anything with address only or name so I cant say wether its just a DNS issue or what. I am connected directly to a cable modem. XP box works fine on same connection. I am also not sure what to plug into the Domain Search Lines in the setup but hopefully someone can help....

tuxq 10-09-2004 03:16 PM

Your resolv.conf is correct ... what could be wrong is your /etc/hosts file.

Lostboy7500 10-09-2004 03:19 PM

Im assuming this is my problem because my /etc/host.conf file is empty....What do I need to add to this file?

Mara 10-09-2004 04:52 PM

Not /etc/host.conf. You should have another file, /etc/hosts which should have a line like this:
Code:

127.0.0.1              localhost

Lostboy7500 10-09-2004 06:03 PM

I just checked and my /etc/hosts file contains that line along with some IPv6 addresses. I am completely at a loss. Is there a step by step I can read to see if I missed something?

mritch 10-09-2004 07:15 PM

Re: Resolv.conf correct or missing something?
 
Quote:

Originally posted by Lostboy7500


My IFCONFIG:
eth0 Link encap:Ethernet HWaddr 00:0D:88:3*:2C:9E
inet addr:24.0.110.102 Bcast:24.0.111.255 Mask:255.255.248.0
inet6 addr: fe80::20d:88ff:fe37:2c9e/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:95776 errors:0 dropped:0 overruns:0 frame:0
TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqeuelan:100
RX bytes:6017570 (5.7 Mb) TX bytes:36282 (35.4 kb)
Interupt:10 Base address:0x1000


post your network setup script and more about your network topologie.
broadcast should likely be 24.0.110.255 with a mask of 255.255.255.0

sl mritch.

Lostboy7500 10-09-2004 07:38 PM

I gathered all the numbers from Windows. Im positive the Mask address is correct, atleast thats what the Mask is in windows. What specifically more do you need? What command results are you looking for?

mritch 10-09-2004 08:20 PM

if you broadcast to a net 24.0.111.0 and you are on 24.0.110.0 - that's quite funny (if it's some standard network topologie). so a broadcase icmp will get somewhere to 111.
next is your netmask. with 255.255.248.0 there has to be another subnet elsewhere, so let's say, i can't imagine your network layout (even it's not impossible this way).
you also said you can't ping your localhost (or 127.0.0.1) - that's weired. have you some firewall installed that blocks it? can you ping any of your interfaces? is this the complete lo ifconfig you posted? also post a route -n. THX
a little overview from your network would make things easier ;-)

sl mritch.

btw. what is this box acting as?

michaelk 10-09-2004 09:02 PM

Do you have more then one PC connected to the modem or is this dual boot?

Most cable internet home plans only give you one dynamic IP address so you can only connect one ethernet device. If you change cards you will need to remove power from the modem for a minute. You can try changing the NIC MAC in software via the ifconfig command to match the XP box.

Lostboy7500 10-09-2004 09:34 PM

It is 2 seperate comps that I have been switching back and forth on the cable modem. I read somewhere there is possibly an ARP cache in the modem/ISP and I would need to stay of the xp box till the lease expires and then reconect with the Linux box. If I unplug the cable modem and plug it back in while the Linux box is hooked up is it possible this will work? How do I change the MAC address through IFCONFIG?

mritch 10-09-2004 10:01 PM

some isp's require a uniqe mac address which is allowed to connect. to change the mac to that of your xp machine use ifconfig or iptables. i'd suggest the "ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx" method which is easier. if it's just the router needs to timeout the arp cache unplugging the power cord will be sufficent.

what's 'bout the ping problem on localhost? you'll likely get a dynamicaly assigned ip from your provider. is this working allright?

sl mritch.

scowles 10-09-2004 10:40 PM

Quote:

Originally posted by Lostboy7500
It is 2 seperate comps that I have been switching back and forth on the cable modem. I read somewhere there is possibly an ARP cache in the modem/ISP and I would need to stay of the xp box till the lease expires and then reconect with the Linux box. If I unplug the cable modem and plug it back in while the Linux box is hooked up is it possible this will work? How do I change the MAC address through IFCONFIG?
Sometimes issuing an arping will resolve the long arp cache expiry problem at the upstream router.

See: man arping - especially the -U option.

Lostboy7500 10-10-2004 02:43 AM

Unplugging the modem worked! Oddly enough when I attempt to ping localhost it still times out? Anyway, Konq sucks andI would like to install Firefox but I am a newb, I have downloaded the file and attempted this :
tar -xzvf firefox-1.0pr-i686-linux-gtk2+xft.tar.gz
cd firefox-1.0pr-i686-linux-gtk2+xft/./firefox-installer

Obviously it didnt work, im assuming the directory I downloadedd the file to needs to be there somewhere but not sure where to lug it in. I downloaded it to /home/****/documents/<file>....

bornhj 10-10-2004 03:13 AM

Quote:

tar -xzvf firefox-1.0pr-i686-linux-gtk2+xft.tar.gz
cd firefox-1.0pr-i686-linux-gtk2+xft/./firefox-installer
Try (as root - "su -"):

Code:

tar -xzvf firefox-1.0pr-i686-linux-gtk2+xft.tar.gz
cd firefox-1.0pr-i686-linux-gtk2+xft/
./firefox-installer

Unless you just forgot to hit enter...

Oh, it may seem like a silly thing to forget, but make sure you run those from an X terminal e.g. Konsole

micxz 10-10-2004 04:15 AM

Comcast does not require a specific mac address to be connected, only to setup the account. It does require rebooting the modem for some reason when switching the cable between computers. Any problems ever, always unplug/reboot the modem and refresh dhcp. Also I've noticed the comcast nameserver IPs change rarely but sometimes, you need to refresh them via dhcp.
just my comcast 2cent'


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