HP DL385 XenServer Administrator's Guide 4.1.0 - Page 43

Changing networking configuration options

Page 43 highlights

Networking 4. Once storage resources are available via the NIC, create the appropriate storage repositories. To change an unmanaged NIC to managed, use the pif-introduce command. Note Use of the pif-scan command will reset all NICs on the host to managed. 4.2.7. Changing networking configuration options 4.2.7.1. Hostname The system host-name is defined in the pool-wide database and modified using the xe host-set-hostname-live CLI command as follows: xe host-set-hostname-live uuid= host-name=example The underlying control domain hostname will also change dynamically to reflect the new hostname. 4.2.7.2. DNS servers To add or remove DNS servers in the IP addressing configuration of a XenServer Host, use the pif-reconfigure-ip command. For example, for a PIF with a static IP: pif-reconfigure-ip uuid= mode=static DNS= 4.2.7.3. XenServer Host IP address configuration Network interface configuration can be manipulated via the xe command-line interface (CLI). Unlike earlier XenServer versions, the underlying network configuration scripts should not be modified directly without using the CLI. To modify the IP address configuration of a PIF, use the pif-reconfigure-ip CLI command. See Section 5.4.10.4, "pif-reconfigure-ip" for details on the parameters of the pif-reconfigure-ip command. Note See Section 4.3.3, "Changing XenServer Host IP address configuration in resource pools" for details on changing host IP addresses in resource pools. 4.2.7.4. Management interface When XenServer is installed on a host with multiple NICs, one NIC is selected for use as the management interface. The management interface is used for XenCenter connections to the host and for host-to-host communication. Procedure 4.6. To change the NIC used for the management interface 1. Use the pif-list command to determine which PIF corresponds to the NIC desired for use as the management interface. The UUID of each PIF will be returned. 37

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108

Networking
37
4.
Once storage resources are available via the NIC, create the appropriate storage repositories.
To change an unmanaged NIC to managed, use the
pif-introduce
command.
Note
Use of the
pif-scan
command will reset all NICs on the host to managed.
4.2.7. Changing networking configuration options
4.2.7.1. Hostname
The system host-name is defined in the pool-wide database and modified using the
xe host-set-host-
name-live
CLI command as follows:
xe host-set-hostname-live uuid=<host-uuid> host-name=example
The underlying control domain hostname will also change dynamically to reflect the new hostname.
4.2.7.2. DNS servers
To add or remove DNS servers in the IP addressing configuration of a XenServer Host, use the
pif-recon-
figure-ip
command. For example, for a PIF with a static IP:
pif-reconfigure-ip uuid=<PIF UUID> mode=static DNS=<new DNS IP>
4.2.7.3. XenServer Host IP address configuration
Network interface configuration can be manipulated via the xe command-line interface (CLI). Unlike earlier
XenServer versions, the underlying network configuration scripts should not be modified directly without
using the CLI.
To modify the IP address configuration of a PIF, use the pif-reconfigure-ip CLI command. See Sec-
tion 5.4.10.4, “pif-reconfigure-ip” for details on the parameters of the
pif-reconfigure-ip
command.
Note
See Section 4.3.3, “Changing XenServer Host IP address configuration in resource pools” for details
on changing host IP addresses in resource pools.
4.2.7.4. Management interface
When XenServer is installed on a host with multiple NICs, one NIC is selected for use as the management
interface. The management interface is used for XenCenter connections to the host and for host-to-host
communication.
Procedure 4.6. To change the NIC used for the management interface
1.
Use the
pif-list
command to determine which PIF corresponds to the NIC desired for use as the man-
agement interface. The UUID of each PIF will be returned.