Master_Yoda All American 3626 Posts user info edit post |
On internal routing on my desktop i had 2 gateways. Ive 2 nics with a diff subnet. After I did some changes to one, the other went away. I cant get it back to having 2 of them there.
Im afraid if the main connection dies, Ill have no traffic outbound for a bit cept for static routes and local traffic. Any ideas to fix this? 8/9/2009 1:47:46 PM |
ScHpEnXeL Suspended 32613 Posts user info edit post |
what OS?
and what do you mean by the other "went away"? the other what? subnet, gateway, network card? 8/9/2009 3:04:15 PM |
Master_Yoda All American 3626 Posts user info edit post |
Sorry
Vista
gateway/route 8/9/2009 10:40:39 PM |
Perlith All American 7620 Posts user info edit post |
route -p add 10.0.0.0 mask 255.0.0.0 gateway 10.0.0.1 metric 1 if 2
Or am I missing something? So long as you specify the interface, should (and I say should) not affect the other network card 8/10/2009 7:32:13 AM |
Stimwalt All American 15292 Posts user info edit post |
Did add route work? 8/10/2009 9:39:23 AM |
Master_Yoda All American 3626 Posts user info edit post |
perlith, apologies, default gateway so:
route add 0.0.0.0 mask 0.0.0.0 gateway x.y.z.q
I need 2 of those, with diff metrics, and it only lets me have one on at a time. itll let me do other routes fine, which i have done. static routs as well. now... i havnt tried, should i set both as static default gateways? i dont think i have done that, nor do i really want both static, i can do one, but i want that to be the back up anyway. primary needs to be dynamic 8/10/2009 10:50:12 PM |
ScHpEnXeL Suspended 32613 Posts user info edit post |
can you not just go under properties for the network adapter, tcp/ip, advanced settings and add gateways/metrics? still not really sure what you're trying to do, though. 8/11/2009 11:16:29 AM |
Master_Yoda All American 3626 Posts user info edit post |
fuck i forgot about that. not sure if itll work but ill play around with it. Im too used to messing wtih cisco stuff and not windows routing 8/11/2009 11:25:42 PM |
Perlith All American 7620 Posts user info edit post |
Quote : | "I need 2 of those, with diff metrics, and it only lets me have one on at a time. i" |
Conceptually, you have have a wired Ethernet network with a 0.0.0.0 metric 1 and a wireless 802.11x network with a 0.0.0.0 metric 10 simultaneously connected. OS should pick wired Ethernet to send traffic over (as lowest metric) and then fallback to wireless if Ethernet drops out (or most commonly, laptop gets undocked from docking station).
route -p add 0.0.0.0 mask 0.0.0.0 gateway x.y.z.q metric 1 if 1 route -p add 0.0.0.0 mask 0.0.0.0 gateway a.b.c.d metric 10 if 2
Should do the trick, again, making sure you specific the interface on the last part of that. Also, keep in mind the metrics for any static routes you add MUST be > default route on that second default gateway or the static route will override the default gateway.8/12/2009 9:51:57 PM |
Master_Yoda All American 3626 Posts user info edit post |
Got it done last night with a static and a temp. I may do like you say perlith and do 2 statics. The backup I know wont change, the primary i expect will. Didnt have to use the interface extras as it knows the gateways are on same subnet and so automatically adjusts for that.
This is actaully pretty complex as I needed certain traffic to always go to the secondary network (its an internal lan, mostly management traffic. Primary is direct to campus network. So right now theres a few more routes I put in but the default gateway stuff wasnt going how I wanted. Im too used to routing tables on cisco stuff.
Now to figure out why my management traffic is not getting passed across vlans and instead is going out the router to the world... Yay cisco routing. This should be an easy fix for me though. Thanks all! 8/13/2009 12:21:31 PM |