How Is the Inter-VLAN Communication Fault Rectified?
The VLANIF interface is not Up.
Run the display interface vlanif vlan-id to check the current state and Line protocol current state fields.
<HUAWEI> display interface vlanif 2 Vlanif2 current state : UP Line protocol current state : UP Last line protocol up time : 2014-12-26 11:09:08 UTC-08:00 Description: Route Port,The Maximum Transmit Unit is 1500 Internet Address is 10.1.1.2/24 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc41-3a64 Current system time: 2014-12-26 11:09:12-08:00 Input bandwidth utilization : -- Output bandwidth utilization : --
If the value of any one of the two fields is DOWN, the VLANIF interface is Down. Rectify this fault according to Table 4-11.Table 4-11 Common causes and solutions to the VLANIF interface Down eventCommon Cause
Solution
The VLAN corresponding to the VLANIF interface is not created.
Run the vlan vlan-id command to create a VLAN corresponding to the VLANIF interface.
The interface is not added to the VLAN.
NOTE:- The port trunk pvid vlan vlan-id command only configures the PVID on a trunk interface, but does not add a trunk interface to a VLAN.
- The port hybrid pvid vlan vlan-id command only configures the PVID on a hybrid interface, but does not add a hybrid interface to a VLAN.
Run the following commands as required.- Run the port default vlan vlan-id command in the interface view to add an access interface to a VLAN.
- Run the port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all } command in the interface view to add a trunk interface to a VLAN.
- You can add a hybrid interface to a VLAN in tagged or untagged mode. Run the port hybrid tagged vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all } command to add a hybrid interface to a VLAN in tagged mode, or run the port hybrid untagged vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all } command to add a hybrid interface to a VLAN in untagged mode.
The physical status of all interfaces added to the VLAN is Down.
Rectify this fault. A VLANIF interface goes Up as long as one interface in the VLAN is Up.
No IP address is assigned to the VLANIF interface.
Run the ip address ip-address { mask | mask-length } command to configure an IP address for the VLANIF interface.
The VLANIF interface is shut down. That is, the value of current state is Administratively DOWN.
Run the undo shutdown command in the VLANIF interface view to start the VLANIF interface.
No corresponding routing entry is generated.
When inter-VLAN communication is implemented across Layer 3 switches, the routing entries must exist on the switches. As shown in Figure 4-39, the routing entry with destination IP address 10.2.1.0/24 and next hop address 10.1.4.2 must exist on Switch1, and the routing entry with destination IP address 10.1.1.0/24 and next hop address 10.1.4.1 must exist on Switch2.
If routing entries do not exist, run the ip route-static command to configure a static route.- Switch1: ip route-static 10.1.2.0 255.255.255.0 10.1.4.2
- Switch2: ip route-static 10.1.1.0 255.255.255.0 10.1.4.1