반응형
부제: 기존 bonding 구성을 teamd 설정으로 자동 번역
bond2team --master bond0 # bond0 ifcfg를 team으로 변환
bond2team --master bond0 --stdout # 파일 수정 없이 화면에만 출력
bond2team --bonding_opts "mode=1 miimon=100" # 옵션을 직접 넘겨 변환
This tool translates bonding configuration to team.
OPTIONS:
--master <interface> set the master interface name or ifcfg
--bonding_opts pass the bonding options instead of reading from ifcfg
--json set the output format to teamd style
--ifcfg set the output format to ifcfg style
--stdout print to stdout instead of modify the system's filesbond2team은 teamd 패키지에 함께 들어오는 마이그레이션 도구다. 전통적 bonding 드라이버 설정(mode, miimon 등)을 읽어 대응하는 team runner 설정으로 번역한다. 예를 들어 bonding mode=1(active-backup)은 team의 activebackup runner로 옮겨준다. bonding에서 team으로 갈아탈 때 손으로 다시 쓰지 않게 해준다. 다만 RHEL 8 이후 team이 deprecated이고 bonding이 권장되는 흐름이라, 지금은 반대 방향 마이그레이션이 더 흔하다는 점은 감안한다.
이렇게도 쓴다
옵션 전체와 사용법을 확인한다.
bond2team --help
바로 실행 가능한 변환 예시를 본다.
bond2team --examples
변환 결과를 teamd용 JSON 형식으로 뽑는다.
bond2team --master bond0 --json --stdout
포트를 명시하고 마스터 이름을 바꿔 변환한다.
bond2team --bonding_opts "mode=activebackup" --port eth0 --port eth1 --rename team0 --stdout
ifcfg 파일이 있는 디렉토리와 출력 위치를 지정한다.
bond2team --master bond0 --configdir /etc/sysconfig/network-scripts --outputdir /tmp/team
변환 결과를 teamd로 곧장 시험 기동한다(조합, 콘솔에서 신중히).
bond2team --bonding_opts "mode=1 miimon=100" --json --stdout > /tmp/team0.conf && teamd -f /tmp/team0.conf -n -d반응형
'명령어 > Linux' 카테고리의 다른 글
| [RHEL] chcon 파일 컨텍스트 임시 변경 (0) | 2026.07.18 |
|---|---|
| [RHEL] ca-legacy 레거시 CA 신뢰 상태 관리 (0) | 2026.07.18 |
| [RHEL] auvirt 가상머신 실행 이력 조회 (0) | 2026.07.18 |
| [RHEL] authselect 시스템 인증 프로파일 관리 (0) | 2026.07.17 |
| [RHEL] ausyscall 시스템콜 이름과 번호 변환 (0) | 2026.07.17 |