Connecting to the network not reliable
Hi,
I have Slackware 12.2 installed on my HP dvt6 laptop. I used netconfig to setup the network for DHCP. The problem is that it doesn't connect to the network every time I start up. It's probably not the cable connection itself because it has never been a problem for Windows. So may be I haven't setup something right in Linux. Here's some info which might be helpful. Of course this is when I was connected to the network. ##### ifconfig ##### eth0 Link encap:Ethernet HWaddr 00:23:8b:c8:d5:71 inet addr:10.1.11.50 Bcast:10.1.11.255 Mask:255.255.255.0 inet6 addr: fe80::223:8bff:fec8:d571/64 Scope:Link UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2890 errors:0 dropped:112591799 overruns:0 frame:0 TX packets:2195 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2941965 (2.8 MiB) TX bytes:264888 (258.6 KiB) Interrupt:17 Base address:0xc000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) ##### rc.inet1.conf #### # Config information for eth0: IPADDR[0]="" NETMASK[0]="" USE_DHCP[0]="yes" DHCP_HOSTNAME[0]="" # Default gateway IP address: GATEWAY="" The eth1, eth2 and eth3 are all empty. ##### lspci #### 02:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01) 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02) Any suggestions on how I could make it more reliable? Also let's say it didn't connect to the network on startup. Is there a way to manually force it? Thanks in advance, Ash. |
It could be your network card driver isn't loading before the connection is being brought up.
Identify the card, add an entry into the /etc/rc.d/rc.modules file near the bottom. For instances: /sbin/modprobe 8139too I'm not sure the name of your driver. lsmod | less and look for it. |
Here's the list from lsmod. So how do I know which is my driver?
Code:
Module Size Used by |
Earlier the lsmod list was not formatted correctly. Figured out how to fix it so it's more readable. Could someone tell me which is my network driver?
It happened again today. I thought may be if I run the dhcp client after startup (assuming all the necessary modules are loaded), it might connect to the network. So I ran dhcpcd but that failed too. I had to reboot to get the network connection working. Thanks, Ash. |
Quote:
I have a couple minor suggestions for the time being, though I'm not 100% sure whether either of them will completely solve the issue: A) Search around LQ a bit for how to disable IPv6 for your network on Slackware. It's pretty easy; it takes two lines in a new file in /etc/modprobe.d as well as one optional line in /etc/rc.d/rc.inet1.conf and doing this may fix the problem. IPv6 is known to cause intermittent network bugginess, not to mention slightly slowing down browsers and DNS/DHCP systems. If you look, I guarantee you will find the instructions here. B) Also in /etc/modprobe.d in the same file as mentioned above, OR in another new file, I suggest making an "alias" as follows: Code:
alias eth0 r8169 In addition to (B) above, it'd be a good idea to NAME your eth0 device in /etc/rc.d/rc.inet1.conf, like so, even though eth0 is the default (and here's one of the two things I mentioned for disabling IPv6 ;) ): Code:
NETWORKING_IPV6="no" Sasha |
Hi, ash_zz_00
i think in the ~/.bashrc u will write a function like # network settings function function set_network() { sudo ifconfig eth0 10.1.11.50 netmask 255.255.255.0 sudo route add default gw 10.1.11.1 ping www.google.com } then on the shell just write source ~/.bashrc and then set_network i think it should work just after logging in to the Linux u just have to write set_network Note: if you are not loggined as root u then should have entry into the /etc/sudoers file |
All times are GMT -5. The time now is 02:15 PM. |