Você está na página 1de 5

route -p add 192.168.7.2 mask 255.255.255.0 10.30.0.

1 metric 3
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>add route
'add' is not recognized as an internal or external command,
operable program or batch file.

C:\WINDOWS\system32>addroute
'addroute' is not recognized as an internal or external command,
operable program or batch file.

C:\WINDOWS\system32>ping 192.168.7.2

Pinging 192.168.7.2 with 32 bytes of data:


Reply from 192.168.7.2: bytes=32 time<1ms TTL=128
Reply from 192.168.7.2: bytes=32 time<1ms TTL=128
Reply from 192.168.7.2: bytes=32 time<1ms TTL=128
Reply from 192.168.7.2: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.7.2:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\WINDOWS\system32>route -p add 192.168.7.2 mask 255.255.255.0 10.30.0.1 metric 3


OK!

C:\WINDOWS\system32>route print
===========================================================================
Interface List
14...14 ab c5 d1 c1 3a ......Intel(R) Dual Band Wireless-AC 8260
4...14 ab c5 d1 c1 3b ......Microsoft Wi-Fi Direct Virtual Adapter
9...d4 81 d7 de d4 e6 ......Intel(R) Ethernet Connection (2) I219-LM
15...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1
6...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8
5...14 ab c5 d1 c1 3e ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table


===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.30.0.1 10.30.0.10 291
10.30.0.0 255.255.255.0 On-link 10.30.0.10 291
10.30.0.10 255.255.255.255 On-link 10.30.0.10 291
10.30.0.255 255.255.255.255 On-link 10.30.0.10 291
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
192.168.147.0 255.255.255.0 On-link 192.168.147.1 291
192.168.147.1 255.255.255.255 On-link 192.168.147.1 291
192.168.147.255 255.255.255.255 On-link 192.168.147.1 291
192.168.217.0 255.255.255.0 On-link 192.168.217.1 291
192.168.217.1 255.255.255.255 On-link 192.168.217.1 291
192.168.217.255 255.255.255.255 On-link 192.168.217.1 291
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 10.30.0.10 291
224.0.0.0 240.0.0.0 On-link 192.168.217.1 291
224.0.0.0 240.0.0.0 On-link 192.168.147.1 291
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 10.30.0.10 291
255.255.255.255 255.255.255.255 On-link 192.168.217.1 291
255.255.255.255 255.255.255.255 On-link 192.168.147.1 291
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 10.30.0.1 Default
192.168.7.2 255.255.255.0 10.30.0.1 3
===========================================================================

IPv6 Route Table


===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 331 ::1/128 On-link
9 291 fe80::/64 On-link
15 291 fe80::/64 On-link
6 291 fe80::/64 On-link
9 291 fe80::48:77c2:805:c930/128
On-link
15 291 fe80::5df4:1db2:f56e:d963/128
On-link
6 291 fe80::d11f:6d53:f800:ac0f/128
On-link
1 331 ff00::/8 On-link
9 291 ff00::/8 On-link
15 291 ff00::/8 On-link
6 291 ff00::/8 On-link
===========================================================================
Persistent Routes:
None

C:\WINDOWS\system32>ping 10.30.0.1

Pinging 10.30.0.1 with 32 bytes of data:


Reply from 10.30.0.1: bytes=32 time<1ms TTL=255
Reply from 10.30.0.1: bytes=32 time<1ms TTL=255
Reply from 10.30.0.1: bytes=32 time<1ms TTL=255
Reply from 10.30.0.1: bytes=32 time<1ms TTL=255

Ping statistics for 10.30.0.1:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\WINDOWS\system32>delete route -p add 192.168.7.2 mask 255.255.255.0 10.30.0.1


metric 3
'delete' is not recognized as an internal or external command,
operable program or batch file.

C:\WINDOWS\system32>route delete -p add 192.168.7.2 mask 255.255.255.0 10.30.0.1


metric 3
route: bad argument 10.30.0.1

C:\WINDOWS\system32>route delete -p 192.168.7.2 mask 255.255.255.0 10.30.0.1 metric


