| HCNA-11 利用三层交换机实现VLAN间路由
 
 
 <Huawei>system-view [Huawei]sysnamesw1 [sw1]vlan10 [sw1-vlan10]descriptionshichang [sw1-vlan10]vlan20 [sw1-vlan20]descriptioncaiwu [sw1-vlan20]quit [sw1]port-groupgroup-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/2 [sw1-port-group]porthybrid pvid vlan 10  // [sw1-port-group]porthybrid untagged vlan 10 [sw1-port-group]quit [sw1]port-groupgroup-member GigabitEthernet 0/0/3 to GigabitEthernet 0/0/4 [sw1-port-group]porthybrid pvid vlan 20 [sw1-port-group]porthybrid untagged vlan 20 [sw1-port-group]quit [sw1]interfacevlanif 10 [sw1-Vlanif10]ipaddress 172.16.10.1 24 [sw1-Vlanif10]quit [sw1]interfacevlanif 20 [sw1-Vlanif20]ipaddress 172.16.20.1 24 [sw1-Vlanif20]quit [sw1]displayip interface brief *down:administratively down ^down:standby (l):loopback (s):spoofing The numberof interface that is UP in Physical is 4 The numberof interface that is DOWN in Physical is 1 The numberof interface that is UP in Protocol is 3 The numberof interface that is DOWN in Protocol is 2   Interface                         IP Address/Mask      Physical  Protocol   MEth0/0/1                         unassigned           down       down      NULL0                             unassigned           up         up(s)      Vlanif1                           unassigned           up         down       Vlanif10                          172.16.10.1/24       up         up         Vlanif20                          172.16.20.1/24       up         up      [sw1]displayport vlan active T=TAGU=UNTAG ------------------------------------------------------------------------------- Port                Link Type    PVID   VLAN List ------------------------------------------------------------------------------- GE0/0/1             hybrid       10     U: 1 10 GE0/0/2             hybrid       10     U: 1 10 GE0/0/3             hybrid       20     U: 1 20 GE0/0/4             hybrid       20     U: 1 20 …… [sw1]quit <sw1>save |