EasyManua.ls Logo

Ruijie RG-S2600G-I Series - Page 358

Ruijie RG-S2600G-I Series
1192 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CLI Reference IP Address Configuration Commands
Class A IP address is “255.0.0.0”. You can divide a network into different subnets
using the network mask. Subnet division means to use the bits in the host address
part as the network address part, so as to reduce the capacity of a host and
increase the number of networks. In this case, the network mask is called subnet
mask.
The RGOS software supports multiple IP address for an interface, in which one is
the primary IP address and others are the secondary IP addresses. Theoretically,
there is no limit for the number of secondary IP addresses. The primary IP address
must be configured before the secondary IP addresses. The secondary IP address
and the primary IP address must belong to the same network or different networks.
Secondary IP addresses are often used in network construction. Typically, you can
try to use secondary IP addresses in the following situations:
A network hasn‟t enough host addresses. At present, the LAN should be a
class C network where 254 hosts can be configured. However, when there are
more than 254 hosts in the LAN, another class C network address is
necessary since one class C network is not enough. Therefore, the device
should be connected to two networks and multiple IP addresses should be
configured.
Many older networks are layer 2-based bridge networks that have not been
divided into different subnets. Use of secondary IP addresses will make it very
easy to upgrade this network to an IP layer-based routing network. The
equipment configures an IP address for each subnet.
Two subnets of a network are separated by another network. You can create
a subnet for the separated network, and connect the separated subnet by
configuring a secondary IP address. One subnet cannot appear on two or
more interfaces of a device.
In general, the layer-2 switch is configured a default gateway with the ip
default-gateway command. Sometimes the layer-2 switch may be managed
through the telnet, and the management IP and default gateway of the layer-2
switch needed to be modified. In this case, after configuring any one of the ip
address and ip default-gateway command, the other cannot be configured any
more due to the configuration change which causes failing to access this device
through the network. So you need to use the keyword gateway in the ip address
command to modify both the management IP and default gateway. The keyword
gateway is not in the output of show running config, but in the output of ip
default-gate command.
Configuration
Examples
In the example below, the primary IP address is configured as 10.10.10.1, and the
network mask is configured as 255.255.255.0.
ip address 10.10.10.1 255.255.255.0
In the example below, the default gateway is configured as 10.10.10.254
ip address 10.10.10.1 255.255.255.0 gateway 10.10.10.254
Related
Command
Description

Table of Contents

Related product manuals