Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

MF825C surfing the Internet under embedded linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

ZTE MF825C telecom version

After plugging in the usb network card

# lsusb

19d2:1225 (bus 1, device 3)

0000Rom 0000 (bus 1, device 1)

The network card will change the mode automatically.

# lsusb

19d2:1405 (bus 1, device 3)

0000Rom 0000 (bus 1, device 1)

Select the driver module that supports it on the kernel

Make sure all three modules have rndis_host.ko,cdc_ether.ko,usbnet.ko and then add drivers

# modprobe rndis_host

The corresponding module will be mounted according to the dependency relationship.

Rndis_host 6048 0

Cdc_ether 4992 1 rndis_host

Usbnet 14160 2 rndis_host,cdc_ether

# ifconfig-a

Usb0 Link encap:Ethernet HWaddr 36:4B:50:B7:EF:61

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:4923 errors:0 dropped:0 overruns:0 frame:0

TX packets:6229 errors:0 dropped:0 overruns:0 carrier:0

Collisions:0 txqueuelen:1000

RX bytes:1287334 (1.2 MiB) TX bytes:1315840 (1.2 MiB)

If there is no problem with the driver, you will see the virtual network card of usb0

# ifconfig usb0 up

# udhcpc-I usb0-s / sbin/udhcpc.sh-p / var/run/udhcpc.pid

Udhcpc (v1.12.1) started

Sending select for 192.168.0.133...

Lease of 192.168.0.133 obtained, lease time 86400

Deleting routers

Route: ioctl 0x890c failed: No such process

Adding dns 192.168.0.1

Igmpproxy, Version 0.1 beta2, Build 160601

Copyright 2005 by Johnny Egeland

# ifconfig usb0

Usb0 Link encap:Ethernet HWaddr 36:4B:50:B7:EF:61

Inet addr:192.168.0.133 Bcast:192.168.0.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:24 errors:0 dropped:0 overruns:0 frame:0

TX packets:27 errors:0 dropped:0 overruns:0 carrier:0

Collisions:0 txqueuelen:1000

RX bytes:4726 (4.6KiB) TX bytes:5766 (5.6KiB)

# ping www.baidu.com

PING www.baidu.com (220.181.112.244): 56 data bytes

64 bytes from 220.181.112.244: seq=0 ttl=52 time=57.345 ms

64 bytes from 220.181.112.244: seq=1 ttl=52 time=53.074 ms

64 bytes from 220.181.112.244: seq=2 ttl=52 time=49.176 ms

So far, OK.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report