43.2. nmcli를 사용하여 모든 트래픽을 수락하도록 네트워크 장치를 영구적으로 설정

nmcli 유틸리티를 사용하여 MAC 주소에 관계없이 모든 트래픽을 수락하도록 네트워크 장치를 영구적으로 구성할 수 있습니다.

절차

  1. 선택 사항: 모든 트래픽을 수신하려는 네트워크 인터페이스를 표시합니다.

    # ip address show
    1: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
        link/ether 98:fa:9b:a4:34:09 brd ff:ff:ff:ff:ff:ff
    ...

    없는 경우 새 연결을 만들 수 있습니다.

  2. 이 속성을 활성화 또는 비활성화하려면 네트워크 장치를 수정합니다.

    • enp1s0 에 대해 ethernet.accept-all-mac-addresses 모드를 활성화하려면 :

      # nmcli connection modify enp1s0 ethernet.accept-all-mac-addresses yes
    • enp1s0 에 대해 accept-all-mac-addresses 모드를 비활성화하려면 다음을 수행합니다.

      # nmcli connection modify enp1s0 ethernet.accept-all-mac-addresses no
  3. 변경 사항을 적용하고 연결을 다시 활성화합니다.

    # nmcli connection up enp1s0

검증

  • ethernet.accept-all-mac-addresses 모드가 활성화되어 있는지 확인합니다.

    # nmcli connection show enp1s0
    ...
    802-3-ethernet.accept-all-mac-addresses:1     (true)

    802-3-ethernet.accept-all-mac-addresses: true 는 모드가 활성화되었음을 나타냅니다.