View previous topic :: View next topic |
Author |
Message |
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Mon Nov 16, 2009 9:47 pm Post subject: |
|
|
Hi, first, can you post this :
Code: |
# cd /etc/conf.d && ls -la
# cd /etc/init.d && ls -la
# cat /etc/wpa_supplicant/wpa_supplicant.conf
# lspci -v
# cat /etc/udev/rules.d/70-persistent-net.rules
# lsmod
# ifconfig -a
# iwconfig
|
|
|
Back to top |
|
|
bestia n00b
Joined: 16 Nov 2009 Posts: 6
|
Posted: Mon Nov 16, 2009 10:50 pm Post subject: |
|
|
Sure!
Code: |
BESTIA ~ # cd /etc/conf.d && ls -la
total 200
drwxr-xr-x 2 root root 4096 Nov 15 21:53 .
drwxr-xr-x 70 root root 4096 Nov 16 18:47 ..
-rw-r--r-- 1 root root 0 Sep 15 13:13 .keep
-rw-r--r-- 1 root root 156 Oct 24 18:23 acpid
-rw-r--r-- 1 root root 874 Oct 24 18:23 alsasound
-rw-r--r-- 1 root root 257 Oct 24 18:23 bluetooth
-rw-r--r-- 1 root root 186 Nov 12 00:05 bootmisc
-rw-r--r-- 1 root root 879 Nov 12 00:05 consolefont
-rw-r--r-- 1 root root 412 Oct 24 18:23 crypto-loop
-rw-r--r-- 1 root root 15 Oct 29 19:58 device-mapper
-rw-r--r-- 1 root root 3141 Oct 24 18:23 dmcrypt
-rw-r--r-- 1 root root 117 Nov 12 00:05 dmesg
-rw-r--r-- 1 root root 426 Nov 8 23:53 dnsextd
-rw-r--r-- 1 root root 372 Oct 24 18:23 env_whitelist
-rw-r--r-- 1 root root 891 Nov 12 00:05 fsck
-rw-r--r-- 1 root root 700 Nov 9 18:44 git-daemon
-rw-r--r-- 1 root root 580 Oct 24 18:23 gpm
-rw-r--r-- 1 root root 119 Nov 5 03:44 hald
-rw-r--r-- 1 root root 56 Oct 24 18:23 hostname
-rw-r--r-- 1 root root 623 Oct 24 18:23 hwclock
-rw-r--r-- 1 root root 795 Nov 12 00:05 keymaps
-rw-r--r-- 1 root root 385 Nov 12 00:05 local
-rw-r--r-- 1 root root 123 Oct 24 18:23 local.start
-rw-r--r-- 1 root root 217 Oct 24 18:23 local.stop
-rw-r--r-- 1 root root 121 Nov 12 00:05 localmount
-rw-r--r-- 1 root root 173 Oct 29 19:58 lvm
-rw-r--r-- 1 root root 67 Nov 8 23:53 mDNSResponderPosix
-rw-r--r-- 1 root root 1072 Nov 15 00:28 modules
-rw-r--r-- 1 root root 3273 Oct 24 18:23 mysql
-rw-r--r-- 1 root root 1009 Oct 24 18:23 mysqlmanager
-rw-r--r-- 1 root root 229 Nov 4 23:02 nas
-rw-r--r-- 1 root root 381 Nov 15 21:53 net.old
-rw-r--r-- 1 root root 2628 Nov 12 00:05 network
-rw-r--r-- 1 root root 988 Oct 24 18:23 pciparm
-rw-r--r-- 1 root root 330 Nov 2 16:33 pydoc-2.6
-rw-r--r-- 1 root root 330 Oct 24 18:23 pydoc-3.1
-rw-r--r-- 1 root root 8722 Oct 24 18:23 rc
-rw-r--r-- 1 root root 617 Oct 29 23:30 rdate
-rw-r--r-- 1 root root 149 Oct 24 18:23 rsyncd
-rw-r--r-- 1 root root 1243 Nov 9 02:18 samba
-rw-r--r-- 1 root root 926 Oct 24 18:23 saslauthd
-rw-r--r-- 1 root root 2806 Oct 29 19:06 splash
-rw-r--r-- 1 root root 396 Oct 24 18:23 sshd
-rw-r--r-- 1 root root 112 Nov 12 00:05 staticroute
-rw-r--r-- 1 root root 113 Oct 24 18:23 sysklogd
-rw-r--r-- 1 root root 1764 Oct 25 12:08 udev
-rw-r--r-- 1 root root 277 Nov 12 00:05 urandom
-rw-r--r-- 1 root root 88 Nov 15 21:56 wpa_supplicant
-rw-r--r-- 1 root root 1262 Nov 14 21:46 xdm
|
Code: |
BESTIA conf.d # cd /etc/init.d && ls -la
total 356
drwxr-xr-x 2 root root 4096 Nov 16 12:03 .
drwxr-xr-x 70 root root 4096 Nov 16 18:47 ..
-rwxr-xr-x 1 root root 818 Oct 24 03:34 acpid
-rwxr-xr-x 1 root root 6231 Oct 13 01:44 alsasound
-rwxr-xr-x 1 root root 1171 Oct 13 03:21 bluetooth
-rwxr-xr-x 1 root root 3749 Nov 12 00:05 bootmisc
-rwxr-xr-x 1 root root 1188 Oct 12 18:33 checkfs
-rwxr-xr-x 1 root root 3226 Oct 12 18:33 checkroot
-rwxr-xr-x 1 root root 1672 Nov 12 00:05 consolefont
-rwxr-xr-x 1 root root 586 Nov 2 16:25 consolekit
-rwxr-xr-x 1 root root 1729 Oct 24 00:18 crypto-loop
-rwxr-xr-x 1 root root 286 Nov 14 16:30 cupsd
-rwxr-xr-x 1 root root 1152 Nov 2 15:53 dbus
lrwxrwxrwx 1 root root 21 Oct 12 14:55 depscan.sh -> ../../sbin/depscan.sh
-rwxr-xr-x 1 root root 797 Nov 12 00:05 devfs
-rwxr-xr-x 1 root root 682 Oct 29 19:58 device-mapper
-rwxr-xr-x 1 root root 327 Nov 16 12:03 dhcpcd
-rwxr-xr-x 1 root root 660 Oct 12 19:48 dmcrypt
-rwxr-xr-x 1 root root 317 Nov 12 00:05 dmesg
-rwxr-xr-x 1 root root 536 Oct 29 19:58 dmeventd
-rwxr-xr-x 1 root root 998 Nov 8 23:53 dnsextd
-rwxr-xr-x 1 root root 2950 Nov 12 00:05 fsck
lrwxrwxrwx 1 root root 23 Nov 12 00:05 functions.sh -> /lib/rc/sh/functions.sh
-rwxr-xr-x 1 root root 741 Nov 9 18:44 git-daemon
-rwxr-xr-x 1 root root 951 Oct 18 16:44 gpm
-rwxr-xr-x 1 root root 1187 Nov 5 03:44 hald
-rwxr-xr-x 1 root root 5606 Oct 12 18:33 halt.sh
-rwxr-xr-x 1 root root 376 Nov 12 00:05 hostname
-rwxr-xr-x 1 root root 2635 Nov 12 00:05 hwclock
-rwxr-xr-x 1 root root 1896 Nov 12 00:05 keymaps
-rwxr-xr-x 1 root root 392 Nov 12 00:05 killprocs
-rwxr-xr-x 1 root root 696 Nov 12 00:05 local
-rwxr-xr-x 1 root root 1765 Nov 12 00:05 localmount
-rwxr-xr-x 1 root root 759 Oct 29 19:58 lvm
-rwxr-xr-x 1 root root 1247 Nov 8 23:53 mDNSResponderPosix
-rwxr-xr-x 1 root root 845 Nov 8 23:53 mdnsd
-rwxr-xr-x 1 root root 1472 Nov 12 00:05 modules
-rwxr-xr-x 1 root root 1028 Nov 12 00:05 mount-ro
-rwxr-xr-x 1 root root 907 Nov 12 00:05 mtab
-rwxr-xr-x 1 root root 10661 Oct 12 23:55 mysql
-rwxr-xr-x 1 root root 6632 Oct 12 23:55 mysqlmanager
-rwxr-xr-x 1 root root 557 Nov 4 23:02 nas
lrwxrwxrwx 1 root root 6 Oct 12 14:53 net.eth0 -> net.lo
lrwxrwxrwx 1 root root 6 Oct 15 17:08 net.eth1 -> net.lo
-rwxr-xr-x 1 root root 15143 Nov 12 00:05 net.lo
-rwxr-xr-x 1 root root 2031 Nov 12 00:05 netmount
-rwxr-xr-x 1 root root 5349 Nov 12 00:05 network
-rwxr-xr-x 1 root root 1526 Nov 9 01:18 nscd
-rwxr-xr-x 1 root root 717 Nov 12 00:05 numlock
-rwxr-xr-x 1 root root 1871 Oct 23 23:29 pciparm
-rwxr-xr-x 1 root root 1925 Nov 12 00:05 procfs
-rwxr-xr-x 1 root root 538 Oct 13 04:53 pwcheck
-rwxr-xr-x 1 root root 666 Nov 2 16:33 pydoc-2.6
-rwxr-xr-x 1 root root 666 Oct 18 17:11 pydoc-3.1
-rwxr-xr-x 1 root root 639 Oct 29 23:30 rdate
-rwxr-xr-x 1 root root 304 Nov 14 16:23 reboot.sh
-rwxr-xr-x 1 root root 276 Oct 12 18:33 rmnologin
-rwxr-xr-x 1 root root 653 Nov 12 00:05 root
-rwxr-xr-x 1 root root 558 Oct 24 00:20 rsyncd
lrwxrwxrwx 1 root root 23 Oct 12 14:55 runscript.sh -> ../../sbin/runscript.sh
-rwxr-xr-x 1 root root 1143 Nov 9 02:18 samba
-rwxr-xr-x 1 root root 525 Oct 13 04:53 saslauthd
-rwxr-xr-x 1 root root 813 Nov 12 00:05 savecache
-rwxr-xr-x 1 root root 385 Nov 14 16:23 shutdown.sh
-rwxr-xr-x 1 root root 2309 Oct 13 01:43 slpd
-rwxr-xr-x 1 root root 2159 Oct 24 17:59 sshd
-rwxr-xr-x 1 root root 1091 Nov 12 00:05 staticroute
-rwxr-xr-x 1 root root 791 Nov 12 00:05 swap
-rwxr-xr-x 1 root root 487 Nov 12 00:05 swclock
-rwxr-xr-x 1 root root 377 Nov 12 00:05 sysctl
-rwxr-xr-x 1 root root 1303 Nov 12 00:05 sysfs
-rwxr-xr-x 1 root root 1575 Oct 23 23:38 sysklogd
-rwxr-xr-x 1 root root 749 Nov 12 00:05 termencoding
-rwxr-xr-x 1 root root 5788 Oct 25 12:08 udev
-rwxr-xr-x 1 root root 2579 Oct 25 12:08 udev-dev-tarball
-rwxr-xr-x 1 root root 2680 Oct 25 12:08 udev-mount
-rwxr-xr-x 1 root root 683 Oct 25 12:08 udev-postmount
-rwxr-xr-x 1 root root 937 Nov 12 00:05 urandom
-rwxr-xr-x 1 root root 530 Oct 13 01:44 vixie-cron
-rwxr-xr-x 1 root root 435 Nov 16 11:32 wicd
-rwxr-xr-x 1 root root 1234 Nov 15 21:50 wpa_supplicant
-rwxr-xr-x 1 root root 6417 Nov 14 16:23 xdm
-rwxr-xr-x 1 root root 340 Nov 14 16:23 xdm-setup
|
Code: |
BESTIA init.d # cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="SSID1"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="my_psk"
}
network={
ssid="SSID2"
key_mgmt=NONE
wep_key0=my_wep_key
wep_tx_keyidx=0
}
network={
ssid="SSID3"
key_mgmt=NONE
}
|
Code: |
BESTIA init.d # lspci -v
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
Subsystem: IBM ThinkPad Z60t
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information <?>
00:01.0 PCI bridge: Intel Corporation Mobile 915GM/PM Express PCI Express Root Port (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00002000-00002fff
Memory behind bridge: b0100000-b01fffff
Prefetchable memory behind bridge: c0000000-c7ffffff
Capabilities: [88] Subsystem: IBM Device 0578
Capabilities: [80] Power Management version 2
Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [a0] Express Root Port (Slot+), MSI 00
Capabilities: [100] Virtual Channel <?>
Capabilities: [140] Root Complex Link <?>
Kernel driver in use: pcieport-driver
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
Memory behind bridge: b0200000-b02fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Gammagraphx, Inc. (or missing ID) Device 0000
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel <?>
Capabilities: [180] Root Complex Link <?>
Kernel driver in use: pcieport-driver
00:1c.2 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3 (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=0a, sec-latency=0
I/O behind bridge: 00003000-00003fff
Memory behind bridge: b2000000-b3ffffff
Prefetchable memory behind bridge: 00000000c8000000-00000000c80fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Gammagraphx, Inc. (or missing ID) Device 0000
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel <?>
Capabilities: [180] Root Complex Link <?>
Kernel driver in use: pcieport-driver
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03) (prog-if 00 [UHCI])
Subsystem: IBM Device 0565
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 1800 [size=32]
Kernel driver in use: uhci_hcd
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03) (prog-if 00 [UHCI])
Subsystem: IBM Device 0565
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 1820 [size=32]
Kernel driver in use: uhci_hcd
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03) (prog-if 00 [UHCI])
Subsystem: IBM Device 0565
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 1840 [size=32]
Kernel driver in use: uhci_hcd
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03) (prog-if 00 [UHCI])
Subsystem: IBM Device 0565
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 1860 [size=32]
Kernel driver in use: uhci_hcd
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03) (prog-if 20 [EHCI])
Subsystem: IBM Device 0566
Flags: bus master, medium devsel, latency 0, IRQ 11
Memory at b0000000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=0b, subordinate=0e, sec-latency=64
I/O behind bridge: 00004000-00007fff
Memory behind bridge: b4000000-bfffffff
Prefetchable memory behind bridge: 00000000d0000000-00000000d7ffffff
Capabilities: [50] Subsystem: Gammagraphx, Inc. (or missing ID) Device 0000
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
Subsystem: IBM Device 0567
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at 1c00 [size=256]
I/O ports at 1880 [size=64]
Memory at b0000800 (32-bit, non-prefetchable) [size=512]
Memory at b0000400 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 03)
Subsystem: IBM Device 0568
Flags: bus master, medium devsel, latency 0
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03) (prog-if 80 [Master])
Subsystem: IBM Device 056a
Flags: bus master, 66MHz, medium devsel, latency 0
I/O ports at 01f0 [size=8]
I/O ports at 03f4 [size=1]
I/O ports at 0170 [size=8]
I/O ports at 0374 [size=1]
I/O ports at 18c0 [size=16]
Capabilities: [70] Power Management version 2
Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
Subsystem: IBM Device 056b
Flags: medium devsel, IRQ 11
I/O ports at 18e0 [size=32]
Kernel driver in use: i801_smbus
01:00.0 VGA compatible controller: ATI Technologies Inc M22 [Mobility Radeon X300] (prog-if 00 [VGA controller])
Subsystem: IBM Device 056e
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at c0000000 (32-bit, prefetchable) [size=128M]
I/O ports at 2000 [size=256]
Memory at b0100000 (32-bit, non-prefetchable) [size=64K]
[virtual] Expansion ROM at b0120000 [disabled] [size=128K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Express Endpoint, MSI 00
Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: radeon
Kernel modules: radeonfb
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751M Gigabit Ethernet PCI Express (rev 11)
Subsystem: IBM ThinkPad Z60t
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at b0200000 (64-bit, non-prefetchable) [size=64K]
Expansion ROM at <ignored> [disabled]
Capabilities: [48] Power Management version 2
Capabilities: [50] Vital Product Data
Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [d0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Virtual Channel <?>
Kernel driver in use: tg3
0b:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 8d)
Subsystem: IBM ThinkPad Z60t
Flags: bus master, medium devsel, latency 168, IRQ 11
Memory at b4000000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=0b, secondary=0c, subordinate=0d, sec-latency=176
Memory window 0: d0000000-d3fff000 (prefetchable)
Memory window 1: b8000000-bbfff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
16-bit legacy interface ports at 0001
Kernel driver in use: yenta_cardbus
Kernel modules: yenta_socket
0b:02.0 Network controller: Intel Corporation PRO/Wireless 2915ABG [Calexico2] Network Connection (rev 05)
Subsystem: Intel Corporation Device 1011
Flags: bus master, medium devsel, latency 64, IRQ 11
Memory at b4001000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [dc] Power Management version 2
Kernel driver in use: ipw2200
Kernel modules: ipw2200
|
Code: |
BESTIA init.d # cat /etc/udev/rules.d/70-persistent-net.rules
# Most of the comments deleted
# PCI device 0x14e4:0x167d (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:58:2a:5c:00", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x4224 (ipw2200)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:12:f0:b0:c7:98", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
|
Code: |
BESTIA init.d # lsmod
Module Size Used by
bnep 10576 0
sco 8416 0
rfcomm 21084 0
l2cap 17476 4 bnep,rfcomm
ircomm_tty 16920 0
ircomm 8908 1 ircomm_tty
irlan 19640 0
lib80211_crypt_tkip 8096 2
lib80211_crypt_ccmp 4664 0
lib80211_crypt_wep 3332 0
test_nx 1848 0
acpi_cpufreq 6796 0
btusb 10144 0
bluetooth 41880 5 bnep,sco,rfcomm,l2cap,btusb
hdaps 5936 0
input_polldev 3116 1 hdaps
scsi_wait_scan 1012 0
pcmcia 27356 0
michael_mic 2032 8
irtty_sir 4188 0
sir_dev 9436 1 irtty_sir
irda 86784 4 ircomm_tty,ircomm,irlan,sir_dev
yenta_socket 20492 1
rsrc_nonstatic 7884 1 yenta_socket
crc_ccitt 1596 1 irda
ipw2200 115544 0
snd_intel8x0 26384 5
pcmcia_core 27968 3 pcmcia,yenta_socket,rsrc_nonstatic
libipw 22264 1 ipw2200
lib80211 4652 5 lib80211_crypt_tkip,lib80211_crypt_ccmp,lib80211_crypt_wep,ipw2200,libipw
snd_ac97_codec 86920 1 snd_intel8x0
ac97_bus 1316 1 snd_ac97_codec
|
Code: |
BESTIA init.d # ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:15:58:2a:5c:00
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:11
eth1 Link encap:Ethernet HWaddr 00:12:f0:b0:c7:98
inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::212:f0ff:feb0:c798/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:83890 errors:0 dropped:0 overruns:0 frame:0
TX packets:76038 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:31058599 (29.6 MiB) TX bytes:7827975 (7.4 MiB)
Interrupt:11 Base address:0x6000 Memory:b4001000-b4001fff
irlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 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:4
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
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:838 errors:0 dropped:0 overruns:0 frame:0
TX packets:838 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24722 (24.1 KiB) TX bytes:24722 (24.1 KiB)
sit0 Link encap:IPv6-in-IPv4
inet6 addr: ::127.0.0.1/96 Scope:Unknown
UP RUNNING NOARP MTU:1480 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)
|
Code: |
BESTIA init.d # iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
sit0 no wireless extensions.
eth1 IEEE 802.11g ESSID:"SSID1"
Mode:Managed Frequency:2.412 GHz Access Point: 00:1E:69:67:BA:CE
Bit Rate:54 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key: encryption_key Security mode:open
Power Management:off
Link Quality=89/100 Signal level=-40 dBm Noise level=-73 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:81 Invalid misc:0 Missed beacon:1
irlan0 no wireless extensions.
|
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Nov 17, 2009 3:18 am Post subject: |
|
|
Oh my god, you have a pretty old ipw2200 wireless card
Right now, can you post this :
Also, can you try this one instead :
Code: |
cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="SSID1"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="my_psk"
priority=5
}
network={
ssid="SSID2"
key_mgmt=NONE
wep_key0=my_wep_key
wep_tx_keyidx=0
priority=10
}
network={
ssid="SSID3"
key_mgmt=NONE
priority=15
}
|
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Nov 17, 2009 3:20 am Post subject: |
|
|
Can you post this :
Code: |
# cat /etc/init.d/wpa_supplicant
# rc-update show
|
|
|
Back to top |
|
|
bestia n00b
Joined: 16 Nov 2009 Posts: 6
|
Posted: Tue Nov 17, 2009 9:47 am Post subject: |
|
|
To be honest, I've got a bit newer one - Intel's 2915 - which is still a pretty old one
I didn't really try your wpa_supplicant.conf cause now I'm at university and can't play with things too much. I've seen you only added priorities to my config though, and the AP's are far from each other (roughly over few miles distance between them).
Code: |
BESTIA init.d # cat /etc/init.d/wpa_supplicant
#!/sbin/runscript
# Copyright (c) 2009 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
command=/usr/sbin/wpa_supplicant
: ${wpa_supplicant_conf:=/etc/wpa_supplicant.conf}
wpa_supplicant_if=${wpa_supplicant_if:+-i}$wpa_supplicant_if
command_args="$wpa_supplicant_args -B -c$wpa_supplicant_conf $wpa_supplicant_if"
name="WPA Supplicant Daemon"
depend()
{
need localmount
use logger
after bootmisc modules
before dns dhcpcd net
keyword -shutdown
}
find_wireless()
{
local iface=
case "$RC_UNAME" in
Linux)
for iface in /sys/class/net/*; do
if [ -e "$iface"/wireless -o \
-e "$iface"/phy80211 ]
then
echo "${iface##*/}"
return 0
fi
done
;;
*)
for iface in /dev/net/* $(ifconfig -l 2>/dev/null); do
if ifconfig "${iface##*/}" 2>/dev/null | \
grep -q "[ ]*ssid "
then
echo "${iface##*/}"
return 0
fi
done
;;
esac
return 1
}
append_wireless()
{
local iface= i=
iface=$(find_wireless)
if [ -n "$iface" ]; then
for i in $iface; do
command_args="$command_args -i$i"
done
else
eerror "Could not find a wireless interface"
fi
}
start_pre()
{
case " $command_args" in
*" -i"*) ;;
*) append_wireless;;
esac
}
|
And rc-update show (was in my first post):
Code: |
BESTIA init.d # rc-update show
procfs | boot
keymaps | boot
hwclock | boot
dbus | default
local | default nonetwork
consolekit | default
termencoding | boot
urandom | boot
consolefont | boot
fsck | boot
localmount | boot
xdm | default
dhcpcd | default
netmount | default
hostname | boot
hald | default
network | boot
savecache | shutdown
root | boot
sysctl | boot
mount-ro | shutdown
devfs | sysinit
mtab | boot
modules | boot
killprocs | shutdown
swap | boot
dmesg | sysinit
bootmisc | boot
wpa_supplicant | default
udev | sysinit
|
I forgot to mention, that iwconfig I stated was checked during /etc/init.d/net.eth1 started and /etc/init.d/wpa_supplicant stopped - in order to write a post . I'll post it for You now with wpa_supplicant script started:
Code: |
BESTIA init.d # /etc/init.d/net.eth1 stop
net.eth1 |* Bringing down interface eth1
net.eth1 |* Removing addresses
net.eth1 |* 10.20.110.248/16
net.eth1 |* Stopping wpa_cli on eth1... [ ok ]
net.eth1 |* Stopping wpa_supplicant on eth1... [ ok ]
BESTIA init.d # /etc/init.d/wpa_supplicant start
wpa_supplicant |* Starting WPA Supplicant Daemon... [ ok ]
BESTIA init.d # iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
sit0 no wireless extensions.
eth1 radio off ESSID:"SSID3" #I'm at university now
Mode:Managed Frequency:5.22 GHz Access Point: 00:23:33:2C:14:AF
Bit Rate:0 kb/s Tx-Power=off Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
irlan0 no wireless extensions.
|
Cheers, Bestia |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Nov 17, 2009 3:21 pm Post subject: |
|
|
Ok, reboot your box and post this :
Code: |
# iwlist scan
# /etc/init.d/wpa_supplicant start
# iwconfig
# ifconfig -a
# iwlist scan
# wpa_cli status
|
|
|
Back to top |
|
|
sera Retired Dev
Joined: 29 Feb 2008 Posts: 1017 Location: CET
|
Posted: Tue Nov 17, 2009 4:14 pm Post subject: |
|
|
Quote: | # PCI device 0x8086:0x4224 (ipw2200)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:12:f0:b0:c7:98", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" |
This will force the interface name eth1 for your wlan card. You can remove this.
Also remove the corresponding symlink net.eth1 in /etc/init.d which causes udev to start your wlan at boot time using the old networking. See /etc/udev/rules/90-network.rules. That's probably the main problem here seeing you have renamed /etc/conf.d/net.
Removing net.eth0 and net.lo from /etc/init.d/ should be done as well. eth0 is handled by dhcpcd-5.x and net.lo is replaced by the script called network.
Using openrc and baselayout2 /etc/conf.d/rc was superseded by /etc/rc.conf and can be purged as well. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Nov 17, 2009 5:02 pm Post subject: |
|
|
sera wrote: | Quote: | # PCI device 0x8086:0x4224 (ipw2200)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:12:f0:b0:c7:98", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" |
This will force the interface name eth1 for your wlan card. You can remove this.
|
Each time that he will reboot, this line will be created. |
|
Back to top |
|
|
sera Retired Dev
Joined: 29 Feb 2008 Posts: 1017 Location: CET
|
Posted: Tue Nov 17, 2009 5:55 pm Post subject: |
|
|
d2_racing wrote: | Each time that he will reboot, this line will be created. |
I suspect the interface will be added as wlan0 this time. Eth1 is confusing |
|
Back to top |
|
|
bestia n00b
Joined: 16 Nov 2009 Posts: 6
|
Posted: Tue Nov 17, 2009 6:03 pm Post subject: |
|
|
First of all, wpa_supplicant doesn't start at boot because net.eth1 is being called first.
AP's scanning You asked for was done while net.eth1 was running:
Code: | BESTIA ~ # iwlist scan
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
sit0 Interface doesn't support scanning.
eth1 Scan completed :
Cell 01 - Address: 00:1E:69:67:BA:CE
ESSID:"SSID1"
Protocol:IEEE 802.11bg
Mode:Master
Frequency:2.412 GHz (Channel 1)
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=95/100 Signal level=-31 dBm
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Extra: Last beacon: 93ms ago
irlan0 Interface doesn't support scanning.
|
Then I did /etc/init.d/wpa_supplicant start which caused the following error:
Code: |
BESTIA ~ # /etc/init.d/wpa_supplicant start
wpa_supplicant |* Starting WPA Supplicant Daemon...
wpa_supplicant |ctrl_iface exists and seems to be in use - cannot override it
wpa_supplicant |Delete '/var/run/wpa_supplicant/eth1' manually if it is not used anymore
wpa_supplicant |Failed to initialize control interface '/var/run/wpa_supplicant'.
wpa_supplicant |You may have another wpa_supplicant process already running or the file was
wpa_supplicant |left by an unclean termination of wpa_supplicant in which case you will need
wpa_supplicant |to manually remove this file before starting wpa_supplicant again.
wpa_supplicant |
wpa_supplicant |* start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant'
wpa_supplicant |* Failed to start wpa_supplicant [ !! ]
wpa_supplicant |* ERROR: wpa_supplicant failed to start
|
Same as I see on boot.
To answer Your question I needed to stop net.eth1:
Code: |
BESTIA ~ # /etc/init.d/net.eth1 stop
net.eth1 |* Bringing down interface eth1
net.eth1 |* Removing addresses
net.eth1 |* 192.168.0.12/24
net.eth1 |* Stopping wpa_cli on eth1... [ ok ]
net.eth1 |* Stopping wpa_supplicant on eth1... [ ok ]
BESTIA ~ # /etc/init.d/wpa_supplicant start
wpa_supplicant |* Starting WPA Supplicant Daemon... [ ok ]
BESTIA ~ # iwlist scan
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
sit0 Interface doesn't support scanning.
eth1 No scan results
irlan0 Interface doesn't support scanning.
BESTIA ~ # iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
sit0 no wireless extensions.
eth1 radio off ESSID:"SSID1"
Mode:Managed Frequency:2.412 GHz Access Point: 00:1E:69:67:BA:CE
Bit Rate:0 kb/s Tx-Power=off Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key: encryption_key Security mode:open
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:138 Missed beacon:0
irlan0 no wireless extensions.
BESTIA ~ # ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:15:58:2a:5c:00
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:11
eth1 Link encap:Ethernet HWaddr 00:12:f0:b0:c7:98
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1475 errors:0 dropped:138 overruns:0 frame:0
TX packets:1181 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:905197 (883.9 KiB) TX bytes:198544 (193.8 KiB)
Interrupt:11 Memory:b4001000-b4001fff
irlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 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:4
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
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:389 errors:0 dropped:0 overruns:0 frame:0
TX packets:389 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11701 (11.4 KiB) TX bytes:11701 (11.4 KiB)
sit0 Link encap:IPv6-in-IPv4
inet6 addr: ::127.0.0.1/96 Scope:Unknown
UP RUNNING NOARP MTU:1480 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)
BESTIA ~ # wpa_cli status
Selected interface 'eth1'
wpa_state=SCANNING
|
I also tried commenting out the lines sera asked for, but as d2_racing said new ones where created at boot (looking the same, just not commented). Now I'll go for renaming all net.* files and let You know.
Cheers, Bestia |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Nov 17, 2009 6:24 pm Post subject: |
|
|
Hi, run that :
Code: |
# rc-update del wpa_supplicant
|
After that, reboot your box.
Code: |
# iwconfig
# iwlist scan
# dmesg | tail
# dmesg | grep -i ipw
|
|
|
Back to top |
|
|
bestia n00b
Joined: 16 Nov 2009 Posts: 6
|
Posted: Tue Nov 17, 2009 6:48 pm Post subject: |
|
|
OK! After rebooting everything works flawlessly, wpa_supplicant starts, dhcpcd acquires IP's, simply great. The thing is that still my wpa_gui says "cannot get status... " :/ So basically that solved my problem was removing all of the net.* scripts. Since I didn't have them in any of my runlevels, I'm really wondered about what was bringing them up and what exactly was interfering work of wpa_supplicant. If You have any ideas, please let me know!
Thanks for Your help! |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Nov 18, 2009 1:38 am Post subject: |
|
|
No problem |
|
Back to top |
|
|
sera Retired Dev
Joined: 29 Feb 2008 Posts: 1017 Location: CET
|
Posted: Wed Nov 18, 2009 5:18 am Post subject: |
|
|
bestia wrote: | OK! After rebooting everything works flawlessly, wpa_supplicant starts, dhcpcd acquires IP's, simply great. The thing is that still my wpa_gui says "cannot get status... " :/ So basically that solved my problem was removing all of the net.* scripts. Since I didn't have them in any of my runlevels, I'm really wondered about what was bringing them up and what exactly was interfering work of wpa_supplicant. If You have any ideas, please let me know!
Thanks for Your help! |
I already explained, reread the post. |
|
Back to top |
|
|
bestia n00b
Joined: 16 Nov 2009 Posts: 6
|
Posted: Wed Nov 18, 2009 10:45 am Post subject: |
|
|
Ok, I understood that udev was responsible for it, but I wonder that caused it to do so. I have no such file like 90-network.rules in /etc/udev/rules.d/ - and any code which I've seen in other rules files doesn't seem to be related to networking. And still why, even while net.eth1 was manually stopped, was wpa_supplicant malfunctioning? Anyway, problem is solved and the solution is clear, so thanks again |
|
Back to top |
|
|
sera Retired Dev
Joined: 29 Feb 2008 Posts: 1017 Location: CET
|
Posted: Wed Nov 18, 2009 3:04 pm Post subject: |
|
|
bestia wrote: | Ok, I understood that udev was responsible for it, but I wonder that caused it to do so. I have no such file like 90-network.rules in /etc/udev/rules.d/ - and any code which I've seen in other rules files doesn't seem to be related to networking. And still why, even while net.eth1 was manually stopped, was wpa_supplicant malfunctioning? Anyway, problem is solved and the solution is clear, so thanks again |
The script which get's called is
And the original rules file is:
Code: | /lib/udev/rules.d/90-network.rules |
And /etc/init.d/net.eth1 was malfunctioning, this because the configuration was already gone. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Nov 19, 2009 2:20 pm Post subject: |
|
|
UberLord wrote: | The ipw2200 card in my laptop is the fastest AND most reliable wireless card I have, for all OS's. Don't knock it |
Yeah I know, it's one of the best card, but also one of the oldest too. It's back on 2004 I think or even before |
|
Back to top |
|
|
Dr_b_ n00b
Joined: 18 Jan 2004 Posts: 33
|
Posted: Sun Nov 29, 2009 12:18 am Post subject: multiple addresses on iface |
|
|
As a follow on question, if you wanted to use multiple addresses per phy interface, using the new /etc/conf.d/network script, what would be the syntax? tried:
ifconfig_eth0="192.168.0.38/24; 192.168.0.39/24; 192.168.0.40/24"
and
ifconfig_eth0="192.168.0.{38..40}/24"
as described in the net.example in /usr/share/doc/openrc-0.5.2-r2/net.example, and there isn't an example in the new /etc/conf.d/network script that i can see.
but they both only load one ip on the interface, being the last address in the range. using legacy network definitions in the /etc/conf.d/net works however.
TIA. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|