Re: [CentOS] USB to Ethernet problem
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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] USB to Ethernet problem
> 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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] USB to Ethernet problem
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? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] USB to Ethernet problem
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: > 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? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] USB to Ethernet problem
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
Re: [CentOS] USB to Ethernet problem
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. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] USB to Ethernet problem
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