博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在思科模拟器中搭建拓扑使PC机可以远程连接交换机
阅读量:7216 次
发布时间:2019-06-29

本文共 2355 字,大约阅读时间需要 7 分钟。

实验条件如图:

在思科模拟器中搭建拓扑使PC机可以远程连接交换机
实验步骤:
1.给PC机配IP为“10.0.0.1”子网掩码为“255.0.0.0”网关为“10.0.0.254”如图:在思科模拟器中搭建拓扑使PC机可以远程连接交换机

2.给switch0配置管理IP为10.0.0.2,配置远程密码为“haha”,配置特权模式下的密码为“hehe”如下:

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface vlan 1
Switch(config-if)#ip address 10.0.0.2 255.0.0.0
Switch(config-if)#no shutdown

Switch#conf t

Switch(config)#line vty 0 4
Switch(config-line)#password haha

Switch#conf t

Switch(config)#enable password hehe
Switch(config)#end
Switch#w

3.给路由器配置IP下:

Continue with configuration dialog? [yes/no]: no
Router>en
Router#conf t
Router(config)#interface f0/0
Router(config-if)#ip address 10.0.0.254 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#interface f0/1
Router(config-if)#ip address 20.0.0.254 255.0.0.0
Router(config-if)#no shutdown

4.给switch1配置管理IP为“20.0.0.1”配置网关为“20.0.0.254”配置远程密码为:456.配置特权模式下的密码为:123如下

Switch>en
Switch#conf t
Switch(config)#interface vlan 1
Switch(config-if)#ip address 20.0.0.1 255.0.0.0
Switch(config-if)#no shutdown

Switch(config)#ip default-gateway 20.0.0.254

Switch(config)#end

Switch#conf t

Switch(config)#line vty 0 4
Switch(config-line)#password 456
Switch(config-line)#end

Switch#conf t

Switch(config)#enable password 123
Switch(config)#end
Switch#w

打开PC机先ping通switch1和switch0如下:

PC>ping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
Reply from 10.0.0.2: bytes=32 time=1ms TTL=255
Reply from 10.0.0.2: bytes=32 time=0ms TTL=255
Reply from 10.0.0.2: bytes=32 time=0ms TTL=255
Reply from 10.0.0.2: bytes=32 time=0ms TTL=255
Ping statistics for 10.0.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms

PC>ping 20.0.0.1

Pinging 20.0.0.1 with 32 bytes of data:
Request timed out.
Request timed out.
Reply from 20.0.0.1: bytes=32 time=0ms TTL=254
Reply from 20.0.0.1: bytes=32 time=0ms TTL=254
Ping statistics for 20.0.0.1:
Packets: Sent = 4, Received = 2, Lost = 2 (50% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

Ping通后远程分别连接switch0和switch1如下:

PC>telnet 10.0.0.2
Trying 10.0.0.2 ...Open

User Access Verification

Password:

Switch>en
Password:
Switch#

PC>telnet 20.0.0.1

Trying 20.0.0.1 ...Open

User Access Verification

Password:

Switch>en
Password:
Switch#
两台交换机都可以远程连接到,任务完成。

转载于:https://blog.51cto.com/13568842/2059276

你可能感兴趣的文章
矩阵求导与投影梯度相关问题
查看>>
SVN
查看>>
C语言编程写的一个http下载程序(王德仙)2012-04-08
查看>>
CCF201409-3 字符串匹配(100分)
查看>>
UVALive2203 UVa10042 Smith Numbers【质因数分解+素数判定+数位之和】
查看>>
Project Euler Problem 9: Special Pythagorean triplet
查看>>
HDU5701 中位数计数【中位数】
查看>>
Python 深浅拷贝 (Shallow copy and Deep copy in Python)
查看>>
Axure
查看>>
屏幕截取工具
查看>>
C语言第七次作业---要死了----
查看>>
Jquery事件绑定冲突
查看>>
偶现bug如何处理?
查看>>
yum命令简介
查看>>
【Udacity】朴素贝叶斯
查看>>
看漫画,学 Redux
查看>>
Spark Streaming揭秘 Day19 架构设计和运行机制
查看>>
【转载】WinCE OAL中的电源管理函数
查看>>
【iOS】Objective-C简约而不简单的单例模式
查看>>
Java实现扫码二维码登录
查看>>