set interface ipv4-address

Description

Configures an IPv4 address and DNSv4 servers on the local interface / connection.

Syntax

set interface <name> ipv4-address <ipv4-address> subnet-mask <subnet-mask> default-gw <default-gw> [ dns-primary <dns-primary> [ dns-secondary <dns-secondary> [ dns-tertiary <dns-tertiary> ] ] ]

set interface <name> ipv4-address <ipv4-address> mask-length <mask-length> default-gw <default-gw> [ dns-primary <dns-primary> [ dns-secondary <dns-secondary> [ dns-tertiary <dns-tertiary> ] ] ]

Parameters

Parameter

Description

default-gw

Configures the default gateway

dns-primary

Configures the IPv4 address of the first DNS server

dns-secondary

Configures the IPv4 address of the second DNS server

dns-tertiary

Configures the IPv4 address of the third DNS server

ipv4-address

Configures the IPv4 address

mask-length

Configures the subnet mask length

name

Specifies the interface / connection

Press the TAB key to see the available options.

subnet-mask

Configures the subnet mask

Example

set interface My_Network ipv4-address 192.168.1.100 subnet-mask 255.255.255.0 default-gw 192.168.1.1 dns-primary 192.168.1.1 dns-secondary 192.168.1.2 dns-tertiary 192.168.1.3