LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Internet connectivity at startup (https://www.linuxquestions.org/questions/linux-networking-3/internet-connectivity-at-startup-121726/)

link1305 12-01-2003 04:40 PM

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

link1305 12-03-2003 02:31 PM

Any ideas?

ugob 12-05-2003 12:22 AM

So you can ping your router at startup and not the internet? Is that right?

link1305 12-05-2003 03:42 PM

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. :rolleyes:

ugob 12-05-2003 03:47 PM

hmmm

that's another problem...

please give me the output of

ifconfig

dubman 12-05-2003 03:48 PM

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

ugob 12-05-2003 03:52 PM

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?

dubman 12-05-2003 03:54 PM

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

ugob 12-05-2003 03:58 PM

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.

link1305 12-05-2003 05:37 PM

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?

ugob 12-05-2003 10:40 PM

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)?

link1305 12-05-2003 11:15 PM

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

ugob 12-05-2003 11:31 PM

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?

link1305 12-05-2003 11:45 PM

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.

ugob 12-05-2003 11:51 PM

sorry, mixed up treads...

do you have anything weird in your startup logs?

type

dmesg


All times are GMT -5. The time now is 04:37 PM.