wifi (connect & not work)

обновление ситуации, кажется теперь я подключился к роутеру, но ping google.com ниче не дает:
ifconfig && iwconfig
eth0      Link encap:Ethernet  HWaddr 00:13:CE:A1:3F:6E  
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::213:ceff:fea1:3f6e/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:448 errors:572 dropped:1031 overruns:0 frame:0
          TX packets:530 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:60480 (59.0 Kb)  TX bytes:66960 (65.3 Kb)
          Interrupt:17 Base address:0x8000 Memory:c820b000-c820bfff 
eth1      Link encap:Ethernet  HWaddr 00:C0:9F:E4:5C:04  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2c0:9fff:fee4:5c04/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32779 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17525 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:38653570 (36.8 Mb)  TX bytes:1605910 (1.5 Mb)
          Interrupt:16 
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:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1124 (1.0 Kb)  TX bytes:1124 (1.0 Kb)
lo        no wireless extensions.
eth0      IEEE 802.11bg  ESSID:"mylink"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:23:54:40:01:F4   
          Bit Rate:54 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=75/100  Signal level=-49 dBm  Noise level=-85 dBm
          Rx invalid nwid:0  Rx invalid crypt:572  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:459   Missed beacon:0
eth1      no wireless extensions.
# ping -c 3 google.com
ping: unknown host google.com

и теперь у меня eth0 - wireless
почему то интерфейсы поменялись, как так?
пропиши днс-ы в /etc/resolv.conf
добавил, опять же гугл не найден)
прочитал в вики, что он перезаписывается
пробую добавить -R:
# cat /etc/conf.d/dhcpcd
#
# Arguments to be passed to the DHCP client daemon
#
DHCPCD_ARGS="-q -R"

все равно перезаписывается, думаю причина в этом
Плохо читаем(гуглим)! ДНС в таком случае надо в /etc/resolv.conf.tail прописывать
сделано, теперь вроде не перезаписывается, гугл опять же не видит
http://www.corbina.ru/clientcare/faqs/c … p_1.shtml/

# cat /etc/resolv.conf
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
nameserver 192.168.1.1
nameserver 195.14.50.1
nameserver 195.14.50.21
# ping -c 3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.7 icmp_seq=1 Destination Host Unreachable
From 192.168.1.7 icmp_seq=2 Destination Host Unreachable
From 192.168.1.7 icmp_seq=3 Destination Host Unreachable
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1998ms
pipe 3
# ping -c 3 195.14.50.21
connect: Network is unreachable
# ping -c 3 195.14.50.1
connect: Network is unreachable

после добавления 195.14.50.1 195.14.50.21 перестал работать и проводной, убрал их и он заработал… и чет не понимаю причем тут днс, если у меня роутер, он же все раздавать должен
показывай
ifconfig -a
iwconfig 
route -n
cat /etc/resolv.conf
cat /etc/rc.conf
ping 8.8.8.8
ping google.com
вот:
# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:C0:9F:E4:5C:04  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2c0:9fff:fee4:5c04/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3562 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1640 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1769202 (1.6 Mb)  TX bytes:211643 (206.6 Kb)
          Interrupt:16 
eth1      Link encap:Ethernet  HWaddr 00:13:CE:A1:3F:6E  
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::213:ceff:fea1:3f6e/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:837 errors:477 dropped:1063 overruns:0 frame:0
          TX packets:914 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:112995 (110.3 Kb)  TX bytes:114445 (111.7 Kb)
          Interrupt:17 Base address:0xe000 Memory:c820b000-c820bfff 
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:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1392 (1.3 Kb)  TX bytes:1392 (1.3 Kb)
# iwconfig 
lo        no wireless extensions.
eth0      no wireless extensions.
eth1      IEEE 802.11bg  ESSID:"mylink"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:23:54:40:01:F4   
          Bit Rate:54 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=67/100  Signal level=-58 dBm  Noise level=-85 dBm
          Rx invalid nwid:0  Rx invalid crypt:490  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:586   Missed beacon:0
# route -n
Kernel IP routing table
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     202    0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG    202    0        0 eth0
# cat /etc/resolv.conf
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
nameserver 192.168.1.1
# nameserver 195.14.50.1
# nameserver 195.14.50.21
cat /etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
LOCALE="ru_RU.UTF-8"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Moscow"
KEYMAP="ru"
CONSOLEFONT=cyr-sun16
CONSOLEMAP=
USECOLOR="yes"
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="wiz"
#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)
DAEMONS=(syslog-ng dbus network netfs crond hal wicd)
# ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.7 icmp_seq=1 Destination Host Unreachable
From 192.168.1.7 icmp_seq=2 Destination Host Unreachable
From 192.168.1.7 icmp_seq=3 Destination Host Unreachable
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
pipe 3
# ping -c 3 google.com
PING google.com (74.125.43.103) 56(84) bytes of data.
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
--- google.com ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2007ms

подключаюсь так:
sudo ifconfig eth1 up
sudo iwconfig eth1 essid mylink
sudo wpa_supplicant -B -Dwext -i eth1 -c /etc/wpa_supplicant.conf
sudo ifconfig eth1 192.168.1.7
sudo route add default gw 192.168.1.1
# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:C0:9F:E4:5C:04  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
...
eth1      Link encap:Ethernet  HWaddr 00:13:CE:A1:3F:6E  
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
# route -n
Kernel IP routing table
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     202    0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG    202    0        0 eth0
# cat /etc/resolv.conf
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
nameserver 192.168.1.1
# nameserver 195.14.50.1
# nameserver 195.14.50.21
cat /etc/rc.conf
...
#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)

у тебя eth0 и eth1 в одной подсети. не хорошо. как следствие - два шлюза по умолчанию через оба интерфейса. тоже не хорошо

сделай INTERFACES=(!eth0) ….. перегрузись … подключись к wifi и попробуй пропинговать 192.168.1.1 а потом 8.8.8.8
сделано
# ping -c 3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.7 icmp_seq=1 Destination Host Unreachable
From 192.168.1.7 icmp_seq=2 Destination Host Unreachable
From 192.168.1.7 icmp_seq=3 Destination Host Unreachable
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2008ms
pipe 3
# ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.7 icmp_seq=1 Destination Host Unreachable
From 192.168.1.7 icmp_seq=2 Destination Host Unreachable
From 192.168.1.7 icmp_seq=3 Destination Host Unreachable
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
роутер не пингуется … как он настроен?
 
Зарегистрироваться или войдите чтобы оставить сообщение.