Connect GNS3 router to internet

How to Connect your GNS3 router to internet:


Hi today I shall show you that how to connect a GNS3 router to internet, this lab is handy for practicing NAT, PAT and default gateway on GNS3. With this you can create a live environment on GNS3. So please follow the steps to accomplish this   

  • First you need to configure your gns3 cloud, insert a cloud from left menu “GNS3 devices” panel and then right click on cloud/configure and add your physical NIC.
  

 



  • Now insert a router which you want to connect to internet, connect this router to cloud via Ethernet/FE according to your NIC and start all devices.
 

  •   Now you need to assign an IP address to your router interface that is connected to cloud (e1/0 in my case). IP of interface should be of the same subnet as of your NIC, in my case my NIC subnet is 192.168.1.0/24 therefore I assign 192.168.1.100/24 to e1/0.
  •  Now you need to create a default route for internet. Default gateway in my case is 192.168.1.1 you can check yours by clicking NIC status/Details. 
 


  • Now ping any Public IP e.g. 4.2.2.2 to verify this.



24 comments:

  1. Hi,

    i only can ping my workstation to which i am connected but not to the Default-GW .

    Do you maybe have an idea?

    Thx in advance,

    Note

    ReplyDelete
  2. make sure you have assign the correct IPs to router interface, this is the only possible problem in my view....
    are u using the same topology that i have use?????

    also make sour that you have choose your correct NIC in cloud configuration...

    ReplyDelete
  3. Thanks alot brother ... Man ! at first I was trying to it but i added the wireless card to the cloud ! it never worked but when i read this i tried it with the regular nic which is wire and it worked good .. hehhehehhe man no one laugh at me coz I'm still trying to learn ..
    again thanks thanks thanks brother

    ReplyDelete
  4. that's a really good tutorial, i've tried and it worked 100% without any problem. I just want to know if I already have my own topology in gns3, say we have 6 routers configured with 172.16.16.0/30. Also, at each of those router there is a host connected through loopback interfaces " i created more than one in windows". Now I want to add a new router, in which i applied your tutorial, to this topology. on the other hand, i want the other routers , which are in the 172.16.16.0 in topology to connect to the internet..what should i do? Thanks

    ReplyDelete
  5. advertise default route for internet on other routers(172.16.16.0)..
    u can use a static default route or u can advertise this through some routing protocol.

    ReplyDelete
  6. @viki: i've tried that but it didn't work. The only thing that worked that I can ping from the teh last router, in my original topology, to the interface, which is connected to my nic, at the new router i added. I

    ReplyDelete
  7. hi dear i need your help i am trying to connect the cloud to the gns router but when i drag cloud and right click to configure they are not showing me my nic to add
    plz help me in this regard
    .
    .
    thanks

    ReplyDelete
  8. @Nawazish plz make sure that your NIC is up when u wana use that in gns3..
    or reinstall gns3 and try again..

    ReplyDelete
    Replies
    1. Bro, If you are still following this thread. I need a little help. The lab I am trying to make work might not be possible but I need a second opinion. I will try to explain the topology here. Your input would be highly appreciated.

      Details:
      GNS3: Latest
      VBox: WinXp
      Router: 2600
      Cloud: Configured

      IP Settings:
      Router: Fa0/0: 192.168.1.100
      Default Route: 192.168.1.254
      Fa0/1: 192.168.2.100
      VBox: 192.168.2.101
      VBox Default Gateway: 192.168.2.100

      VBox --------- Fa0/1:Router:Fa0/0 ----------- Cloud


      The goal I am trying to achieve is to have internet on the VBox.
      As per your blog Internet pings and DNS lookup is fine on the Router, no issues there. I can ping the VBox from the router. The VBox can reach [Fa0/0: 192.168.1.100] but not the cloud [192.168.1.254]. I dont know whether I am right or wrong but my assumption if somehow the VBox is able to reach [192.168.1.254] it will get internet.

      I apologize for the long text. I would really appreciate your help.

      Regards

      Adil

      Delete
  9. Seven
    For ANONYMOUS,>>> In routers you use a routing protocols too..so you have to advertise your default route to them..
    if you used EIGRP or RIP V2, in routing process include, DEFAULT-INFO Originate, it will set your last gateway of resort,.
    Also include 0.0.0.0 in Network statement of your edge router.


    NAWAZISH, Run your GNS as ADMINISTRATOR,it will work then.

    Hope this help.

    ReplyDelete
  10. It doesn't work for me. I have a public IP assigned to my NIC, I found out from my ISP what other IP is free on my IP subnet so I can use that for my GNS3 router. I did, I set up a default route to my actual NIC gateway and... nothing.

    ReplyDelete
  11. Waqas Bro, Thanks man, much appreciated, you have solved my problem.

    ReplyDelete
  12. hi.i would like to know how to connect two or more routers to that cloud? or i have to create new cloud for every router?

    ReplyDelete
    Replies
    1. for more connection with cloud you should have more than one NIC in your PC, you can also use the VM-NIC for these connections.

      Delete
  13. Hey viki,

    thank you so much. how do you configure the internet cloud to connect the two routers? i can only connect one device to a Microsoft loopback interface i created for the internet connection. I cannot connect the other router to the same microsoft loopback interface on the internet could. do i have to create another loopback for the cloud?

    ReplyDelete
  14. Hey viki,

    thank you so much. how do you configure the internet cloud to connect the two routers? i can only connect one device to a Microsoft loopback interface i created for the internet connection. I cannot connect the other router to the same microsoft loopback interface on the internet could. do i have to create another loopback for the cloud?

    ReplyDelete
  15. well d prob which i m facing is dat i hav only one static ip assigned to my pc from my ISP, so wen i try to connect den d connection's done.i can ping my default gateway as well but i'm unable to get out to d internet.In fact wen i tried to ping www.google.com den it was even able to resolve its ip address but it cudn't ping it. D solution provided here works for if i have more dan 1 ip address only.i read abt loopback adapters as well but cudnt quite make it to connect to d internet!!!pls help me man, i'm in a big prob n i cant proceed wid my studies until i have resolved dis prob

    ReplyDelete
  16. hi man i tried this topology and it worked fine but only with the ethernet card of my real pc but when i used the wireless card it doesn't work
    and i must connect the virtual router of gns3 using wirless card not ethernet card because i must preserve it for an other using (connect it to an other physical equipment such as pc or switch or any thing else ) so can you help to resolve this problem ?? :/

    ReplyDelete
  17. Well, I'm facing the same problem. I'm using XP SP3. It works fine when I connect to a wired network, but if I connect it the wireless adapter I can only ping the PC's adapter.
    Does someone has any idea ?
    Thanks a lot

    ReplyDelete
  18. Hi,

    my workstation ip is 10.21.30.106/24 & my default gateway is 10.21.30.1. According to the aforementioned solution i have configured the router interface ip 10.21.30.100/24 & create a default route for internet as ip route 0.0.0.0 0.0.0.0 10.21.30.1. now i can ping only default gateway but cannot ping any public ip, my workstation ip(10.21.30.106) or any ip within my lan. please advice....

    Thanks :)

    ReplyDelete

UA-23728446-1