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
Содержание RG-S2600G-I Series
Страница 1: ...1 CLI Reference Guide RG S2600G I Series Switches RGOS 10 4 3b16...
Страница 5: ...5...
Страница 192: ...CLI ReferenceInterface Configuration Commands Interface Configuration Commands Platform Description...
Страница 452: ...CLI Reference DHCP Configuration Commands commands clear ip dhcp server statistics Delete the DHCP server statistics...
Страница 505: ...CLI Reference TCP Configuration Commands Related commands Command Description...
Страница 513: ...CLI Reference IPv4 REF Configuration Commands Platform description N A Command history Version Description...
Страница 514: ...IP Routing Configuration Commands 1 IP Routing Configuration Commands...
Страница 527: ...Multicast Configuration Commands 1 IGMP Snooping Configuration Commands 2 MLD Snooping Configuration Commands...
Страница 642: ...CLI Reference TACACS Configuration Commands host...
Страница 652: ...CLI Reference 802 1X Configuration Commands Ruijie config if end...
Страница 744: ...CLI Reference CPU Protection Configuration Commands Caution This command is not supported on S3760 series...
Страница 773: ...CLI Reference IPSource Guard Configuration Commands Platform description This command is supported on all switches...
Страница 776: ...CLI Reference ND Snooping Configuration Commands...
Страница 901: ...CLI Reference NFPP Configuration Commands...
Страница 902: ...ACL QOS Configuration Commands 1 ACL Configuration Commands 2 QoS Configuration Commands...
Страница 999: ...CLI Reference RLDP Configuration Command Command mode Privileged EXEC mode...
Страница 1004: ...CLI Reference DLDP Configuration Commands Ruijie config if FastEthernet 0 0 clear dldp 20 1 1 1 10 1 1 1...
Страница 1005: ...CLI Reference DLDP Configuration Commands...
Страница 1146: ...CLI Reference VSU Configuration Commands Examples Ruijie vsu conver to stack Related Commands Command Description N A N A...
Страница 1191: ...CLI Reference Guide RSPAN Configuration Commands Platform Description N A...
Страница 1192: ...CLI Reference Guide...