close

Server with BMC:通常會有一組虛擬的USB NIC(Redfish over IP)是直通BMC
,透過dmitdecode查得BMC端的IP是169.254.0.17,查不到是bug... (不過如果在某外商,大概RD又會推託說是WAD了ㄏㄏ)

BIOS: AMI Code Base
BMC: AMI Code Base

root@test:~# dmidecode -t 42
Handle 0x005C, DMI type 42, 131 bytes
Management Controller Host Interface
        Host Interface Type: Network
        Device Type: USB
        idVendor: 0x046b
        idProduct: 0xffb0
        Protocol ID: 04 (Redfish over IP)
                Service UUID: 69710872-bfde-11d3-01fd-b4bb090d62ac
                Host IP Assignment Type: Static
                Host IP Address Format: IPv4
                IPv4 Address: 169.254.0.18
                IPv4 Mask: 255.255.0.0
                Redfish Service IP Discovery Type: Static
                Redfish Service IP Address Format: IPv4
                IPv4 Redfish Service Address: 169.254.0.17
                IPv4 Redfish Service Mask: 255.255.0.0
                Redfish Service Port: 443
                Redfish Service Vlan: 0
                Redfish Service Hostname:

在Linux OS底下會看到,AMI這組虛擬NIC,但讓人覺得討厭的是它每次AC起來後的MAC Address是不一樣的:
e.g.: 72:cd:18:24:3e:88 , 下一次斷電開機會是69:ac:02:34:e2:a1,因此ifconfig -a/ip a會發現看到的NIC名稱會跟著變

 

為了讓每次開機都能順利自動設定好IP,在Netplan config新增一組任意名稱的nic id
,底下利用match去做設定,我是拿driver來設條件,其他條件請參照底下Ref的網址
    id0:
      match:
        driver: cdc_ether
      dhcp4: no
      addresses:
        - 169.254.0.10/24          <<我習慣用這組169.254.0.10/24,會通就好了

E.g.:
Edit: /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
  ethernets:
    eth0:
      dhcp4: true
    id0:
      match:
        driver: cdc_ether
      dhcp4: no
      addresses:
        - 169.254.0.10/24
  version: 2

 

Ref: 
https://manpages.ubuntu.com/manpages/focal/man5/netplan.5.html
https://netplan.io/design

arrow
arrow
    創作者介紹
    創作者 吾給力 的頭像
    吾給力

    吾給力的部落格

    吾給力 發表在 痞客邦 留言(0) 人氣()