Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-01-2003, 04:40 PM
|
#1
|
Member
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53
Rep:
|
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
|
|
|
12-03-2003, 02:31 PM
|
#2
|
Member
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53
Original Poster
Rep:
|
Any ideas?
|
|
|
12-05-2003, 12:22 AM
|
#3
|
Member
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436
Rep:
|
So you can ping your router at startup and not the internet? Is that right?
|
|
|
12-05-2003, 03:42 PM
|
#4
|
Member
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53
Original Poster
Rep:
|
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.
|
|
|
12-05-2003, 03:47 PM
|
#5
|
Member
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436
Rep:
|
hmmm
that's another problem...
please give me the output of
ifconfig
|
|
|
12-05-2003, 03:48 PM
|
#6
|
Member
Registered: Jan 2003
Distribution: Redhat 9, Fedora Core 1, Suse 8
Posts: 188
Rep:
|
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
|
|
|
12-05-2003, 03:52 PM
|
#7
|
Member
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436
Rep:
|
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?
|
|
|
12-05-2003, 03:54 PM
|
#8
|
Member
Registered: Jan 2003
Distribution: Redhat 9, Fedora Core 1, Suse 8
Posts: 188
Rep:
|
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
|
|
|
12-05-2003, 03:58 PM
|
#9
|
Member
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436
Rep:
|
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.
|
|
|
12-05-2003, 05:37 PM
|
#10
|
Member
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53
Original Poster
Rep:
|
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?
|
|
|
12-05-2003, 10:40 PM
|
#11
|
Member
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436
Rep:
|
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)?
|
|
|
12-05-2003, 11:15 PM
|
#12
|
Member
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53
Original Poster
Rep:
|
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
|
|
|
12-05-2003, 11:31 PM
|
#13
|
Member
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436
Rep:
|
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?
|
|
|
12-05-2003, 11:45 PM
|
#14
|
Member
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53
Original Poster
Rep:
|
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.
|
|
|
12-05-2003, 11:51 PM
|
#15
|
Member
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436
Rep:
|
sorry, mixed up treads...
do you have anything weird in your startup logs?
type
dmesg
|
|
|
All times are GMT -5. The time now is 08:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|