练习:
练习:
[Huawei]dis interface Ethernet 0/0/1
Ethernet0/0/1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID : 1, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-ccdb-50f3
Last physical up time : 2013-08-09 15:58:47 UTC-08:00
Last physical down time : 2013-08-09 15:53:46 UTC-08:00
Current system time: 2013-08-09 16:00:02-08:00
Hardware address is 4c1f-ccdb-50f3
Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
Input: 0 bytes, 0 packets
Output: 4046 bytes, 34 packets
Input:
Unicast: 0 packets, Multicast: 0 packets
Broadcast: 0 packets
Output:
Unicast: 0 packets, Multicast: 34 packets
Broadcast: 0 packets
Input bandwidth utilization : 0%
Output bandwidth utilization : 0%
[Huawei]dis vlan
The total number of vlans is : 4
--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
--------------------------------------------------------------------------------
VID Type Ports
--------------------------------------------------------------------------------
1 common UT:Eth0/0/1(U) Eth0/0/2(U) Eth0/0/3(U) Eth0/0/4(U)
Eth0/0/5(D) Eth0/0/6(D) Eth0/0/7(D) Eth0/0/8(D)
Eth0/0/9(D) Eth0/0/10(D) Eth0/0/11(D) Eth0/0/12(D)
Eth0/0/13(D) Eth0/0/14(D) Eth0/0/15(D) Eth0/0/16(D)
Eth0/0/17(D) Eth0/0/18(D) Eth0/0/19(D) Eth0/0/20(D)
Eth0/0/21(D) Eth0/0/22(D) GE0/0/1(D) GE0/0/2(D)
2 common UT:Eth0/0/1(U)
3 common UT:Eth0/0/1(U)
4 common UT:Eth0/0/1(U)
VID Status Property MAC-LRN Statistics Description
--------------------------------------------------------------------------------
1 enable default enable disable VLAN 0001
2 enable default enable disable VLAN 0002
3 enable default enable disable VLAN 0003
4 enable default enable disable VLAN 0004
[Huawei]int e
[Huawei]int Ether
[Huawei]int Ethernet 0/0/2
[Huawei-Ethernet0/0/2]port h
[Huawei-Ethernet0/0/2]port link0
[Huawei-Ethernet0/0/2]port link-
[Huawei-Ethernet0/0/2]port link-t
[Huawei-Ethernet0/0/2]port link-type h
[Huawei-Ethernet0/0/2]port link-type hybrid
[Huawei-Ethernet0/0/2]port h
[Huawei-Ethernet0/0/2]port hybrid p
[Huawei-Ethernet0/0/2]port hybrid pvid vlan 2
[Huawei-Ethernet0/0/2]port h
[Huawei-Ethernet0/0/2]port hybrid u
[Huawei-Ethernet0/0/2]port hybrid untagged vlan 1 to 2
[Huawei-Ethernet0/0/2]di
Aug 9 2013 16:02:00-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
25.191.3.1 configurations have been changed. The current change number is 10, the
change loop count is 0, and the maximum number of records is 4095.s this
#
interface Ethernet0/0/2
port hybrid pvid vlan 2
port hybrid untagged vlan 2
#
return
[Huawei-Ethernet0/0/2]dis this
#
interface Ethernet0/0/2
port hybrid pvid vlan 2
port hybrid untagged vlan 2
#
return
[Huawei-Ethernet0/0/2]q
[Huawei]int vlan1
[Huawei-Vlanif1]ip add 192.168.0.1 255.255.255.0
[Huawei-Vlanif1]
Aug 9 2013 16:02:35-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[58]:The line protocol
IP on the interface Vlanif1 has entered the UP state.
[Huawei-Vlanif1]dis this
#
interface Vlanif1
ip address 192.168.0.1 255.255.255.0
#
return
[Huawei-Vlanif1]q
[Huawei]
Aug 9 2013 16:02:40-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
25.191.3.1 configurations have been changed. The current change number is 11, the
change loop count is 0, and the maximum number of records is 4095.
[Huawei]vlan 2
[Huawei-vlan2]q
[Huawei]vlan2
^
Error: Unrecognized command found at '^' position.
[Huawei]int vlan2
[Huawei-Vlanif2]
Aug 9 2013 16:02:50-08:00 Huawei %%01IFNET/4/IF_STATE(l)[59]:Interface Vlanif2 h
as turned into UP state.
[Huawei-Vlanif2]ip add 192.168.0.2 255.255.255.0
Error: The specified address conflicts with another address.
[Huawei-Vlanif2]q
[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]port link-type hybrid
[Huawei-Ethernet0/0/3]port hybrid pvid vlan 3
[Huawei-Ethernet0/0/3]port hybrid untagged vlan 1 to 3
[Huawei-Ethernet0/0/3]q
结论: e1通e2 ,e3, e 4 e2和e3不通