Documente Academic
Documente Profesional
Documente Cultură
1, start
Establishing a local configuration environment, will host through the serial portconfiguration cable with
Ethernet switch Console port connection.
Running terminal emulation program on the host (such as Windows superterminal), set the terminal
communication parameters: baud rate is 9600bit/s, 8 data bits, 1 stop bit, no parity with and without
flow control, and select theterminal is VT100.
Ethernet Switch Ethernet switch electric, self-test information display terminal,performed after the
prompt the user to type the enter, will appear after the command prompt (such as <Quidway>).
Type the command, configuration of Ethernet Switch Ethernet switch or view the running state. Need
help at any time by typing “?”
(1) the user view (simple operation and statistical information exchange)<Quidway>: connection
establishment entry and exchange
(2) view of the system (system parameter) [Quidway]: in user view type System-View
(3) the Ethernet port view (configuration parameters of [Quidway-Ethernet0/1]Ethernet port): in view
of the system by typing interface Ethernet 0/1
(4) the VLAN view (VLAN parameter) [Quidway-Vlan1]: in view of the systemtype VLAN 1
(5) VLAN interface view (IP interface configuration VLAN and VLANconvergence corresponding)
[Quidway-Vlan-interface1]: in view of the systemtype interface vlan-interface 1
(6) the local user view (to configure the local user parameters) [Quidway-luser-user1]: in view of the
system type local-user user1
(7) the user interface (UI [Quidway-ui0] configuration parameters): in view of the system type user-
interface
Set the system date and time <Quidway>clock time Beijing add 8
[Quidway-ui-vty0]authentication-mode scheme
“Network demand.”
(1) by default all ports are belonging to VLAN 1, and the port is access port, a access port can only
belong to one vlan;
(2) if the port is access port, the port is added to another VLAN at the same time, the system
automatically deleted from the original VLAN in the port;
(3) in addition to VLAN1, if the VLAN XX does not exist, in view of the systemby typing VLAN XX, create a
VLAN XX and enter the VLAN view; if the VLAN XX already exists, then go to the VLAN view.
[] SwitchA configuration
Method:
[SwitchA]vlan 2
[SwitchA-vlan2]vlan 3
(4) the port E0/2 is added to the vlan3
Methods two:
[SwitchA]vlan 2
[SwitchA]vlan 3
Test validation
(1) using the command disp cur can see the port E0/1 belongs to vlan2, E0/2to vlan3;
(2) using the display interface Ethernet 0/1 can see the port to access port,PVID 2;
(3) using the display interface Ethernet 0/2 can see the port to access port,PVID 3
5, IP address allocation
The three layer switch with two ports SwitchA ethetnet 0/1, Ethernet 0/2,belonged to VLAN 2, VLAN 3;
Based on the three layer interface address VLAN 2 are 1.0.0.1/24 as the PC1gateway;
Based on the three layer interface address 3 VLAN respectively is 2.0.0.1/24as the PC2 gateway;
“Network demand.”
[] SwitchA configuration
[Quidway]vlan 2
[Quidway-vlan2]interface VLAN 2
[Quidway]vlan 3
[Quidway-vlan3]interface VLAN 3
Test validation
(2) SwitchB port E0/1 belongs to vlan10, E0/2 belongs to vlan20, E0/3 andSwitchA port of E0/3
interconnection
“Network demand.”
[SwitchA] VLAN 10
[SwitchA]vlan 20
(5) practice will generally be uplink port is set to the trunk attribute, allowing the VLAN transmission
(6) allows all of the VLAN from the E0/3 port passes through, you can also specify the specific value of
VLAN
[] SwitchB configuration
[SwitchB] VLAN 10
[SwitchB]vlan 20
(5) practice will generally be uplink port is set to the trunk attribute, allowing the VLAN transmission
(7) allows all of the VLAN from the E0/3 port passes through, you can also specify the specific value of
VLAN
[footnote]
(1) if a port is trunk port, the port can belong to multiple vlan;
(2) the default trunk port 1 for PVID, you can modify the port by the command port trunk PVID VLAN
vlanid on port PVID model;
(3) if the data message forwarded from the trunk VLAN ID and port PVID, the message VLAN information
will be stripped away, the need to pay attention toin the configuration of the trunk port.
(4) a switch on if you have set a port to hybrid port, can not put the other port is set to trunk port.
(5) is usually best to specify the port allowed by specific VLAN, don’t set up to allow all VLAN through.
Test validation
(1) switches SwitchA and SwitchB realize the interconnection through the Ethernet port.
(2) SwitchA for the interconnection of the port for e0/1 and e0/2, SwitchB for the interconnection of the
Port for e0/1 and e0/2.
“Network demand.”
Increasing interconnection link SwitchA SwitchB bandwidth, and can realize thelink backup, use port
aggregation
[SwitchA-Ethernet0/1]duplex full
(3) gathering port rate requirements are the same, but can not be adaptive
[SwitchA-Ethernet0/1]speed 100
[SwitchA-Ethernet0/2]duplex full
(6) gathering port rate requirements are the same, but can not be adaptive
[SwitchA-Ethernet0/2]speed 100
[SwitchB-Ethernet0/1]duplex full
[SwitchB-Ethernet0/1]speed 100
[SwitchB-Ethernet0/2]duplex full
[SwitchB-Ethernet0/2]speed 100
[SwitchB]link-aggregation Ethernet 0/1 to Ethernet 0/2 both
[footnote]
(1) link type link type and the main ports are members of the sameaggregation group port is consistent,
namely if the main port to Trunk port,then member port also to Trunk port; such as the link type master
port to Access port, then member port link type into Access port.
(2) of different products are different on the starting port number port aggregation when required,
please control ”manual” configuration.
(1) the PC1 connected to the switch E0/1 port, IP address 1.1.1.1/24
(2) the PC2 connected to the switch E0/2 port, IP address 2.2.2.2/24
(4) the Server connected to the switch E0/8 port, the port as the mirror port
“Network demand.”
(1) for monitoring service message for two PC by switch port mirroringfunctionality using server.
According to the different types of Quidway switch, mirror has configured in different ways:
Port mirroring – port mirroring is based on the import data message mirroringport completely copy to
the mirror port, so to flow observation or fault location.
Current mirror – Based on flow mirror switch based on some current mirror,each connection has two
direction of data flow, to switch the two data stream is to separate the mirror.
Taking Quidway S3026C as an example, through the mirror configurationbased on two laminar flow:
(2) define a rule sent from E0/1 to all other ports of the packet
(3) define a rule to the E0/1 port of the data from all the other port packet
2) SwitchB and SwitchC switch is the core switch, requirements of the mainpreparation.
“Network demand.”
The B configuration of the bridge as the root bridge [SwitchC]stp rootsecondary backup
(1) default switch priority is 32768, if want to a switch is specified as the root switch, can also be
achieved by modifying the priority;
(2) the default open the spanning tree, all ports will open the spanning tree protocol, please contact PC
port edge port mode;
(3) if you want to control a link state can be achieved by setting the value of cost port.
Test validation
(1) using the display STP view switch STP running state
(2) STP display STP interface view port state Ethernet XX is correct
Verify that the configuration is correct, use the save configuration commands:save