There is no rule that says there cannot be more than one default - as is clear because it was possible to set up more than one default route to begine with! And the error message, "File exists," does not seem to be true at all, or pertinent. I was not asking to create a file, but a route. So I take it that the "ip" utility doesn't follow standard procedures and practices regarding syntax and error messages? Why has this been allowed in code that is integrated with the Linux kernel? Was Linus sleeping? Whit On Mon, Nov 26, 2001 at 07:49:50PM +0100, Wojtek Sobola wrote: > simple... default gateway can be only one :> > as the name says ;> > > ----- Original Message ----- > From: "Whit Blauvelt" <whit@xxxxxxxxxxxxx> > To: <LARTC@xxxxxxxxxxxxxxx> > Sent: Monday, November 26, 2001 7:22 PM > Subject: [LARTC] RTNETLINK answers: File exists > > > > Can someone tell me what concept I'm missing here. The setup is simple. I > > have two default routes after ifup operations. I use "ip route del" to > > remove one, but then decide to add it back. The attempt is refused. Why? > > > > # ip route ls > > 66.95.83.208/28 dev eth1 proto kernel scope link src 66.95.83.210 > > 65.84.205.96/27 dev eth2 proto kernel scope link src 65.84.205.104 > > 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.245 > > 66.0.0.0/8 dev eth1 proto kernel scope link src 66.95.83.210 > > default via 65.84.205.97 dev eth2 > > default via 66.95.83.209 dev eth1 > > > > # ip route del default via 65.84.205.97 dev eth2 > > > > # ip route ls > > 66.95.83.208/28 dev eth1 proto kernel scope link src 66.95.83.210 > > 65.84.205.96/27 dev eth2 proto kernel scope link src 65.84.205.104 > > 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.245 > > 66.0.0.0/8 dev eth1 proto kernel scope link src 66.95.83.210 > > default via 66.95.83.209 dev eth1 > > > > # ip route add default via 65.84.205.97 dev eth2 > > RTNETLINK answers: File exists > > > > Thanks, > > Whit > > > > _______________________________________________ > > LARTC mailing list / LARTC@xxxxxxxxxxxxxxx > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: > http://ds9a.nl/2.4Routing/ > >