Preface:
The improvement of technology is inseparable from practice, and the familiarity with devices is also inseparable from experiments. Cisco's simulation equipment is mature, but there are few H3C and Huawei's simulators. Currently, there are only two types of simulators available on the Internet: RouteSim, which is a very simple exercise device, one is Simeware, the current version of 5.2a. From the server display, it is H3C, but it has a disadvantage that it cannot communicate between Layer 2 and Layer 3; the other is VRP55, I saw it a few days ago. From the VER display, it was Huawei's work. Compared with Simeware, it has made some improvements. It can communicate between Layer 2 and Layer 3 and display Chinese characters. Because the previous simulator has not completed a single-arm routing experiment, I heard that the VPR5.5 Layer 2 and Layer 3 can communicate with each other, it is certainly possible to do a single-arm routing experiment. In fact, this experiment itself is very simple, however, the process of using the simulator is complex for beginners. Therefore, I will write down all the configuration processes and dedicate them to beginners to give them a reference.
1. Experiment description:
There is an MSR20 router and a 3100 switch in your company's Lan. You can configure a VLAN on the switch to reduce the range of host communication broadcast domains. When some hosts need to communicate with each other, however, vswitches do not support layer-3 switching. You need this MSR20 router to implement VLAN interconnection.
Ii. Lab requirements:
Configure two VLANs on the vswitch: vlan10, vlan20, Port 1 in vlan10, Port 2 in vlan20, and Port 3 in connection with the vro.
Configure the vro as the gateway of each vlan. The gateway address of vlan10 is 192.168.10.1/24, and the gateway address of vlan10 is 192.168.20.1/24, so that each vlan can communicate through the vro.
Iii. Experiment Topology
650) this. width = 650; "title =" {IDIMTR] IG1XX (2} HL3 % 1MN "style =" border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px "height =" 546 "alt =" {IDIMTR] IG1XX (2} HL3 % 1MN "src =" http://www.bkjia.com/uploads/allimg/131227/0315591L8-0.jpg "" 442 "border =" 0 "/>
4. Required Software vrp5.5 vpcs
Configuration File
1. vro configuration file: hardcfg. tcl
SetSelfSlot 0
SetMainSlot 0
SetConsoleCom 2001.
SetMemorySize 128
SetWinSockOffset 100
SetWVRPInstanceName "Router"
AddEthernet-local 127.0.0.1-lport 7001-dest 127.0.0.1-dport 7999-slot 0-subslot 0
2. Switch configuration file: hardcfg. tcl
SetSelfSlot 0
SetMainSlot 0
SetConsoleCom 2004.
SetMemorySize 128
SetWinSockOffset 200
SetWVRPInstanceName "SW"
AddEthernet-local 127.0.0.1-lport 7999-dest 127.0.0.1-dport 7001-slot 0-subslot 0
AddEthernet-local 127.0.0.1-lport 10000-dest 127.0.0.1-dport 20000-slot 0-subslot 0
AddEthernet-local 127.0.0.1-lport 10001-dest 127.0.0.1-dport 20001-slot 0-subslot 0
3. vpcs configuration file: startup. vpc
#################### Created by Xiaofan ################# ###
1
Conf rport 10000
1
Conf lport 20000
2
Conf rport 10001
2
Conf lport 20001
4. Relationship between the three files:
Connection interfaces between routes and switches:
Route: AddEthernet-local 127.0.0.1-lport 7001-dest 127.0.0.1-dport 7999-slot 0-subslot 0
Switch: AddEthernet-local 127.0.0.1-lport 7999-dest 127.0.0.1-dport 7001-slot 0-subslot 0
You only need to change the value of their lport and dport interfaces.
Interface between vswitch and PC:
Switch 1 port: AddEthernet-local 127.0.0.1-lport 10000-dest 127.0.0.1-dport 20000-slot 0-subslot 0
PC1:
1
Conf rport 10000
1
Conf lport 20000
Switch 2 ports: AddEthernet-local 127.0.0.1-lport 10001-dest 127.0.0.1-dport 20001-slot 0-subslot 0
PC2:
2
Conf rport 10001
2
Conf lport 20001
You only need to make their lport correspond to rport; dport corresponds to lport.
5. Experiment results:
1. Route Configuration:
[Router] disp cur
#
Sysname router
#
Interface Ethernet0/0/0
#
Interface Ethernet0/0/0.1
Vlan-type dot1q 10
Ip address 192.168.10.1 255.255.255.0
#
Interface Ethernet0/0/0.2
Vlan-type dot1q 20
Ip address 192.168.20.1 255.255.255.0
#
Interface NULL0
#
Aaa
Authentication-scheme default
#
Authorization-scheme default
#
Accounting-scheme default
#
Domain default
#
#
User-interface con 0
User-interface vty 0 4
User-interface vty 16 20
#
Return
2. layer-2 Switch configuration: it is important to convert all layer-3 ports to layer-2 ports.
[Sw] disp cur
#
Sysname sw
#
Vlan batch 10 20
#
Interface Ethernet0/0/0
Portswitch
Port link-type trunk
Port trunk allow-pass vlan 10 20
#
Interface Ethernet0/0/1
Portswitch
Port default vlan 10
#
Interface Ethernet0/0/2
Portswitch
Port default vlan 20
#
Interface NULL0
#
Aaa
Authentication-scheme default
#
Authorization-scheme default
#
Accounting-scheme default
#
Domain default
#
#
User-interface con 0
User-interface vty 0 4
User-interface vty 16 20
#
Return
3. VPCS Configuration:
650) this. width = 650; "title =" image "style =" border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px "height =" 184 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/03155a025-1.png "" 588 "border =" 0 "/>
4. check results:
Ping pc2 with pc1
650) this. width = 650; "title =" image "style =" border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px "height =" 213 "alt =" image "src =" http://www.bkjia.com/uploads/allimg/131227/0315595S3-2.png "" 583 "border =" 0 "/>