GNS3与真机通信

一、拓扑结构图

GNS3与真机通信

二、配置方法和步骤:

1、右击Cloud-1点configure,弹出如下对话框:

GNS3与真机通信

勾选show special ethernet interfaces,可添加真机中的所有网络适配器。

2、R1连接Cloud-1的相应接口,查看真机中相应网卡的IP地址,在R1相应接口上配置与网卡同一网段的地址。相互即可Ping通。若不能通,可关闭真机防火墙再试。

3、R1和R2其它接口上配置相应IP地址,并在R2上设置相应路由。

真机上cmd模式下,输入route print -4可显示本机IPv4路由,使用route add命令可添加相应路由,使3个设备互通。

 

R1配置:

interface Ethernet0/0

 ip address 10.12.1.1 255.255.255.0

interface Ethernet0/1

 ip address 192.168.2.10 255.255.255.0

 

 

 

R2配置:

interface Ethernet0/0

 ip address 10.12.1.2 255.255.255.0

ip route 192.168.2.0 255.255.255.0 10.12.1.1

 

真机配置:

VMnet8地址为192.168.2.1 255.255.255.0

route add 10.12.1.0 mask 255.255.255.0 192.168.2.10

相关文章:

  • 2021-06-02
  • 2022-12-23
  • 2021-08-08
  • 2022-01-06
  • 2021-11-01
  • 2022-12-23
  • 2021-05-22
  • 2021-04-07
猜你喜欢
  • 2021-10-12
  • 2021-09-28
  • 2021-06-08
  • 2021-10-26
  • 2021-11-18
  • 2021-05-29
相关资源
相似解决方案