On the boson netsim5.31 platform to build a switched local area network, and select the 1912 model switch,5 computers in sequence with the corresponding serial number on the switch 1, 2,3,4,5 Port connection, to configure Computers 1, 2, 3 in VLAN2, computer 4, 5 is configured in VLAN3, please write out the steps to configure the VLAN. where VLAN2 name Online,vlan3 is called Office. PC IP Address According to the following configuration, * Number with a personal number after the two-bit replacement
PC1 172.16.*.2 ,255.255.255.0 ,172.16.*.1
PC2 172.16.*.3 ,255.255.255.0 ,172.16.*.1
PC3 172.16.*.4 ,255.255.255.0 ,172.16.*.1
PC4 172.16.*.5 ,255.255.255.0 ,172.16.*.1
PC5 172.16.*.6 ,255.255.255.0 ,172.16.*.1
The following is a switch configuration command for reference
Step 1: Configure the static VLANusing a computer to connect the Cisco1900 switch as an example.
Step 2: Because the command configuration is clear and easy to understand, so we use "K" commands line to achieve the configuration of the VLAN. Select "K"commandline to enter the configuration:
Enter Selection:k Enter
CLI session with the switch is open.
To end the CLI Session,enter[exit].
Step 3: Now enter the normal user mode to the switch. Just like routers, this mode only looks at the current configuration, cannot change the configuration, and can use a limited number of commands. Enter enableto enter privileged mode:
Enable
#config T
Enter configuration Commands,one per line. End wth cntl/z
(config) #
Step 4:theVLAN setting is divided into the following two steps:
1) Set the VLAN name.
2) apply to port.
Let's set the name of the VLAN first. Use vlan[vlan number ]name[vlan name ]. Configure in Privileged configuration mode:
1900Switch (config) #vlan 2 name Accounting
1900Switch (config) #vlan 3 name Markering
Steps5: Because by default, all ports are placed in theVLAN1on, so to get from2start the configuration. 1900series of switches can be configured up to1024x768aVLAN, however, only -work at the same time, we should plan according to the actual needs of our networkVLAN's number. Well configuredVLANname to enter each port to setVLAN. In the switch, to enter a port, such as a fourth port, to useInterface ETHERNER0/4, now assume that the port2,3,4and the5belong toVLAN2, the Port17-22belong toVLAN3. command isVlan-membership[static/dynamic][vlannumber]. Static (Static) or dynamic (Dynamic) must be selected, followed by the one that needs to be configuredVLANnumber.
The following is attached to the practice process
Boson netsim5.31 platform to build a switched network