Networking Forums

Networking Forums > Computer Networking > Linux Networking > Internet Woes

Reply
Thread Tools Display Modes

Internet Woes

 
 
Darryl
Guest
Posts: n/a

 
      12-20-2003, 04:59 PM
Hello All. I've been having a problem connecting to the internet for
the last few weeks since I put Mandrake 9.2 on my machine. I
previously had Mandrake 8.1 and the net worked "out of the box",
meaning I didn't configure it myself: the install configured it and it
worked with my DSL. I wiped the partition and put 9.2 on, and it
hasn't been able to connect to the internet since.

In my Windows 98 box under "winipcfg" it has the following
information:

IP Address: xx.yy.zz.214
Subnet Mask: 255.255.255.128
Default Gateway: xx.yy.xx.129

where "xx", "yy", and "zz" are all different numbers, but the string
"xx.yy.zz" is the same in the IP address and the Gateway. The net
works fine on the Windows box.

On the Linux box the Mandrake Control Center, under DrakConnect it has
the following info:

Hostname: thor

Internet Access:
Type: lan
Gateway: xx.yy.zz.129
Status: Not connected


LAN Configuration:
Interface IP Address Protocol Driver State
eth0 192.168.0.1 static ne2k-pci up
eth1 xx.yy.zz.217 dhcp ne2k-pci up

---------------------------------------
Configure Hostname

Host Name: thor
Zeroconf Host Name: thor
DNS Server: xx.yy.aa.138
Gateway (e.g. ...1) xx.yy.zz.217
Gateway Device: eth1

This does not connect at all. So I changed eth1 to a static IP and
entered the same IP that shows up on the Windows box. i.e.
xx.yy.zz.214. So the line for "eth1" read like this:

eth1 xx.yy.zz.214 static ne2k-pci up

Clicked "apply" and had the same results. Ifconfig eth1 shows the
correct IP address assigned but it doesn't connect to anything. Pings
fail to any address including the one assigned to eth1, whether it is
the address DHCP gets or the static one I assign that is the same as
the Windows IP that works. They both get 100% packet loss after I
press <ctrl-c> to stop the pinging.

Here are the contents of some files that hopefully can be of some
help:

/etc/sysconfig/network
HOSTNAME=thor
NETWORKING=yes
GATEWAY=xx.yy.zz.129
GATEWAYDEV=eth1

/etc/hosts
127.0.0.1 localhost
192.168.0.1 thor
xx.yy.zz.214 thor

/etc/sysconfig/network-scripts/ifcfg-eth1
IPADDR=xx.yy.zz.214
NETMASK=255.255.255.0
NETWORK=xx.yy.zz.128
BROADCAST=192.168.1.255
ONBOOT=yes
MII_NOT_SUPPORTED=yes

/etc/host.conf
order hosts,bind
multi on
nospoof on
spoofalert on

/etc/resolv.conf
nameserver aa.bb.cc.dd

This is the output of the 'route' command:
Destination Gateway Genmask Flags Metric Ref Use Iface
xx.yy.zz.128 * 255.255.255.128 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default xx.yy.zz.129 0.0.0.0 UG 0 0 0 eth1

Since the Windows box gets the IP ending with "214" I suspect that is
the correct IP address since it connects successfully to the net. I
don't know why Mandrake doesn't ever get this thru DHCP, but it
doesn't.

Note that I previously had Mandrake 6.0 on this box, and the net
worked fine. At that time I had it configured with a static IP that I
had to manually change when my IP changed, but it worked fine. Just
had to do ifdown and ifup when I couldn't connect to the net and it
would get the correct IP address. I then wiped 6.0 and installed 8.1
and DHCP worked normally. In fact, I didn't configure it at all: the
install program in 8.1 set it up correctly and I was able to connect
to the net immediately without any tinkering by me. Now I wiped 8.1
and installed 9.2 and it has not worked once. I can't surf, can't ping
outside addresses, I can't even ping the address DHCP assigns to eth1!
The ifdown/ifup combination doesn't even seem to get the correct IP
address now. If anyone has any ideas I'd appreciate it. Thanks.

