- 论坛徽章:
- 9
|
本帖最后由 mordorwww 于 2016-08-22 17:41 编辑
删都删不掉,没法通信
root@imx6solosabresd:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 data
0.0.0.0 1.1.1.50 0.0.0.0 UG 0 0 0 data
1.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 data
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 data
root@imx6solosabresd:~#
root@imx6solosabresd:~#
root@imx6solosabresd:~# root@imx6solosabresd:~# ifconfig
data Link encap:Ethernet HWaddr 3A:F7:79:3A:05:3A
inet6 addr: fe80::38f7:79ff:fe3a:53a/64 Scope:Link
UP BROADCAST RUNNING 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 7A:23:29:F8:7A:FE
UP 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)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:700 (700.0 B) TX bytes:700 (700.0 B)
root@imx6solosabresd:~# ifconfig data 1.1.1.3
root@imx6solosabresd:~# ping 1.1.1.5^C
root@imx6solosabresd:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
1.0.0.0 * 255.0.0.0 U 0 0 0 data
root@imx6solosabresd:~# ping 1.1.1.50
PING 1.1.1.50 (1.1.1.50): 56 data bytes
64 bytes from 1.1.1.50: seq=0 ttl=64 time=3.502 ms
^C
--- 1.1.1.50 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 3.502/3.502/3.502 ms
root@imx6solosabresd:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
1.0.0.0 * 255.0.0.0 U 0 0 0 data
root@imx6solosabresd:~#
root@imx6solosabresd:~#
root@imx6solosabresd:~# route add -net 0.0.0.0 netmask 0.0.0.0 gw 1.1.1.5
root@imx6solosabresd:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 1.1.1.5 0.0.0.0 UG 0 0 0 data
default * 0.0.0.0 U 0 0 0 data
1.0.0.0 * 255.0.0.0 U 0 0 0 data
169.254.0.0 * 255.255.0.0 U 0 0 0 data
root@imx6solosabresd:~#
root@imx6solosabresd:~# ping 172.16.20.207
PING 172.16.20.207 (172.16.20.207): 56 data bytes
^C
--- 172.16.20.207 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
root@imx6solosabresd:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 1.1.1.5 0.0.0.0 UG 0 0 0 data
default * 0.0.0.0 U 0 0 0 data
1.0.0.0 * 255.0.0.0 U 0 0 0 data
169.254.0.0 * 255.255.0.0 U 0 0 0 data
root@imx6solosabresd:~#
root@imx6solosabresd:~# ifconfig
data Link encap:Ethernet HWaddr 3A:F7:79:3A:05:3A
inet addr:1.1.1.3 Bcast:1.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::38f7:79ff:fe3a:53a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25 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)
eth0 Link encap:Ethernet HWaddr 7A:23:29:F8:7A:FE
UP 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)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1644 (1.6 KiB) TX bytes:1644 (1.6 KiB)
root@imx6solosabresd:~#
root@imx6solosabresd:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 data
0.0.0.0 1.1.1.50 0.0.0.0 UG 0 0 0 data
1.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 data
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 data
root@imx6solosabresd:~#
root@imx6solosabresd:~# ifconfig
data Link encap:Ethernet HWaddr 62:92:A6:FF:35 4
inet addr:1.1.1.3 Bcast:1.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::6092:a6ff:feff:35d4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:224 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)
eth0 Link encap:Ethernet HWaddr 3A:AA:00:99:4F:18
UP 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)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:75 errors:0 dropped:0 overruns:0 frame:0
TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6160 (6.0 KiB) TX bytes:6160 (6.0 KiB)
|
|