レス
元トピ次レス
タイトル
Re: 問題ID: 29006
フォーラム
最強WEB問題集LinuC/LPIC Lv2 201
投稿ユーザ(投稿日)
(2019/12/20)
本文

-----引用(始)-----

addr、route、neighの削除オプションは
「delete」ではなく「del」ではないでしょうか?

-----引用(終)-----

ですよねぇ、でもmanやコマンドヘルプでもはっきりしてないみたいです。

コマンドラインヘルプ
[code]
# ip address help
Usage: ip address {add|change|replace} IFADDR dev IFNAME [ LIFETIME ]
[ CONFFLAG-LIST ]
ip address del IFADDR dev IFNAME [mngtmpaddr] ←ここ
[/code]
manでみると
[code]
# man ip-address
IP-ADDRESS(8) Linux IP-ADDRESS(8)

NAME
ip-address - protocol address management

SYNOPSIS
ip [ OPTIONS ] address { COMMAND | help }

ip address { add | change | replace } IFADDR dev IFNAME [ LIFETIME ] [ CONFFLAG-LIST ]

ip address del IFADDR dev IFNAME [ mngtmpaddr ] ←delか?
(略)
ip address delete - delete protocol address ←ここでは「delete」
Arguments: coincide with the arguments of ip addr add. The device name is a required argument. The
rest are optional. If no arguments are given, the first address is deleted.
(略)
EXAMPLES
(略)
ip address delete 2001:0db8:85a3::0370:7334/64 dev eth1 ←実行例でもdelete!
Delete the IPv6 address added above.
[/code]
統一してくれよ… orz

レス一覧

元トピ次レス


Ping-tモバイルTOP

Copyright (c) 2010
Ping-t All rights reserved.