可以了,原来是代码有点问题,现在可以完美的ping主机了 |
刚刚我又测试了一下。用你们刷机的系统 连接路由器,可以PING通外网,把笔记本也连上路由器,开发板可以PING通笔记本。但是假如把开发板直接用网线连接上笔记本,那么就PING不通笔记本了。这是什么原因。笔记本一直设置的都是手动IP未变过 |
我用你们刷机的系统 PING通了百度,也可以PING路由器,可是我把网线插到笔记本上,就PING不了笔记本》这是为什么? |
root@x6818:/ # [ 28.622000] PHY: stmmac-0:04 - Link is Up - 1000/Full PING www.baidu.com /system/bin/sh: PING: not found 127|root@x6818:/ # ping www.baidu.com PING www.a.shifen.com (14.215.177.38) 56(84) bytes of data. 64 bytes from 14.215.177.38: icmp_seq=1 ttl=56 time=7.58 ms 64 bytes from 14.215.177.38: icmp_seq=2 ttl=56 time=7.36 ms 64 bytes from 14.215.177.38: icmp_seq=3 ttl=56 time=7.36 ms 64 bytes from 14.215.177.38: icmp_seq=4 ttl=56 time=7.43 ms 64 bytes from 14.215.177.38: icmp_seq=5 ttl=56 time=7.53 ms 64 bytes from 14.215.177.38: icmp_seq=6 ttl=56 time=7.61 ms 64 bytes from 14.215.177.38: icmp_seq=7 ttl=56 time=7.48 ms 64 bytes from 14.215.177.38: icmp_seq=8 ttl=56 time=7.45 ms 64 bytes from 14.215.177.38: icmp_seq=9 ttl=56 time=7.49 ms 64 bytes from 14.215.177.38: icmp_seq=10 ttl=56 time=7.50 ms 64 bytes from 14.215.177.38: icmp_seq=11 ttl=56 time=7.44 ms 64 bytes from 14.215.177.38: icmp_seq=12 ttl=56 time=7.51 ms 64 bytes from 14.215.177.38: icmp_seq=13 ttl=56 time=7.48 ms 64 bytes from 14.215.177.38: icmp_seq=14 ttl=56 time=7.50 ms 64 bytes from 14.215.177.38: icmp_seq=15 ttl=56 time=7.58 ms 64 bytes from 14.215.177.38: icmp_seq=16 ttl=56 time=7.50 ms 64 bytes from 14.215.177.38: icmp_seq=17 ttl=56 time=7.54 ms 64 bytes from 14.215.177.38: icmp_seq=18 ttl=56 time=7.34 ms 64 bytes from 14.215.177.38: icmp_seq=19 ttl=56 time=7.62 ms 64 bytes from 14.215.177.38: icmp_seq=20 ttl=56 time=7.36 ms 64 bytes from 14.215.177.38: icmp_seq=21 ttl=56 time=7.30 ms 64 bytes from 14.215.177.38: icmp_seq=22 ttl=56 time=7.39 ms 64 bytes from 14.215.177.38: icmp_seq=23 ttl=56 time=7.40 ms 64 bytes from 14.215.177.38: icmp_seq=24 ttl=56 time=7.32 ms 64 bytes from 14.215.177.38: icmp_seq=25 ttl=56 time=7.42 ms 64 bytes from 14.215.177.38: icmp_seq=26 ttl=56 time=7.40 ms 64 bytes from 14.215.177.38: icmp_seq=27 ttl=56 time=7.39 ms 64 bytes from 14.215.177.38: icmp_seq=28 ttl=56 time=7.42 ms 64 bytes from 14.215.177.38: icmp_seq=29 ttl=56 time=7.51 ms 64 bytes from 14.215.177.38: icmp_seq=30 ttl=56 time=7.40 ms 64 bytes from 14.215.177.38: icmp_seq=31 ttl=56 time=7.45 ms 64 bytes from 14.215.177.38: icmp_seq=32 ttl=56 time=7.56 ms 64 bytes from 14.215.177.38: icmp_seq=33 ttl=56 time=7.50 ms 64 bytes from 14.215.177.38: icmp_seq=34 ttl=56 time=7.50 ms 64 bytes from 14.215.177.38: icmp_seq=35 ttl=56 time=7.50 ms 64 bytes from 14.215.177.38: icmp_seq=36 ttl=56 time=7.55 ms 64 bytes from 14.215.177.38: icmp_seq=37 ttl=56 time=7.52 ms 64 bytes from 14.215.177.38: icmp_seq=38 ttl=56 time=7.54 ms 64 bytes from 14.215.177.38: icmp_seq=39 ttl=56 time=7.51 ms 64 bytes from 14.215.177.38: icmp_seq=40 ttl=56 time=7.58 ms 64 bytes from 14.215.177.38: icmp_seq=41 ttl=56 time=9.91 ms 64 bytes from 14.215.177.38: icmp_seq=42 ttl=56 time=7.59 ms 64 bytes from 14.215.177.38: icmp_seq=43 ttl=56 time=7.61 ms 64 bytes from 14.215.177.38: icmp_seq=44 ttl=56 time=7.59 ms 64 bytes from 14.215.177.38: icmp_seq=45 ttl=56 time=7.36 ms 64 bytes from 14.215.177.38: icmp_seq=46 ttl=56 time=7.73 ms 64 bytes from 14.215.177.38: icmp_seq=47 ttl=56 time=7.38 ms 64 bytes from 14.215.177.38: icmp_seq=48 ttl=56 time=7.37 ms 64 bytes from 14.215.177.38: icmp_seq=49 ttl=56 time=7.42 ms 64 bytes from 14.215.177.38: icmp_seq=50 ttl=56 time=7.46 ms 64 bytes from 14.215.177.38: icmp_seq=51 ttl=56 time=8.05 ms 64 bytes from 14.215.177.38: icmp_seq=52 ttl=56 time=7.47 ms 64 bytes from 14.215.177.38: icmp_seq=53 ttl=56 time=7.45 ms 64 bytes from 14.215.177.38: icmp_seq=54 ttl=56 time=7.51 ms 64 bytes from 14.215.177.38: icmp_seq=55 ttl=56 time=7.47 ms 64 bytes from 14.215.177.38: icmp_seq=56 ttl=56 time=7.52 ms 64 bytes from 14.215.177.38: icmp_seq=57 ttl=56 time=7.44 ms ^X64 bytes from 14.215.177.38: icmp_seq=58 ttl=56 time=7.51 ms 64 bytes from 14.215.177.38: icmp_seq=59 ttl=56 time=7.51 ms 64 bytes from 14.215.177.38: icmp_seq=60 ttl=56 time=7.58 ms 64 bytes from 14.215.177.38: icmp_seq=61 ttl=56 time=7.54 ms 64 bytes from 14.215.177.38: icmp_seq=62 ttl=56 time=7.53 ms ^C --- www.a.shifen.com ping statistics --- 62 packets transmitted, 62 received, 0% packet loss, time 61216ms rtt min/avg/max/mdev = 7.300/7.534/9.918/0.326 ms root@x6818:/ # 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=64 time=1.03 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.866 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.887 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.912 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.914 ms 64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=0.887 ms 64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=0.870 ms 64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=0.894 ms 64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=0.869 ms 64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=0.873 ms 64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=0.874 ms 64 bytes from 192.168.1.1: icmp_seq=12 ttl=64 time=0.895 ms 64 bytes from 192.168.1.1: icmp_seq=13 ttl=64 time=0.883 ms 64 bytes from 192.168.1.1: icmp_seq=14 ttl=64 time=0.885 ms 64 bytes from 192.168.1.1: icmp_seq=15 ttl=64 time=0.897 ms ^C --- 192.168.1.1 ping statistics --- 15 packets transmitted, 15 received, 0% packet loss, time 14047ms rtt min/avg/max/mdev = 0.866/0.896/1.034/0.039 ms root@x6818:/ # ping 192.168.1.120 PING 192.168.1.120 (192.168.1.120) 56(84) bytes of data. From 192.168.1.5: icmp_seq=1 Destination Host Unreachable From 192.168.1.5: icmp_seq=2 Destination Host Unreachable From 192.168.1.5: icmp_seq=3 Destination Host Unreachable From 192.168.1.5: icmp_seq=4 Destination Host Unreachable From 192.168.1.5: icmp_seq=5 Destination Host Unreachable From 192.168.1.5: icmp_seq=6 Destination Host Unreachable From 192.168.1.5: icmp_seq=7 Destination Host Unreachable From 192.168.1.5: icmp_seq=8 Destination Host Unreachable From 192.168.1.5: icmp_seq=9 Destination Host Unreachable From 192.168.1.5: icmp_seq=10 Destination Host Unreachable From 192.168.1.5: icmp_seq=11 Destination Host Unreachable From 192.168.1.5: icmp_seq=12 Destination Host Unreachable ^C --- 192.168.1.120 ping statistics --- 13 packets transmitted, 0 received, +12 errors, 100% packet loss, time 12011ms pipe 4 1|root@x6818:/ # [ 164.905000] PHY: stmmac-0:04 - Link is Down ping 192.168.1.1 connect: Network is unreachable 2|root@x6818:/ # [ 195.974000] PHY: stmmac-0:04 - Link is Up - 1000/Full ping 192.168.1.1 connect: Network is unreachable 2|root@x6818:/ # ping 192.168.1.1 connect: Network is unreachable 2|root@x6818:/ # ping 192.168.1.120 connect: Network is unreachable 2|root@x6818:/ # ping 192.168.1.120 connect: Network is unreachable 2|root@x6818:/ # |
20.786000] acc_release [ 21.125000] eth0: device MAC address e2:c9:a6:50:00:d4 [ 26.136000] PHY: stmmac-0:04 - Link is Up - 1000/Full root@x6818:/ # root /system/bin/sh: root: not found 127|root@x6818:/ # ls acct cache charger config d data default.prop dev etc file_contexts fstab.x6818 init init.environ.rc init.rc init.recovery.x6818.rc init.trace.rc init.usb.rc init.x6818.rc init.x6818.usb.rc init.zygote32.rc mnt proc property_contexts root sbin sdcard seapp_contexts selinux_version sepolicy service_contexts storage sys system ueventd.rc ueventd.x6818.rc vendor root@x6818:/ # ping 192.168.1.120 connect: Network is unreachable 2|root@x6818:/ # 123 GO! /system/bin/sh: 123: not found 127|root@x6818:/ # 192.168.1.120 /system/bin/sh: 192.168.1.120: not found 127|root@x6818:/ # PING 192.168.1.120 /system/bin/sh: PING: not found 127|root@x6818:/ # |
板子已经返修回来了,售后说刷机后就能ping了,请问你们的系统ping是怎么用? |
13828866810 发表于 2022-12-5 16:42 那你找一下你购买开发板的客服,然后寄回来看一下 |
你们公司给达内的源码,达内再给我们的源码。其他人的都ping上了,我的板子ping不上 |
13828866810 发表于 2022-12-5 15:19 固件是你自己编译的还是我们公司提供的 |
启动文件uboot和Linux-QT系统uImage,还有根文件 |
13828866810 发表于 2022-12-5 12:38 你烧录的系统是Linux-Qt还是Ubuntu |
进入linux下,插上路由器,Ping路由器也不通,ping外网也不通 |
你再看下,究竟是哪里的问题?网卡 eth0是在的,eth1没有。为什么我配置了eth0,还是ping不通呀 |
还是PING不通,PING自己也不通 dmesg 查看部分信息如下: [ 2.174000] nxp_v4l2_probe success!!! [ 2.175000] nxp_hdmi_cec_probe success [ 2.176000] usbcore: registered new interface driver uvcvideo [ 2.177000] USB Video Class driver (1.1.1) [ 2.178000] mma8653_hw_init:addr = 0x1d, Read ID value is :90 [ 2.180000] input: mma8653 as /devices/virtual/input/input4 [ 2.182000] i2c-core: driver [mma8653] using legacy suspend method [ 2.183000] i2c-core: driver [mma8653] using legacy resume method [ 2.184000] nxp_wdt: NXP Watchdog Timer, (c) 2014 SLsiAP [ 2.188000] nxp-wdt nxp-wdt: watchdog inactive, reset disabled, irq disabled [ 2.190000] device-mapper: uevent: version 1.0.3 [ 2.191000] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com [ 2.193000] usbcore: registered new interface driver btusb [ 2.198000] DVFS: cpu DVFS with PLL.1 [tables=11] [ 2.199000] cpuidle: using governor ladder [ 2.200000] cpuidle: using governor menu [ 2.201000] Synopsys Designware Multimedia Card Interface Driver [ 2.202000] dw_mmc dw_mmc.2: Using internal DMA controller. [ 2.203000] mmc0: no vmmc regulator found [ 2.206000] dw_mmc dw_mmc.2: Version ID is 250a [ 2.207000] dw_mmc dw_mmc.2: DW MMC controller at irq 77, 32 bit host data width, 32 deep fifo hw timeout 500 ms [ 2.208000] dw_mmc dw_mmc.0: Using internal DMA controller. [ 2.210000] mmc1: no vmmc regulator found [ 2.211000] dw_mmc dw_mmc.0: Using external card detect irq 267 (io 161) [ 2.214000] dw_mmc dw_mmc.0: Version ID is 250a [ 2.215000] dw_mmc dw_mmc.0: DW MMC controller at irq 75, 32 bit host data width, 32 deep fifo hw timeout 500 ms [ 2.216000] dw_mmc dw_mmc.1: Using internal DMA controller. [ 2.217000] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63) [ 2.218000] mmc2: no vmmc regulator found [ 2.219000] dw_mmc dw_mmc.1: Using external card detect irq 163 (io 57) [ 2.222000] dw_mmc dw_mmc.1: Version ID is 250a [ 2.223000] dw_mmc dw_mmc.1: DW MMC controller at irq 76, 32 bit host data width, 32 deep fifo hw timeout 500 ms [ 2.224000] Registered led device: led1 [ 2.224000] Registered led device: led2 [ 2.224000] Registered led device: led3 [ 2.224000] Registered led device: led4 [ 2.227000] usbcore: registered new interface driver usbhid [ 2.229000] mmc_host mmc0: device is being hw reset [ 2.230000] usbhid: USB HID core driver [ 2.231000] gsensor calibration file not exist! [ 2.233000] ADC: CHs 4, 200000(1000000 ~ 130208) sample rate, polling mode, scale=166(bit 6) [ 2.235000] ashmem: initialized [ 2.236000] logger: created 256K log 'log_main' [ 2.237000] logger: created 256K log 'log_events' [ 2.239000] logger: created 256K log 'log_radio' [ 2.240000] logger: created 256K log 'log_system' [ 2.241000] alc5623_i2c_probe ............ [ 2.242000] snd pcm: register sound platform 'nxp-pcm' [ 2.244000] snd i2s: ch 0, master, iis mode, 48000(47607)hz, 32 FBITs, MCLK=12187500hz, RFS=256 [ 2.245000] alc5623_probe ............ [ 2.278000] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 2.280000] mmc0: new high speed MMC card at address 0001 [ 2.281000] mmcblk0: mmc0:0001 8GTF4R 7.28 GiB [ 2.282000] mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB [ 2.284000] mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB [ 2.287000] mmcblk0: p1 p2 [ 2.291000] mmcblk0boot1: unknown partition table [ 2.294000] mmcblk0boot0: unknown partition table [ 2.300000] alc5623_jack_status_check: hp jack OUT [ 2.301000] Done: alc5623_dai_init register audio jack detect, 59 [ 2.302000] asoc: alc5621-hifi <-> nxp-i2s.0 mapping ok [ 2.304000] input: I2S-alc5623 Headphone Jack as /devices/platform/alc5623-audio.0/sound/card0/input5 [ 2.305000] alc5623-dai: register card alc5621-hifi -> nxp-i2s.0 [ 2.306000] mmc_host mmc2: Bus speed (slot 0) = 25000000Hz (slot req 400000Hz, actual 390625HZ div = 32) [ 2.307000] spdif-tx: 48000(47607)Hz, MCLK=12187500hz HDMI out [ 2.310000] asoc: dit-hifi <-> nxp-spdif-tx mapping ok [ 2.311000] GACT probability NOT on [ 2.312000] Mirror/redirect action on [ 2.313000] u32 classifier [ 2.314000] Actions configured [ 2.315000] Netfilter messages via NETLINK v0.30. [ 2.316000] nf_conntrack version 0.5.0 (12932 buckets, 51728 max) [ 2.317000] ctnetlink v0.93: registering with nfnetlink. [ 2.318000] NF_TPROXY: Transparent proxy support initialized, version 4.1.0 [ 2.319000] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd. [ 2.320000] xt_time: kernel timezone is -0000 [ 2.321000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 2.322000] arp_tables: (C) 2002 David S. Miller [ 2.323000] TCP: cubic registered [ 2.324000] Initializing XFRM netlink socket [ 2.326000] NET: Registered protocol family 10 [ 2.328000] Mobile IPv6 [ 2.329000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 2.330000] IPv6 over IPv4 tunneling driver [ 2.332000] NET: Registered protocol family 17 [ 2.333000] NET: Registered protocol family 15 [ 2.334000] Bluetooth: RFCOMM TTY layer initialized [ 2.336000] Bluetooth: RFCOMM socket layer initialized [ 2.337000] Bluetooth: RFCOMM ver 1.11 [ 2.338000] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 2.339000] Bluetooth: BNEP filters: protocol multicast [ 2.340000] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 2.341000] NET: Registered protocol family 35 [ 2.342000] Registering the dns_resolver key type [ 2.343000] Registering SWP/SWPB emulation handler [ 2.347000] axp22_dcdc5: incomplete constraints, leaving on [ 2.349000] axp22_dcdc4: incomplete constraints, leaving on [ 2.351000] axp22_dcdc3: incomplete constraints, leaving on [ 2.353000] axp22_dcdc2: incomplete constraints, leaving on [ 2.355000] axp22_dcdc1: incomplete constraints, leaving on [ 2.360000] axp22_eldo2: incomplete constraints, leaving on [ 2.362000] axp22_eldo1: incomplete constraints, leaving on [ 2.366000] axp22_dldo2: incomplete constraints, leaving on [ 2.367000] mmc_host mmc2: Bus speed (slot 0) = 25000000Hz (slot req 25000000Hz, actual 25000000HZ div = 0) [ 2.368000] mmc2: new high speed SDHC card at address 0001 [ 2.371000] axp22_dldo1: incomplete constraints, leaving on [ 2.373000] mmcblk1: mmc2:0001 SD16G 7.43 GiB [ 2.375000] axp22_aldo3: incomplete constraints, leaving on [ 2.376000] mmcblk1: p1 [ 2.379000] axp22_aldo2: incomplete constraints, leaving on [ 2.381000] axp22_aldo1: incomplete constraints, leaving on [ 2.384000] otg_wakelock_init: No USB transceiver found [ 2.385000] nxp-rtc nxp-rtc.0: setting system clock to 2015-01-01 01:22:17 UTC (1420075337) [ 2.387000] tmu[0] = trim 45:0, ret 1 [ 2.388000] TMU: register tmu.0 to hwmon (max 1400000khz) [ 2.389000] ALSA device list: [ 2.390000] #0: I2S-alc5623 [ 2.391000] #1: SPDIF-Transciever [ 2.394000] EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (244) [ 2.398000] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities [ 2.447000] EXT4-fs (mmcblk0p2): recovery complete [ 2.448000] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 2.449000] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 2.450000] devtmpfs: mounted [ 2.451000] Freeing init memory: 240K [ 2.452000] Write protecting the kernel text section c0008000 - c09b0000 [ 2.454000] rodata_test: attempting to write to read-only section: [ 2.455000] write to read-only section trapped, success [ 2.560000] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered [ 2.652000] udevd[93]: starting version 3.0 [ 3.125000] ------------[ cut here ]------------ [ 3.125000] WARNING: at kernel/irq/manage.c:1196 __free_irq+0x98/0x1b8() [ 3.125000] Trying to free already-free IRQ 51 [ 3.125000] Modules linked in: [ 3.125000] [<c0014e80>] (unwind_backtrace+0x0/0x138) from [<c0042814>] (warn_slowpath_common+0x4c/0x64) [ 3.125000] [<c0042814>] (warn_slowpath_common+0x4c/0x64) from [<c00428c0>] (warn_slowpath_fmt+0x30/0x40) [ 3.125000] [<c00428c0>] (warn_slowpath_fmt+0x30/0x40) from [<c00b3058>] (__free_irq+0x98/0x1b8) [ 3.125000] [<c00b3058>] (__free_irq+0x98/0x1b8) from [<c00b31c4>] (free_irq+0x4c/0xa0) [ 3.125000] [<c00b31c4>] (free_irq+0x4c/0xa0) from [<c04a67c8>] (_hw_cleanup+0x10/0x40) [ 3.125000] [<c04a67c8>] (_hw_cleanup+0x10/0x40) from [<c04a77f4>] (nxp_scaler_s_power+0x28/0x120) [ 3.125000] [<c04a77f4>] (nxp_scaler_s_power+0x28/0x120) from [<c04a645c>] (nxp_scaler_close+0x30/0x48) [ 3.125000] [<c04a645c>] (nxp_scaler_close+0x30/0x48) from [<c0412628>] (subdev_close+0x3c/0x8c) [ 3.125000] [<c0412628>] (subdev_close+0x3c/0x8c) from [<c04069bc>] (v4l2_release+0x50/0x74) [ 3.125000] [<c04069bc>] (v4l2_release+0x50/0x74) from [<c011e79c>] (fput+0xcc/0x248) [ 3.125000] [<c011e79c>] (fput+0xcc/0x248) from [<c011ad08>] (filp_close+0x58/0x7c) [ 3.125000] [<c011ad08>] (filp_close+0x58/0x7c) from [<c011b4e0>] (sys_close+0xb0/0xe4) [ 3.125000] [<c011b4e0>] (sys_close+0xb0/0xe4) from [<c000ec80>] (ret_fast_syscall+0x0/0x30) [ 3.125000] ---[ end trace acab1c1dca2c851d ]--- [ 3.176000] HDMI HPD State 0x0 [ 3.288000] nxp-wdt nxp-wdt: timeout 60 invalid value [ 233.618000] eth0: device MAC address 22:71:66:b0:00:74 [ 233.619000] yt8511_config_init succeed. [ 233.635000] stmmac_open: failed PTP initialisation [ 243.922000] eth0: no IPv6 routers present [root@tarena:~]# [root@tarena:~]# |
[root@tarena:~]# ifconfig eth0 Link encap:Ethernet HWaddr 22:71:66:B0:00:74 inet addr:192.168.1.110 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::2071:66ff:feb0:74/64 Scopeink UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) Interrupt:80 [root@tarena:~]# |
不对呀。我的eth0 是有的呀。就是PING不通呀 |
Password: login[150]: root login on 'console' [root@tarena:~]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:80 [root@tarena:~]# ifconfig eth1 ifconfig: eth1: error fetching interface information: Device not found [root@tarena:~]# mii-tool -sh: mii-tool: not found [root@tarena:~]# mii-tooI -sh: mii-tooI: not found [root@tarena:~]# mii -tool -sh: mii: not found [root@tarena:~]# mii -sh: mii: not found [root@tarena:~]# mii-tool -sh: mii-tool: not found [root@tarena:~]# ifconfig eth0 192.168.1.110 [ 233.618000] eth0: device MAC address 22:71:66:b0:00:74 [ 233.619000] yt8511_config_init succeed. [ 233.635000] stmmac_open: failed PTP initialisation [root@tarena:~]# mii-tool -sh: mii-tool: not found [root@tarena:~]# ping 192.168.1.110 PING 192.168.1.110 (192.168.1.110): 56 data bytes ^C --- 192.168.1.110 ping statistics --- 11 packets transmitted, 0 packets received, 100% packet loss |
我先试试,你的意思是我的网卡不见了?那我问你,每次我要烧录系统都需要去重新设置一遍吗? |
13828866810 发表于 2022-12-5 10:17 按照这个试试 eth0: error fetching interface information: Device not found - 宋子庆 - 博客园 (cnblogs.com) |
1.png (45 KB, 下载次数: 637)
[root@tarena:~]# ping 192.168.1.110 PING 192.168.1.110 (192.168.1.110): 56 data bytes ^C --- 192.168.1.110 ping statistics --- 75 packets transmitted, 0 packets received, 100% packet loss [root@tarena:~]# |
PING 自己都不通 LINUX系统下 |
login[150]: root login on 'console' [root@tarena:~]# ifconfig 192.168.1.110 ifconfig: 192.168.1.110: error fetching interface information: Device not found [root@tarena:~]# ifconfig eth0 192.168.1.110 [ 109.554000] eth0: device MAC address 22:71:66:b0:00:74 [ 109.555000] yt8511_config_init succeed. [ 109.571000] stmmac_open: failed PTP initialisation [root@tarena:~]# ifconfig eth0 Link encap:Ethernet HWaddr 22:71:66:B0:00:74 inet addr:192.168.1.110 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::2071:66ff:feb0:74/64 Scopeink UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:328 (328.0 B) Interrupt:80 [root@tarena:~]# ping 192.168.1.110 PING 192.168.1.110 (192.168.1.110): 56 data bytes |
13828866810 发表于 2022-12-5 10:02 你跑的是什么系统? |
ping 板子的ip |
主机可以ping通虚拟机,虚拟机也可以p ing通主机。就是板子ping谁都不通,就停在那里了 |
ifconfig有ip地址,板子pin g不了外网,我不联外网,就主机和板子之间通过网线连接,PiNg不通。板子怎么pin自己? |
ifconfig查看是否有IP,如果有IP的话,使用的是外网可以尝试ping www.baidu.com,如果使用的是局域网,试试ping自己看看能不能ping通 |
|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2 )
GMT+8, 2024-11-22 16:59 , Processed in 0.028597 second(s), 22 queries .
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.