Darryl
 
Reply With Quote
 
 
 
 
Doug Holtz NOSPAM in adress
Guest
Posts: n/a

 
      12-20-2003, 05:55 PM

"Darryl" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hello All. I've been having a problem connecting to the internet for
> the last few weeks since I put Mandrake 9.2 on my machine. I
> previously had Mandrake 8.1 and the net worked "out of the box",
> meaning I didn't configure it myself: the install configured it and it
> worked with my DSL. I wiped the partition and put 9.2 on, and it
> hasn't been able to connect to the internet since.
>
> In my Windows 98 box under "winipcfg" it has the following
> information:
>
> IP Address: xx.yy.zz.214
> Subnet Mask: 255.255.255.128
> Default Gateway: xx.yy.xx.129
>
> where "xx", "yy", and "zz" are all different numbers, but the string
> "xx.yy.zz" is the same in the IP address and the Gateway. The net
> works fine on the Windows box.
>
> On the Linux box the Mandrake Control Center, under DrakConnect it has
> the following info:
>
> Hostname: thor
>
> Internet Access:
> Type: lan
> Gateway: xx.yy.zz.129
> Status: Not connected
>
>
> LAN Configuration:
> Interface IP Address Protocol Driver State
> eth0 192.168.0.1 static ne2k-pci up
> eth1 xx.yy.zz.217 dhcp ne2k-pci up
>
> ---------------------------------------
> Configure Hostname
>
> Host Name: thor
> Zeroconf Host Name: thor
> DNS Server: xx.yy.aa.138
> Gateway (e.g. ...1) xx.yy.zz.217
> Gateway Device: eth1
>
> This does not connect at all. So I changed eth1 to a static IP and
> entered the same IP that shows up on the Windows box. i.e.
> xx.yy.zz.214. So the line for "eth1" read like this:
>
> eth1 xx.yy.zz.214 static ne2k-pci up
>
> Clicked "apply" and had the same results. Ifconfig eth1 shows the
> correct IP address assigned but it doesn't connect to anything. Pings
> fail to any address including the one assigned to eth1, whether it is
> the address DHCP gets or the static one I assign that is the same as
> the Windows IP that works. They both get 100% packet loss after I
> press <ctrl-c> to stop the pinging.
>
> Here are the contents of some files that hopefully can be of some
> help:
>
> /etc/sysconfig/network
> HOSTNAME=thor
> NETWORKING=yes
> GATEWAY=xx.yy.zz.129
> GATEWAYDEV=eth1
>
> /etc/hosts
> 127.0.0.1 localhost
> 192.168.0.1 thor
> xx.yy.zz.214 thor
>
> /etc/sysconfig/network-scripts/ifcfg-eth1
> IPADDR=xx.yy.zz.214
> NETMASK=255.255.255.0
> NETWORK=xx.yy.zz.128
> BROADCAST=192.168.1.255
> ONBOOT=yes
> MII_NOT_SUPPORTED=yes
>
> /etc/host.conf
> order hosts,bind
> multi on
> nospoof on
> spoofalert on
>
> /etc/resolv.conf
> nameserver aa.bb.cc.dd
>
> This is the output of the 'route' command:
> Destination Gateway Genmask Flags Metric Ref Use Iface
> xx.yy.zz.128 * 255.255.255.128 U 0 0 0 eth1
> 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> default xx.yy.zz.129 0.0.0.0 UG 0 0 0 eth1
>
> Since the Windows box gets the IP ending with "214" I suspect that is
> the correct IP address since it connects successfully to the net. I
> don't know why Mandrake doesn't ever get this thru DHCP, but it
> doesn't.
>
> Note that I previously had Mandrake 6.0 on this box, and the net
> worked fine. At that time I had it configured with a static IP that I
> had to manually change when my IP changed, but it worked fine. Just
> had to do ifdown and ifup when I couldn't connect to the net and it
> would get the correct IP address. I then wiped 6.0 and installed 8.1
> and DHCP worked normally. In fact, I didn't configure it at all: the
> install program in 8.1 set it up correctly and I was able to connect
> to the net immediately without any tinkering by me. Now I wiped 8.1
> and installed 9.2 and it has not worked once. I can't surf, can't ping
> outside addresses, I can't even ping the address DHCP assigns to eth1!
> The ifdown/ifup combination doesn't even seem to get the correct IP
> address now. If anyone has any ideas I'd appreciate it. Thanks.
>
> Darryl


