3.1.2 IP Configuration
Use this command to configure the IP basic settings, control IP interfaces, and IP routes. The maximum number of interfaces supported is 8, and the maximum number of routes is 32.
Command Syntax:
ip name-server [ <order> ] { <v_ipv4_ucast> | { <v_ipv6_ucast> [ interface vlan <v_vlan_id_static> ] | dhcp [ ipv4 | ipv6 ] [ interface vlan <v_vlan_id_dhcp> ] }
ip dns proxy Argument | Description | |
Parameter |
| Preference of DNS server. The default selection is 0. |
| A valid IPv4 unicast address | |
| A valid IPv6 unicast address | |
| Dynamic Host Configuration Protocol | |
Default | No DNS server configured | |
Mode | Global Configuration mode | |
Usage | Set the DNS for resolving domain names. To return to the default, use the 'no' version of the command. When the DNS proxy is required, use the command to enable the DNS proxy service. | |
Example | Example 1: DNS Server 0 setting is derived from any DHCPv4 VLANs-ID. Example 2: DNS Server 1 configured as a static IPv4 address. Example 3: DNS Server 1 setting is derived from DHCPv4 VLANs-ID1. | |
Use this command to add IPv4, IPv6 interface.
Command Syntax:
ip address { { <address> <netmask> } | { dhcp [ fallback <fallback_address> <fallback_netmask> [ timeout <fallback_timeout> ] ] [ client-id { <port_type> <client_id_interface> | ascii <ascii_str> | hex <hex_str> } ] [ hostname <hostname> ] } }
ipv6 address <subnet>
ipv6 address { autoconfig | dhcp [ rapid-commit ] }Argument | Description | |
Parameter |
| IPv4 address |
| IP netmask | |
| Enable Dynamic Host Configuration Protocol | |
| DHCP fallback settings | |
| DHCP client identifier | |
| DHCP host name | |
| IPv6 prefix x:x::y/z | |
| Enable IPv6 Stateless Auto-configuration | |
| Enable DHCPv6 client Rapid-Commit option | |
Default | N.A | |
Mode | VLAN Interface Configuration mode | |
Usage | Add VLAN interface and set all IPv4, IPv6 parameters. To disable the selected VLAN interface, use the ‘no’ version of the command. To remove it completely, use | |
Example | Example 1: Set VLAN2 static IP address to 192.168.1.50 mask length 24. Example 2: Add VLAN 3 and set it to get IP address from DHCP using MAC of port 1 as Client ID with a hostname "test". | |
Use this command to add new IP route.
Command Syntax:
ip route <v_ipv4_addr> <v_ipv4_netmask> { <v_ipv4_gw> | blackhole } [ distance <v_distance> ]Argument | Description | |
Parameter |
| Network |
| Netmask | |
| Gateway | |
| Create a blackhole route (all traffic to the network is discarded) | |
| Distance value for this route | |
Default | N.A | |
Mode | Global Configuration mode | |
Usage | To route all unknown destination IPs to default gateway, use the following parameters: Network = 0.0.0.0, Netmask = 0.0.0.0, and Distance = 1. To remove the route, use | |
Example | Example 1: Add IP route to gateway 192.168.1.1. Example 2: Remove IP route. | |
