LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Can't connect to the internet (https://www.linuxquestions.org/questions/mandriva-30/cant-connect-to-the-internet-130708/)

CJB 01-01-2004 10:13 PM

Can't connect to the internet
 
I've set up Mandrake 9.2 Download Version on my PC but I can't seem to connect to the internet (broadband). I am pretty sure it is an error on my part filling in incorrect information in the internet configuration (I can connect on my Windows XP machine using the same broadband modem)but I don't know what:confused:

The information I have is as follows:

Incoming Mail Server (POP3)
Outgoing Mail Server (SMTP)
News Server (NNTP)
My Login ID
My e-mail address
My Password

Note: My ISP automatically allocates an IP address everytime I log on.

I don't know what to fill in the following fields that Mandrake requires:

Host name
Zeroconf host name
DNS Server
Gateway (e.g. ...1)

Under the LAN configuration I am prompted for the following information:

IP address (What do I fill in here when my ISP automatically allocates a different IP address everyytime I log on???)
Netmask
Boot Protocol (I am given a choice of DHCP - this is the default, static or bootp)
Started on Boot Y/N
DHCP Client


Any help would be really appreciated
:)

Thanks.

debloxie 01-02-2004 03:01 AM

i have add similar prolem before. pls just fill out as usual and make sure ur internet connections startup at boot time.

then fill out the hostname, DHCP for ur ip address, netmask, protocol as u have stated in ur message.

what kinda network card do u use? i feel ur net card is not yet initiated by the kernel.

once u have everything plugged in, go to konsole and type in

/sbin/ifconfig

the above is to check whether there is an ipp addy present. just lookout for eth0 column in the message and look for inet add:

if theres nothing there

just type in

/sbin/ifup eth0 or ifup eth0

this will try to look for the ip address allocated to ur system and will initialize ur netcard

pls reply

CJB 01-02-2004 04:14 AM

Thanks for your help, debloxie.

Part of the problem I'm having is that I don't know what the Netmask, Boot protocol, DHCP Client, DNS Server, Gateway, Host name and Zeroconf host name are so I literally don't know what to type in.

I checked the hardware in the Mandrake Control Centre and it has detected that my Ethernet card is an Intel 82558B Ethernet Pro 10/100.

I typed in /sbin/ifconfig and checked the information listed at the eth0 column. Which is as follows:

eth0:9 Link encap:Ethernet HWaddr xx:xx:XX:xx:Xx:xx
inet addr: xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:xxx.x.x.x
UP BROADCAST RUNNING MULTICAST MTU:xxxx
Metric:x
Interrupt:9 Base address:0x7000

Note: The X's above denote letters, the x's denote numbers.

CJB 01-03-2004 01:44 AM

If anyone can assist with this problem, I'd be grateful.

I tried calling the ISP to find out what the DHCP client is etc. etc. They asked what version of Windows I was using. When I told them I was using Linux they just said they did not offer support for Linux and were therfore no help wharsoever.

scott_R 01-03-2004 06:29 AM

I'm on Mandrake 9.1, so this may not be perfect for your situation, and other network factors may also intrude. Basically, however, once you get dhcp working, you don't need to worry about netmask, boot protocol, DNS server, etc. That's the reason dhcp exists, because people got tired of that hassle. 'pump' is the dhcp client I use, but dhcpcd is good too.

If you're linked up to a cable modem, you're home free, as it expects you to use dhcp (provided your provider isn't a putz, you might have to make several calls to them to establish your connection, but that's rare nowadays).

You should be able to skip any network configuration till you get to a dynamic or DHCP setup.

Most ISP's won't troubleshoot Linux problems (this is changing, but slowly, as the ISP's are using Linux as well). What you need to do is understand how the underlying network works. Then, when they ask you a "windows" question, you can give them an answer, even using Linux. A pain, true, but it has it's own benefits, as you will gain knowledge of a network you use every day.

Aside from that, you can simply try calling them a few times, until you get someone with Linux knowledge, or bug them enough that they find a Linux tech for you. Maybe not the most elegant solution, but results are what matters, no? :)

CJB 01-03-2004 09:55 AM

Thanks scott_R.

But what should I type in the box which prompts me to type in the DHCP Client? Any ideas?

Thanks.

grremlins 01-03-2004 11:59 AM

