On Tuesday 05 May 2009 20.23.06 Claudio Jeker wrote: > On Tue, May 05, 2009 at 01:27:21PM +0200, LEVAI Daniel wrote: > > Hi! > > > > I have this in my route table: > > 10/8 link#1 UC 5 0 - 4 > > em0 10/8 <gw_ip> UGS 0 1072 - 8 > > tun1 > > > > How can I delete only the first line, the route with the em0 device? > > So far I can only execute this: > > # route delete 10/8 > > > > But this is too ambigious. > > > > I thought of something like this: > > # route delete 10/8 -dev em0 > > but of course this will not gonna happen. > You've assigned an address on 10/8 to em0. Delete that address from > the interface if you don't want to have that route. (If you're trying > to have 10/8 on both ends of a tunnel then you need to back up and > rethink what you're trying to do.) > [...] > > ifconfig em0 delete > > because this is a interface route and not deletable by route(8) > unless you know the magic and the consequences.
Thanks Claudio and Philip. Now I see. Daniel -- LIVAI Daniel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1