VectorLinux
December 19, 2014, 09:25:31 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Internet connection needs to be re-established after reboot  (Read 1466 times)
roalush
Member
*
Posts: 7


« on: December 29, 2007, 09:13:50 am »

I just installed VL and it's the first time I use a Linux OS.

I connect to the internet through a WinXP machine. The problem is that every time I reboot, I need to run VASM network wizard in order to establish a connection.

Thanks in advance.
Logged
InTheWoods
Vectorite
***
Posts: 302


« Reply #1 on: December 29, 2007, 05:33:42 pm »


I asked the same question some time ago and here is the answer I recieved. I think it was from eauster

Quote
all you have to do is add the commands you would normally use to connect to your network to the end of
/etc/rc.d/rc.local
For example, this is what I have in my rc.local to autoconnect to my network:


echoc "Attempting to start wireless network for 20 seconds..." green
iwconfig wlan0 key 31652f254b
iwconfig wlan0 ap Auto

#Give enough time to let iwconfig autodetect the wireless AP
sleep 1

dhcpcd -d wlan0 -t 20

Unlike the above example my key is not numerical so I use this
Code:
iwconfig wlan0 key s:<keyName>
iwconfig wlan0 essid "<name of network>"
iwconfig wlan0 ap Auto
sleep 1
dhcpcd -t 25 -d wlan0

Hope this helps


Logged
roalush
Member
*
Posts: 7


« Reply #2 on: December 29, 2007, 10:32:25 pm »

I saw this post but it applies to wireless connection, mine is not.

I think my device name is eth0 (now I'm at work).
The way I normally establish a connection is by running vasm network wizard, typing the host computer workgroup name and then choosing DHCP.

So I guess I should do this:
ifconfig eth0 key s:<keyName> (Huh no idea that to write)
ifconfig eth0 essid mshome (or "mshome"?)
ifconfig eth0 ap Auto
sleep 1
dhcpcd -t 25 -d eth0

Correct me if I'm wrong.
« Last Edit: December 30, 2007, 12:57:12 am by roalush » Logged
bigpaws
Vectorian
****
Posts: 1862


« Reply #3 on: December 30, 2007, 04:48:06 am »

What is the NIC card you are using?

Restart the machine before using VASM and do this.

Open a console as root type:

ifconfig | grep eth0

post the output, then as user type:

dmesg | grep eth

post the output.

There are easy fixes but the first thing that is needed is
more information which the above will provide. If the NIC
card is active (my guess it is not) then that needs to be started,
then you can get an IP address and everything is fine.

Bigpaws
Logged
hata_ph
Packager
Vectorian
****
Posts: 3261


-- Just being myself --


« Reply #4 on: December 30, 2007, 05:15:30 am »

first of all.....when you boot in to your VL, is your NIC working?
open a terminal as root and type "ifconfig".......below is my ifconfig...
Quote
vector://home/hata_ph
root:# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:02:2D:A9:43:AF
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:464 errors:0 dropped:0 overruns:0 frame:0
          TX packets:597 errors:2 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:202476 (197.7 KiB)  TX bytes:100087 (97.7 KiB)
          Interrupt:3 Base address:0x180

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:100 (100.0 b)  TX bytes:100 (100.0 b)

if it doesn't show anything.....try "ifconfig ethx up" where x can be start from 0 until x, depend on your network configuration.......then try "ifconfig" again......
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!