Darryl

Your main error here is that each PC on a network needs it's own IP address.
So, the windows box with .219 is OK if the Linux bix has .218 or something
else less than 254. Also the IP address of the gateway is a different
number as well: if your win98 box is .219 and it connects directly to the
cable/dsl ethernet cable, then the Linux box needs the gateway address to be
..219 so it can find the internet. I use a static IP address scheme
192.168.0.1 for the gateway (router in my case) and 192.168.0.10, .20, .30
etc for each PC. The gateway address for all PC's is the .1 address.

Doug


 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      12-20-2003, 06:05 PM
On 20 Dec 2003 09:59:05 -0800, Darryl wrote:
> Hello All. I've been having a problem connecting to the internet for
> the last few weeks since I put Mandrake 9.2 on my machine. I
> previously had Mandrake 8.1 and the net worked "out of the box",
> meaning I didn't configure it myself: the install configured it and it
> worked with my DSL. I wiped the partition and put 9.2 on, and it
> hasn't been able to connect to the internet since.
>
> In my Windows 98 box under "winipcfg" it has the following
> information:
>
> IP Address: xx.yy.zz.214
> Subnet Mask: 255.255.255.128
> Default Gateway: xx.yy.xx.129
>
> where "xx", "yy", and "zz" are all different numbers, but the string
> "xx.yy.zz" is the same in the IP address and the Gateway. The net
> works fine on the Windows box.
>
> On the Linux box the Mandrake Control Center, under DrakConnect it has
> the following info:
>
> Hostname: thor
>
> Internet Access:
> Type: lan
> Gateway: xx.yy.zz.129
> Status: Not connected
>
>
> LAN Configuration:
> Interface IP Address Protocol Driver State
> eth0 192.168.0.1 static ne2k-pci up
> eth1 xx.yy.zz.217 dhcp ne2k-pci up


I think ifcfg-eth1 should be changed
what is working for me is

/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes
MII_NOT_SUPPORTED=yes

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
MII_NOT_SUPPORTED=yes

/etc/sysconfig/network
HOSTNAME=fw.home
NETWORKING=yes
GATEWAY=24.1.208.1
GATEWAYDEV=eth1

cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.1 fw.home fw
192.168.1.12 wb1.home wb1
192.168.1.10 wb.home wb
24.1.208.1 attbi_gateway


After making your changes do a
service network restart
to test.
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      12-20-2003, 08:35 PM
Darryl <(E-Mail Removed)> wrote:
> Hello All. I've been having a problem connecting to the internet
> for the last few weeks since I put Mandrake 9.2 on my machine. I
> previously had Mandrake 8.1 and the net worked "out of the box",
> meaning I didn't configure it myself: the install configured it
> and it worked with my DSL. I wiped the partition and put 9.2 on,
> and it hasn't been able to connect to the internet since.


> In my Windows 98 box under "winipcfg" it has the following
> information:


> IP Address: xx.yy.zz.214
> Subnet Mask: 255.255.255.128
> Default Gateway: xx.yy.xx.129


I don't know how you munged the IP addresses (so it may just be a typo)
but the gateway address here is not the same as the gateway address
in Linux:

....

> Internet Access:
> Type: lan
> Gateway: xx.yy.zz.129
> Status: Not connected


If there is no typo then that's very likely the problem.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* My confidence in this answer (X), on a scale of 0 to 10:
|----|----|----|----|----|----|----|----|----|----|
0----1----2----3----4----5----6----7----8----9---X0 */

 
Reply With Quote
 
Darryl
Guest
Posts: n/a

 
      12-20-2003, 09:58 PM
"Doug Holtz NOSPAM in adress" <(E-Mail Removed)> wrote in message news:<%>
> Your main error here is that each PC on a network needs it's own IP address.


