There is WMI [1], which can often present challenges of it's own due to the huge number of providers and quirky object model. I'd recommend taking a look at Scriptomatic [2] for help from a code generator.
[1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/ ip_route_provider.asp [2] http://www.microsoft.com/downloads/details.aspx?FamilyID=09dfc342-648b-4119- b7eb-783b0f7d1178&DisplayLang=en -- Scott http://www.OdeToCode.com/blogs/scott/ -----Original Message----- From: Bill Kearney [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005 11:34 AM To: [email protected] Cc: Gary Pupurs Subject: Re: [AspNetMetroArea] IP routng control in .net? From: "Gary Pupurs" <[EMAIL PROTECTED]> > If I had to guess, something in the IP*Works toolkit might do the trick. > http://www.nsoftware.com/portal/dotnet/ It does't "appear" to have routing components. It has a GREAT many other things but not that. > Of course, you could also call the DOS route.exe command directly using > Process.Start(). Here's the first example I found of calling external > processes with .NET: > http://www.codebetter.com/blogs/brendan.tompkins/archive/2004/05/13/13484.as px Yeah, I could do this. But then I'm descending into text processing hell trying to extract the existing data. If there's an API for it'd the process would be a lot smoother. Part of the reason for this is some traffic is "better off" going through a VPN route while others are not. Being able to discover what routes are present and what metrics are being used is important for discovering what routes should or shouldn't be used. As in, don't connect over the locally available WiFi link because it's unencryped and thus not secure; use the encrypted VPN tunnel instead. For example, don't connect to my POP3 mailbox that uses plain text authentication from the starbucks; dial the VPN first and use that instead. But allow any other insecure traffic to use the faster local route. Granted, this sort of application layer routing isn't something most existing tools have the ability to do out of the box. But a local proxy might... -Bill Kearney Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Has someone you know been affected by illness or disease? Network for Good is THE place to support health awareness efforts! http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/X1EolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetMetroArea/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
