Hello All,
I installed Centos 6.5 64 bit on a Dell Vostro 1550 laptop with i3 core. The kernel installed was 2.6.32-431.el6.x86_64. I was not able to compile kernel modules, even after installing the kernel headers, kernel source rpms.
So I downloaded the kernel linux-3.10.31.tar.xz, extracted it, and did the following:
make defconfig
change CONFIG_USB_USBNET=y, in the .config.
make
ASIX AX88xxx Based USB 2.0 Ethernet Adapters (USB_NET_AX8817X) [Y/n/m/?] (NEW) n ASIX AX88179/178A USB 3.0/2.0 to Gigabit Ethernet (USB_NET_AX88179_178A) [Y/n/m/?] (NEW) n
All the other options selected the default.
make modules
make modules_install
make install
Then I booted from 3.10 kernel, which went thru fine. After logging in into the 3.10 kernel, I compiled and insmod the asix driver for usb to ethernet. Upon insmod, the eth1 interface comes up, but with no IPV4 address assigned. So I assigned a static IP address using ifconfig. Then added a route for the default gateway.
Now, after assigning a static IPV4 address, this eth1 is pinging to the default gateway 192.168.1.1. But eth1 is not pinging/connecting to the external internet. Can someone please provide some answers.
I am using the device from www.svbinternational.com. The device is labeled USB 2.0 to network 10/100Mbps ethernet adapter. Device id, as can be seen from lsusb is: Device 003: ID 0b95:772b ASIX Electronics Corp. AX88772B.
Thanks in advance.
Regards, Giri
AX88772C_772B_772A_760_772_178_LINUX_DRIVER_v4.12.0_Source.tar.bz2
[root@gpcentospc1 AX88772C_772B_772A_760_772_178_LINUX_DRIVER_v4.12.0_Source]# insmod asix.ko
[root@gpcentospc1 ~]# lsmod Module Size Used by asix 47587 0
[root@gpcentospc1 ~]# ifconfig (DEFAULT NO IP ADDRESS) eth1 Link encap:Ethernet HWaddr 00:00:00:00:00:01 inet6 addr: fe80::200:ff:fe00:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:228 (228.0 b) TX bytes:954 (954.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:65536 Metric:1 RX packets:52 errors:0 dropped:0 overruns:0 frame:0 TX packets:52 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4040 (3.9 KiB) TX bytes:4040 (3.9 KiB)
[root@gpcentospc1 ~]# ifconfig eth1 192.168.1.20 netmask 255.255.255.0 broadcast 192.168.1.255 [root@gpcentospc1 ~]# ifconfig eth1 Link encap:Ethernet HWaddr 00:00:00:00:00:01 inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::200:ff:fe00:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:438 (438.0 b) TX bytes:1992 (1.9 KiB)
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:65536 Metric:1 RX packets:52 errors:0 dropped:0 overruns:0 frame:0 TX packets:52 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4040 (3.9 KiB) TX bytes:4040 (3.9 KiB)
[root@gpcentospc1 ~]# route add default gw 192.168.1.1
[root@gpcentospc1 ~]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1 192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
[root@gpcentospc1 ~]# lsusb Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0b95:772b ASIX Electronics Corp. AX88772B Bus 001 Device 004: ID 0461:4d81 Primax Electronics, Ltd Dell N889 Optical Mouse Bus 001 Device 005: ID 0a5c:21bc Broadcom Corp. BCM2070 Bluetooth 2.1 + EDR Bus 001 Device 006: ID 0c45:643e Microdia Bus 002 Device 003: ID 0bda:0138 Realtek Semiconductor Corp. RTS5138 Card Reader Controller
[root@gpcentospc1 ~]# ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=254 time=3.73 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=254 time=1.88 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=254 time=1.95 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=254 time=1.95 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=254 time=1.87 ms 64 bytes from 192.168.1.1: icmp_seq=6 ttl=254 time=1.93 ms 64 bytes from 192.168.1.1: icmp_seq=7 ttl=254 time=1.91 ms 64 bytes from 192.168.1.1: icmp_seq=8 ttl=254 time=1.86 ms 64 bytes from 192.168.1.1: icmp_seq=9 ttl=254 time=1.97 ms 64 bytes from 192.168.1.1: icmp_seq=10 ttl=254 time=1.88 ms ^C --- 192.168.1.1 ping statistics --- 10 packets transmitted, 10 received, 0% packet loss, time 9778ms rtt min/avg/max/mdev = 1.867/2.095/3.731/0.549 ms
[root@gpcentospc1 ~]# ping google.com ping: unknown host google.com
[root@gpcentospc1 ~]# uname -a Linux gpcentospc1.cruzesoft.com 3.10.31 #8 SMP Tue Mar 18 01:52:26 IST 2014 x86_64 x86_64 x86_64 GNU/Linux [root@gpcentospc1 ~]# [root@gpcentospc1 ~]#
[root@gpcentospc1 ~]# ethtool -i eth1 driver: asix version: 22-Aug-2005 firmware-version: ASIX AX88772B USB 2.0 Ethernet bus-info: usb-0000:00:1a.0-1.1 supports-statistics: no supports-test: no supports-eeprom-access: yes supports-register-dump: no supports-priv-flags: no [root@gpcentospc1 ~]# [root@gpcentospc1 ~]#
The same device on Windows 7 64 bit, same laptop, gets the IP Address and mask as 169.254.74.198, whereas the wireless interface is properly assigned the IPV4 address as 192.168.1.2 :
Autoconfiguration IPv4 Address. . : 169.254.74.198 Subnet Mask . . . . . . . . . . . : 255.255.0.0
C:\Users\giri>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe80::606c:d214:57c9:4ac6%17 Autoconfiguration IPv4 Address. . : 169.254.74.198 Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : fe80::ed2:b5ff:fe13:d3d4%17
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe80::7448:5c68:7e43:1108%15 IPv4 Address. . . . . . . . . . . : 192.168.1.2 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : fe80::ed2:b5ff:fe13:d3d4%15 192.168.1.1
On 18/03/14 19:49, Giri Prasad wrote:
Now, after assigning a static IPV4 address, this eth1 is pinging to the default gateway 192.168.1.1. But eth1 is not pinging/connecting to the external internet. Can someone please provide some answers.
Can you ping an IP Address - such as 8.8.8.8?
If you can, then most likely a DNS config issue! Since you mention you had to assign an IP Address manually, the file /etc/resolv.conf may not have the necessary DNS info to resolve Internet names!
Cheers, ak.
On 18/03/14 19:49, Giri Prasad wrote:
Now, after assigning a static IPV4 address, this eth1 is pinging to the default gateway 192.168.1.1. But eth1 is not pinging/connecting to the external internet. Can someone please provide some answers.
Can you ping an IP Address - such as 8.8.8.8?
If you can, then most likely a DNS config issue! Since you mention you
had to assign an IP Address manually, the file /etc/resolv.conf may not have the necessary DNS info to resolve Internet names!
No, I am not able to ping to an external ip like 8.8.8.8. Following are the details:
#cat /etc/resolv.conf # Generated by NetworkManager search cruzesoft.com nameserver 192.168.1.1
# No nameservers found; try putting DNS servers into your # ifcfg files in /etc/sysconfig/network-scripts like so: # # DNS1=xxx.xxx.xxx.xxx # DNS2=xxx.xxx.xxx.xxx # DOMAIN=lab.foo.com bar.foo.com
#cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=gpcentospc1.cruzesoft.com GATEWAY=192.168.1.1
# ifconfig 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:65536 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)
# insmod asix.ko
# ifconfig 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:65536 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)
# ping 192.168.1.1 connect: Network is unreachable
#ifconfig eth1 192.168.1.20 netmask 255.255.255.0 broadcast 192.168.1.255
#ifconfig eth1 Link encap:Ethernet HWaddr 00:00:00:00:00:01 inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::200:ff:fe00:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:64 (64.0 b) TX bytes:250 (250.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:65536 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)
#ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=254 time=3.89 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=254 time=1.89 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=254 time=1.80 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=254 time=1.94 ms ^C --- 192.168.1.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3432ms rtt min/avg/max/mdev = 1.800/2.383/3.897/0.875 ms
# ping google.com connect: Network is unreachable
# ping google.com connect: Network is unreachable
# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
# ping 8.8.8.8 connect: Network is unreachable
# route add default gw 192.168.1.1
# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1 192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
# ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=254 time=1.94 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=254 time=1.91 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=254 time=1.88 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=254 time=1.94 ms ^C --- 192.168.1.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3365ms rtt min/avg/max/mdev = 1.884/1.922/1.945/0.024 ms
# ping google.com PING google.com (74.125.236.195) 56(84) bytes of data. ^C --- google.com ping statistics --- 14 packets transmitted, 0 received, 100% packet loss, time 13833ms
# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. ^C --- 8.8.8.8 ping statistics --- 18 packets transmitted, 0 received, 100% packet loss, time 17372ms
# ls /etc/sysconfig/network-scripts/ifcfg-* /etc/sysconfig/network-scripts/ifcfg-lo
# dmesg | tail -10 [ 93.800319] asix 1-1.1:1.0: usb_probe_interface - got id [ 93.800335] ASIX USB Ethernet Adapter:v4.12.0 18:32:04 Mar 18 2014 [ 93.800335] http://www.asix.com.tw [ 94.427358] eth%d: status ep1in, 8 bytes period 11 [ 94.427749] eth0: register 'asix' at usb-0000:00:1a.0-1.1, ASIX AX88772B USB 2.0 Ethernet, 00:00:00:00:00:01 [ 94.429348] usbcore: registered new interface driver asix [ 173.849024] usb 1-1.1: link qh128-0001/ffff880214aa7100 start 3 [1/0 us] [ 173.849069] eth1: rxqlen 0 --> 5 [ 173.886479] eth1: ax88772b - Link status is: 0 [ 174.014618] eth1: ax88772b - Link status is: 1 [root@gpcentospc1 AX88772C_772B_772A_760_772_178_LINUX_DRIVER_v4.12.0_Source]#
On 03/18/2014 11:35 AM, Giri Prasad wrote:
On 18/03/14 19:49, Giri Prasad wrote:
Now, after assigning a static IPV4 address, this eth1 is pinging to the default gateway 192.168.1.1. But eth1 is not pinging/connecting to the external internet. Can someone please provide some answers.
Can you ping an IP Address - such as 8.8.8.8?
If you can, then most likely a DNS config issue! Since you mention you
had to assign an IP Address manually, the file /etc/resolv.conf may not have the necessary DNS info to resolve Internet names!
No, I am not able to ping to an external ip like 8.8.8.8. Following are the details:
<snip>
what you posted looks good afaics, although I wonder about that strange 00:00:00:00:00:01 hwaddr.
can you check the logs on the gateway?
On Tue, 2014-03-18 at 18:35 +0800, Giri Prasad wrote:
On 18/03/14 19:49, Giri Prasad wrote:
Now, after assigning a static IPV4 address, this eth1 is pinging to the default gateway 192.168.1.1. But eth1 is not pinging/connecting to the external internet. Can someone please provide some answers.
Can you ping an IP Address - such as 8.8.8.8?
# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. ^C --- 8.8.8.8 ping statistics --- 18 packets transmitted, 0 received, 100% packet loss, time 17372ms
Do you have NAT enabled somewhere? It looks as if you do not have it or you have a routing issue on 192.168.1.1? You will need it to be able to reach anything outside your own network.... What does nslookup google.com say?
On 18/03/14 19:49, Giri Prasad wrote:
Now, after assigning a static IPV4 address, this eth1 is pinging to the default gateway 192.168.1.1. But eth1 is not pinging/connecting to the external internet. Can someone please provide some answers.
Can you ping an IP Address - such as 8.8.8.8?
# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. ^C --- 8.8.8.8 ping statistics --- 18 packets transmitted, 0 received, 100% packet loss, time 17372ms
Do you have NAT enabled somewhere? It looks as if you do not have it or you have a routing issue on 192.168.1.1? You will need it to be able to reach anything outside your own network.... What does nslookup google.com say?
Thanks for your message.
192.168.1.1: binatone wireless n ADSL2+ Modem Router
NAT : Enabled
.config ******* CONFIG_NF_NAT=y CONFIG_NF_NAT_NEEDED=y CONFIG_NF_NAT_IPV4=y
# nslookup google.com
Server: 192.168.1.1 Address: 192.168.1.1#53
Non-authoritative answer: Name: google.com Address: 74.125.236.33 Name: google.com Address: 74.125.236.36 Name: google.com Address: 74.125.236.34 Name: google.com Address: 74.125.236.38 Name: google.com Address: 74.125.236.39 Name: google.com Address: 74.125.236.32 Name: google.com Address: 74.125.236.40 Name: google.com Address: 74.125.236.41 Name: google.com Address: 74.125.236.35 Name: google.com Address: 74.125.236.37 Name: google.com Address: 74.125.236.46
On 18/03/14 08:49, Giri Prasad wrote:
Hello All,
I installed Centos 6.5 64 bit on a Dell Vostro 1550 laptop with i3 core. The kernel installed was 2.6.32-431.el6.x86_64. I was not able to compile kernel modules, even after installing the kernel headers, kernel source rpms.
So I downloaded the kernel linux-3.10.31.tar.xz, extracted it, and did the following:
make defconfig
change CONFIG_USB_USBNET=y, in the .config.
make
ASIX AX88xxx Based USB 2.0 Ethernet Adapters (USB_NET_AX8817X) [Y/n/m/?] (NEW) n ASIX AX88179/178A USB 3.0/2.0 to Gigabit Ethernet (USB_NET_AX88179_178A) [Y/n/m/?] (NEW) n
All the other options selected the default.
make modules
make modules_install
make install
I backported this driver for el6 at elrepo. Rather than compile and maintain a complete kernel from source, you could have just set up elrepo and done 'yum install kmod-asix'.
http://elrepo.org/tiki/kmod-asix https://github.com/elrepo/packages/commits/master/asix-kmod