Actually I wasn't clear here. The PCs aren't networked together yet.
I've been manually switching the ethernet cable between the Windows
box and the Linux box because if I network the Windows box, then the
Linux box will have to be the gateway, and it can't get a connection
by itself. So I'm trying to set up the Linux box with the net before I
do any other networking.

The boxes were networked when I had Mandrake 8.1, which is what I
eventually want. But for now I swap the cable manually until I can at
least get the linux box to see the net.

Darryl
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      12-20-2003, 10:04 PM
On 20 Dec 2003 14:58:10 -0800, Darryl wrote:
>
> Actually I wasn't clear here. The PCs aren't networked together yet.
> I've been manually switching the ethernet cable between the Windows
> box and the Linux box because if I network the Windows box, then the
> Linux box will have to be the gateway, and it can't get a connection
> by itself. So I'm trying to set up the Linux box with the net before I
> do any other networking.



Maybe you have to power cycle the device you are talking to when you
switch cables. I know you have to power cycle a Cable Modem if you
swap hardware.
 
Reply With Quote
 
Darryl
Guest
Posts: n/a

 
      12-20-2003, 10:35 PM
Bit Twister <(E-Mail Removed)> wrote in message

> I think ifcfg-eth1 should be changed
> what is working for me is
>
> /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE=eth1
> BOOTPROTO=dhcp
> ONBOOT=yes
> MII_NOT_SUPPORTED=yes

<settings snipped>

Well I made the changes except for a couple of lines you have in your
/etc/hosts (I assume the 192.168.1.12 and 192.168.1.10 are local
machines that I don't need in mine). I put in my gateway (according to
the Win machine that connects to the net) and set up eth1 for dhcp as
you have it here. Did a "network service restart" and it promptly took
eth0 and eth1 down and brought both back up. Unfortunately it still
brought eth1 up with the wrong IP address! The IP it keeps getting is
different from what the Windows box successfully uses to connect. Note
that since I'm physically swapping the ethernet cable I figure both
machines should get the same IP thru DHCP (at least they used to when
I had to manually swap when the net worked on my Linux box). Of course
the net still isn't working. That's why I had it set up with a static
IP before. I was trying to "force" it to use the IP that is
successfully working thru the windows box. That didn't work either.

It's obviously connecting to something because when I unplug the modem
eth1 doesn't come up at all. When I connect it back is goes and gets
the wrong IP, but Windows gets the correct IP consistently. Any other
ideas?

Darryl, lost
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      12-20-2003, 10:47 PM
On 20 Dec 2003 15:35:38 -0800, Darryl wrote:
> Bit Twister <(E-Mail Removed)> wrote in message
>
>> I think ifcfg-eth1 should be changed
>> what is working for me is
>>
>> /etc/sysconfig/network-scripts/ifcfg-eth1
>> DEVICE=eth1
>> BOOTPROTO=dhcp
>> ONBOOT=yes
>> MII_NOT_SUPPORTED=yes

><settings snipped>
>
> Well I made the changes except for a couple of lines you have in your
> /etc/hosts (I assume the 192.168.1.12 and 192.168.1.10 are local
> machines that I don't need in mine). I put in my gateway (according to
> the Win machine that connects to the net) and set up eth1 for dhcp as
> you have it here. Did a "network service restart" and it promptly took
> eth0 and eth1 down and brought both back up. Unfortunately it still
> brought eth1 up with the wrong IP address! The IP it keeps getting is
> different from what the Windows box successfully uses to connect. Note
> that since I'm physically swapping the ethernet cable I figure both
> machines should get the same IP thru DHCP (at least they used to when
> I had to manually swap when the net worked on my Linux box). Of course
> the net still isn't working. That's why I had it set up with a static
> IP before. I was trying to "force" it to use the IP that is
> successfully working thru the windows box. That didn't work either.
>
> It's obviously connecting to something because when I unplug the modem
> eth1 doesn't come up at all. When I connect it back is goes and gets
> the wrong IP, but Windows gets the correct IP consistently. Any other
> ideas?


