set interface ipv4-address

In the R81.10.X releases, this command is available starting from the R81.10.00 version.

Description

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

See:

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

name

Specifies the interface / connection.

Press the TAB key to see the available options.

ipv4-address

Configures the IPv4 address.

subnet-mask

Configures the IPv4 subnet mask.

mask-length

Configures the IPv4 subnet mask length.

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.

Example Command

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