Written in front of the words:
The improvement of technology is inseparable from practice, and the familiarity of equipment is inseparable from experiments. Cisco's analog devices are already very mature, but h3c and Huawei's simulators are few and there are only two types of Internet available: Routesim (a very simple practitioner); another: The real-machine simulator, the Simeware, The current version of the 5.2a, shown from Ver, is H3C's work, but it has a disadvantage, that is, two layer and three layer can not communicate between, another is VRP55, just saw a few days ago, from Ver show, is Huawei's works, it has some improvement over simeware, two and three layers can communicate, but also display Chinese. Because the previous simulator did not make the merits of the single arm routing experiment, I heard that VPR5.5 two and three can communicate, that can certainly do a single arm routing experiment, in fact, the experiment itself is very simple, but the process of using the simulator for a beginner is complex, so I put all the configuration process written down, dedicated to beginners, to stimulate.
First, the experiment Description:
In your company's local area network has a MSR20 router and a 3100 switch, you can reduce the range of host communication broadcast domain by configuring VLAN on the switch, when some hosts need to communicate between VLANs, but the switch does not support three-layer exchange, you want this MSR20 router to realize VLAN interoperability.
Second, the experimental requirements:
Configure two VLANs on the switch, namely Vlan10,vlan20, Port 1 within VLAN10, 2 within Vlan20, and Port 3 with the router.
Configure the router as a gateway to each VLAN, VLAN10 gateway address is 192.168.10.1/24, VLAN10 gateway address is 192.168.20.1/24, so that each VLAN can communicate through the router.
Third, the experimental topology
Iv. Required Software vrp5.5 VPCS
Configuration file
1. Router 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 three documents:
Connection interface between Routing and switching:
Route: addethernet-local 127.0.0.1-lport 7001-dest 127.0.0.1-dport 7999-slot 0-subslot 0
Exchange: Addethernet-local 127.0.0.1-lport 7999-dest 127.0.0.1-dport 7001-slot 0-subslot 0
Just let their lport;dport interface be numerically exchanged.
interface between switch 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 port: 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
Just let their lport correspond to the rport;dport corresponding to Lport.
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Network/lyjs/
V. Results of the experiment:
1. Routing 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, two-tier switch configuration: The important point is to convert all their three-tier ports to two-tier 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:
4, Inspection results:
Ping PC2 with PC1