network interface
Access sub-commands that allow you to configure the appliance network interface ports.
NOTE If the network service has been stopped using the service stop network command, all network commands will fail.
Syntax
network interface
bonding
delete
dhcp
slaac
speed
static
Argument(s) | Shortcut | Description |
---|---|---|
bonding | b | Configure the network interface port bonding. See network interface bonding. |
delete | del | Delete the network configuration for a network interface port. See network interface delete. |
dhcp | dh | Set dynamic IP configuration. See network interface dhcp. |
slaac | sl | Set SLAAC IPv6 Configuration. See network interface slaac. |
speed | sp | Set the speed/duplex mode on a network interface. See network interface speed. |
static | st |
Set static IP configuration. See network interface static. This is the default. If you do not specify an interface type, static is assumed. |
network interface -device <netdevice> -ip <IP_address> -netmask <IP_or_prefixlength> [-gateway <IP_address>] [-ipv6] [-force]
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 prompting. |
-gateway <IP_address> | -g |
Specifies the address of the network gateway. >If you are configuring an IPv4 address, you must provide an IPv4 address for the gateway. > If you are configuring an IPv6 address, you must provide an IPv6 address for the gateway. |
-ip <IP_address> | -i |
Specifies the IP address you want to assign to the device. You can specify an IPv4 or IPv6 address. If you are configuring an IPv6 address, you must also include the -ipv6 flag in the command. When entering an IPv6 address, you can use full or shorthand syntax. For example, the following notations are equivalent: >2001:0db3:8ba3:0000:0000:8a5e:03f0:7384 >2001:db3:8ba3::8a5e:3f0:7384 |
-ipv6 | -ipv |
Specifies that the address specified using the -ip parameter is an IPv6 address. |
-netmask <IP_or_prefixlength> | -n |
Specifies the network mask for the interface. > If you are configuring an IPv4 address, you must specify the network mask in dotted-decimal format (for example, 255.255.255.0) > If you are configuring an IPv6 address, you must specify the prefix length (for example, 64). |