autoyast 구성 파일의 물리적 주소에 IP를 바인딩할 수 있습니까? 다음 코드는 문제를 해결하지 못합니다.
...
<interfaces config:type="list">
<interface>
<bootproto>static</bootproto>
<device>eth0</device>
<ipaddr>ip_address_0</ipaddr>
<hwaddr>aa:bb:cc:dd:ee:ff</hwaddr>
<name>MY 1st NETWORK</name>
<netmask>255.255.255.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
<interface>
<bootproto>static</bootproto>
<device>eth1</device>
<ipaddr>ip_address_1</ipaddr>
<hwaddr>ff:aa:bb:cc:dd:ee</hwaddr>
<name>MY 2nd NETWORK</name>
<netmask>255.255.255.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
<interface>
<bootproto>static</bootproto>
<device>eth2</device>
<ipaddr>ip_address_2</ipaddr>
<hwaddr>ee:ff:aa:bb:cc:dd</hwaddr>
<name>MY 3rd NETWORK</name>
<netmask>255.255.255.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
<interface>
<bootproto>static</bootproto>
<device>eth3</device>
<ipaddr>ip_address_3</ipaddr>
<hwaddr>dd:ee:ff:aa:bb:cc</hwaddr>
<name>MY 4th NETWORK</name>
<netmask>255.255.255.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
<interface>
<bootproto>static</bootproto>
<device>eth4</device>
<ipaddr>ip_address_4</ipaddr>
<hwaddr>cc:dd:ee:ff:aa:bb</hwaddr>
<name>MY 5th NETWORK</name>
<netmask>255.255.255.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
<interface>
<bootproto>static</bootproto>
<device>eth5</device>
<ipaddr>ip_address_5</ipaddr>
<hwaddr>bb:cc:dd:ee:ff:aa</hwaddr>
<name>MY 6th NETWORK</name>
<netmask>255.255.255.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
</interfaces>
...
답변1
~에 따르면AutoYaST 사양, NIC의 MAC 주소를 논리 인터페이스 이름에 매핑하려면 별도의 udev 규칙 목록이 있어야 합니다.
예를 들어 제어 파일은 다음과 같아야 합니다.
<networking>
<interfaces config:type="list">
<interface>
<bootproto>static</bootproto>
<device>eth0</device>
<ipaddr>ip.ad.dr.es</ipaddr>
<hwaddr>aa:bb:cc:dd:ee:ff</hwaddr>
<netmask>255.255.255.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
</interfaces>
<net-udev config:type="list">
<rule>
<name>eth0</name>
<rule>ATTR{address}</rule>
<value>aa:bb:cc:dd:ee:ff</value>
</rule>
</net-udev>
</networking>