![ifdown bond0:0이 bond0을 무너뜨리나요?](https://linux55.com/image/107017/ifdown%20bond0%3A0%EC%9D%B4%20bond0%EC%9D%84%20%EB%AC%B4%EB%84%88%EB%9C%A8%EB%A6%AC%EB%82%98%EC%9A%94%3F.png)
이 파일을 사용하여 bond0 인터페이스에 인터페이스 별칭을 설정했습니다.
/etc/sysconfig/network-scripts/ifcfg-bond0:0
이것을 포함
DEVICE=bond0:0
IPADDR=10.2.3.60
BOOTPROTO=static
ONBOOT=yes
NETMASK=255.255.255.0
내가
$ ifup bond0:0
모든 것이 잘 작동하고 ping할 수 있습니다. 그러나 내가
$ ifdown bond0:0
둘 다 쓰러 bond0
뜨려bond0:0
이것은 버그처럼 보이지만 아마도 내가 뭔가 잘못하고 있는 것 같습니다. bond0:0
가져가지 않고 어떻게 내려놓을 수 있나요 bond0
?
답변1
bond0:0
별칭 IP 주소를 할당하는 데 사용하는 방법을 고려하십시오.Linux 커널은 현재 더 이상 사용되지 않습니다..
IP-Aliasing:
============
IP-aliases are an obsolete way to manage multiple IP-addresses/masks
per interface. Newer tools such as iproute2 support multiple
address/prefixes per interface, but aliases are still supported
for backwards compatibility.
An alias is formed by adding a colon and a string when running ifconfig.
This string is usually numeric, but this is not a must.
별칭을 삭제/취소하는 올바른 구문은 다음을 ifconfig
사용하는 것입니다.
$ ifconfig bond0:0 down
ip
iproute2의 명령을 사용하여 동일한 작업을 수행할 수도 있다고 생각됩니다.
$ ip link set bond0:0 down