LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2003, 04:40 PM   #1
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Rep: Reputation: 15
Internet connectivity at startup


I just installed Red Hat 9 about a week ago on this computer, and every time I startup I have to go to "System Settings> Network" and Deactivate, then Activate my network card for it to work online. This computer only has one network card, and it connectes to an SMC router. I have static IP's on all computers on the network. At startup it's on my local network, but not on the internet. Could this have something to do with it's DNS servers?

Thanks
 
Old 12-03-2003, 02:31 PM   #2
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Any ideas?
 
Old 12-05-2003, 12:22 AM   #3
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
So you can ping your router at startup and not the internet? Is that right?
 
Old 12-05-2003, 03:42 PM   #4
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Well, I just checked again and it seems I can't ping the router nor other computers on the network. So the card isn't working at all at bootup.
 
Old 12-05-2003, 03:47 PM   #5
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
hmmm

that's another problem...

please give me the output of

ifconfig
 
Old 12-05-2003, 03:48 PM   #6
dubman
Member
 
Registered: Jan 2003
Distribution: Redhat 9, Fedora Core 1, Suse 8
Posts: 188

Rep: Reputation: 30
You need to edit your /etc/sysconfig/network-scripts/ifcfg-ethx files

You will need to set up a seperate profile for each nic. Here is an example:

DEVICE=eth0
BOOTPROTO=static
IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx
GATEWAY=xxx.xxx.xxx.xxx
ONBOOT=yes

set up a profile for each NIC with correct IP info and you should be all set/

--hope this helps
 
Old 12-05-2003, 03:52 PM   #7
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
Quote:
Originally posted by dubman
You need to edit your /etc/sysconfig/network-scripts/ifcfg-ethx files

You will need to set up a seperate profile for each nic. Here is an example:

DEVICE=eth0
BOOTPROTO=static
IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx
GATEWAY=xxx.xxx.xxx.xxx
ONBOOT=yes

set up a profile for each NIC with correct IP info and you should be all set/

--hope this helps
Aren't these info supposed to be provided from the dhcp server?
 
Old 12-05-2003, 03:54 PM   #8
dubman
Member
 
Registered: Jan 2003
Distribution: Redhat 9, Fedora Core 1, Suse 8
Posts: 188

Rep: Reputation: 30
Re: Internet connectivity at startup

Quote:
Originally posted by link1305
I have static IP's on all computers on the network. At startup it's on my local network, but not on the internet.

Thanks
It would if he were using DHCP.

Suppose he were using DHCP, then the profile ifcfg-etho would look like this:

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
 
Old 12-05-2003, 03:58 PM   #9
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
ok, sorry. Got mixed up.

I think that the first to check is the kind of network card you have on the linux box. It might not be supported directly by Mandrake.
 
Old 12-05-2003, 05:37 PM   #10
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by dubman
DEVICE=eth0
BOOTPROTO=static
IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx
GATEWAY=xxx.xxx.xxx.xxx
ONBOOT=yes
The settings were all correct already, except for "BOOTPROTO" which was set to "none". I changed it to "static" but it still doesn't work on bootup.

When I run "ifconfig" this is the output
Code:
Link encap:Ethernet   HWaddr (mac address)
inet addr:192.168.2.7  Bcast 192.168.2.255  Mask 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
That probably the important part. I'm wondering about the Bcast address...what is that suppose to be?
 
Old 12-05-2003, 10:40 PM   #11
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
do

ping 127.0.0.1

give output

ping 192.168.2.7

give output

route

give output

(all on the linux machine)

What is the IP address of your router (private)?
 
Old 12-05-2003, 11:15 PM   #12
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
ping 127.0.0.1
Code:
64 bytes from 127.0.0.1: icmp-seq=1 ttl=64 time=0.023 ms
64 bytes from 127.0.0.1: icmp-seq=1 ttl=64 time=0.023 ms
64 bytes from 127.0.0.1: icmp-seq=2 ttl=64 time=0.008 ms
64 bytes from 127.0.0.1: icmp-seq=3 ttl=64 time=0.006 ms
64 bytes from 127.0.0.1: icmp-seq=4 ttl=64 time=0.006 ms
ping 192.168.2.7
Code:
64 bytes from 192.168.2.7: icmp-seq=1 ttl=64 time=0.026 ms
64 bytes from 192.168.2.7: icmp-seq=1 ttl=64 time=0.005 ms
64 bytes from 192.168.2.7: icmp-seq=1 ttl=64 time=0.006 ms
64 bytes from 192.168.2.7: icmp-seq=1 ttl=64 time=0.005 ms
route
Code:
Kernal IP routing table
Destination       Gateway            Genmask          Flags  Metric  Ref     Use 
192.168.2.0      *                       255.255.255.0  U        0         0         0
169.254.0.0      *                       255.255.0.0      U        0         0         0
127.0.0.0          *                       255.0.0.0          U        0         0         0
default              192.168.2.1      0.0.0.0              UG      0         0         0

My router IP is 192.168.2.1
 
Old 12-05-2003, 11:31 PM   #13
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
Then your network card works 100%

you don't have any problems with that nic.

you are not very consistent in your results...

wasn't your nic suppose not to work?
 
Old 12-05-2003, 11:45 PM   #14
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
every time I startup I have to go to "System Settings> Network" and Deactivate, then Activate my network card for it to work online.
I never said it didn't work. I said it didn't work at startup, and I had to go through the network utility, and deactivate it then reactactivate it, for it to work.
 
Old 12-05-2003, 11:51 PM   #15
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
sorry, mixed up treads...

do you have anything weird in your startup logs?

type

dmesg
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing internet connectivity cidkato Linux - Wireless Networking 7 01-01-2005 06:38 PM
No Internet Connectivity laltupi Linux - Networking 1 07-19-2004 10:34 AM
Internet Connectivity is a NO-GO Help Please!! ClericPreston Linux - Newbie 1 06-04-2004 07:36 PM
Internet/Network connectivity unixops72 Linux - Networking 4 01-09-2004 08:35 PM
SUSE 8.0 and Internet connectivity mastahnke Linux - Networking 2 03-06-2003 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration