CLI: IP

You can use the ip command to configure IPInternet protocol 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.

To configure a default IPv4 gateway:

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

  • <IPv4 address> - Set the next hop IP address
  • <interface> - Set the interface name

To configure a DNSDomain Name Server 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>

  • <network-prefix> - IP address
  • <netmask> - e.g. 255.255.255.0
  • <mask-length> - e.g. /24

To configure global DHCPDynamic Host Configuration Protocol settings:

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

  • dhcp default-gateway yield-to-static - Configure DHCP settings for the default gateway. Do not install a default gateway from DHCP if there is already a statically configured one.
  • dhcp hostname <homename> - Specify the hostname to be sent durign DHCP client negotiation (if send-hostname is enabled)
  • dhcp primary-intf <interface-name> - Set the interface from which non-interface-specific configuration (resolver and routes) will be accepted via DHCP
  • dhcp send-hostname - Enable the DHCP client to send a hostname during negotiation

To configure netflow export:

For more information refer to CLI: Netflow.

ip flowthe network traffic between network objects-export

EXAMPLE

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

EXAMPLE

Enable IPv6 autoconfig (SLAAC) on interface eth1

interface eth1 ipv6 address autoconfig

EXAMPLE

Configure a DNS server

ip name-server 192.168.0.1