network interface dhcp

Configure a network interface to use DHCP. Using DHCP will automatically update the Luna appliance's system name servers and other network settings that are transmitted via DHCP.

CAUTION!   Do not specify DHCP if you intend to use network interface port bonding - a change to the leased IP address disrupts port bonding, which must be manually disabled and then reconfigured before it can be re-enabled.

NOTE   When DHCP is used, the appliance's IP address may change automatically, which may lead to certificate mismatches and client connection issues.

You cannot configure an interface that is a member of an active bond. You must first disable the bond. See network interface bonding

NOTE   Running this command changes the interface state and causes the ctc service to restart (see Crypto Traffic Controller for QoS).

User Privileges

Users with the following privileges can perform this command:

>Admin

>Operator

Syntax

network interface dhcp -device <netdevice> [-force] [-ipv6]

Argument(s) Shortcut Description
-device <netdevice> -d

Specifies the network device you want to configure.

Valid values: eth0, eth1, eth2, eth3

-force -f Force the action without being prompted.
-ipv6 -i Specifies that you want to obtain an IPv6 address via DHCPv6.

Example

DHCP with IPv4

lunash:>network interface dhcp -device eth1

NOTICE: The network connection for device eth3 will be restarted for new network settings to take effect.
If you are sure that you wish to restart the device connection, then type 'proceed', otherwise type 'quit'
> proceed
Proceeding...

Command Result : 0 (Success)



lunash:>network show

   Hostname         : sa7pw
   Name Server(s)   : 192.20.10.20      192.16.2.14
   Search Domain(s) : <not set>

Interface settings and status

   HW Address (eth1)    : 00:15:B2:A9:B7:85
   IP Address (eth1)    : 192.20.11.84/24
   Mask (eth1)          : 255.255.255.0
   Gateway (eth1)       : 192.20.11.10
   DNS (eth1)           :
   DNS Search (eth1)    :
   IP Protocol (eth1)   : IPv4
   Protocol (eth1)      : DHCP
   Auto Connect (eth1)  : Yes
   Activated (eth1)     : Yes
   Link detected (eth1) : Yes


Command Result : 0 (Success)

DHCP with IPv6

lunash:>network interface dhcp -device eth1 -ipv6

NOTICE: The network connection for device eth1 will be restarted for new network settings to take effect.
If you are sure that you wish to restart the device connection, then type 'proceed', otherwise type 'quit'
> proceed
Proceeding...

Command Result : 0 (Success)



lunash:>network show

   Hostname         : sa7pw
   Name Server(s)   : 192.20.10.20      192.16.2.14
   Search Domain(s) : <not set>

Interface settings and status

   HW Address (eth1)    : 00:15:B2:A9:B7:85
   IP Address (eth1)    : 2001:db3:8ba3::8a5e:3f0:7384/64
   Mask (eth1)          : 2001:db3:8ba3:::/64
   Gateway (eth1)       : 2001:db3:a348::6b3a:24:7336
   DNS (eth1)           :
   DNS Search (eth1)    :
   IP Protocol (eth1)   : IPv6
   Protocol (eth1)      : DHCP
   Auto Connect (eth1)  : Yes
   Activated (eth1)     : Yes
   Link detected (eth1) : Yes


Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
fe80::/64                      ::                         U    256 0     0 eth1
::/0                           ::                         !n   -1  1     1 lo
fe80::215:b2ff:fea9:b785/128   ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 1     0 eth1
::/0                           ::                         !n   -1  1     1 lo


Command Result : 0 (Success)