How do I find out the current metrics value when "automatic metrics" is enabled ? "Route print" inte


K

Ken Philips

In my notebook I have two possible internet connections: Wired LAN and Wireless LAN.

The metrics for both connections are specified "automatic".

How do I find out now the real (internally assigned) metrics value ?

From what I have heard the "route print" command shows this.
Ok, here is my "route print" output. Wired LAN is 192.168.0.20
and Wireless LAN is 192.168.0.21.

SO if I look in the first two lines of the route table both metrics are 1.

Which lines are relevant? I can guess that LAN is 20 and WLAN 25 but this
is just a guess not a real basic knowledge.

How do I find out (e.g. on other computer) which
of the multiple lines below I should take for comparing the matrics value ?


D:\test>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter for VMnet8
0x3 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1
0x4 ...00 13 77 03 df 99 ...... Broadcom 440x 10/100 Integrated Controller - Packet Scheduler Miniport
0x5 ...00 13 ce d3 f3 ab ...... Intel(R) PRO/Wireless 2200BG Network Connection - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.20 1
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.21 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.20 192.168.0.20 20
192.168.0.0 255.255.255.0 192.168.0.21 192.168.0.21 25
192.168.0.20 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.0.21 255.255.255.255 127.0.0.1 127.0.0.1 25
192.168.0.255 255.255.255.255 192.168.0.20 192.168.0.20 20
192.168.0.255 255.255.255.255 192.168.0.21 192.168.0.21 25
192.168.11.0 255.255.255.0 192.168.11.1 192.168.11.1 20
192.168.11.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.11.255 255.255.255.255 192.168.11.1 192.168.11.1 20
192.168.72.0 255.255.255.0 192.168.72.1 192.168.72.1 20
192.168.72.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.72.255 255.255.255.255 192.168.72.1 192.168.72.1 20
224.0.0.0 240.0.0.0 192.168.0.20 192.168.0.20 20
224.0.0.0 240.0.0.0 192.168.0.21 192.168.0.21 25
224.0.0.0 240.0.0.0 192.168.11.1 192.168.11.1 20
224.0.0.0 240.0.0.0 192.168.72.1 192.168.72.1 20
255.255.255.255 255.255.255.255 192.168.0.20 192.168.0.20 1
255.255.255.255 255.255.255.255 192.168.0.21 192.168.0.21 1
255.255.255.255 255.255.255.255 192.168.11.1 192.168.11.1 1
255.255.255.255 255.255.255.255 192.168.72.1 192.168.72.1 1
Default Gateway: 192.168.0.1
===========================================================================
Persistent Routes:
None

Ken
 
Ad

Advertisements

S

Steve Winograd

In my notebook I have two possible internet connections: Wired LAN and Wireless LAN.

The metrics for both connections are specified "automatic".

How do I find out now the real (internally assigned) metrics value ?

From what I have heard the "route print" command shows this.
Ok, here is my "route print" output. Wired LAN is 192.168.0.20
and Wireless LAN is 192.168.0.21.

SO if I look in the first two lines of the route table both metrics are 1.

Which lines are relevant? I can guess that LAN is 20 and WLAN 25 but this
is just a guess not a real basic knowledge.

How do I find out (e.g. on other computer) which
of the multiple lines below I should take for comparing the matrics value ?


D:\test>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter for VMnet8
0x3 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1
0x4 ...00 13 77 03 df 99 ...... Broadcom 440x 10/100 Integrated Controller - Packet Scheduler Miniport
0x5 ...00 13 ce d3 f3 ab ...... Intel(R) PRO/Wireless 2200BG Network Connection - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.20 1
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.21 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.20 192.168.0.20 20
192.168.0.0 255.255.255.0 192.168.0.21 192.168.0.21 25
192.168.0.20 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.0.21 255.255.255.255 127.0.0.1 127.0.0.1 25
192.168.0.255 255.255.255.255 192.168.0.20 192.168.0.20 20
192.168.0.255 255.255.255.255 192.168.0.21 192.168.0.21 25
192.168.11.0 255.255.255.0 192.168.11.1 192.168.11.1 20
192.168.11.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.11.255 255.255.255.255 192.168.11.1 192.168.11.1 20
192.168.72.0 255.255.255.0 192.168.72.1 192.168.72.1 20
192.168.72.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.72.255 255.255.255.255 192.168.72.1 192.168.72.1 20
224.0.0.0 240.0.0.0 192.168.0.20 192.168.0.20 20
224.0.0.0 240.0.0.0 192.168.0.21 192.168.0.21 25
224.0.0.0 240.0.0.0 192.168.11.1 192.168.11.1 20
224.0.0.0 240.0.0.0 192.168.72.1 192.168.72.1 20
255.255.255.255 255.255.255.255 192.168.0.20 192.168.0.20 1
255.255.255.255 255.255.255.255 192.168.0.21 192.168.0.21 1
255.255.255.255 255.255.255.255 192.168.11.1 192.168.11.1 1
255.255.255.255 255.255.255.255 192.168.72.1 192.168.72.1 1
Default Gateway: 192.168.0.1
===========================================================================
Persistent Routes:
None

Ken

Each network adapter has multiple routes for different destination
addresses. Each route has its own metric value, which is the last
number shown.

Your wired adapter has these routes:

0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.20 1
192.168.0.0 255.255.255.0 192.168.0.20 192.168.0.20 20
192.168.0.20 255.255.255.255 127.0.0.1 127.0.0.1 20

Your wireless adapter has these routes:

0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.21 1
192.168.0.0 255.255.255.0 192.168.0.21 192.168.0.21 25
192.168.0.21 255.255.255.255 127.0.0.1 127.0.0.1 25

For each adapter, those routes are:

0.0.0.0 0.0.0.0 = default route, used to reach addresses not on the
LAN, such as Internet sites

192.168.0.0 255.255.255.0 = subnet route, used to reach addresses on
the LAN

192.168.0.x 255.255.255.255 = host route, indicating that the IP
address is local to this computer, as shown by a gateway address of
127.0.0.1

All of an adapter's routes usually have the same metric, but your
adapters have a different metric for the default route than for the
subnet and host routes. That could be because a default gateway and
metric have been manually entered in the corresponding network
connection's Properties > Internet Protocol (TCP/IP) > Properties >
Advanced > Default Gateways.

Since both adapters have the same metric for the default route, it's
not possible to predict which adapter will be used for Internet
access.

Subnet access will use the wired connection, since its subnet route
has a lower metric.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top