lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1%1995732688/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@myimx6ek140p:~# ping -I eth0 192.168.137.100
PING 192.168.137.100 (192.168.137.100): 56 data bytes
64 bytes from 192.168.137.100: seq=0 ttl=128 time=3.331 ms
64 bytes from 192.168.137.100: seq=1 ttl=128 time=0.874 ms
64 bytes from 192.168.137.100: seq=2 ttl=128 time=1.041 ms
64 bytes from 192.168.137.100: seq=3 ttl=128 time=0.702 ms
^C
--- 192.168.137.100 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.702/1.487/3.331 ms
root@myimx6ek140p:~#
root@myimx6ek140p:~#
网线插在eth1和电脑(电脑默认IP为192.168.137.100,eth0为192.168.137.91)
root@myimx6ek140p:~# ifconfig eth1 192.168.137.91
fec 20b4000.ethernet eth1: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=20b4000.ethernet:01, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
root@myimx6ek140p:~# fec 2188000.ethernet eth0: Link is Down
fec 20b4000.ethernet eth1: Link is Up - 100Mbps/Full - flow control off
IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready