ECS4110-28T_Management Guide

Table Of Contents
C
HAPTER
46
| IP Interface Commands
IPv4 Interface
– 1424
This example assigns an IP address to VLAN 2 using a classless network
mask.
Console(config)#interface vlan 2
Console(config-if)#ip address 10.2.2.1/24
Console(config-if)#
RELATED COMMANDS
ip dhcp restart client (1413)
ip default-gateway (1424)
ipv6 address (1434)
ip default-gateway This command specifies the default gateway for destinations not found in
local routing tables. Use the no form to remove a default gateway.
SYNTAX
ip default-gateway gateway
no ip default-gateway
gateway - IP address of the default gateway
DEFAULT SETTING
No default gateway is established.
COMMAND MODE
Global Configuration
COMMAND USAGE
The default gateway can also be defined using the following Global
configuration command: ip route 0.0.0.0 0.0.0.0 gateway-address.
Static routes can also be defined using the ip route command to ensure
that traffic to the designated address or subnet passes through a
preferred gateway.
A default gateway can only be successfully set when a network
interface that directly connects to the gateway has been configured on
the router.
The same link-local address may be used by different interfaces/nodes
in different zones (RFC 4007). Therefore, when specifying a link-local
address for a default gateway, include zone-id information indicating
the VLAN identifier after the % delimiter. For example, FE80::7272%1
identifies VLAN 1 as the interface.