我们这边在调试am3352的网卡时候(phy采用的dp83848c rmii接口)通过调试在uboot下网口是可用的,但是转到内核下却无法ping通
uboot的配置如下
static struct cpsw_slave_data cpsw_slave = {
.slave_reg_ofs = 0x208,
.sliver_reg_ofs = 0xd80,
.phy_addr = 1,
.phy_if = PHY_INTERFACE_MODE_RMII,
};
static struct cpsw_platform_data cpsw_data = {
.mdio_base = CPSW_MDIO_BASE,
.cpsw_base = CPSW_BASE,
.mdio_div = 0xff,
.channels = 8,
.cpdma_reg_ofs = 0x800,
.slaves = 1,
.slave_data = &cpsw_slave,
.ale_reg_ofs = 0xd00,
.ale_entries = 1024,
.host_port_reg_ofs = 0x108,
.hw_stats_reg_ofs = 0x900,
.bd_ram_ofs = 0x2000,
.mac_control = (1 << 5),
.control = cpsw_control,
.host_port_num = 0,
.version = CPSW_CTRL_VERSION_2,
};
设备树配置如下
cpsw_default: cpsw_default {
pinctrl-single,pins = <
/* Slave 1 */
0x10c (MUX_MODE1 | PIN_OUTPUT_PULLDOWN) /* mii1_crs */
0x110 (MUX_MODE1 | PIN_INPUT_PULLDOWN) /* mii1_rxerr. */
0x114 (MUX_MODE1 | PIN_OUTPUT_PULLDOWN) /* mii1_txen. */
0x124 (MUX_MODE1 | PIN_OUTPUT_PULLDOWN) /* mii1_txd1. */
0x128 (MUX_MODE1 | PIN_OUTPUT_PULLDOWN) /* mii1_txd0. */
0x13c (MUX_MODE1 | PIN_OUTPUT_PULLDOWN) /* mii1_rxd1. */
0x140 (MUX_MODE1 | PIN_OUTPUT_PULLDOWN) /* mii1_rxd0. */
//0x148 (MUX_MODE0 | PIN_INPUT_PULLDOWN) /* mdio_data. */
//0x14c (MUX_MODE0 | PIN_INPUT_PULLDOWN) /* mdio_clk. */
0x144 (MUX_MODE0 | PIN_INPUT_PULLDOWN) /* rmii1_refclk. */
>;
};
davinci_mdio_default: davinci_mdio_default {
pinctrl-single,pins = <
/* MDIO */
#if 0
0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
#endif
0x148 (MUX_MODE0 | PIN_INPUT_PULLDOWN) /* mdio_data. */
0x14c (MUX_MODE0 | PIN_INPUT_PULLDOWN) /* mdio_clk. */
>;
};
&davinci_mdio {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&davinci_mdio_default>;
pinctrl-1 = <&davinci_mdio_sleep>;
status = "okay";
};
&cpsw_emac0 {
phy_id = <&davinci_mdio>, <1>;
phy-mode = "rmii";
// dual_emac_res_vlan=<0>;
};
&cpsw_emac1 {
phy_id = <&davinci_mdio>, <6>;
phy-mode = "rgmii-txid";
// dual_emac_res_vlan=<1>;
};
内核启动日志如下
# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.18 (root@zw-pc) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #2 PREEMPT Mon Dec 24 13:48:44 CST 2018
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: ZLITS AM335x
[ 0.000000] cma: Reserved 24 MiB at 0x9e800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c0962034, node_mem_map de36d000
[ 0.000000] Normal zone: 1152 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (neon )
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.rootfs,2048 rootfstype=ubifs rootwait=1
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 484584K/524288K available (6807K kernel code, 256K rwdata, 2244K rodata, 272K init, 236K bss, 15128K reserved, 24576K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08df05c (9053 kB)
[ 0.000000] .init : 0xc08e0000 - 0xc0924000 ( 272 kB)
[ 0.000000] .data : 0xc0924000 - 0xc0964160 ( 257 kB)
[ 0.000000] .bss : 0xc0967000 - 0xc09a2320 ( 237 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000023] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000051] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000067] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000320] Console: colour dummy device 80x30
[ 0.000363] Calibrating delay loop... 548.86 BogoMIPS (lpj=2744320)
[ 0.048763] pid_max: default: 32768 minimum: 301
[ 0.048914] Security Framework initialized
[ 0.048984] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.049001] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.049953] Initializing cgroup subsys blkio
[ 0.049990] Initializing cgroup subsys memory
[ 0.050048] Initializing cgroup subsys devices
[ 0.050072] Initializing cgroup subsys freezer
[ 0.050093] Initializing cgroup subsys perf_event
[ 0.050133] CPU: Testing write buffer coherency: ok
[ 0.050654] Setting up static identity map for 0x800082c0 - 0x80008330
[ 0.052841] devtmpfs: initialized
[ 0.069662] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.090216] omap_hwmod: debugss: _wait_target_disable failed
[ 0.147868] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.151073] pinctrl core: initialized pinctrl subsystem
[ 0.152921] NET: Registered protocol family 16
[ 0.156140] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.178745] cpuidle: using governor ladder
[ 0.208729] cpuidle: using governor menu
[ 0.214709] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
[ 0.215153] OMAP GPIO hardware version 0.1
[ 0.216202] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
[ 0.217293] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
[ 0.218344] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
[ 0.227770] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_nandflash_pins_default, deferring probe
[ 0.231555] No ATAGs?
[ 0.231599] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.283219] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.284079] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@0[0]'
[ 0.284550] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@1[0]'
[ 0.284917] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@2[0]'
[ 0.289116] vgaarb: loaded
[ 0.289837] SCSI subsystem initialized
[ 0.290598] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
[ 0.290673] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[ 0.290854] media: Linux media interface: v0.10
[ 0.290947] Linux video capture interface: v2.00
[ 0.291031] pps_core: LinuxPPS API ver. 1 registered
[ 0.291043] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.291087] PTP clock support registered
[ 0.292315] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.292640] Advanced Linux Sound Architecture Driver Initialized.
[ 0.294177] cfg80211: Calling CRDA to update world regulatory domain
[ 0.295127] Switched to clocksource timer1
[ 0.310921] NET: Registered protocol family 2
[ 0.312112] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.312192] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.312260] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.312371] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.312401] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.312622] NET: Registered protocol family 1
[ 0.313147] RPC: Registered named UNIX socket transport module.
[ 0.313166] RPC: Registered udp transport module.
[ 0.313175] RPC: Registered tcp transport module.
[ 0.313186] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.313224] PCI: CLS 0 bytes, default 64
[ 0.314438] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
[ 0.314503] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.317622] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.317744] audit: initializing netlink subsys (disabled)
[ 0.317848] audit: type=2000 audit(0.310:1): initialized
[ 0.329081] VFS: Disk quotas dquot_6.6.0
[ 0.329400] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.332654] NFS: Registering the id_resolver key type
[ 0.332770] Key type id_resolver registered
[ 0.332783] Key type id_legacy registered
[ 0.332898] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.336590] NET: Registered protocol family 38
[ 0.336684] io scheduler noop registered
[ 0.336704] io scheduler deadline registered
[ 0.336786] io scheduler cfq registered (default)
[ 0.338222] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.342962] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 0.344616] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.350057] omap_uart 44e09000.serial: no wakeirq for uart0
[ 0.350097] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@44e09000[0]'
[ 0.350250] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a OMAP UART0
[ 1.020775] console [ttyO0] enabled
[ 1.025305] omap_uart 48022000.serial: no wakeirq for uart1
[ 1.031166] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@48022000[0]'
[ 1.031403] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a OMAP UART1
[ 1.041876] omap_uart 48024000.serial: no wakeirq for uart2
[ 1.047782] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@48024000[0]'
[ 1.047966] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 160, base_baud = 3000000) is a OMAP UART2
[ 1.058425] omap_uart 481aa000.serial: no wakeirq for uart5
[ 1.064275] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@481aa000[0]'
[ 1.064456] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 161, base_baud = 3000000) is a OMAP UART5
[ 1.075025] [drm] Initialized drm 1.1.0 20060810
[ 1.095753] brd: module loaded
[ 1.106318] loop: module loaded
[ 1.110960] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.120140] omap2_mcspi 48030000.spi: cs2 >= max 2
[ 1.125327] spi_master spi1: spi_device register error /ocp/spi@48030000/secmode
[ 1.133093] spi_master spi1: Failed to create SPI device for /ocp/spi@48030000/secmode
[ 1.205219] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.211629] davinci_mdio 4a101000.mdio: detected phy mask fffffffd
[ 1.219373] libphy: 4a101000.mdio: probed
[ 1.223602] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver TI DP83848C 10/100 Mbps PHY
[ 1.234869] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT.
[ 1.241770] cpsw 4a100000.ethernet: Using 1 as Reserved VLAN for 0 slave
[ 1.248978] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT.
[ 1.255796] cpsw 4a100000.ethernet: Using 2 as Reserved VLAN for 1 slave
[ 1.262825] cpsw 4a100000.ethernet: Detected MACID = 0c:b2:b7:b6:e7:bd
[ 1.271053] cpsw 4a100000.ethernet: cpsw: Detected MACID = 0c:b2:b7:b6:e7:bf
[ 1.280611] mousedev: PS/2 mouse device common for all mice
[ 1.286608] i2c /dev entries driver
[ 1.291338] of_get_named_gpiod_flags: parsed 'gpios' property of node '/watchdog[0]' - status (0)
[ 1.293053] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.300264] remoteproc0: wkup_m3 is available
[ 1.304934] remoteproc0: Note: remoteproc is still under development and considered experimental.
[ 1.314428] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 1.325511] remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
[ 1.334538] remoteproc0: Falling back to user helper
[ 1.342172] pinctrl-single 44e10800.pinmux: pin 44e10990.0 already requested by 48030000.spi; cannot claim for 48038000.mcasp
[ 1.354437] pinctrl-single 44e10800.pinmux: pin-100 (48038000.mcasp) status -22
[ 1.362196] pinctrl-single 44e10800.pinmux: could not request pin 100 (44e10990.0) from group am335x_evm_audio_pins on device pinctrl-single
[ 1.375555] davinci-mcasp 48038000.mcasp: Error applying setting, reverse things back
[ 1.385561] oprofile: using arm/armv7
[ 1.389887] Initializing XFRM netlink socket
[ 1.394416] NET: Registered protocol family 17
[ 1.399199] NET: Registered protocol family 15
[ 1.404210] Key type dns_resolver registered
[ 1.409271] omap_voltage_late_init: Voltage driver support not added
[ 1.416666] cpufreq: __cpufreq_add_dev: CPU0: Running at unlisted freq: 550000 KHz
[ 1.424749] cpufreq: __cpufreq_add_dev: CPU0: Unlisted initial frequency changed to: 600000 KHz
[ 1.434099] cpufreq: ondemand governor failed, too long transition latency of HW, fallback to performance governor
[ 1.445530] ThumbEE CPU extension supported.
[ 1.450033] Registering SWP/SWPB emulation handler
[ 1.457884] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.463291] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.469854] gpiochip_find_base: found new base at 510
[ 1.470059] gpiochip_add: registered GPIOs 510 to 511 on device: omap-gpmc
[ 1.471096] omap2-nand 8000000.nand: GPIO lookup for consumer ready
[ 1.471122] omap2-nand 8000000.nand: using device tree for GPIO lookup
[ 1.471138] of_get_named_gpiod_flags: can't parse 'ready-gpios' property of node '/ocp/gpmc@50000000/nand@0,0[0]'
[ 1.471175] of_get_named_gpiod_flags: parsed 'ready-gpio' property of node '/ocp/gpmc@50000000/nand@0,0[0]' - status (0)
[ 1.471383] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 1.478180] nand: Micron MT29F4G08ABADAWP
[ 1.482387] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.490386] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[ 1.496082] 11 ofpart partitions found on MTD device 8000000.nand
[ 1.502462] Creating 11 MTD partitions on "8000000.nand":
[ 1.508146] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.514837] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.522063] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.529236] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.536430] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 1.543794] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 1.550767] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 1.557787] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 1.565568] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 1.574966] 0x000000a00000-0x000008000000 : "NAND.rootfs"
[ 1.622888] 0x000008000000-0x000010000000 : "NAND.userdata"
[ 1.675879] of-flash 2000000.fpga: do_map_probe() failed for type cfi_probe
[ 1.683823] of-flash 2000000.fpga: do_map_probe() failed
[ 1.690963] i2c i2c-1: of_i2c: modalias failure on /ocp/i2c@4802a000/tps@2d
[ 1.698739] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[ 1.705906] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
[ 1.712869] ubi0: attaching mtd9
[ 2.180577] ubi0: scanning is finished
[ 2.192275] ubi0: attached mtd9 (name "NAND.rootfs", size 118 MiB)
[ 2.198856] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.206074] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 2.213090] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.220393] ubi0: good PEBs: 943, bad PEBs: 1, corrupted PEBs: 0
[ 2.226693] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 2.234256] ubi0: max/mean erase counter: 5/0, WL threshold: 4096, image sequence number: 828861474
[ 2.243743] ubi0: available PEBs: 0, total reserved PEBs: 943, PEBs reserved for bad PEB handling: 79
[ 2.253421] ubi0: background thread "ubi_bgt0d" started, PID 52
[ 2.259680] hctosys: unable to open rtc device (rtc0)
[ 2.269064] ALSA device list:
[ 2.272198] No soundcards found.
[ 2.285275] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 53
[ 2.314436] UBIFS (ubi0:0): recovery needed
[ 2.384972] UBIFS (ubi0:0): recovery completed
[ 2.389837] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.397611] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 2.408016] UBIFS (ubi0:0): FS size: 107802624 bytes (102 MiB, 849 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 2.419139] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 2.425266] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 2609BBF5-453A-44A1-B66F-2DB9628364BD, small LPT model
[ 2.437748] VFS: Mounted root (ubifs filesystem) on device 0:14.
[ 2.444856] devtmpfs: mounted
[ 2.448384] Freeing unused kernel memory: 272K (c08e0000 - c0924000)
[ 2.643399] devpts: called with bogus options
[ 3.445374] cfg80211: Calling CRDA to update world regulatory domain
[ 3.578705] random: dd urandom read with 5 bits of entropy available
[ 3.892659] net eth0: initializing cpsw version 1.12 (0)
[ 3.986553] net eth0: phy found : id is : 0x20005c90
[ 3.991860] cpsw_gmii_sel_am3352 phy mode is 6
[ 4.025951] net eth1: initializing cpsw version 1.12 (0)
[ 4.034060] libphy: PHY 4a101000.mdio:06 not found
[ 4.056745] net eth1: phy 4a101000.mdio:06 not found on slave 1
[ 5.985848] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
# ifconfig
eth0 Link encap:Ethernet HWaddr 0C:B2:B7:B6:E7:BD
inet addr:172.18.180.50 Bcast:172.18.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:7672 (7.4 KiB)
Interrupt:175
但却无法ping通