序
PC1与PC2是gns3的vpc(linux版本有,windows版本好像没有),Cloud1是虚拟机
内含,路由器基本配置,gns3与虚拟机相连,路由器telnet
演示视频:https://www.bilibili.com/video/BV1dg4y1b7xD/
现在是3.27 22:07 视频在审核。
网络拓扑
目的网络拓扑,涂黑的地方是我的个人信息(这图是我从我报告里拿来的)
设备配置
设备 | 接口 | ip地址 |
R1 | f0/0 | 14.0.1.1 |
R1 | f1/0 | 141.0.1.1 |
R2 | f0/0 | 141.0.1.2 |
R2 | f1/0 | 15.0.1.2 |
PC1 | e0 | 14.0.1.2 |
PC2 | e0 | 14.0.13 |
Cloud1 | vmnet10 | 15.0.1.3 |
R1配置如下:
R1#configure terminal
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 14.0.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastEthernet 1/0
R1(config-if)#ip address 141.0.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip route 15.0.1.0 255.255.255.0 141.0.1.2
R1(config)#end
R2配置如下:
用户名和密码可以随便设置,打码的地方是我名字。
R2#configure terminal
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 141.0.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastEthernet 1/0
R2(config-if)#ip address 15.0.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#ip route 14.0.1.0 255.255.255.0 141.0.1.1
R2(config)#end
R2#configure terminal
R2(config)#user 4ut15m password 4ut15m
R2(config)#line vty 0 4
R2(config-line)#login local
R2(config-line)#end
PC机配置:
PC1:
PC1> ip 14.0.1.2 14.0.1.1
PC2:
与虚拟机相连:
打开虚拟网络编辑器
手动添加一张网卡(这里的vmnet10是我之前添加的,下面我再添加一张vmnet11),点击Add Network...,设置网卡名称与连接方式
添加后再进行子网ip和子网掩码的设置
给虚拟机使用该网卡
点击Custom,选择要使用的网卡(vmnet11)
保存后打开虚拟机,在虚拟机中进行ip设置,将网关ip设置为路由器R2的ip
检验连通
PC1与PC2 ping虚拟机
虚拟机ping PC1与PC2
R1 telnet R2
数据包抓取
R2与虚拟机间的流量
R1与R2间的流量