This post assumes that reader has basic knowledge of GNS. For those who does not know they can visit GNS3 official website www.gns3.net.
To communicate GNS3 with Linux, simple steps have to follow :-
1. Create loopback interface.
2. IP address to loopback interface.
3. Connect loopback to GNS3.
4. Connect Linux to windows.
5. Assign IP address to Linux.
Step 1. Create Loopback interface
Loopback is the logical interface given by Microsoft in windows. To create loopback interface follow these steps.a. Type windows key + R, it will open run.
b. write hdwwiz.exe in run, press enter.
c. click next, then choose install the hardware manually.
d. click next ---> Network adapters ---> Microsoft ---> Microsoft KM-TEST Loopback Adapter.
It will add a new loopback interface in Network and Sharing Center.
Step2. IP address to loopback interface :-
Here loopback interface name is Ethernet 2, and IP address given to this interface is 100.0.0.1
Step3. Connect loopback to GNS3.
a. Add 1 router and a cloud in GNS3.b. Select loopback interface Ethernet 2 in cloud.
c. Assign IP address to Router 100.0.0.2/24.
Step4. Connect Linux to windows.
a.
Start Linux in VMware workstation.
b.
Open Virtual Network Editor (go to Edit -à
Virtual Network Editor).
c.
Add a new network, select network as VMnet1, make it
Bridged and select loopback interface there.
See there is a confusion here, if you have created more than 1 loopback interfaces then in Network and Sharing Center name of the loopback interfaces would be Ethernet 2 and 3 , but in VMware it will get recognized by Microsoft loopback for 1st and for 2nd it will be Microsoft loopback #2. So in VMware always 1 less counting is done for loopback. So do not confuse to select loopback.
See there is a confusion here, if you have created more than 1 loopback interfaces then in Network and Sharing Center name of the loopback interfaces would be Ethernet 2 and 3 , but in VMware it will get recognized by Microsoft loopback for 1st and for 2nd it will be Microsoft loopback #2. So in VMware always 1 less counting is done for loopback. So do not confuse to select loopback.
d. Now go to the setting and select VMnet1 as network.
Step5. Assign IP address to Linux.
b. Turn off firewall of Linux by setenforce 0.
Now you can ping Linux from Router.
Ping from Router to Linux.
By :- Vishal Sharma
No comments :
Post a Comment