搜尋此網誌

2011年10月22日 星期六

EFI Shell commands -- IfConfig(修改預設UEFI網路堆疊的IP位址)

IfConfig (c) Intel Corporation 2006
  modify the default IP address of UEFI network stack

To list the current address:
  IfConfig -l [Name]
    --Show the configuration for all or the interface

To set the default address use:
  IfConfig -s dhcp [perment]
    --Use the EFI_DHCP4_PROTOCOL to request address dynamically

  IfConfig -s [perment]
    --Use the static IP4 address configuration

  perment is optional. If present, the configuration survives
  the network stack reload. Otherwise, it is for this time only

To clear the current address:
  IfConfig -c [Name]
    --Clear the configuration for all or the interface
      although the configure is cleared, the network stack
      will fall back to the DHCP as default

Other:
  IfConfig -?
    --Show this help message

Example:
IfConfig -s eth0 dhcp
IfConfig -l eth0
IfConfig -s eth0 static 192.168.0.5 255.255.255.0 192.168.0.1 perment

1 則留言:

  1. 執行ifoncif -s etho DHCP , 也load了 Ip4ConfigDxe.efi,請問如果出現 gEfiIp4ConfigProtocolGuid not found,有什麼方項可以debuga嗎?

    回覆刪除