156-215.80 · Question #280
When using GAiA, it might be necessary to temporarily change the MAC address of the interface eth 0 to 00:0C:29:12:34:56. After restarting the network the old MAC address should be active. How do…
The correct answer is C. As expert user, issue the command. A temporary MAC address change in GAiA requires an expert-mode CLI command because it modifies only the live running configuration and reverts automatically after a network restart.
Question
When using GAiA, it might be necessary to temporarily change the MAC address of the interface eth 0 to 00:0C:29:12:34:56. After restarting the network the old MAC address should be active. How do you configure this change?
Options
- AAs expert user, issue these commands:
- BEdit the file /etc/sysconfig/netconf.C and put the new MAC address in the field (conf
- CAs expert user, issue the command:
- DOpen the WebUI, select Network > Connections > eth0. Place the new MAC address in the field
How the community answered
(40 responses)- A8% (3)
- B3% (1)
- C75% (30)
- D15% (6)
Why each option
A temporary MAC address change in GAiA requires an expert-mode CLI command because it modifies only the live running configuration and reverts automatically after a network restart.
The expert-user commands described in this option imply a method that persists the configuration, meaning the MAC address would not automatically revert to the original after a network restart.
Editing /etc/sysconfig/netconf.C writes the MAC address into a persistent configuration file, so the change would survive a network restart and the original address would not be restored automatically.
Running a command such as 'ifconfig eth0 hw ether 00:0C:29:12:34:56' as an expert user applies the MAC address change only to the in-memory network state. Because this command does not write to any persistent configuration file, the original MAC address is restored automatically when the network service restarts, satisfying the requirement for a temporary change.
Configuring the MAC address via the GAiA WebUI (Network > Connections > eth0) also writes to persistent storage, causing the new MAC address to remain active after a network restart rather than reverting.
Concept tested: Temporary non-persistent MAC address change in GAiA OS
Source: https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_Gaia_AdminGuide/Topics-GAG/Network-Interfaces.htm
Topics
Community Discussion
No community discussion yet for this question.