- Table of Contents
-
- H3C Low-End Ethernet Switches Configuration Guide(V1.01)
- 01-Login Configuration Guide
- 02-VLAN Configuration Guide
- 03-IP Address Configuration Guide
- 04-Voice VLAN Configuration Guide
- 05-GVRP Configuration Guide
- 06-Ethernet Interface Basic Configuration Guide
- 07-Link Aggregation Configuration Guide
- 08-Port Isolation Configuration Guide
- 09-Port Security Configuration Guide
- 10-Port Binding Configuration Guide
- 11-MAC Address Table Management Configuration Guide
- 12-DLDP Configuration Guide
- 13-Auto Detect Configuration Guide
- 14-MSTP Configuration Guide
- 15-Routing Configuration Guide
- 16-Multicast Configuration Guide
- 17-802.1x Configuration Guide
- 18-AAA Configuration Guide
- 19-MAC Authentication Configuration Guide
- 20-VRRP Configuration Guide
- 21-ARP Configuration Guide
- 22-DHCP Configuration Guide
- 23-ACL Configuration Guide
- 24-QoS-QoS Profile Configuration Guide
- 25-Web Cache Redirection Configuration Guide
- 26-Mirroring Configuration Guide
- 27-IRF Configuration Guide
- 28-Cluster Configuration Guide
- 29-PoE-PoE Profile Configuration Guide
- 30-UDP Helper Configuration Guide
- 31-SNMP-RMON Configuration Guide
- 32-NTP Configuration Guide
- 33-SSH Configuration Guide
- 34-FTP and TFTP Configuration Guide
- 35-Information Center Configuration Guide
- 36-VLAN-VPN Configuration Guide
- 37-HWPing Configuration Guide
- 38-DNS Configuration Guide
- 39-Access Management Configuration Guide
- 40-Web Authentication Configuration Guide
- 41-IPv6 Management Configuration Guide
- 42-Smart link - Monitor Link Configuration Guide
- 43-VLAN Mapping Configuration Guide
- Related Documents
-
Title | Size | Download |
---|---|---|
03-IP Address Configuration Guide | 65.76 KB |
1 IP Address Configuration Guide
IP Address Configuration Guide·
Networking and Configuration Requirements
Sub IP Address Configuration Guide·
Networking and Configuration Requirements
IP Address Configuration Guide
IP addressing uses a 32-bit address to identify each host on a network. An example is 01010000100000001000000010000000 in binary. To make IP addresses in 32-bit form easier to read, they are written in dotted decimal notation, each being four octets in length, for example, 10.1.1.1 for the address just mentioned.
If you want to manage a remote Ethernet switch through network management or telnet, you need to configure an IP address for the remote switch and ensure that the local device and the remote switch are reachable to each other.
Network Diagram
Figure 1-1 Network diagram for IP address configuration
Networking and Configuration Requirements
As shown in Figure 1-1, a PC connects to a switch through the console port. To manage the switch through Telnet, assign IP address 192.168.0.1 and subnet mask 255.255.255.0 to VLAN-interface 1 of the switch.
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S5100-SI/EI series Ethernet switches |
Release 2200, Release 2201 |
All versions |
S3600-SI/EI series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S3100-EI series Ethernet switches |
Release 2104, Release 2107 |
All versions |
S3100-C-SI series Ethernet switches S3100-T-SI series Ethernet switches |
Release 0011, Release 2102, Release 2107 |
All versions |
S3100-TP-SI series Ethernet switches |
Release 2102, Release 2107 |
All versions( except S3100-52TP-SI) |
S3100-52TP-SI |
Release 2106, Release 2107 |
S3100-52TP-SI |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
# Configure the switch through the console port (omitted).
# Assign the IP address to VLAN-interface 1.
<Switch> system-view
[Switch] interface Vlan-interface 1
[Switch-Vlan-interface1] ip address 192.168.0.1 255.255.255.0
Complete Configuration
#
interface Vlan-interface 1
ip address 192.168.0.1 255.255.255.0
#
Precautions
Besides directly assigning an IP address to a VLAN interface, you may configure a VLAN interface to obtain an IP address through BOOTP or DHCP as alternatives. If you change the way an interface obtains an IP address, from manual assignment to BOOTP for example, the IP address obtained from BOOTP will overwrite the old one manually assigned.
Sub IP Address Configuration Guide
Network Diagram
Figure 1-2 Network diagram for sub IP address configuration
Networking and Configuration Requirements
As shown in the above figure, the port in VLAN 1 on Switch is connected to a LAN in which hosts belong to two network segments: 172.16.1.0/24 and 172.16.2.0/24. It is required to enable the hosts in the LAN to communicate with external networks through Switch, and to enable the hosts in the two network segments to communicate with each other.
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S5100-SI/EI series Ethernet switches |
Release 2200, Release 2201 |
All versions |
S3600-SI/EI series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
Assign a primary and secondary IP addresses to VLAN-interface 1 of Switch to ensure that all the hosts on the LAN can access external networks through Switch. Set Switch as the gateway on all the hosts of the two network segments to ensure that they can communicate with each other.
# Assign a primary IP address and a secondary IP address to VLAN-interface 1.
<Switch> system-view
[Switch] interface Vlan-interface 1
[Switch-Vlan-interface1] ip address 172.16.1.1 255.255.255.0
[Switch-Vlan-interface1] ip address 172.16.2.1 255.255.255.0 sub
# Set the gateway address to 172.16.1.1 on the hosts in subnet 172.16.1.0/24, and to 172.16.2.1 on the hosts in subnet 172.16.2.0/24.
# Ping Host B from Host A to verify the connectivity.
Complete Configuration
#
interface Vlan-interface 1
ip address 172.16.1.1 255.255.255.0
ip address 172.16.2.1 255.255.255.0 sub
#
Precautions
l You can assign up to seven IP addresses to an interface of the S5600 series Ethernet switches, five IP addresses to that of the S3600 series Ethernet switches and two IP addresses to that of the S5100 series Ethernet switches, the S3100-52P switch. Among these IP addresses assigned for each interface, only one is the primary IP address and the others are secondary IP addresses. A newly specified primary IP address overwrites the previous one.
l The primary and secondary IP addresses of an interface cannot reside on the same network segment; an IP address of a VLAN interface must not be on the same network segment as that of a loopback interface on a device.