How to associate GNS3 with a real NIC/how to simulate a switch
I believe someone is familiar with the GNS3 network simulator, but I find that some people around me will not even use PT. Of course, I am not degrading packet tracer. He has his value. So what is the difference between GNS3 and PT? Obviously, if you want to experiment with NA, you can still use PT, but GNS3 is not bad. If you do some NP or even IE experiments, there will be too many deficiencies in PT. I believe many of my peers should have a painful stage like me in finding a simulator that can build a NP + IE environment. Finding the simulator does not necessarily solve the problem. It takes some effort to adapt to this GNS3 simulator. Next I will give a detailed demonstration of how GNS3 associates with the real Nic and how to simulate the switch. I hope you can have a good solution to the problem.
Not to mention, first, how to associate GNS3 with the real network card, and a little SDM knowledge will be interspersed.
1. A simple topology:
2. solution:
<1> I won't talk about how to configure Cloud. I told you before that you just need to click the real Nic and add it in, and then set the TCP/IP in the NIC, the address is 192.168.1.2.
<2> Configure the vro and set f0/0 to 192. 168. 1. 1,
If you want to log on to the SDM security management device R1 on the client, we need to configure the enable password, and the telnet password, and use the http small service.
Config :!
Ip http server
!
!
Enable password xxxx
Line vty 0 4
Exec-timeout 0 0
Password xxxx
Logging synchronous
Login
!
<3> test:
When "cmd" is running and ping 192.168.1.1, it may fail. What is the problem? My solution is to select "Preferences" in "edit ", in general, click "GUI setting"
Set "when adding link to manual mode. Note: This is also the root cause of failure in simulating a vswitch.
The PING result can only be displayed after the above steps,
<4> now that the test is successful, let's test whether SDM is available?
Continue: Enable the security device management software of SDM (security device management) cisco to log on to IOS of R1 in the webpage mode, and easily configure and write data to the remote device at one time. Is a management tool for convenient management and configuration. This tool is all written in JAVA. so you need to install the JAVA Virtual Machine.
Open SDM and enter the IP address of R1:
This will allow you to enter the user name and password (enter the password configured in R1 just now ). The following message appears: Entering SDM
Some Firewall Authentication interfaces will appear later, such:
Enter the 15level password and user name. Of course, the user name and password are the same here.
Come to this interface after entering:
Haha, after the components are loaded:
In this way, we will officially enter the SDM interface. You can make some VPN, PIX, ASA, and other configurations in it. They are all graphical and basically won't make any mistakes. Just do it one step at a time.
Haha. Happy.
Next, we need to solve how to conduct exchange experiments in the GNS3 environment. Although GNS3 cannot have a real exchange environment completely, however, we can use the NM-16ESW module in IOS 3660 and other systems to simulate the exchange environment.
We also set a simple topology for Demonstration:
1> This is a simple topology of the NA experiment. to configure the switch part on R1 and R2, select "Preferences" in "edit" first ", in general, click "GUI setting" to "when adding link to manual mode" and then add the NM-16ESW module to simulate switching.
2> remember that when connecting lines, the 16ESW port generally starts with F1/0. Do not connect to the wrong port or fail. Pay attention to this and do not make low-level mistakes!
3> Configuration:
Use R1 as The vtp server, R2 as The vtp client, the link between them is Trunk, vlan2 is created, and the single-arm route is OK (VPC2 uses VPCS)
4> when I did this topology experiment, my Nic was disconnected. Why? I tested the network cable. The network cable is normal. I checked the network card. The network card is okay. What will cause my network connection to fail? Finally, we came up with a rough conclusion that our school switch may have set port security! Each network hole cannot learn more than one MAC address. Otherwise, the port will be shut down immediately and can only be restored manually! To be honest, it is a great obstacle for our students to use the real Nic for experiments.
5> since the topology above cannot be implemented, we can change it to the topology below.
6> the experiment configuration is omitted. This is similar to the single-arm route configuration, which is very simple. The next step is to test PC1 and PC2. If the response is as follows, the Exchange Simulation is successful !!! It implements Trunk, vlan, and other exchange technologies ..
Well, today's theme will be held here. If you think you have any questions, you can contact me, this demonstration aims to provide some experimental solutions for friends who are learning network technology and using GNS3.