他のネットワークパラメータを設定せずに、「インタフェース」ファイルにMACアドレスを設定してください。

他のネットワークパラメータを設定せずに、「インタフェース」ファイルにMACアドレスを設定してください。

Debian Wheezy では、/etc/network/interfacesファイルで永続的なネットワーク設定が行われます。または、他のネットワークパラメータを設定せずにhwaddressインターフェイスを設定できますか?それは次のとおりです。addressnetmask

root@1:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0
hwaddress ether DE:AD:BE:EF:69:01

# The primary network interface
auto eth0.100
iface eth0.100 inet static
        address 10.1.1.2
        netmask 255.255.255.0
        network 10.1.1.0
        broadcast 10.1.1.255
        gateway 10.1.7.1
root@1:~# 

ベストアンサー1

私はそれを探していますiface eth0 inet manual。これにより、次の構成が可能になります。

root@1:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
        hwaddress ether DE:AD:BE:EF:69:01

# The primary network interface
auto eth0.100
iface eth0.100 inet static
        address 10.1.1.2
        netmask 255.255.255.0
        network 10.1.1.0
        broadcast 10.1.1.255
        gateway 10.1.7.1
root@1:~# 

おすすめ記事