在上个日志中,我做了这个实验,但是没有达到我想要的结果,为了排除其他方面的原因,这次我使用了一个路由器router 2替换真实计算机。
1.首先,将实验拓扑连接好,示意图如下:
2.启动路由器和交换机
3.将router 2的名字改为vpc,并禁用路由功能:
4.配置vpc的IP和子网掩码:
5.配置路由器IP以及vty
验证:
在vpc中ping路由器:
通了~~!!!
好高兴。
接下来,就telnet到路由器吧~
哈哈~果然成功了!!!
现在我们就来show run下,看看是不是路由器~~
Router#show run
Building configuration...
Current configuration : 536 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable password benet
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 172.16.0.1 255.255.0.0
duplex auto
speed auto
!
ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
password benet
login
!
!
end
Router#
退出telnet:
大功告成!
tips:
为什么真实PC上不行呢?看来还得请教下高人啊!!
转载于:https://blog.51cto.com/origin/672821