From mboxrd@z Thu Jan 1 00:00:00 1970 From: Whit Blauvelt Date: Mon, 26 Nov 2001 18:22:08 +0000 Subject: [LARTC] RTNETLINK answers: File exists Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/