Ip Default-Gateway - Edge-Core ECS4120-28F Reference Manual

28/52-port layer 2+ gigabit ethernet switch
Hide thumbs Also See for ECS4120-28F:
Table of Contents

Advertisement

Chapter 30
| IP Interface Commands
IPv4 Interface

ip default-gateway

Example
In the following example, the device is assigned an address in VLAN 1.
Console(config)#interface vlan 1
Console(config-if)#ip address 192.168.1.5 255.255.255.0
Console(config-if)#
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 (839)
ip default-gateway (852)
ipv6 address (863)
This command specifies the default gateway for destinations not found in the 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
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
ip route
– 852 –
command to ensure that

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ecs4120-28f-iEcs4120-28tEcs4120-28pEcs4120-52t

Table of Contents