2016/02/23 EdgeMAX シリーズのファームウェア v1.8.0 がリリースされました。
詳細はこちら をご覧下さい。

「コマンド > clear (operational)」の版間の差分

提供:EdgeOS 日本語Wiki [非公式]
ナビゲーションに移動 検索に移動
編集の要約なし
編集の要約なし
 
(同じ利用者による、間の2版が非表示)
3行目: 3行目:


== clear コマンドの使い方 ==
== clear コマンドの使い方 ==
=== index ===
* '''clear'''
* '''clear'''
*: Clear system information
*: Clear system information
** clear '''arp'''
** [[#clear_arp|clear '''arp''']]
**: Clear Address Resolution Protocol (ARP) cache
**: Clear Address Resolution Protocol (ARP) cache
*** clear arp '''address [[パラメーター > IPv4 アドレス|{x.x.x.x}]]''' <ENTER>
** [[#clear_connection-tracking|clear '''connection-tracking''']]
***: Clear ARP cache for an IPv4 address
*** clear arp '''interface [[パラメーター > interface|{interface}]]''' <ENTER>
***: Clear ARP cache for interface
** clear '''connection-tracking''' <ENTER>
**: Clear all currently tracked connections
**: Clear all currently tracked connections
** clear '''console''' <ENTER>
** [[#clear_console|clear '''console''']]
**: Clear screen
**: Clear screen
** clear '''dhcp'''
** [[#clear_dhcp|clear '''dhcp''']]
**: Clear Dynamic Host Configuration Protocol (DHCP) leases
**: Clear Dynamic Host Configuration Protocol (DHCP) leases
*** clear dhcp '''lease ip  [[パラメーター > IPv4 アドレス|{x.x.x.x}]]''' <ENTER>
** [[#clear_dns|clear '''dns''']]
***: Clear the DHCP lease for a specific IP address
**: Clear Domain Name Server (DNS) variables
*** clear dhcp '''leases''' <ENTER>
** [[#clear_firewall|clear '''firewall''']]
***: Clear all DHCP leases
** clear '''dns'''
<!-- **: Clear Domain Name Server (DNS) variables -->
*** clear dns '''forwarding'''
<!-- ***: Clear DNS forwarding variables -->
**** clear dns forwarding '''all''' <ENTER>
****: Clear DNS forwarding cache and counters
**** clear dns forwarding '''cache''' <ENTER>
****: Clear DNS forwarding cache
** clear '''firewall'''
**: Clear firewall statistics
**: Clear firewall statistics
*** clear firewall '''ipv6-modify [[パラメーター > IPv6 ファイアウォール名|{firewall-name-ipv6}]]<firewall-name-ipv6>'''
** [[#clear_flow-accounting|clear '''flow-accounting''']]
***: Clear firewall statistics for chain
**: Clear flow accounting
**** clear firewall ipv6-modify [[パラメーター > IPv6 ファイアウォール名|{firewall-name-ipv6}]] '''counters''' <ENTER>
** [[#clear_interfaces|clear '''interfaces''']]
****: Clear firewall counters
**** clear firewall ipv6-modify [[パラメーター > IPv6 ファイアウォール名|{firewall-name-ipv6}]] '''rule''' <ENTER>
****: Clear firewall statistics for a rule
*** clear firewall '''ipv6-name [[パラメーター > IPv6 ファイアウォール名|{firewall-name-ipv6}]]'''
***:
**** clear firewall ipv6-name [[パラメーター > IPv6 ファイアウォール名|{firewall-name-ipv6}]] '''counters''' <ENTER>
****: Clear firewall counters
**** clear firewall ipv6-name [[パラメーター > IPv6 ファイアウォール名|{firewall-name-ipv6}]] '''rule''' <ENTER>
****: Clear firewall statistics for a rule
*** clear firewall '''modify [[パラメーター > IPv4 ファイアウォール名|{firewall-name}]]'''
***:
**** clear firewall modify [[パラメーター > IPv4 ファイアウォール名|{firewall-name}]] '''counters''' <ENTER>
****: Clear firewall counters
**** clear firewall modify [[パラメーター > IPv4 ファイアウォール名|{firewall-name}]] '''rule''' <ENTER>
****: Clear firewall statistics for a rule
*** clear firewall '''name [[パラメーター > IPv4 ファイアウォール名|{firewall-name}]]'''
***:
**** clear firewall name [[パラメーター > IPv4 ファイアウォール名|{firewall-name}]] '''counters''' <ENTER>
****: Clear firewall counters
**** clear firewall name [[パラメーター > IPv4 ファイアウォール名|{firewall-name}]] '''rule''' <ENTER>
****: Clear firewall statistics for a rule
** clear '''flow-accounting'''
<!-- **: Clear flow accounting -->
*** clear flow-accounting '''counters''' <ENTER>
***: Clear flow accounting statistics
** clear '''interfaces'''
**: Clear interface information
**: Clear interface information
*** clear interfaces '''bonding'''
** [[#clear_ip|clear '''ip''']]
***: Clear bonding interface information
**** clear interfaces bonding '''counters''' <ENTER>
****: Clear all bonding interface counters
**** clear interfaces bonding '''[[パラメーター > interface|{interface (bonding)}]] counters''' <ENTER>
****: Clear interface counters for a given bonding interface
*** clear interfaces '''bridge'''
***: Clear bridge interface information
**** clear interfaces bridge '''counters''' <ENTER>
****: Clear all bridge interface counters
**** clear interfaces bridge '''[[パラメーター > interface|{interface (bridge)}]] counters''' <ENTER>
****: Clear interface counters for a given bridge interface
*** clear interfaces '''connection [[パラメーター > connection|{connection}]]''' <ENTER>
***: Reset datalink layer connection to peer
*** clear interfaces '''counters''' <ENTER>
***: Clear interface counters for all interfaces
*** clear interfaces '''ethernet'''
***: Clear ethernet interface information
**** clear interfaces ethernet '''counters''' <ENTER>
****: Clear all ethernet interface counters
**** clear interfaces ethernet '''[[パラメーター > interface|{interface (ethernet)}]] counters''' <ENTER>
****: Clear interface counters for a given ethernet interface
*** clear interfaces '''loopback'''
***: Clear loopback interface information
**** clear interfaces loopback '''counters''' <ENTER>
****: Clear all loopback interface counters
**** clear interfaces loopback '''[[パラメーター > interface|{interface (loopback)}]] counters''' <ENTER>
****: Clear interface counters for a given loopback interface
*** clear interfaces '''pseudo-ethernet'''
***: Clear pseudo-ethernet interface information
**** clear interfaces pseudo-ethernet '''counters''' <ENTER>
****: Clear all pseudo-ethernet interface counters
**** clear interfaces pseudo-ethernet '''[[パラメーター > interface|{interface (pseudo ethernet)}]] counters''' <ENTER>
****: Clear interface counters for a given pseudo-ethernet interface
*** clear interfaces '''switch'''
***: Clear switch interface information
**** clear interfaces switch '''counters''' <ENTER>
****: Clear all switch interface counters
**** clear interfaces switch '''[[パラメーター > interface|{interface (switch)}]] counters''' <ENTER>
****: Clear interface counters for a given switch interface
*** clear interfaces '''tunnel'''
***: Clear tunnel interface information
**** clear interfaces tunnel '''counters''' <ENTER>
****: Clear all tunnel interface counters
**** clear interfaces tunnel '''[[パラメーター > interface|{interface (tunnel)}]] counters''' <ENTER>
****: Clear interface counters for a given tunnel interface
*** clear interfaces '''vti'''
***: Clear vti interface information
**** clear interfaces vti '''counters''' <ENTER>
****: Clear all vti interface counters
**** clear interfaces vti '''[[パラメーター > interface|{interface (vti)}]] counters''' <ENTER>
****: Clear interface counters for a given vti interface
** clear '''ip'''
**: Clear Internet Protocol (IP) statistics or status
**: Clear Internet Protocol (IP) statistics or status
*** clear ip '''bgp''' (未)
** [[#clear_ipv6|clear '''ipv6''']]
***: Clear Border Gateway Protocol (BGP) statistics or status
**** clear ip bgp ''' [[パラメーター > IPv4 アドレス|{A.B.C.D}]]'''
****: Clear BGP neighbor IP address
**** clear ip bgp ''' [[パラメーター > IPv6 アドレス|{X:X::X:X}]]'''
****:
**** clear ip bgp '''all'''
****: Clear all BGP peering sessions
**** clear ip bgp '''dampening'''
****: Clear BGP route flap dampening information
**** clear ip bgp '''external'''
****: Clear all BGP external peers
**** clear ip bgp '''peer-group'''
****: Clear all members of peer-group
*** clear ip '''prefix-list''' (未)
***: Clear prefix-list statistics or status
*** clear ip '''route''' (未)
***: Clear IP route
** clear '''ipv6''' (未)
**: Clear Internet Protocol (IPv6) statistics or status
**: Clear Internet Protocol (IPv6) statistics or status
** clear '''nat counters'''
** [[#clear_nat|clear '''nat''']]
<!-- **: Clear Network Address Translation (NAT) tables -->
**: Clear Network Address Translation (NAT) tables
**: Clear NAT counters
** [[#clear pppoe-server|clear '''pppoe-server''']]
*** clear nat counters <ENTER>
***: ( Clear counters for all NAT rules )
*** clear nat counters '''rule {nat-rule}''' <ENTER>
***: Clear counters for a specific NAT rule
** clear '''pppoe-server'''
**: Clear PPPoE server information
**: Clear PPPoE server information
*** clear pppoe-server '''interface [[パラメーター > interface|{interface}]]''' <ENTER>
** [[#clear_upnp2|clear '''upnp2''']]
***: Terminate a PPPoE server interface
**: clear UPnP
*** clear pppoe-server '''user  [[パラメーター > ユーザー名|{user}]]''' <ENTER>
** [[#clear_vpn|clear '''vpn''']]
***: Terminate specified user's current PPPoE session(s)
** clear '''upnp2 rules''' <ENTER>
<!-- **: clear UPnP -->
**: Clear UPnP firewall and NAT port forwards
** clear '''vpn'''
**: Clear Virtual Private Network (VPN) information
**: Clear Virtual Private Network (VPN) information
*** clear vpn '''ipsec-peer  [[パラメーター > IPSec peer|{ipsec-peer}]]'''
** [[#clear_vrrp|clear '''vrrp''']]
**: Clear VRRP
 
 
 
=== clear arp ===
* clear '''arp'''
*: Clear Address Resolution Protocol (ARP) cache
** clear arp '''address [[パラメーター > IPv4 アドレス|{x.x.x.x}]]''' <ENTER>
**: Clear ARP cache for an IPv4 address
** clear arp '''interface [[パラメーター > interface|{interface}]]''' <ENTER>
**: Clear ARP cache for interface
 
=== clear connection-tracking ===
* clear '''connection-tracking''' <ENTER>
*: Clear all currently tracked connections
 
=== clear console ===
* clear '''console''' <ENTER>
*: Clear screen
 
=== clear dhcp ===
* clear '''dhcp'''
*: Clear Dynamic Host Configuration Protocol (DHCP) leases
** clear dhcp '''lease ip  [[パラメーター > IPv4 アドレス|{x.x.x.x}]]''' <ENTER>
**: Clear the DHCP lease for a specific IP address
** clear dhcp '''leases''' <ENTER>
**: Clear all DHCP leases
 
=== clear dns ===
* clear '''dns forwarding'''
*: Clear DNS forwarding variables
** clear dns forwarding '''all''' <ENTER>
**: Clear DNS forwarding cache and counters
** clear dns forwarding '''cache''' <ENTER>
**: Clear DNS forwarding cache
 
=== clear firewall ===
* clear '''firewall'''
*: Clear firewall statistics
** clear firewall '''ipv6-modify [[パラメーター > IPv6 ファイアウォール name エントリ名|{firewall-name-ipv6}]]<firewall-name-ipv6>'''
**: Clear firewall statistics for chain
*** clear firewall ipv6-modify [[パラメーター > IPv6 ファイアウォール name エントリ名|{firewall-name-ipv6}]] '''counters''' <ENTER>
***: Clear firewall counters
*** clear firewall ipv6-modify [[パラメーター > IPv6 ファイアウォール name エントリ名|{firewall-name-ipv6}]] '''rule''' <ENTER>
***: Clear firewall statistics for a rule
** clear firewall '''ipv6-name [[パラメーター > IPv6 ファイアウォール name エントリ名|{firewall-name-ipv6}]]'''
**:
*** clear firewall ipv6-name [[パラメーター > IPv6 ファイアウォール name エントリ名|{firewall-name-ipv6}]] '''counters''' <ENTER>
***: Clear firewall counters
*** clear firewall ipv6-name [[パラメーター > IPv6 ファイアウォール name エントリ名|{firewall-name-ipv6}]] '''rule''' <ENTER>
***: Clear firewall statistics for a rule
** clear firewall '''modify [[パラメーター > IPv4 ファイアウォール name エントリ名|{firewall-name}]]'''
**:
*** clear firewall modify [[パラメーター > IPv4 ファイアウォール name エントリ名|{firewall-name}]] '''counters''' <ENTER>
***: Clear firewall counters
*** clear firewall modify [[パラメーター > IPv4 ファイアウォール name エントリ名|{firewall-name}]] '''rule''' <ENTER>
***: Clear firewall statistics for a rule
** clear firewall '''name [[パラメーター > IPv4 ファイアウォール name エントリ名|{firewall-name}]]'''
**:
*** clear firewall name [[パラメーター > IPv4 ファイアウォール name エントリ名|{firewall-name}]] '''counters''' <ENTER>
***: Clear firewall counters
*** clear firewall name [[パラメーター > IPv4 ファイアウォール name エントリ名|{firewall-name}]] '''rule''' <ENTER>
***: Clear firewall statistics for a rule
 
=== clear flow-accounting ===
* clear '''flow-accounting counters''' <ENTER>
*: Clear flow accounting statistics
 
=== clear interfaces ===
* clear '''interfaces'''
*: Clear interface information
** clear interfaces '''bonding'''
**: Clear bonding interface information
*** clear interfaces bonding '''counters''' <ENTER>
***: Clear all bonding interface counters
*** clear interfaces bonding '''[[パラメーター > interface|{interface (bonding)}]] counters''' <ENTER>
***: Clear interface counters for a given bonding interface
** clear interfaces '''bridge'''
**: Clear bridge interface information
*** clear interfaces bridge '''counters''' <ENTER>
***: Clear all bridge interface counters
*** clear interfaces bridge '''[[パラメーター > interface|{interface (bridge)}]] counters''' <ENTER>
***: Clear interface counters for a given bridge interface
** clear interfaces '''connection [[パラメーター > connection|{connection}]]''' <ENTER>
**: Reset datalink layer connection to peer
** clear interfaces '''counters''' <ENTER>
**: Clear interface counters for all interfaces
** clear interfaces '''ethernet'''
**: Clear ethernet interface information
*** clear interfaces ethernet '''counters''' <ENTER>
***: Clear all ethernet interface counters
*** clear interfaces ethernet '''[[パラメーター > interface|{interface (ethernet)}]] counters''' <ENTER>
***: Clear interface counters for a given ethernet interface
** clear interfaces '''loopback'''
**: Clear loopback interface information
*** clear interfaces loopback '''counters''' <ENTER>
***: Clear all loopback interface counters
*** clear interfaces loopback '''[[パラメーター > interface|{interface (loopback)}]] counters''' <ENTER>
***: Clear interface counters for a given loopback interface
** clear interfaces '''pseudo-ethernet'''
**: Clear pseudo-ethernet interface information
*** clear interfaces pseudo-ethernet '''counters''' <ENTER>
***: Clear all pseudo-ethernet interface counters
*** clear interfaces pseudo-ethernet '''[[パラメーター > interface|{interface (pseudo ethernet)}]] counters''' <ENTER>
***: Clear interface counters for a given pseudo-ethernet interface
** clear interfaces '''switch'''
**: Clear switch interface information
*** clear interfaces switch '''counters''' <ENTER>
***: Clear all switch interface counters
*** clear interfaces switch '''[[パラメーター > interface|{interface (switch)}]] counters''' <ENTER>
***: Clear interface counters for a given switch interface
** clear interfaces '''tunnel'''
**: Clear tunnel interface information
*** clear interfaces tunnel '''counters''' <ENTER>
***: Clear all tunnel interface counters
*** clear interfaces tunnel '''[[パラメーター > interface|{interface (tunnel)}]] counters''' <ENTER>
***: Clear interface counters for a given tunnel interface
** clear interfaces '''vti'''
**: Clear vti interface information
*** clear interfaces vti '''counters''' <ENTER>
***: Clear all vti interface counters
*** clear interfaces vti '''[[パラメーター > interface|{interface (vti)}]] counters''' <ENTER>
***: Clear interface counters for a given vti interface
 
 
=== clear ip ===
==== index (clear ip) ====
* clear '''ip'''
*: Clear Internet Protocol (IP) statistics or status
** clear ip '''bgp'''
**: Clear Border Gateway Protocol (BGP) statistics or status
** clear ip '''prefix-list'''
**: Clear prefix-list statistics or status
** clear ip '''route cache'''
**: Clear IP route
 
==== clear ip bgp ====
Clear Border Gateway Protocol (BGP) statistics or status
 
* clear ip bgp ''' {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]}'''
** clear ip bgp  {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]} <ENTER>
**: Clear BGP neighbor IP address
** clear ip bgp  {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]} '''in'''
*** clear ip bgp  {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]} in <ENTER>
***: Clear via soft reconfig inbound update
*** clear ip bgp  {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]} in '''prefix-filter''' <ENTER>
***: Clear out the existing ORF prefix-list
** clear ip bgp  {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]} '''out''' <ENTER>
**: Clear via soft reconfig of outbound update
** clear ip bgp  {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]} '''rsclient''' <ENTER>
**: Clear via soft reconfig for rsclient RIB
** clear ip bgp  {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]} '''soft'''
*** clear ip bgp  {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]} soft <ENTER>
***: Clear via soft reconfig
*** clear ip bgp  {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]} soft '''in'''
***: Clear via soft reconfig inbound update
*** clear ip bgp  {[[パラメーター > IPv4 アドレス|A.B.C.D]]|[[パラメーター > IPv6 アドレス|X:X::X:X]]} soft '''out'''
***: Clear via soft reconfig outbound update
* clear ip bgp '''all'''
** clear ip bgp all <ENTER>
**: Clear all BGP peering sessions
** clear ip bgp all '''soft'''
*** clear ip bgp all soft <ENTER>
***: Clear via soft reconfig
*** clear ip bgp all soft '''in''' <ENTER>
***: Clear via soft reconfig of inbound update
*** clear ip bgp all soft '''out''' <ENTER>
***: Clear via soft reconfig of outbound update
* clear ip bgp '''dampening'''
** clear ip bgp dampening <ENTER>
**: Clear BGP route flap dampening information
** clear ip bgp dampening '''{[[パラメーター > IPv4 アドレス|x.x.x.x]]|[[パラメーター > IPv4 ネットワーク|x.x.x.x/x]]} [[パラメーター > IPv4 アドレス|{x.x.x.x}]]''' <ENTER>
**: Clear BGP route flap dampening information for specified IP address
<!--
**: Clear BGP route flap dampening information for given host|network address
-->
* clear ip bgp '''external'''
** clear ip bgp external <ENTER>
**: Clear all BGP external peers
** clear ip bgp external '''in'''
*** clear ip bgp external in <ENTER>
***: Clear BGP external peers via soft reconfig of inbound update
**** clear ip bgp external in '''prefix-filter''' <ENTER>
****: Clear out prefix-list ORF and do inbound soft reconfig
** clear ip bgp external '''ipv4 unicast'''
**: Clear BGP external peer inforamtion for specified address
*** clear ip bgp external ipv4 unicast '''in'''
**** clear ip bgp external ipv4 unicast in <ENTER>
****: Clear BGP external peer inforamtion via soft reconfig of inbound update
**** clear ip bgp external ipv4 unicast in '''prefix-filter''' <ENTER>
****: Clear out prefix-list ORF and do inbound soft reconfig
*** clear ip bgp external ipv4 unicast '''out''' <ENTER>
***: Clear BGP external peer information via soft reconfig of outbound update
*** clear ip bgp external ipv4 unicast '''soft'''
**** clear ip bgp external ipv4 unicast soft <ENTER>
****: Clear BGP external peer information via soft reconfig
***** clear ip bgp external ipv4 unicast soft '''in''' <ENTER>
*****: Clear BGP external peer information via soft reconfig of inbound update
***** clear ip bgp external ipv4 unicast soft '''out''' <ENTER>
*****: Clear BGP external peer information via soft reconfig of outbound update
** clear ip bgp external '''out''' <ENTER>
**: Clear BGP external peers via soft reconfig of outbound update
** clear ip bgp external '''soft'''
**: Clear BGP external peer information via soft reconfig
*** clear ip bgp external soft '''in''' <ENTER>
***: Clear BGP external peer information via soft reconfig of inbound update
*** clear ip bgp external soft '''out''' <ENTER>
***: Clear BGP external peer information via soft reconfig of outbound update
 
==== clear ip prefix-list ====
* clear ip '''prefix-list'''
** clear ip prefix-list <ENTER>
**: Clear prefix-list statistics or status
** clear ip prefix-list '''{WORD}'''
*** clear ip prefix-list {WORD} <ENTER>
*** clear ip prefix-list {WORD} '''[[パラメーター > IPv4 ネットワーク|{x.x.x.x/x}]]''' <ENTER>
***: Clear prefix-list statistics or status for given word|network
 
==== clear ip route ====
* clear ip '''route cache'''
** clear ip route cache <ENTER>
**: Clear IP route
** clear ip route cache '''{[[パラメーター > IPv4 アドレス|x.x.x.x]]|[[パラメーター > IPv4 ネットワーク|x.x.x.x/x]]}''' <ENTER>
**: Flush the kernel route cache for a given route
** clear ip route cache '''|'''
*** clear ip route cache | '''count''' <ENTER>
***: Count the number of lines in the output
*** clear ip route cache | '''match [[パラメーター > pattern|{pattern}]]''' <ENTER>
***: Only output lines that match specified pattern
*** clear ip route cache | '''no-match [[パラメーター > pattern|{pattern}]]''' <ENTER>
***: Only output lines that do not match specified pattern
*** clear ip route cache | '''more''' <ENTER>
***: Paginate the output
*** clear ip route cache | '''no-more''' <ENTER>
***: Do not paginate the output
 
=== clear ipv6 ===
* clear '''ipv6'''
*: Clear Internet Protocol (IPv6) statistics or status
** clear ipv6 '''neighbors'''
**: Clear IPv6 Neighbor Discovery (ND) cache
*** clear ipv6 neighbors '''address [[パラメーター > IPv6 アドレス|{h:h:h:h:h:h:h:h}]]''' <ENTER>
***: Clear ND cache for an IPv6 address
*** clear ipv6 neighbors '''interface [[パラメーター > interface|{interface}]]''' <ENTER>
***: Clear IPv6 ND cache for interface
** clear ipv6 '''prefix-list'''
*** clear ipv6 prefix-list <ENTER>
***: Clear prefix-list statistics or status
*** clear ipv6 prefix-list '''{WORD}'''
**** clear ipv6 prefix-list {WORD} <ENTER>
****: Clear prefix-list statistics or status for specified word
**** clear ipv6 prefix-list {WORD} '''[[パラメーター > IPv6 ネットワーク|{h:h:h:h:h:h:h:h/x}]]''' <ENTER>
****: Clear prefix-list statistics or status for given word|network
** clear ipv6 '''route cache'''
**: Flush the kernel IPv6 route cache
<!--
**: Clear IPv6 route
-->
*** clear ipv6 route cache '''{[[パラメーター > IPv6 アドレス|h:h:h:h:h:h:h:h]]|[[パラメーター > IPv6 ネットワーク|h:h:h:h:h:h:h:h/x]]}''' <ENTER>
***: Flush the kernel IPv6 route cache for a given route
*** clear ipv6 route cache '''|'''
**** clear ipv6 route cache | '''count''' <ENTER>
****: Count the number of lines in the output
**** clear ipv6 route cache | '''match [[パラメーター > pattern|{pattern}]]''' <ENTER>
****: Only output lines that match specified pattern
**** clear ipv6 route cache | '''no-match [[パラメーター > pattern|{pattern}]]''' <ENTER>
****: Only output lines that do not match specified pattern
**** clear ipv6 route cache | '''more''' <ENTER>
****: Paginate the output
**** clear ipv6 route cache | '''no-more''' <ENTER>
****: Do not paginate the output
 
 
=== clear nat ===
* clear '''nat counters'''
*: Clear NAT counters
<!--
*: Clear Network Address Translation (NAT) tables
-->
** clear nat counters <ENTER>
**: ( Clear counters for all NAT rules )
** clear nat counters '''rule {nat-rule}''' <ENTER>
**: Clear counters for a specific NAT rule
 
=== clear pppoe-server ===
* clear '''pppoe-server'''
*: Clear PPPoE server information
** clear pppoe-server '''interface [[パラメーター > interface|{interface}]]''' <ENTER>
**: Terminate a PPPoE server interface
** clear pppoe-server '''user  [[パラメーター > ユーザー名|{user}]]''' <ENTER>
**: Terminate specified user's current PPPoE session(s)
 
=== clear upnp2 ===
* clear '''upnp2 rules''' <ENTER>
*: Clear UPnP firewall and NAT port forwards
<!--
*: clear UPnP
-->
 
=== clear vpn ===
* clear '''vpn'''
*: Clear Virtual Private Network (VPN) information
** clear vpn '''ipsec-peer  [[パラメーター > IPSec peer|{ipsec-peer}]]'''
**: Clear all tunnels for given peer
*** clear vpn ipsec-peer [[パラメーター > IPSec peer|{ipsec-peer}]] <ENTER>
***: Clear all tunnels for given peer
***: Clear all tunnels for given peer
**** clear vpn ipsec-peer [[パラメーター > IPSec peer|{ipsec-peer}]] <ENTER>
*** clear vpn ipsec-peer [[パラメーター > IPSec peer|{ipsec-peer}]] '''tunnel [[パラメーター > IPSec tunnel|{tunnel}]]''' <ENTER>
****: Clear all tunnels for given peer
***: Clear a specific tunnel for given peer
**** clear vpn ipsec-peer [[パラメーター > IPSec peer|{ipsec-peer}]] '''tunnel [[パラメーター > IPSec tunnel|{tunnel}]]''' <ENTER>
** clear vpn '''remote-access'''
****: Clear a specific tunnel for given peer
**: Clear remote access VPN information
*** clear vpn '''remote-access'''
*** clear vpn remote-access '''interface [[パラメーター > interface|{interface}]]''' <ENTER>
***: Clear remote access VPN information
***: Terminate a remote access VPN interface
**** clear vpn remote-access '''interface [[パラメーター > interface|{interface}]]''' <ENTER>
*** clear vpn remote-access '''user [[パラメーター > ユーザー名|{user}]]''' <ENTER>
****: Terminate a remote access VPN interface
***: Terminate specified user's current remote access VPN session(s)
**** clear vpn remote-access '''user [[パラメーター > ユーザー名|{user}]]''' <ENTER>
 
****: Terminate specified user's current remote access VPN session(s)
=== clear vrrp ===
** clear '''vrrp master interface [[パラメーター > interface|{interface}]] group {group]''' <ENTER>
* clear '''vrrp master interface [[パラメーター > interface|{interface}]] group {group]''' <ENTER>
**: clear VRRP master for specified interface and group
*: clear VRRP master for specified interface and group
<!-- **: Clear VRRP -->
<!--
*: Clear VRRP
-->




176行目: 365行目:
* [[パラメーター > IPSec tunnel]]
* [[パラメーター > IPSec tunnel]]
* [[パラメーター > IPv4 アドレス]]
* [[パラメーター > IPv4 アドレス]]
* [[パラメーター > IPv4 ネットワーク]]
* [[パラメーター > IPv4 ファイアウォール name エントリ名]]
* [[パラメーター > IPv6 アドレス]]
* [[パラメーター > IPv6 アドレス]]
* [[パラメーター > IPv4 ファイアウォール名]]
* [[パラメーター > IPv6 ネットワーク]]
* [[パラメーター > IPv6 ファイアウォール名]]
* [[パラメーター > IPv6 ファイアウォール name エントリ名]]
* [[パラメーター > pattern]]
* [[パラメーター > ユーザー名]]
* [[パラメーター > ユーザー名]]


186行目: 378行目:


[[Category:コマンド]]
[[Category:コマンド]]
[[Category:作成中]]
[[Category:コマンド (operational)]]

2015年11月20日 (金) 17:49時点における最新版

このページの概要

当ページでは、Operational モード clear コマンドの使い方をご紹介します。

clear コマンドの使い方

index


clear arp

  • clear arp
    Clear Address Resolution Protocol (ARP) cache
    • clear arp address {x.x.x.x} <ENTER>
      Clear ARP cache for an IPv4 address
    • clear arp interface {interface} <ENTER>
      Clear ARP cache for interface

clear connection-tracking

  • clear connection-tracking <ENTER>
    Clear all currently tracked connections

clear console

  • clear console <ENTER>
    Clear screen

clear dhcp

  • clear dhcp
    Clear Dynamic Host Configuration Protocol (DHCP) leases
    • clear dhcp lease ip {x.x.x.x} <ENTER>
      Clear the DHCP lease for a specific IP address
    • clear dhcp leases <ENTER>
      Clear all DHCP leases

clear dns

  • clear dns forwarding
    Clear DNS forwarding variables
    • clear dns forwarding all <ENTER>
      Clear DNS forwarding cache and counters
    • clear dns forwarding cache <ENTER>
      Clear DNS forwarding cache

clear firewall

clear flow-accounting

  • clear flow-accounting counters <ENTER>
    Clear flow accounting statistics

clear interfaces

  • clear interfaces
    Clear interface information
    • clear interfaces bonding
      Clear bonding interface information
      • clear interfaces bonding counters <ENTER>
        Clear all bonding interface counters
      • clear interfaces bonding {interface (bonding)} counters <ENTER>
        Clear interface counters for a given bonding interface
    • clear interfaces bridge
      Clear bridge interface information
      • clear interfaces bridge counters <ENTER>
        Clear all bridge interface counters
      • clear interfaces bridge {interface (bridge)} counters <ENTER>
        Clear interface counters for a given bridge interface
    • clear interfaces connection {connection} <ENTER>
      Reset datalink layer connection to peer
    • clear interfaces counters <ENTER>
      Clear interface counters for all interfaces
    • clear interfaces ethernet
      Clear ethernet interface information
      • clear interfaces ethernet counters <ENTER>
        Clear all ethernet interface counters
      • clear interfaces ethernet {interface (ethernet)} counters <ENTER>
        Clear interface counters for a given ethernet interface
    • clear interfaces loopback
      Clear loopback interface information
      • clear interfaces loopback counters <ENTER>
        Clear all loopback interface counters
      • clear interfaces loopback {interface (loopback)} counters <ENTER>
        Clear interface counters for a given loopback interface
    • clear interfaces pseudo-ethernet
      Clear pseudo-ethernet interface information
      • clear interfaces pseudo-ethernet counters <ENTER>
        Clear all pseudo-ethernet interface counters
      • clear interfaces pseudo-ethernet {interface (pseudo ethernet)} counters <ENTER>
        Clear interface counters for a given pseudo-ethernet interface
    • clear interfaces switch
      Clear switch interface information
      • clear interfaces switch counters <ENTER>
        Clear all switch interface counters
      • clear interfaces switch {interface (switch)} counters <ENTER>
        Clear interface counters for a given switch interface
    • clear interfaces tunnel
      Clear tunnel interface information
      • clear interfaces tunnel counters <ENTER>
        Clear all tunnel interface counters
      • clear interfaces tunnel {interface (tunnel)} counters <ENTER>
        Clear interface counters for a given tunnel interface
    • clear interfaces vti
      Clear vti interface information
      • clear interfaces vti counters <ENTER>
        Clear all vti interface counters
      • clear interfaces vti {interface (vti)} counters <ENTER>
        Clear interface counters for a given vti interface


clear ip

index (clear ip)

  • clear ip
    Clear Internet Protocol (IP) statistics or status
    • clear ip bgp
      Clear Border Gateway Protocol (BGP) statistics or status
    • clear ip prefix-list
      Clear prefix-list statistics or status
    • clear ip route cache
      Clear IP route

clear ip bgp

Clear Border Gateway Protocol (BGP) statistics or status

  • clear ip bgp {A.B.C.D|X:X::X:X}
  • clear ip bgp all
    • clear ip bgp all <ENTER>
      Clear all BGP peering sessions
    • clear ip bgp all soft
      • clear ip bgp all soft <ENTER>
        Clear via soft reconfig
      • clear ip bgp all soft in <ENTER>
        Clear via soft reconfig of inbound update
      • clear ip bgp all soft out <ENTER>
        Clear via soft reconfig of outbound update
  • clear ip bgp dampening
    • clear ip bgp dampening <ENTER>
      Clear BGP route flap dampening information
    • clear ip bgp dampening {x.x.x.x|x.x.x.x/x} {x.x.x.x} <ENTER>
      Clear BGP route flap dampening information for specified IP address
  • clear ip bgp external
    • clear ip bgp external <ENTER>
      Clear all BGP external peers
    • clear ip bgp external in
      • clear ip bgp external in <ENTER>
        Clear BGP external peers via soft reconfig of inbound update
        • clear ip bgp external in prefix-filter <ENTER>
          Clear out prefix-list ORF and do inbound soft reconfig
    • clear ip bgp external ipv4 unicast
      Clear BGP external peer inforamtion for specified address
      • clear ip bgp external ipv4 unicast in
        • clear ip bgp external ipv4 unicast in <ENTER>
          Clear BGP external peer inforamtion via soft reconfig of inbound update
        • clear ip bgp external ipv4 unicast in prefix-filter <ENTER>
          Clear out prefix-list ORF and do inbound soft reconfig
      • clear ip bgp external ipv4 unicast out <ENTER>
        Clear BGP external peer information via soft reconfig of outbound update
      • clear ip bgp external ipv4 unicast soft
        • clear ip bgp external ipv4 unicast soft <ENTER>
          Clear BGP external peer information via soft reconfig
          • clear ip bgp external ipv4 unicast soft in <ENTER>
            Clear BGP external peer information via soft reconfig of inbound update
          • clear ip bgp external ipv4 unicast soft out <ENTER>
            Clear BGP external peer information via soft reconfig of outbound update
    • clear ip bgp external out <ENTER>
      Clear BGP external peers via soft reconfig of outbound update
    • clear ip bgp external soft
      Clear BGP external peer information via soft reconfig
      • clear ip bgp external soft in <ENTER>
        Clear BGP external peer information via soft reconfig of inbound update
      • clear ip bgp external soft out <ENTER>
        Clear BGP external peer information via soft reconfig of outbound update

clear ip prefix-list

  • clear ip prefix-list
    • clear ip prefix-list <ENTER>
      Clear prefix-list statistics or status
    • clear ip prefix-list {WORD}
      • clear ip prefix-list {WORD} <ENTER>
      • clear ip prefix-list {WORD} {x.x.x.x/x} <ENTER>
        Clear prefix-list statistics or status for given word|network

clear ip route

  • clear ip route cache
    • clear ip route cache <ENTER>
      Clear IP route
    • clear ip route cache {x.x.x.x|x.x.x.x/x} <ENTER>
      Flush the kernel route cache for a given route
    • clear ip route cache |
      • clear ip route cache | count <ENTER>
        Count the number of lines in the output
      • clear ip route cache | match {pattern} <ENTER>
        Only output lines that match specified pattern
      • clear ip route cache | no-match {pattern} <ENTER>
        Only output lines that do not match specified pattern
      • clear ip route cache | more <ENTER>
        Paginate the output
      • clear ip route cache | no-more <ENTER>
        Do not paginate the output

clear ipv6

  • clear ipv6
    Clear Internet Protocol (IPv6) statistics or status
    • clear ipv6 neighbors
      Clear IPv6 Neighbor Discovery (ND) cache
      • clear ipv6 neighbors address {h:h:h:h:h:h:h:h} <ENTER>
        Clear ND cache for an IPv6 address
      • clear ipv6 neighbors interface {interface} <ENTER>
        Clear IPv6 ND cache for interface
    • clear ipv6 prefix-list
      • clear ipv6 prefix-list <ENTER>
        Clear prefix-list statistics or status
      • clear ipv6 prefix-list {WORD}
        • clear ipv6 prefix-list {WORD} <ENTER>
          Clear prefix-list statistics or status for specified word
        • clear ipv6 prefix-list {WORD} {h:h:h:h:h:h:h:h/x} <ENTER>
          Clear prefix-list statistics or status for given word|network
    • clear ipv6 route cache
      Flush the kernel IPv6 route cache
      • clear ipv6 route cache {h:h:h:h:h:h:h:h|h:h:h:h:h:h:h:h/x} <ENTER>
        Flush the kernel IPv6 route cache for a given route
      • clear ipv6 route cache |
        • clear ipv6 route cache | count <ENTER>
          Count the number of lines in the output
        • clear ipv6 route cache | match {pattern} <ENTER>
          Only output lines that match specified pattern
        • clear ipv6 route cache | no-match {pattern} <ENTER>
          Only output lines that do not match specified pattern
        • clear ipv6 route cache | more <ENTER>
          Paginate the output
        • clear ipv6 route cache | no-more <ENTER>
          Do not paginate the output


clear nat

  • clear nat counters
    Clear NAT counters
    • clear nat counters <ENTER>
      ( Clear counters for all NAT rules )
    • clear nat counters rule {nat-rule} <ENTER>
      Clear counters for a specific NAT rule

clear pppoe-server

  • clear pppoe-server
    Clear PPPoE server information
    • clear pppoe-server interface {interface} <ENTER>
      Terminate a PPPoE server interface
    • clear pppoe-server user {user} <ENTER>
      Terminate specified user's current PPPoE session(s)

clear upnp2

  • clear upnp2 rules <ENTER>
    Clear UPnP firewall and NAT port forwards

clear vpn

  • clear vpn
    Clear Virtual Private Network (VPN) information
    • clear vpn ipsec-peer {ipsec-peer}
      Clear all tunnels for given peer
      • clear vpn ipsec-peer {ipsec-peer} <ENTER>
        Clear all tunnels for given peer
      • clear vpn ipsec-peer {ipsec-peer} tunnel {tunnel} <ENTER>
        Clear a specific tunnel for given peer
    • clear vpn remote-access
      Clear remote access VPN information
      • clear vpn remote-access interface {interface} <ENTER>
        Terminate a remote access VPN interface
      • clear vpn remote-access user {user} <ENTER>
        Terminate specified user's current remote access VPN session(s)

clear vrrp

  • clear vrrp master interface {interface} group {group] <ENTER>
    clear VRRP master for specified interface and group


関連項目