3 ip configuration examples, 1 configuration examples of ipv4 – Accton Technology ES4626 User Manual

Page 296

Advertising
background image

296

Default

None

Usage Guide

This command can not clear static neighbor.

Example

Clear neighbor list.

Switch #clear ipv6 neighbors

9.2.3 IP Configuration Examples

9.2.3.1 Configuration Examples of IPv4

Fig 9-1 IPv4 configuration example

The user’s configuration requirements are: Configure IPv4 address of different

network segments on SwitchA and SwitchB, configure static routing and validate

accessibility using ping function.

Configuration Description:

1、 Configure two vlans on SwitchA, namely, vlan1 and vlan2.

2、 Configure IPv6 address 192.168.1.1 255.255.255.0 in vlan1 of SwitchA, and

configure IPv4 address 192.168.2.1 255.255.255.0 in vlan2.

3、 Configure two vlans on SwitchB, respectively vlan2 and vlan3

4、 Configure IPv4 address 192.168.2.2 255.255.255.0 in vlan2 of SwitchB, and

configure IPv4 address 192.168.3.1 255.255.255.0 in vlan2.

5、 The IPv4 address of PC-A is 192.168.1.100, and the IPv4 address of PC-B is

192.168.3.100

6、 Configure static routing 192.168.3.0/24 on SwitchA, and configure static routing

192.168.1.0/24 on SwitchB.

7、 Ping each other among PCs.

Note: First make sure PC-A and Switch can access each other by ping, and PC-B

and SwitchB can access each other by ping.

The configuration procedure is as follows:

SwitchA(Config)#interface vlan 1

SwitchA(Config-if-Vlan1)#IP address 192.168.1.1 255.255.255.0

SwitchA

PC-A

PC-B

SwitchB

Advertising
This manual is related to the following products: