Command Line (CLI) Reference > CLI Commands > IP

CLI: IP

You can use the ip command to configure IP network settings.

Note

  • To configure interface specific settings (e.g. address or spedd/duplex/mtu), use the "interface" command.
  • To configure the IPv6 settings, use the "ipv6" command.

Configuring IP network settings

To configure a default IPv4 gateway:

ip default-gateway {<IPv4 address>|<interface>}

To configure a DNS server:

ip name-server <IPv4 or IPv6 address>

To configure the kernel neighbour table size:

ip neighbour size <size>

To ensure a static host mapping for the current hostname:

ip map-hostname

To add a domain name to use when resolving hostnames:

ip domain-list <domain-name>

To add a static IPv4 route:

ip route <network-prefix> [{<netmask>|<mask-length>} <next hop IP address or interface name>

To configure global DHCP settings:

ip dhcp {default-gateway|hostname|primary-intf|send-hostname}

To configure netflow export, see Netflow.

ip flow-export

E X A M P L E

Configure eth1 with address 192.168.0.98 /24, gateway 192.168.0.1 and Bridge br1 enabled.

interface eth1 ip address 192.168.0.98 /24

ip default-gateway 192.168.0.1

bridge br1 enable

E X A M P L E

Enable IPv6 autoconfig (SLAAC)  on interface eth1

interface eth1 ipv6 address autoconfig

E X A M P L E

Configure a DNS server

ip name-server 192.168.0.1