I'm using slackware, so I can't help with the Mandrake specific stuff, but the rest is pretty standard networking info. You can get a lot of what you're going to need from your xp box. On that machine, open a command prompt (start / run / CMD <enter>) and type <B>ipconfig /all</B>. You'll need the DNS server and Default Gateway. The hostname is what you want your machine called (mine answers to goblin, my mp3 server answers to bard, etc).

I have no idea about the zeroconf server.

hope this helps...

jeffzw 01-03-2004 04:42 PM

CJB

Just select DHCP for the boot protocol and DHCP client, it will grey out all information such as ip address and the like.
Default DHCP configuration will let the replying DHCP server configure your IP, subnet mask, def gateway, DNS servers. Just enter the hostname in zeroconf to have a local name for your machine.

Jeff

CJB 01-07-2004 07:37 AM

Well, still no luck. I got the following settings from Windows:

Windows IP Configuration
Host name: chris
Primary DNS Suffix:
Node Type: Unknown
IP Routing Enabled: No
WINS Proxy Enabled: No

Ethernet adapter Local Area Connection:
Connection-specific DNS suffix:
Description: Realtek RTL8139/810x Family Fast Ethernet NIC
Physical Address: 00-E0-18-53-F8-7F
Dhcp Enabled: Yes
Autoconfiguration Enabled: Yes
Autoconfiguration IP Address: 169.254.198.224
Subnet Mask: 255.255.0.0
Default Gateway:

PPP Adapter IMS:
Connection-specific DNS Suffix:
Description: WAN (PPP/SLIP) Interface
Physical Address: 00-53-45-00-00-00
Dhcp Enabled: No
IP Address: 203.218.46.232 Note - This changes each time I connect
Subnet Mask: 255.255.255.255
Default Gateway: 203.218.46.232 Note - This changes each time I connect
DNS Servers: 218.102.62.71
205.252.144.120
Net BIOS over Tcpip: Disabled

I typing in the parameters in various combinations to no avail. Part of the problem is the fact that Windows gives me two DNS server numbers. Which one do I use:confused:

I still don't know what to type in the DHCP Client box.

I'm sure the solution must be simple as I can connect with Windows from the same computer without any problem. But for the life of me, I cannot work out what the problem is.


This is what happens when I boot up Mandrake in verbose mode - among the list of boot-up messages I saw the following:

zcip[942]: Retrieved address 127.255.255.255 for eth0:9
zcip[942]: sending probe 1 for 127.255.255.255
zcip[942]: address in use
zcip[942]: sending probe 1 for 169.254.254.95
zcip[942]: sending probe 3 for 169.254.254.95
zcip[942]: claiming ownership of address 169.254.254.95
zcip[943]: waiting for collisions

Additionally, I tried typing ifconfig -a in Konsole and got the following readout:

eth0 Link encap: Ethernet HWaddr 00:E0:18:55:F8:7F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets: 1 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 14 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 100
RX bytes: 60 (60.0 b) TX bytes: 2814 (2.7 Kb)
Interrupt: 10 Base address: 0xe000

eth0:9 Link encap: Ethernet HWaddr 00:E0:18:55:F8:7F
inet addr: 169.254.254.95 Bcast: 169.254.255.255
Mask 255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address: 0xe000

lo Link encap: Local Loopback
inet addr: 127.0.0.1 Mask 255.0.0.0
UP LOOPBACK RUNNING MTU: 16436 Metric:1
RX packets:95 errors:0 dropped:0 overruns:0 frame:0
TX packets:95 errors:0 dropped:0 overruns:0: carrier:0
collisions:0 txqueuelen:0
RX bytes: 5312 (5.1 Kb) TX bytes: 5312 (5.1 Kb)

Also, when I type route I get the following readout:

Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo

Any ideas:scratch:

CJB 01-12-2004 10:13 AM

I'm still not getting anywhere with this problem. I tried typing in the following commands in Konsole and below are the outputs. If these will help someone understand what the problem is, I'd be very grateful.

Thanks!

Code:

[christopher@IMS christopher]$ su
Password:
[root@IMS christopher]# cat /proc/pci
PCI devices found:
  Bus  0, device  0, function  0:
    Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 129).
      Master Capable.  Latency=40.
      Prefetchable 32 bit memory at 0xf8000000 [0xfbffffff].
  Bus  0, device  1, function  0:
    PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] (rev 0).
      Master Capable.  No bursts.  Min Gnt=8.
  Bus  0, device  7, function  0:
    ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 64).
  Bus  0, device  7, function  1:
    IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT
