Configuration vlan trunk

[H3C1] int vlan 1 // is vlan1 the ip address

[H3C1-Vlan-interface1]ip add 1.1.1.1 255.255.255.0

[H3C1-Vlan-interface1]un shut

 

[H3C1] vlan 2 // create vlan2

[H3C1-vlan2]q   

[H3C1] int vlan 2 // is vlan2 the ip address

[H3C1-Vlan-interface2]ip add 2.2.2.2 255.255.255.0

[H3C1-Vlan-interface2]un shut

[H3C1-Vlan-interface2]q

 

[H3C1] int e0 / 4/ 3 // Open trunk link

[H3C1-Ethernet0/4/3]port link-type trunk

 

There are a few cursory view vlan on equipment

[H3C1]display vlan   

 Total 2 VLAN exist(s).

 The following VLANs exist:

  1(default), 2

Vlan on the detailed view of the device case

[H3C1]display vlan all

 VLAN ID: 1 // vlan1 details

 VLAN Type: static // vlan are static, that is created manually

 Route Interface: configured

 IP Address: 1.1.1.1

 Subnet Mask: 255.255.255.0

 Description: VLAN 0001 // on vlan described

 Broadcast MAX-ratio: 100% // broadcast packets vlan percentage occupied link, can be changed

 Tagged Ports: none // mark, if not in this serial interface vlan in,                                                                           that interface will appear here!

 Untagged Ports: // can be said to belong to this vlan interface

    Ethernet0/4/0            Ethernet0/4/1            Ethernet0/4/2           

    Ethernet0/4/3            Ethernet0/4/4            Ethernet0/4/5           

    Ethernet0/4/6            Ethernet0/4/7           

 

 VLAN ID: 2 // vlan2 details

 VLAN Type: static

 Route Interface: configured

 IP Address: 2.2.2.2

 Subnet Mask: 255.255.255.0

 Description: VLAN 0002

 Broadcast MAX-ratio: 100%

 Tagged   Ports: none

 Untagged Ports: none

Guess you like

Origin www.cnblogs.com/niezhongle/p/11271698.html