If you are swapping cables, you may need to power reset device you are
talking to, IE cable modem. If you did not ipconfig /release on DOZE
your linux box will be able to get ip address. If this is not the same
box the the nic's mac address will be different and you will get a
different ip address.

cat /var/lib/dhcp/dhclient-eth0.leases
or
cat /etc/dhcpc/dhcpcd-eth0.info
to verify dns, network and gateway values.

If you are using dhcp to get a lease you do not hardcode ip address
value.

 
Reply With Quote
 
Darryl
Guest
Posts: n/a

 
      12-21-2003, 02:25 AM
Clifford Kite <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Darryl <(E-Mail Removed)> wrote:
> > IP Address: xx.yy.zz.214
> > Subnet Mask: 255.255.255.128
> > Default Gateway: xx.yy.xx.129

>
> I don't know how you munged the IP addresses (so it may just be a typo)
> but the gateway address here is not the same as the gateway address
> in Linux:
>
> > Gateway: xx.yy.zz.129
> > Status: Not connected

>
> If there is no typo then that's very likely the problem.


Actually that is a typo. The default gateway should read
"xx.yy.zz.129". Thanks for looking though.

Darryl
 
Reply With Quote
 
Darryl
Guest
Posts: n/a

 
      12-21-2003, 03:07 AM
Bit Twister <(E-Mail Removed)> wrote in message > >
> If you are swapping cables, you may need to power reset device you are
> talking to, IE cable modem. If you did not ipconfig /release on DOZE
> your linux box will be able to get ip address.


I've done this before with other versions of Mandrake and it worked
fine. At any rate, I power cycled the modem today and it still got the
wrong IP.

> If this is not the same
> box the the nic's mac address will be different and you will get a
> different ip address.


So how do I get the Linux box to get the right IP? I power cycled with
the modem hooked up to the Linux box and the same thing happened.
Swapped the cables again and the Windows box worked fine.

> cat /var/lib/dhcp/dhclient-eth0.leases


This file (actually eth1 is hooked up to the modem) reads like this:

lease {
interface "eth1";
fixed-address xx.yy.zz.217;
option subnet-mask 255.255.255.128;
option dhcp-lease-time 3600;
option routers xx.yy.zz.129;
option dhcp-message-type 5;
option dhcp-server-identifier xx.yy.zz.129;
option domain-name-servers xx.yy.aa.138;
option dhcp-renewal-time 1800;
option dhcp-rebinding-time 3150;
renew 6 2003/12/20 23:39:15;
rebind 0 2003/12/21 00:03:51;
expire 0 2003/12/21 00:11:21;
}
lease {
interface "eth1";
fixed-address xx.yy.zz.217;
option subnet-mask 255.255.255.128;
option routers xx.yy.zz.129;
option dhcp-lease-time 3600;
option dhcp-message-type 5;
option domain-name-servers xx.yy.aa.138;
option dhcp-server-identifier xx.yy.zz.129;
option dhcp-renewal-time 1800;
option dhcp-rebinding-time 3150;
renew 0 2003/12/21 04:03:47;
rebind 0 2003/12/21 04:26:42;
expire 0 2003/12/21 04:34:12;
}

> or
> cat /etc/dhcpc/dhcpcd-eth0.info
> to verify dns, network and gateway values.


This file doesn't exist on my system. Should I create it?

Also, the first file seems to have an IP address hardcoded that has
never worked. Can I alter this file or is it strictly auto-generated?

> If you are using dhcp to get a lease you do not hardcode ip address
> value.


I figured that, but I used to hardcode whatever value came thru when
one of my old ISPs set me up on DHCP but never changed the IP address.

Darryl
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADSL debian internet woes brendon ryniker Linux Networking 3 01-06-2006 10:54 PM
gah! VPN woes! ComPCs Home Networking 0 07-25-2005 09:58 PM
Set-up Woes Paul Broadband 9 02-24-2005 04:26 PM
MN-100 woes Joe Broadband Hardware 2 04-22-2004 12:50 PM
NIS Woes Norman ELton Linux Networking 0 12-08-2003 08:46 PM



1 2 3 4 5 6 7 8 9 10 11