Huawei Quidway S9300 Configuration Manual page 96

Terabit routing switch
Table of Contents

Advertisement

3 VLAN Configuration
[Quidway] interface vlanif 10
[Quidway-Vlanif10] ip address 10.10.10.1 24
[Quidway-Vlanif10] quit
[Quidway] interface vlanif 20
[Quidway-Vlanif20] ip address 20.20.20.1 24
[Quidway-Vlanif20] quit
Step 2 Configure SwitchA.
# Create VLANs.
<Quidway> system-view
[Quidway] vlan batch 10 20
# Add interfaces to the VLANs.
[Quidway] interface gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1] port link-type trunk
[Quidway-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 20
[Quidway-GigabitEthernet0/0/1] quit
[Quidway] interface ethernet 0/0/1
[Quidway-Ethernet0/0/1] port link-type access
[Quidway-Ethernet0/0/1] port default vlan 10
[Quidway-Ethernet0/0/1] quit
[Quidway] interface ethernet 0/0/2
[Quidway-Ethernet0/0/2] port link-type access
[Quidway-Ethernet0/0/2] port default vlan 20
[Quidway-Ethernet0/0/2] quit
Step 3 Verify the configuration.
On PC1 in VLAN 10, configure the default gateway address as the IP address 10.10.10.1/24 of
VLANIF 10.
On PC2 in VLAN 20, configure the default gateway address as the IP address 20.20.20.1/24 of
VLANIF 20.
After the configuration, PC1 in VLAN 10 can communicate with PC2 in VLAN 20.
----End
Configuration Files
Configuration file of the S9300
#
sysname Quidway
#
vlan batch 10 20
#
interface Vlanif10
ip address 10.10.10.1 255.255.255.0
#
interface Vlanif20
ip address 20.20.20.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
#
return
Configuration file of SwitchA
#
sysname Quidway
#
3-34
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Quidway S9300 Terabit Routing Switch
Configuration Guide - Ethernet
Issue 03 (2009-08-20)

Advertisement

Table of Contents
loading

Table of Contents