3
OK!

C:\WINDOWS\system32>route print
===========================================================================
Interface List
14...14 ab c5 d1 c1 3a ......Intel(R) Dual Band Wireless-AC 8260
4...14 ab c5 d1 c1 3b ......Microsoft Wi-Fi Direct Virtual Adapter
9...d4 81 d7 de d4 e6 ......Intel(R) Ethernet Connection (2) I219-LM
15...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1
6...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8
5...14 ab c5 d1 c1 3e ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table


===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.30.0.1 10.30.0.10 291
10.30.0.0 255.255.255.0 On-link 10.30.0.10 291
10.30.0.10 255.255.255.255 On-link 10.30.0.10 291
10.30.0.255 255.255.255.255 On-link 10.30.0.10 291
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
192.168.147.0 255.255.255.0 On-link 192.168.147.1 291
192.168.147.1 255.255.255.255 On-link 192.168.147.1 291
192.168.147.255 255.255.255.255 On-link 192.168.147.1 291
192.168.217.0 255.255.255.0 On-link 192.168.217.1 291
192.168.217.1 255.255.255.255 On-link 192.168.217.1 291
192.168.217.255 255.255.255.255 On-link 192.168.217.1 291
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 10.30.0.10 291
224.0.0.0 240.0.0.0 On-link 192.168.217.1 291
224.0.0.0 240.0.0.0 On-link 192.168.147.1 291
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 10.30.0.10 291
255.255.255.255 255.255.255.255 On-link 192.168.217.1 291
255.255.255.255 255.255.255.255 On-link 192.168.147.1 291
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 10.30.0.1 Default
===========================================================================

IPv6 Route Table


===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 331 ::1/128 On-link
9 291 fe80::/64 On-link
15 291 fe80::/64 On-link
6 291 fe80::/64 On-link
9 291 fe80::48:77c2:805:c930/128
On-link
15 291 fe80::5df4:1db2:f56e:d963/128
On-link
6 291 fe80::d11f:6d53:f800:ac0f/128
On-link
1 331 ff00::/8 On-link
9 291 ff00::/8 On-link
15 291 ff00::/8 On-link
6 291 ff00::/8 On-link
===========================================================================
Persistent Routes:
None

C:\WINDOWS\system32>route -p add 192.168.7.0 mask 255.255.255.0 10.30.0.1 metric 3


OK!

C:\WINDOWS\system32>ping 192.168.7.1

Pinging 192.168.7.1 with 32 bytes of data:


Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.7.1:


Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\WINDOWS\system32>ping 192.168.7.2

Pinging 192.168.7.2 with 32 bytes of data:


Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.7.2:


Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\WINDOWS\system32>route delete -p 192.168.7.0 mask 255.255.255.0 10.30.0.1 metric


3
OK!

C:\WINDOWS\system32>route add -p 192.168.7.0 mask 255.255.255.0 192.168.22.1 metric


3
OK!

C:\WINDOWS\system32>ping 192.168.22.1

Pinging 192.168.22.1 with 32 bytes of data:


Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.22.1:


Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\WINDOWS\system32>ping 192.168.22.1

Pinging 192.168.22.1 with 32 bytes of data:


Reply from 192.168.22.10: Destination host unreachable.
Reply from 192.168.22.10: Destination host unreachable.
Reply from 192.168.22.10: Destination host unreachable.
Reply from 192.168.22.10: Destination host unreachable.
Ping statistics for 192.168.22.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

C:\WINDOWS\system32>ping 192.168.22.91

Pinging 192.168.22.91 with 32 bytes of data:


Reply from 192.168.22.91: bytes=32 time<1ms TTL=255
Reply from 192.168.22.91: bytes=32 time<1ms TTL=255
Reply from 192.168.22.91: bytes=32 time<1ms TTL=255
Reply from 192.168.22.91: bytes=32 time<1ms TTL=255

Ping statistics for 192.168.22.91:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\WINDOWS\system32>

///////////////////////////////////////////////////////////////////////////////////
///

Você também pode gostar