Configuration procedure, Verifying the configuration – H3C Technologies H3C S12500 Series Switches User Manual

Page 18

Advertising
background image

5

Figure 4 Network diagram

Configuration procedure

1.

Configure Switch A:
# Create VLAN 5 and assign GigabitEthernet 3/0/1 to it.

<SwitchA> system-view

[SwitchA] vlan 5

[SwitchA-vlan5] port gigabitethernet 3/0/1

# Create VLAN 10 and assign GigabitEthernet 3/0/2 to it.

[SwitchA-vlan5] vlan 10

[SwitchA-vlan10] port gigabitethernet 3/0/2

[SwitchA-vlan10] quit

# Create VLAN-interface 5 and configure its IP address as 192.168.0.10/24.

[SwitchA] interface vlan-interface 5

[SwitchA-Vlan-interface5] ip address 192.168.0.10 24

[SwitchA-Vlan-interface5] quit

# Create VLAN-interface 10 and configure its IP address as 192.168.1.20/24.

[SwitchA] interface vlan-interface 10

[SwitchA-Vlan-interface10] ip address 192.168.1.20 24

[SwitchA-Vlan-interface10] return

2.

Configure the default gateway of PC A as 192.168.0.10.

3.

Configure the default gateway of PC B as 192.168.1.20.

Verifying the configuration

1.

The PCs can ping each other.

2.

Display brief information about Layer 3 interfaces on Switch A to verify the configuration.

<SwitchA> display ip interface brief

*down: administratively down

(s): spoofing

Interface Physical Protocol IP Address Description

Vlan5 up up 192.168.0.10 Vlan-inte...

Vlan10 up up 192.168.1.20 Vlan-inte...

Advertising
This manual is related to the following products: