mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 12:55:24 +02:00
*: fix style guide issues part 8 (#15794)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
This commit is contained in:
parent
701766faa4
commit
63453d3e14
27 changed files with 168 additions and 168 deletions
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Zeige Netzwerk-Interfaces mit ihren Adressen:
|
||||
|
||||
`ip address`
|
||||
`ip {{[a|address]}}`
|
||||
|
||||
- Zeige nur die aktiven Netzwerk-Interfaces:
|
||||
|
||||
`ip address show up`
|
||||
`ip {{[a|address]}} show up`
|
||||
|
||||
- Zeige Informationen über ein bestimmtes Interface:
|
||||
|
||||
`ip address show dev {{eth0}}`
|
||||
`ip {{[a|address]}} show dev {{eth0}}`
|
||||
|
||||
- Füge eine Adresse zu einem Interface hinzu:
|
||||
|
||||
`ip address add {{ip_adresse}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} add {{ip_adresse}} dev {{eth0}}`
|
||||
|
||||
- Entferne eine Adresse von einem Interface:
|
||||
|
||||
`ip address delete {{ip_adresse}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} delete {{ip_adresse}} dev {{eth0}}`
|
||||
|
||||
- Entfernt alle IP Adressen in einem speziellen Bereich von einem Interface:
|
||||
|
||||
`ip address flush dev {{eth0}} scope {{global|host|link}}`
|
||||
`ip {{[a|address]}} flush dev {{eth0}} scope {{global|host|link}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Lista las interfaces de red y sus direcciones IP asociadas:
|
||||
|
||||
`ip address`
|
||||
`ip {{[a|address]}}`
|
||||
|
||||
- Filtra mostrando solo las interfaces de red activas:
|
||||
|
||||
`ip address show up`
|
||||
`ip {{[a|address]}} show up`
|
||||
|
||||
- Muestra información sobre una interfaz de red específica:
|
||||
|
||||
`ip address show dev {{eth0}}`
|
||||
`ip {{[a|address]}} show dev {{eth0}}`
|
||||
|
||||
- Añade una dirección IP a una interfaz de red:
|
||||
|
||||
`ip address add {{dirección_ip}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} add {{dirección_ip}} dev {{eth0}}`
|
||||
|
||||
- Elimina una dirección IP de una interfaz de red:
|
||||
|
||||
`ip address delete {{dirección_ip}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} delete {{dirección_ip}} dev {{eth0}}`
|
||||
|
||||
- Elimina todas las direcciones IP en un alcance dado de una interfaz de red:
|
||||
|
||||
`ip address flush dev {{eth0}} scope {{global|host|link}}`
|
||||
`ip {{[a|address]}} flush dev {{eth0}} scope {{global|host|link}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Muestra información sobre todas las interfaces de red:
|
||||
|
||||
`ip link`
|
||||
`ip {{[l|link]}}`
|
||||
|
||||
- Muestra información sobre una interfaz de red específica:
|
||||
|
||||
`ip link show {{ethN}}`
|
||||
`ip {{[l|link]}} show {{ethN}}`
|
||||
|
||||
- Establece una interfaz de red arriba (up) o abajo (down). Usa inglés:
|
||||
|
||||
`ip link set {{ethN}} {{up|down}}`
|
||||
`ip {{[l|link]}} set {{ethN}} {{up|down}}`
|
||||
|
||||
- Establece un nombre significativo a una interfaz de red:
|
||||
|
||||
`ip link set {{ethN}} alias "{{LAN Interface}}"`
|
||||
`ip {{[l|link]}} set {{ethN}} alias "{{LAN Interface}}"`
|
||||
|
||||
- Cambia la dirección MAC de una interfaz de red:
|
||||
|
||||
`ip link set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}`
|
||||
`ip {{[l|link]}} set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}`
|
||||
|
||||
- Cambia el tamaño de MTU para una interfaz de red para usar marcos jumbo:
|
||||
|
||||
`ip link set {{ethN}} mtu {{9000}}`
|
||||
`ip {{[l|link]}} set {{ethN}} mtu {{9000}}`
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
|
||||
- Lista las direcciones multicast y cuántos programas están suscritos a ellas:
|
||||
|
||||
`ip maddress`
|
||||
`ip {{[m|maddress]}}`
|
||||
|
||||
- Lista de direcciones específicas de dispositivos:
|
||||
|
||||
`ip maddress show dev {{eth0}}`
|
||||
`ip {{[m|maddress]}} show dev {{eth0}}`
|
||||
|
||||
- Se une a un grupo multicast estáticamente:
|
||||
|
||||
`sudo ip maddress add {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
`sudo ip {{[m|maddress]}} add {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
|
||||
- Abandona un grupo multicast estático:
|
||||
|
||||
`sudo ip maddress delete {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
`sudo ip {{[m|maddress]}} delete {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
|
||||
- Muestra las entradas de la tabla de vecinos/ARP:
|
||||
|
||||
`ip neighbour`
|
||||
`ip {{[n|neighbour]}}`
|
||||
|
||||
- Elimina entradas en la tabla de vecinos del dispositivo `eth0`:
|
||||
|
||||
`sudo ip neighbour flush dev {{eth0}}`
|
||||
`sudo ip {{[n|neighbour]}} flush dev {{eth0}}`
|
||||
|
||||
- Realiza una búsqueda de vecinos y devuelve una entrada de vecinos:
|
||||
|
||||
`ip neighbour get {{lookup_ip}} dev {{eth0}}`
|
||||
`ip {{[n|neighbour]}} get {{lookup_ip}} dev {{eth0}}`
|
||||
|
||||
- Agrega o elimina una entrada ARP a los vecinos IP de `eth0`:
|
||||
|
||||
`sudo ip neighbour {{add|del}} {{dirección_ip}} lladdr {{mac_address}} dev {{eth0}} nud reachable`
|
||||
`sudo ip {{[n|neighbour]}} {{add|del}} {{dirección_ip}} lladdr {{mac_address}} dev {{eth0}} nud reachable`
|
||||
|
||||
- Cambia o reemplaza una entrada ARP para la dirección IP vecina a `eth0`:
|
||||
|
||||
`sudo ip neighbour {{change|replace}} {{dirección_ip}} lladdr {{nueva_mac_address}} dev {{eth0}}`
|
||||
`sudo ip {{[n|neighbour]}} {{change|replace}} {{dirección_ip}} lladdr {{nueva_mac_address}} dev {{eth0}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Imprime ruta a un destino:
|
||||
|
||||
`ip route get {{1.1.1.1}}`
|
||||
`ip {{[r|route]}} get {{1.1.1.1}}`
|
||||
|
||||
- Imprime la ruta a un destino desde una dirección de origen específica:
|
||||
|
||||
`ip route get {{destino}} from {{origen}}`
|
||||
`ip {{[r|route]}} get {{destino}} from {{origen}}`
|
||||
|
||||
- Imprime la ruta a un destino para los paquetes que llegan a una interfaz específica:
|
||||
|
||||
`ip route get {{destino}} iif {{eth0}}`
|
||||
`ip {{[r|route]}} get {{destino}} iif {{eth0}}`
|
||||
|
||||
- Imprime la ruta a un destino forzando la salida a través de una interfaz específica:
|
||||
|
||||
`ip route get {{destino}} oif {{eth1}}`
|
||||
`ip {{[r|route]}} get {{destino}} oif {{eth1}}`
|
||||
|
||||
- Imprime la ruta a un destino con un tipo específico de servicio (ToS):
|
||||
|
||||
`ip route get {{destino}} tos {{0x10}}`
|
||||
`ip {{[r|route]}} get {{destino}} tos {{0x10}}`
|
||||
|
||||
- Imprime la ruta a un destino utilizando una instancia VRF específica (Virtual Routing and Forwarding - Enrutamiento y Reenvío Virtual):
|
||||
|
||||
`ip route get {{destino}} vrf {{myvrf}}`
|
||||
`ip {{[r|route]}} get {{destino}} vrf {{myvrf}}`
|
||||
|
|
|
@ -5,28 +5,28 @@
|
|||
|
||||
- Muestra la tabla de enrutamiento:
|
||||
|
||||
`ip route {{show|list}}`
|
||||
`ip {{[r|route]}} {{show|list}}`
|
||||
|
||||
- Agrega una ruta predeterminada usando reenvío de puerta de enlace (gateway):
|
||||
|
||||
`sudo ip route add default via {{ip_de_gateway}}`
|
||||
`sudo ip {{[r|route]}} add default via {{ip_de_gateway}}`
|
||||
|
||||
- Añade una ruta predeterminada utilizando `eth0`:
|
||||
|
||||
`sudo ip route add default dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} add default dev {{eth0}}`
|
||||
|
||||
- Añade una ruta estática:
|
||||
|
||||
`sudo ip route add {{ip_destino}} via {{ip_de_gateway}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} add {{ip_destino}} via {{ip_de_gateway}} dev {{eth0}}`
|
||||
|
||||
- Elimina una ruta estática:
|
||||
|
||||
`sudo ip route del {{ip_destino}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} del {{ip_destino}} dev {{eth0}}`
|
||||
|
||||
- Cambia o reemplaza una ruta estática:
|
||||
|
||||
`sudo ip route {{change|replace}} {{ip_destino}} via {{ip_de_gateway}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} {{change|replace}} {{ip_destino}} via {{ip_de_gateway}} dev {{eth0}}`
|
||||
|
||||
- Muestra qué ruta será utilizada por el kernel para llegar a una dirección IP:
|
||||
|
||||
`ip route get {{ip_destino}}`
|
||||
`ip {{[r|route]}} get {{ip_destino}}`
|
||||
|
|
|
@ -5,32 +5,32 @@
|
|||
|
||||
- Muestra la política de enrutamiento:
|
||||
|
||||
`ip rule {{show|list}}`
|
||||
`ip {{[ru|rule]}} {{show|list}}`
|
||||
|
||||
- Agrega una nueva regla basada en las direcciones fuente de paquetes:
|
||||
|
||||
`sudo ip rule add from {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} add from {{192.168.178.2/32}}`
|
||||
|
||||
- Añade una nueva regla basada en direcciones destino de paquetes:
|
||||
- Añade una nueva regla basada en direcciones de destino de paquetes:
|
||||
|
||||
`sudo ip rule add to {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} add to {{192.168.178.2/32}}`
|
||||
|
||||
- Elimina una regla basada en las direcciones fuente de paquetes:
|
||||
|
||||
`sudo ip rule delete from {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} delete from {{192.168.178.2/32}}`
|
||||
|
||||
- Elimina una regla basada en las direcciones destino de paquetes:
|
||||
- Elimina una regla basada en las direcciones de destino de paquetes:
|
||||
|
||||
`sudo ip rule delete to {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} delete to {{192.168.178.2/32}}`
|
||||
|
||||
- Limpia todas las reglas eliminadas:
|
||||
|
||||
`ip rule flush`
|
||||
`ip {{[ru|rule]}} flush`
|
||||
|
||||
- Guarda todas las reglas en un archivo:
|
||||
|
||||
`ip rule save > {{ruta/a/reglas_ip.dat}}`
|
||||
`ip {{[ru|rule]}} save > {{ruta/a/reglas_ip.dat}}`
|
||||
|
||||
- Restaura todas las reglas desde un archivo:
|
||||
|
||||
`ip rule restore < {{ruta/a/reglas_ip.dat}}`
|
||||
`ip {{[ru|rule]}} restore < {{ruta/a/reglas_ip.dat}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Liste les interfaces réseau et leurs adresses IP associées :
|
||||
|
||||
`ip address`
|
||||
`ip {{[a|address]}}`
|
||||
|
||||
- Filtre pour n'afficher que les interfaces réseau actives :
|
||||
|
||||
`ip address show up`
|
||||
`ip {{[a|address]}} show up`
|
||||
|
||||
- Affiche les informations relatives à une interface réseau spécifique :
|
||||
|
||||
`ip address show dev {{eth0}}`
|
||||
`ip {{[a|address]}} show dev {{eth0}}`
|
||||
|
||||
- Ajoute une adresse IP à une interface réseau :
|
||||
|
||||
`ip address add {{ip_address}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} add {{ip_address}} dev {{eth0}}`
|
||||
|
||||
- Supprimer une adresse réseau d'une interface réseau :
|
||||
|
||||
`ip address delete {{ip_address}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} delete {{ip_address}} dev {{eth0}}`
|
||||
|
||||
- Supprime l'ensemble des adresses IP sur une portée donnée (scope) depuis une interface réseau :
|
||||
|
||||
`ip address flush dev {{eth0}} scope {{global|host|link}}`
|
||||
`ip {{[a|address]}} flush dev {{eth0}} scope {{global|host|link}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- 네트워크 인터페이스와 해당 IP 주소 나열:
|
||||
|
||||
`ip address`
|
||||
`ip {{[a|address]}}`
|
||||
|
||||
- 활성 네트워크 인터페이스만 표시하도록 필터링:
|
||||
|
||||
`ip address show up`
|
||||
`ip {{[a|address]}} show up`
|
||||
|
||||
- 특정 네트워크 인터페이스에 대한 정보 표시:
|
||||
|
||||
`ip address show dev {{eth0}}`
|
||||
`ip {{[a|address]}} show dev {{eth0}}`
|
||||
|
||||
- 네트워크 인터페이스에 IP 주소 추가:
|
||||
|
||||
`ip address add {{ip_주소}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} add {{ip_주소}} dev {{eth0}}`
|
||||
|
||||
- 네트워크 인터페이스에서 IP 주소 제거:
|
||||
|
||||
`ip address delete {{ip_주소}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} delete {{ip_주소}} dev {{eth0}}`
|
||||
|
||||
- 지정된 범위의 모든 IP 주소를 네트워크 인터페이스에서 삭제:
|
||||
|
||||
`ip address flush dev {{eth0}} scope {{global|host|link}}`
|
||||
`ip {{[a|address]}} flush dev {{eth0}} scope {{global|host|link}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- 모든 네트워크 인터페이스 정보 표시:
|
||||
|
||||
`ip link`
|
||||
`ip {{[l|link]}}`
|
||||
|
||||
- 특정 네트워크 인터페이스 정보 표시:
|
||||
|
||||
`ip link show {{ethN}}`
|
||||
`ip {{[l|link]}} show {{ethN}}`
|
||||
|
||||
- 네트워크 인터페이스 활성화 또는 비활성화:
|
||||
|
||||
`ip link set {{ethN}} {{up|down}}`
|
||||
`ip {{[l|link]}} set {{ethN}} {{up|down}}`
|
||||
|
||||
- 네트워크 인터페이스에 의미 있는 이름 부여:
|
||||
|
||||
`ip link set {{ethN}} alias "{{LAN 인터페이스}}"`
|
||||
`ip {{[l|link]}} set {{ethN}} alias "{{LAN 인터페이스}}"`
|
||||
|
||||
- 네트워크 인터페이스의 MAC 주소 변경:
|
||||
|
||||
`ip link set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}`
|
||||
`ip {{[l|link]}} set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}`
|
||||
|
||||
- 네트워크 인터페이스의 MTU 크기를 변경하여 점보 프레임 사용:
|
||||
|
||||
`ip link set {{ethN}} mtu {{9000}}`
|
||||
`ip {{[l|link]}} set {{ethN}} mtu {{9000}}`
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
|
||||
- Neighbour/ARP 테이블 항목 표시:
|
||||
|
||||
`ip neighbour`
|
||||
`ip {{[n|neighbour]}}`
|
||||
|
||||
- `eth0` 장치에서 neighbour 테이블의 항목 제거:
|
||||
|
||||
`sudo ip neighbour flush dev {{eth0}}`
|
||||
`sudo ip {{[n|neighbour]}} flush dev {{eth0}}`
|
||||
|
||||
- Neighbour 조회를 수행하고 neighbour 항목 반환:
|
||||
|
||||
`ip neighbour get {{조회_아이피}} dev {{eth0}}`
|
||||
`ip {{[n|neighbour]}} get {{조회_아이피}} dev {{eth0}}`
|
||||
|
||||
- Neighbour IP 주소에 대한 ARP 항목을 `eth0`에 추가하거나 삭제:
|
||||
|
||||
`sudo ip neighbour {{add|del}} {{아이피_주소}} lladdr {{맥_주소}} dev {{eth0}} nud reachable`
|
||||
`sudo ip {{[n|neighbour]}} {{add|del}} {{아이피_주소}} lladdr {{맥_주소}} dev {{eth0}} nud reachable`
|
||||
|
||||
- Neighbour IP 주소에 대한 ARP 항목을 `eth0`에 변경하거나 대체:
|
||||
|
||||
`sudo ip neighbour {{change|replace}} {{아이피_주소}} lladdr {{새로운_맥_주소}} dev {{eth0}}`
|
||||
`sudo ip {{[n|neighbour]}} {{change|replace}} {{아이피_주소}} lladdr {{새로운_맥_주소}} dev {{eth0}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- 목적지로 가는 경로 출력:
|
||||
|
||||
`ip route get {{1.1.1.1}}`
|
||||
`ip {{[r|route]}} get {{1.1.1.1}}`
|
||||
|
||||
- 특정 소스 주소에서 목적지로 가는 경로 출력:
|
||||
|
||||
`ip route get {{목적지}} from {{소스}}`
|
||||
`ip {{[r|route]}} get {{목적지}} from {{소스}}`
|
||||
|
||||
- 특정 인터페이스를 통해 도착하는 패킷의 목적지로 가는 경로 출력:
|
||||
|
||||
`ip route get {{목적지}} iif {{eth0}}`
|
||||
`ip {{[r|route]}} get {{목적지}} iif {{eth0}}`
|
||||
|
||||
- 특정 인터페이스를 통해 강제로 출력하는 목적지로 가는 경로 출력:
|
||||
|
||||
`ip route get {{목적지}} oif {{eth1}}`
|
||||
`ip {{[r|route]}} get {{목적지}} oif {{eth1}}`
|
||||
|
||||
- 지정된 서비스 유형(ToS)으로 목적지로 가는 경로 출력:
|
||||
|
||||
`ip route get {{목적지}} tos {{0x10}}`
|
||||
`ip {{[r|route]}} get {{목적지}} tos {{0x10}}`
|
||||
|
||||
- 특정 VRF(가상 라우팅 및 전달) 인스턴스를 사용하여 목적지로 가는 경로 출력:
|
||||
|
||||
`ip route get {{목적지}} vrf {{myvrf}}`
|
||||
`ip {{[r|route]}} get {{목적지}} vrf {{myvrf}}`
|
||||
|
|
|
@ -5,28 +5,28 @@
|
|||
|
||||
- 라우팅 테이블 표시:
|
||||
|
||||
`ip route {{show|list}}`
|
||||
`ip {{[r|route]}} {{show|list}}`
|
||||
|
||||
- 게이트웨이 포워딩을 사용하여 기본 라우트 추가:
|
||||
|
||||
`sudo ip route add default via {{게이트웨이_IP}}`
|
||||
`sudo ip {{[r|route]}} add default via {{게이트웨이_IP}}`
|
||||
|
||||
- `eth0`을 사용하여 기본 라우트 추가:
|
||||
|
||||
`sudo ip route add default dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} add default dev {{eth0}}`
|
||||
|
||||
- 고정 라우트 추가:
|
||||
|
||||
`sudo ip route add {{대상_IP}} via {{게이트웨이_IP}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} add {{대상_IP}} via {{게이트웨이_IP}} dev {{eth0}}`
|
||||
|
||||
- 고정 라우트 삭제:
|
||||
|
||||
`sudo ip route del {{대상_IP}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} del {{대상_IP}} dev {{eth0}}`
|
||||
|
||||
- 고정 라우트 변경 또는 대체:
|
||||
|
||||
`sudo ip route {{change|replace}} {{대상_IP}} via {{게이트웨이_IP}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} {{change|replace}} {{대상_IP}} via {{게이트웨이_IP}} dev {{eth0}}`
|
||||
|
||||
- 특정 IP 주소에 도달하기 위해 커널이 사용할 라우트 표시:
|
||||
|
||||
`ip route get {{대상_IP}}`
|
||||
`ip {{[r|route]}} get {{대상_IP}}`
|
||||
|
|
|
@ -5,32 +5,32 @@
|
|||
|
||||
- 라우팅 정책 표시:
|
||||
|
||||
`ip rule {{show|list}}`
|
||||
`ip {{[ru|rule]}} {{show|list}}`
|
||||
|
||||
- 패킷 소스 주소를 기준으로 새 규칙 추가:
|
||||
|
||||
`sudo ip rule add from {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} add from {{192.168.178.2/32}}`
|
||||
|
||||
- 패킷 목적지 주소를 기준으로 새 규칙 추가:
|
||||
|
||||
`sudo ip rule add to {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} add to {{192.168.178.2/32}}`
|
||||
|
||||
- 패킷 소스 주소를 기준으로 규칙 삭제:
|
||||
|
||||
`sudo ip rule delete from {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} delete from {{192.168.178.2/32}}`
|
||||
|
||||
- 패킷 목적지 주소를 기준으로 규칙 삭제:
|
||||
|
||||
`sudo ip rule delete to {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} delete to {{192.168.178.2/32}}`
|
||||
|
||||
- 삭제된 모든 규칙 플러시:
|
||||
|
||||
`ip rule flush`
|
||||
`ip {{[ru|rule]}} flush`
|
||||
|
||||
- 모든 규칙을 파일에 저장:
|
||||
|
||||
`ip rule save > {{경로/대상/ip_규칙들.dat}}`
|
||||
`ip {{[ru|rule]}} save > {{경로/대상/ip_규칙들.dat}}`
|
||||
|
||||
- 파일에서 모든 규칙 복원:
|
||||
|
||||
`ip rule restore < {{경로/대상/ip_규칙들.dat}}`
|
||||
`ip {{[ru|rule]}} restore < {{경로/대상/ip_규칙들.dat}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Ağ arayüzlerini ve ilişkili IP adreslerini listele:
|
||||
|
||||
`ip address`
|
||||
`ip {{[a|address]}}`
|
||||
|
||||
- Yalnızca etkin ağ arayüzlerini gösterecek şekilde filtrele:
|
||||
|
||||
`ip address show up`
|
||||
`ip {{[a|address]}} show up`
|
||||
|
||||
- Belirli bir ağ arayüzü hakkındaki bilgileri görüntüle:
|
||||
|
||||
`ip address show dev {{eth0}}`
|
||||
`ip {{[a|address]}} show dev {{eth0}}`
|
||||
|
||||
- Bir ağ arayüzüne bir IP adresi ekle:
|
||||
|
||||
`ip address add {{ip_adresi}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} add {{ip_adresi}} dev {{eth0}}`
|
||||
|
||||
- Bir ağ arayüzünden bir IP adresini kaldır:
|
||||
|
||||
`ip address delete {{ip_adresi}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} delete {{ip_adresi}} dev {{eth0}}`
|
||||
|
||||
- Belirli bir kapsamdaki tüm IP adreslerini bir ağ arayüzünden sil:
|
||||
|
||||
`ip address flush dev {{eth0}} scope {{global|host|link}}`
|
||||
`ip {{[a|address]}} flush dev {{eth0}} scope {{global|host|link}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Tüm ağ arayüzleriyle ilgili bilgileri göster:
|
||||
|
||||
`ip link`
|
||||
`ip {{[l|link]}}`
|
||||
|
||||
- Belirli bir ağ arayüzüyle ilgili bilgileri göster:
|
||||
|
||||
`ip link show {{ethN}}`
|
||||
`ip {{[l|link]}} show {{ethN}}`
|
||||
|
||||
- Bir ağ arayüzünü etkinleştir veya devre dışı bırak:
|
||||
|
||||
`ip link set {{ethN}} {{up|down}}`
|
||||
`ip {{[l|link]}} set {{ethN}} {{up|down}}`
|
||||
|
||||
- Bir ağ arayüzüne anlamlı bir ad ver:
|
||||
|
||||
`ip link set {{ethN}} alias "{{LAN Arayüzü}}"`
|
||||
`ip {{[l|link]}} set {{ethN}} alias "{{LAN Arayüzü}}"`
|
||||
|
||||
- Bir ağ arayüzünün MAC adresini değiştir:
|
||||
|
||||
`ip link set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}`
|
||||
`ip {{[l|link]}} set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}`
|
||||
|
||||
- Jumbo çerçeveleri kullanması için bir ağ arayüzünün MTU boyutunu değiştir:
|
||||
|
||||
`ip link set {{ethN}} mtu {{9000}}`
|
||||
`ip {{[l|link]}} set {{ethN}} mtu {{9000}}`
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
|
||||
- Komşu/ARP tablosu girdilerini görüntüle:
|
||||
|
||||
`ip neighbour`
|
||||
`ip {{[n|neighbour]}}`
|
||||
|
||||
- `eth0` aygıtının komşu tablosundaki girdileri kaldır:
|
||||
|
||||
`sudo ip neighbour flush dev {{eth0}}`
|
||||
`sudo ip {{[n|neighbour]}} flush dev {{eth0}}`
|
||||
|
||||
- Bir komşu araması gerçekleştir ve bir komşu girdisi döndür:
|
||||
|
||||
`ip neighbour get {{aranacak_ip}} dev {{eth0}}`
|
||||
`ip {{[n|neighbour]}} get {{aranacak_ip}} dev {{eth0}}`
|
||||
|
||||
- `eth0` arayüzüne komşu IP adresi için bir ARP girdisi ekle veya sil:
|
||||
|
||||
`sudo ip neighbour {{add|del}} {{ip_adresi}} lladdr {{mac_adresi}} dev {{eth0}} nud reachable`
|
||||
`sudo ip {{[n|neighbour]}} {{add|del}} {{ip_adresi}} lladdr {{mac_adresi}} dev {{eth0}} nud reachable`
|
||||
|
||||
- `eth0` arayüzünde komşu IP adresi için bir ARP girdisini değiştir:
|
||||
|
||||
`sudo ip neighbour {{change|replace}} {{ip_adresi}} lladdr {{yeni_mac_adresi}} dev {{eth0}}`
|
||||
`sudo ip {{[n|neighbour]}} {{change|replace}} {{ip_adresi}} lladdr {{yeni_mac_adresi}} dev {{eth0}}`
|
||||
|
|
|
@ -5,28 +5,28 @@
|
|||
|
||||
- Yönlendirme tablosunu görüntüle:
|
||||
|
||||
`ip route {{show|list}}`
|
||||
`ip {{[r|route]}} {{show|list}}`
|
||||
|
||||
- Ağ geçidini kullanan öntanımlı bir yönlendirme ekle:
|
||||
|
||||
`sudo ip route add default via {{ağ_geçidi_ip_adresi}}`
|
||||
`sudo ip {{[r|route]}} add default via {{ağ_geçidi_ip_adresi}}`
|
||||
|
||||
- `eth0` arayüzünü kullanan öntanımlı bir yönlendirme ekle:
|
||||
|
||||
`sudo ip route add default dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} add default dev {{eth0}}`
|
||||
|
||||
- Statik bir yönlendirme ekle:
|
||||
|
||||
`sudo ip route add {{hedef_ip_adresi}} via {{ağ_geçidi_ip_adresi}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} add {{hedef_ip_adresi}} via {{ağ_geçidi_ip_adresi}} dev {{eth0}}`
|
||||
|
||||
- Statik bir yönlendirmeyi sil:
|
||||
|
||||
`sudo ip route del {{hedef_ip_adresi}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} del {{hedef_ip_adresi}} dev {{eth0}}`
|
||||
|
||||
- Statik bir yönlendirmeyi değiştir:
|
||||
|
||||
`sudo ip route {{change|replace}} {{hedef_ip_adresi}} via {{ağ_geçidi_ip_adresi}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} {{change|replace}} {{hedef_ip_adresi}} via {{ağ_geçidi_ip_adresi}} dev {{eth0}}`
|
||||
|
||||
- Bir IP adresine ulaşmak için çekirdek tarafından hangi yönlendirmenin kullanılacağını göster:
|
||||
|
||||
`ip route get {{hedef_ip_adresi}}`
|
||||
`ip {{[r|route]}} get {{hedef_ip_adresi}}`
|
||||
|
|
|
@ -5,32 +5,32 @@
|
|||
|
||||
- Yönlendirme politikasını göster:
|
||||
|
||||
`ip rule {{show|list}}`
|
||||
`ip {{[ru|rule]}} {{show|list}}`
|
||||
|
||||
- Paket kaynak adreslerine dayalı yeni bir kural ekle:
|
||||
|
||||
`sudo ip rule add from {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} add from {{192.168.178.2/32}}`
|
||||
|
||||
- Paket hedef adreslerine dayalı yeni bir kural ekle:
|
||||
|
||||
`sudo ip rule add to {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} add to {{192.168.178.2/32}}`
|
||||
|
||||
- Paket kaynak adreslerine dayalı bir kuralı sil:
|
||||
|
||||
`sudo ip rule delete from {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} delete from {{192.168.178.2/32}}`
|
||||
|
||||
- Paket hedef adreslerine dayalı bir kuralı sil:
|
||||
|
||||
`sudo ip rule delete to {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} delete to {{192.168.178.2/32}}`
|
||||
|
||||
- Silinen tüm kuralları temizle:
|
||||
|
||||
`ip rule flush`
|
||||
`ip {{[ru|rule]}} flush`
|
||||
|
||||
- Tüm kuralları bir dosyaya kaydet:
|
||||
|
||||
`ip rule save > {{ip_kuralları.dat/dosyasının/yolu}}`
|
||||
`ip {{[ru|rule]}} save > {{ip_kuralları.dat/dosyasının/yolu}}`
|
||||
|
||||
- Tüm kuralları bir dosyadan geri yükle:
|
||||
|
||||
`ip rule restore < {{ip_kuralları.dat/dosyasının/yolu}}`
|
||||
`ip {{[ru|rule]}} restore < {{ip_kuralları.dat/dosyasının/yolu}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- List network interfaces and their associated IP addresses:
|
||||
|
||||
`ip address`
|
||||
`ip {{[a|address]}}`
|
||||
|
||||
- Filter to show only active network interfaces:
|
||||
|
||||
`ip address show up`
|
||||
`ip {{[a|address]}} show up`
|
||||
|
||||
- Display information about a specific network interface:
|
||||
|
||||
`ip address show dev {{eth0}}`
|
||||
`ip {{[a|address]}} show dev {{eth0}}`
|
||||
|
||||
- Add an IP address to a network interface:
|
||||
|
||||
`ip address add {{ip_address}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} add {{ip_address}} dev {{eth0}}`
|
||||
|
||||
- Remove an IP address from a network interface:
|
||||
|
||||
`ip address delete {{ip_address}} dev {{eth0}}`
|
||||
`ip {{[a|address]}} delete {{ip_address}} dev {{eth0}}`
|
||||
|
||||
- Delete all IP addresses in a given scope from a network interface:
|
||||
|
||||
`ip address flush dev {{eth0}} scope {{global|host|link}}`
|
||||
`ip {{[a|address]}} flush dev {{eth0}} scope {{global|host|link}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Show information about all network interfaces:
|
||||
|
||||
`ip link`
|
||||
`ip {{[l|link]}}`
|
||||
|
||||
- Show information about a specific network interface:
|
||||
|
||||
`ip link show {{ethN}}`
|
||||
`ip {{[l|link]}} show {{ethN}}`
|
||||
|
||||
- Bring a network interface up or down:
|
||||
|
||||
`ip link set {{ethN}} {{up|down}}`
|
||||
`ip {{[l|link]}} set {{ethN}} {{up|down}}`
|
||||
|
||||
- Give a meaningful name to a network interface:
|
||||
|
||||
`ip link set {{ethN}} alias "{{LAN Interface}}"`
|
||||
`ip {{[l|link]}} set {{ethN}} alias "{{LAN Interface}}"`
|
||||
|
||||
- Change the MAC address of a network interface:
|
||||
|
||||
`ip link set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}`
|
||||
`ip {{[l|link]}} set {{ethN}} address {{ff:ff:ff:ff:ff:ff}}`
|
||||
|
||||
- Change the MTU size for a network interface to use jumbo frames:
|
||||
|
||||
`ip link set {{ethN}} mtu {{9000}}`
|
||||
`ip {{[l|link]}} set {{ethN}} mtu {{9000}}`
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
|
||||
- List multicast addresses and how many programs are subscribed to them:
|
||||
|
||||
`ip maddress`
|
||||
`ip {{[m|maddress]}}`
|
||||
|
||||
- List device specific addresses:
|
||||
|
||||
`ip maddress show dev {{eth0}}`
|
||||
`ip {{[m|maddress]}} show dev {{eth0}}`
|
||||
|
||||
- Join a multicast group statically:
|
||||
|
||||
`sudo ip maddress add {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
`sudo ip {{[m|maddress]}} add {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
|
||||
- Leave a static multicast group:
|
||||
|
||||
`sudo ip maddress delete {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
`sudo ip {{[m|maddress]}} delete {{33:33:00:00:00:02}} dev {{eth0}}`
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
|
||||
- Display the neighbour/ARP table entries:
|
||||
|
||||
`ip neighbour`
|
||||
`ip {{[n|neighbour]}}`
|
||||
|
||||
- Remove entries in the neighbour table on device `eth0`:
|
||||
|
||||
`sudo ip neighbour flush dev {{eth0}}`
|
||||
`sudo ip {{[n|neighbour]}} flush dev {{eth0}}`
|
||||
|
||||
- Perform a neighbour lookup and return a neighbour entry:
|
||||
|
||||
`ip neighbour get {{lookup_ip}} dev {{eth0}}`
|
||||
`ip {{[n|neighbour]}} get {{lookup_ip}} dev {{eth0}}`
|
||||
|
||||
- Add or delete an ARP entry for the neighbour IP address to `eth0`:
|
||||
|
||||
`sudo ip neighbour {{add|del}} {{ip_address}} lladdr {{mac_address}} dev {{eth0}} nud reachable`
|
||||
`sudo ip {{[n|neighbour]}} {{add|del}} {{ip_address}} lladdr {{mac_address}} dev {{eth0}} nud reachable`
|
||||
|
||||
- Change or replace an ARP entry for the neighbour IP address to `eth0`:
|
||||
|
||||
`sudo ip neighbour {{change|replace}} {{ip_address}} lladdr {{new_mac_address}} dev {{eth0}}`
|
||||
`sudo ip {{[n|neighbour]}} {{change|replace}} {{ip_address}} lladdr {{new_mac_address}} dev {{eth0}}`
|
||||
|
|
|
@ -5,24 +5,24 @@
|
|||
|
||||
- Print route to a destination:
|
||||
|
||||
`ip route get {{1.1.1.1}}`
|
||||
`ip {{[r|route]}} get {{1.1.1.1}}`
|
||||
|
||||
- Print route to a destination from a specific source address:
|
||||
|
||||
`ip route get {{destination}} from {{source}}`
|
||||
`ip {{[r|route]}} get {{destination}} from {{source}}`
|
||||
|
||||
- Print route to a destination for packets arriving on a specific interface:
|
||||
|
||||
`ip route get {{destination}} iif {{eth0}}`
|
||||
`ip {{[r|route]}} get {{destination}} iif {{eth0}}`
|
||||
|
||||
- Print route to a destination, forcing output through a specific interface:
|
||||
|
||||
`ip route get {{destination}} oif {{eth1}}`
|
||||
`ip {{[r|route]}} get {{destination}} oif {{eth1}}`
|
||||
|
||||
- Print route to a destination with a specified Type of Service (ToS):
|
||||
|
||||
`ip route get {{destination}} tos {{0x10}}`
|
||||
`ip {{[r|route]}} get {{destination}} tos {{0x10}}`
|
||||
|
||||
- Print route to a destination using a specific VRF (Virtual Routing and Forwarding) instance:
|
||||
|
||||
`ip route get {{destination}} vrf {{myvrf}}`
|
||||
`ip {{[r|route]}} get {{destination}} vrf {{myvrf}}`
|
||||
|
|
|
@ -5,28 +5,28 @@
|
|||
|
||||
- Display the routing table:
|
||||
|
||||
`ip route {{show|list}}`
|
||||
`ip {{[r|route]}} {{show|list}}`
|
||||
|
||||
- Add a default route using gateway forwarding:
|
||||
|
||||
`sudo ip route add default via {{gateway_ip}}`
|
||||
`sudo ip {{[r|route]}} add default via {{gateway_ip}}`
|
||||
|
||||
- Add a default route using `eth0`:
|
||||
|
||||
`sudo ip route add default dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} add default dev {{eth0}}`
|
||||
|
||||
- Add a static route:
|
||||
|
||||
`sudo ip route add {{destination_ip}} via {{gateway_ip}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} add {{destination_ip}} via {{gateway_ip}} dev {{eth0}}`
|
||||
|
||||
- Delete a static route:
|
||||
|
||||
`sudo ip route del {{destination_ip}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} del {{destination_ip}} dev {{eth0}}`
|
||||
|
||||
- Change or replace a static route:
|
||||
|
||||
`sudo ip route {{change|replace}} {{destination_ip}} via {{gateway_ip}} dev {{eth0}}`
|
||||
`sudo ip {{[r|route]}} {{change|replace}} {{destination_ip}} via {{gateway_ip}} dev {{eth0}}`
|
||||
|
||||
- Show which route will be used by the kernel to reach an IP address:
|
||||
|
||||
`ip route get {{destination_ip}}`
|
||||
`ip {{[r|route]}} get {{destination_ip}}`
|
||||
|
|
|
@ -5,32 +5,32 @@
|
|||
|
||||
- Display the routing policy:
|
||||
|
||||
`ip rule {{show|list}}`
|
||||
`ip {{[ru|rule]}} {{show|list}}`
|
||||
|
||||
- Add a new rule based on packet source addresses:
|
||||
|
||||
`sudo ip rule add from {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} add from {{192.168.178.2/32}}`
|
||||
|
||||
- Add a new rule based on packet destination addresses:
|
||||
|
||||
`sudo ip rule add to {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} add to {{192.168.178.2/32}}`
|
||||
|
||||
- Delete a rule based on packet source addresses:
|
||||
|
||||
`sudo ip rule delete from {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} delete from {{192.168.178.2/32}}`
|
||||
|
||||
- Delete a rule based on packet destination addresses:
|
||||
|
||||
`sudo ip rule delete to {{192.168.178.2/32}}`
|
||||
`sudo ip {{[ru|rule]}} delete to {{192.168.178.2/32}}`
|
||||
|
||||
- Flush all deleted rules:
|
||||
|
||||
`ip rule flush`
|
||||
`ip {{[ru|rule]}} flush`
|
||||
|
||||
- Save all rules to a file:
|
||||
|
||||
`ip rule save > {{path/to/ip_rules.dat}}`
|
||||
`ip {{[ru|rule]}} save > {{path/to/ip_rules.dat}}`
|
||||
|
||||
- Restore all rules from a file:
|
||||
|
||||
`ip rule restore < {{path/to/ip_rules.dat}}`
|
||||
`ip {{[ru|rule]}} restore < {{path/to/ip_rules.dat}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue