Michael Robinson wrote: > #!/bin/bash > # > PATH=/sbin > > ip route del 192.168.1.0/24 > > route add -net 192.168.1.0/24 dev eth0 gw 192.168.3.18 metric 1 > > The above is a script that I use to switch the default gw on > a backside router Dodo. > > D ---- W > | | > | | > | | > | | > X------G----LAN > > I have Dodo, D, connected to Web, W, and Xerxes, X. > > G, goose, is connected to Dodo via 192.168.4.0/28 network. (not shown) > > Web is in the 192.168.3.16/28 network. > > Xerxes is in the 192.168.3.0/24 network. > > Web, Goose, and Xerxes are also in the 192.168.1.0/24 network. > > Wow, I've been a Network Engineer for many years and that's some kind of routing monkey knot you have there.
>> "I literally need to change the route to get to the 192.168.1.0/24 network from dodo on the fly" The only time a route should change on the fly is if you're running a dynamic routing protocol such as RIP, OSPF and there's a failure or other mechanism such as bandwith or delay that triggers a routing topology change. I can't be of much assistance with the info you've provided. Can you provide a complete network topology? Show how each network is connected, which hosts are in which networks. and which interfaces on the hosts has a leg into which network? _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
