H3C Low-End Ethernet Switches Configuration Guide(V1.01)

HomeSupportSwitchesH3C S3100 Switch SeriesConfigure & DeployConfiguration ExamplesH3C Low-End Ethernet Switches Configuration Guide(V1.01)
Table of Contents
Related Documents
03-IP Address Configuration Guide
Title Size Download
03-IP Address Configuration Guide 65.76 KB

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.

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网