將實體機,跟GNS3的router建立網路連線

 

實體機要跟 GNS3 裏,建立的 router 網路連線,必須要透過 MSLoopback 或是其他 VMware Workstation 建立的網卡

安裝 MSLoopback 網卡,參考這兩篇:

Windows7 安裝MSLoopback網卡

Windows 2003 安裝 MSLoopback 網卡

GNS3 使用的虛擬機,兩張網卡,一張 NAT 要連 Internet,一張 VMNet9 是指向 MSLoopback,內部自己使用

image

VMNet9 是指向 MSLoopback

image

GNS3 虛擬機的網路設定

image

其實兩張網卡都是 DHCP

image

實體機的 MSLoopback 要設定固定 IP

image

在 GNS3 建立 Cloud 物件

image

在 Cloud 物件,點右鍵 –> Configure

image

設定 Ethernet

image

image

從 Cloud 物件,拉網路線到 GNS3 的 router

image

Router 的 interface,選 FastEther 或是 Serial 都可以,這裡以 FastEthernet 0/0 為例

image

設定 Router – P1R1 的 FastEthernet 0/0 的 IP

#configure terminal
(config)#interface fastEthernet 0/0
(config-if)#ip address 10.1.1.2 255.255.255.0
(config-if)#no shutdown

image

從實體機,ping GNS3 內部的 Router

image

啟用 Router 的 telnet server

#config terminal
(config)#line vty 0 4
(config-line)#login
(config-line)#password sanjose

image

在實體機,遠端 telnet 到 GNS3 內部的 Router

登入的密碼,是剛剛設定的【sanjose】

image

檢查目前連線的 user

image

可以看到從實體機的 MSLoopback【10.1.1.1】,遠端 telnet 登入的連線!

不過,預設 Router 並沒有設定密碼,這樣遠端 telnet 會無法登入成功

image

最後要設定 Router 的密碼

#configure terminal
(config)#line console 0
(config-line)#password cisco

image

這樣遠端 telnet 進來,就可以登入成功

image

廣告
本篇發表於 Bookmark, Cisco, 網路, Windows, Windows 10。將永久鏈結加入書籤。

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com 標誌

您的留言將使用 WordPress.com 帳號。 登出 /  變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s