Metal Guitarist Forums banner

1 - 8 of 8 Posts

·
Slow Money
Joined
·
14,612 Posts
Discussion Starter · #1 ·
So, after much fighting, i remembered how to get my goddamned network card running on the command line! My only issue now is that it doesnt run on boot. The driver probes automatically, etc etc.

To get it to run all i have to do is either restart networking (etc/init.d yadda yadda, which is deprecated??) or run ifdown and then ifup on the interface. Not a HUGE deal, but it kind of makes it hard to reboot and do all my shit from afar, when i cant ssh back into the box.

If i run iwconfig, i can see that the ESSID hasnt been set yet. Restarting the network takes care of that, but I'd like it to be set on boot. Do i just need to be reordering shit in /etc/network/interfaces?
 

·
THUNDERBEEEEAR!
Joined
·
3,920 Posts
are you running ifup with the -a option?

then your /etc/network/interfaces file needs to look like this:

Code:
auto eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254
for a static route(substitute your own shit where the ip and stuff goes ofc).

And

Code:
auto eth0
iface eth0 inet dhcp
for dhcp

I've never set up a wireless on linux, so I wouldn't know. but it should be similar.
 

·
Slow Money
Joined
·
14,612 Posts
Discussion Starter · #3 ·
running wpa2 (or wpa, not sure) and dhcp, heres my ifaces

Code:
auto ra0
iface ra0 inet dhcp

wpa-conf managed
wpa-ssid youcanthandlemyssidorthetruth
wpa-key-mgmt WPA-PSK
wpa-psk hexyhexyhexyhexadecimalhexnumbershexhexhexhexhexhexhex

iface lo inet loopback
 

·
THUNDERBEEEEAR!
Joined
·
3,920 Posts
Got a suspicion this has to do with some kind of hardware latency though.
If you try to stop/start the wireless manually, what do you see?
 

·
Slow Money
Joined
·
14,612 Posts
Discussion Starter · #5 ·
It all works perfect then :lol:.
 

·
Slow Money
Joined
·
14,612 Posts
Discussion Starter · #7 ·
i added a script consisting of the shell and "ifup --force ra0" to init.d, and that took care of it. Didnt have to do that last time so im a bit confused, but the configuration is much less this time around (3 or 4 lines in etc/networking/interfaces aint bad), so i'll take it and be happy
 
1 - 8 of 8 Posts
Top