8235 PIPC BM IDE (rev 6).
      Master Capable.  Latency=32.
      I/O at 0xd800 [0xd80f].
  Bus  0, device  7, function  2:
    USB Controller: VIA Technologies, Inc. USB (rev 26).
      IRQ 9.
      Master Capable.  Latency=32.
      I/O at 0xd400 [0xd41f].
  Bus  0, device  7, function  3:
    USB Controller: VIA Technologies, Inc. USB (#2) (rev 26).
      IRQ 9.
      Master Capable.  Latency=32.
      I/O at 0xd000 [0xd01f].
  Bus  0, device  7, function  4:
    Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 64).
      IRQ 9.
  Bus  0, device  7, function  5:
    Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Cont    roller (rev 80).
      IRQ 5.
      I/O at 0xb800 [0xb8ff].
      I/O at 0xb400 [0xb403].
      I/O at 0xb000 [0xb003].
  Bus  0, device  7, function  6:
    Communication controller: VIA Technologies, Inc. Intel 537 [AC97 Modem] (rev      48).
      IRQ 5.
      I/O at 0xa800 [0xa8ff].
  Bus  0, device  18, function  0:
    Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (    rev 16).
      IRQ 10.
      Master Capable.  Latency=32.  Min Gnt=32.Max Lat=64.
      I/O at 0xa400 [0xa4ff].
      Non-prefetchable 32 bit memory at 0xee800000 [0xee8000ff].
  Bus  1, device  0, function  0:
    VGA compatible controller: S3 Inc. ProSavage KM133 (rev 3).
      IRQ 11.
      Master Capable.  Latency=64.  Min Gnt=4.Max Lat=255.
      Non-prefetchable 32 bit memory at 0xef000000 [0xef07ffff].
      Prefetchable 32 bit memory at 0xf0000000 [0xf7ffffff].
[root@IMS christopher]#

Code:

[root@IMS christopher]# cat /etc/modules.conf

above snd-via82xx snd-pcm-oss
alias eth0 8139too
probeall usb-interface usb-uhci
alias sound-slot-0 snd-via82xx
probeall scsi_hostadapter ide-scsi
[root@IMS christopher]#

Code:

