|
发表于 2024-6-19 04:56:41
|
显示全部楼层
本帖最后由 riple 于 2024-6-19 05:00 编辑
My 99Pi ifconfig:
- root@LoongOS:~# ifconfig
- eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.20.10 netmask 255.255.255.0 broadcast 192.168.20.255
- inet6 fe80::6648:48ff:fe48:4860 prefixlen 64 scopeid 0x20<link>
- ether 64:48:48:48:48:60 txqueuelen 1000 (Ethernet)
- RX packets 806 bytes 66884 (65.3 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 588 bytes 96356 (94.0 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- device interrupt 49
- lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
- inet 127.0.0.1 netmask 255.0.0.0
- inet6 ::1 prefixlen 128 scopeid 0x10<host>
- loop txqueuelen 1000 (Local Loopback)
- RX packets 4962 bytes 377100 (368.2 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 4962 bytes 377100 (368.2 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- root@LoongOS:~# cat /etc/rc.local
- #! /bin/bash -e
- do_start()
- {
- #systemctl disable dhcpcd
- #systemctl stop dhcpcd
- insmod /usr/lib/modules/4.19.190+/aic8800_bsp.ko
- insmod /usr/lib/modules/4.19.190+/aic8800_fdrv.ko
- sleep 3
- #hostapd -B /etc/hostapd.conf -f /var/log/hstap.log &
- ifconfig eth0 192.168.20.10
- #ifconfig wlan0 192.168.1.66
- #udhcpd -f /etc/udhcpd.conf &
- wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
- udhcpc -i wlan0 &
- }
- do_stop()
- {
- rmmod aic8800_fdrv.ko
- rmmod aic8800_bsp.ko
- }
- case "$1" in
- start)
- do_start
- ;;
- stop)
- do_stop
- ;;
- esac
-
- exit 0
复制代码
My PC config:
- enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.20.11 netmask 255.255.255.0 broadcast 192.168.20.255
- inet6 fe80::b9e4:3378:756c:9b58 prefixlen 64 scopeid 0x20<link>
- ether 98:ee:cb:ca:a5:c0 txqueuelen 1000 (Ethernet)
- RX packets 612 bytes 103576 (103.5 KB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 917 bytes 79043 (79.0 KB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
复制代码 |
|