Re: Specify Which NIC to Use

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Mar 28, 9:33 am, "Phillip Windell" <philwind...@xxxxxxxxxxx> wrote:
"O.B." <funkj...@xxxxxxxxxxxxx> wrote in message

news:33c8c7eb-da5c-42cc-af90-a44815eb81c3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I have two NIC's. One at 10.1.16.24 and one at 192.168.1.101. I'd
like to specify which NIC to use for sending data to 206.251.75.140.
Is that possible with the route command? If so, what is the syntax.
When I use the following, pings no longer work.

route add 206.251.75.140 mask 255.255.255.255 10.1.16.24

What router is used to reach 206.251.75.140??? You can't build a route
without the router. Note, the IP# of the Router has to be the same subnet
as the Nic that uses it.

So:
route add -p 206.251.75.140 mask 255.255.255.255 10.1.16.???

You don't tell it the nic. It will already figure that out by the Router
IP# because the Nic must be in the same subnet that the Router is.

That works! Thank you.
.



Relevant Pages

  • Re: [SLE] Routing question
    ... > Suppose I have two LANs, one with fixed IP addresses in the 10.0.0.x range and ... I assume there's a single call on the route command from ... default router, configured with an alias address, any calls to the other ... address range by one of the hosts will attempt to connect via the ...
    (SuSE)
  • Re: ARP clinet look program
    ... now i need help to write program for simple route command ... address of machines connected to my router. ... parse commandline to retrieve hostname ... Note that you cannot obtain the MAC address for IP addresses outside of your ...
    (comp.unix.programmer)
  • Re: Second ethernet without router?
    ... It sounds like this is what you did...look at output of the route command to see what the default route is. ... You don't need a router to connect together the second interfaces as long as they are all on the same subnet. ... They of course have a router -> switch -> servers. ...
    (RedHat)
  • Re: Specify Which NIC to Use
    ... Is that possible with the route command? ... If so, what is the syntax. ... What router is used to reach 206.251.75.140??? ... IP# because the Nic must be in the same subnet that the Router is. ...
    (microsoft.public.windows.server.networking)
  • Re: Coexistence and routing of two internet feeds
    ... The route command should have the IP subnet which needs to go to the ... alternate router for delivery by VPN.. ... but the VPN traffic is redirected to the VPN router. ...
    (microsoft.public.win2000.ras_routing)