[root@IMS christopher]# cat /proc/modules
nls_cp850              4284  1 (autoclean)
vfat                  11820  1 (autoclean)
fat                    38040  0 (autoclean) [vfat]
snd-seq-oss            32000  0 (unused)
snd-seq-midi-event      6080  0 [snd-seq-oss]
snd-seq                42544  2 [snd-seq-oss snd-seq-midi-event]
snd-pcm-oss            43652  0
[root@IMS christopher]# cat /proc/modules
nls_cp850              4284  1 (autoclean)
vfat                  11820  1 (autoclean)
fat                    38040  0 (autoclean) [vfat]
snd-seq-oss            32000  0 (unused)
snd-seq-midi-event      6080  0 [snd-seq-oss]
snd-seq                42544  2 [snd-seq-oss snd-seq-midi-event]
snd-pcm-oss            43652  0
snd-mixer-oss          14200  0 [snd-pcm-oss]
snd-via82xx            15360  0
snd-pcm                79588  0 [snd-pcm-oss snd-via82xx]
snd-timer              18436  0 [snd-seq snd-pcm]
snd-ac97-codec        45720  0 [snd-via82xx]
snd-mpu401-uart        4704  0 [snd-via82xx]
snd-rawmidi            17760  0 [snd-mpu401-uart]
snd-seq-device          5832  0 [snd-seq-oss snd-seq snd-rawmidi]
snd-page-alloc          9044  0 [snd-via82xx snd-pcm]
snd                    41380  0 [snd-seq-oss snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-via82xx snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore              6340  0 [snd]
af_packet              14856  2 (autoclean)
sr_mod                19384  0 (autoclean)
floppy                55932  2
8139too                17384  1 (autoclean)
mii                    3864  0 (autoclean) [8139too]
nls_iso8859-1          3484  4 (autoclean)
ntfs                  77292  3 (autoclean)
supermount            84032  3 (autoclean)
ide-cd                33956  1
cdrom                  32608  0 [sr_mod ide-cd]
ide-scsi              11376  0
scsi_mod              106176  2 [sr_mod ide-scsi]
scanner                12064  0
usb-uhci              25136  0 (unused)
usbcore                74988  1 [scanner usb-uhci]
rtc                    9004  0 (autoclean)
[root@IMS christopher]#

Code:

[root@IMS christopher]# /sbin/ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:E0:18:55:F8:7F
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:60 (60.0 b)  TX bytes:2472 (2.4 Kb)
          Interrupt:10 Base address:0xe000

eth0:9    Link encap:Ethernet  HWaddr 00:E0:18:55:F8:7F
          inet addr:169.254.254.95  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xe000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:118 errors:0 dropped:0 overruns:0 frame:0
          TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6668 (6.5 Kb)  TX bytes:6668 (6.5 Kb)

[root@IMS christopher]#

Code:

[root@IMS christopher]# /sbin/route -en
Kernel IP routing table
Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
169.254.0.0    0.0.0.0        255.255.0.0        U        0      0          0  eth0
127.0.0.0        0.0.0.0        255.0.0.0            U        0      0          0  lo
[root@IMS christopher]#


jeffzw 01-12-2004 11:37 AM

You got an interface, you got an IP. This IP is in a specific IP range which is used when your machine cannot contact a DHCP server.
What this means is
- good news : your machine seems okay
- band news : something prevents your machine from talking to the DHCP server

you said earlier your Windows config was running fine ?

could you tell me if you have a file named ifcfg-eth0 in /etc/sysconfig/network-scripts ? If yes, could you send me its content ?

Coud you also send the content of /etc/dhclient.conf ?

I have a DHCP problem with my cable provider. I have to wait a few minutes before getting an IP but it was also true using Windows. Through Konsole, being root, type

ps -edf | grep dh

and see if you have a dhclient running. If not, run it by issuing the command

dhclient -d

it will not go in the background and you will be able to stop it using Ctrl-C. Send me the output as well.

jeffzw 01-13-2004 04:40 PM

sorry it's /etc/dhclient-eth0.conf

and you should run
dhclient -d -1 -lf /var/lib/dhcp/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid -cf /etc/dhclient-eth0.conf eth0

CJB 01-14-2004 09:12 AM

Thanks for the advice, jeffzw. OK I typed in the command you suggested. They are printed below with the respective outputs (Note these are literally cut and pasted via a floppy disk so if there is a typing error, let me know!!):

Code:

[christopher@IMS christopher]$ su
Password:
[root@IMS christopher]# ifcfg -eth0 in /etc/sysconfig/network-scripts
SIOCGIFFLAGS: No such device
Error: cannot enable interface -eth0.
[root@IMS christopher]#

Code:

[root@IMS christopher]# /etc/dhclient-eth0.conf
bash: /etc/dhclient-eth0.conf: No such file or directory
[root@IMS christopher]#

Code:

[root@IMS christopher]# dhclient -d-1-lf/var/lib/dhcp/dhclient-eth0.leases -pf/var/run/dhclient-eth0.pid -cf /etc/dhclient-eth0.conf eth0
Internet Software Consortium DHCP Client V3.0.1rc11
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Usage: dhclient [-1dqr] [-nw] [-p <port>] [-s server]
                [-cf config-file] [-lf lease-file][-pf pid-file] [-e VAR=val]
                [-sf script-file] [interface]

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
[root@IMS christopher]#

Does this shed any light on the problem?

CJB 01-14-2004 09:38 AM

Hi jeffzw,

Sorry I missed off two of the commands you requested on my previous message. I've cut and pasted them below for your info. Thanks!

Code:

[christopher@IMS christopher]$ su
Password:
[root@IMS christopher]# ps -edf | grep dh
[root@IMS christopher]#

Code:

[root@IMS christopher]# dhclient -d
Internet Software Consortium DHCP Client V3.0.1rc11
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/lo/
Sending on  LPF/lo/
Listening on LPF/eth0/00:e0:18:55:f8:7f
Sending on  LPF/eth0/00:e0:18:55:f8:7f
Sending on  Socket/fallback
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.


jeffzw 01-14-2004 10:27 AM

Ok, I wasn't too clear in my email, could you do this instead (pay attention to the spaces between each part of the command) :

cd /etc/sysconfig/network-scripts
ls -l ifcfg*
more ifcfg-eth0
cd /etc
more dhclient-eth0.conf
dhclient -d -1 -lf /var/lib/dhcp/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid -cf /etc/dhclient-eth0.conf eth0
please leave the spaces between the options etc. !


All times are GMT -5. The time now is 10:06 PM.