思科交换机模拟器,思科官网下载模拟器
- 跳转官网下载下载点击免费下载
为什么思科模拟器连接不了交换机
原因:问题主要出现在路由器和DHCP服务上。
解决办法如下:
配置成静态地址。这是最有效的强制方式,但对于有Vlan控制的设备未必有效。
找到进行192.168.1.x地址分配的DHCP服务设备,关闭或停止DHCP服务。以交换模式私自接入另外的小路由器,但又未关闭其中的DHCP会出现这种问题。
在思科模拟器上如何进行交换机的基本配置
楼主,你好\x0d\x0a\x0d\x0a在模拟器上添加思科交换机\x0d\x0a\x0d\x0a进行CLI输入\x0d\x0a\x0d\x0a用户模式hostname#;\x0d\x0a特权模式hostname(config)#;\x0d\x0a全局配置模式hostname(config-if)#;\x0d\x0a\x0d\x0a交换机口令设置:\x0d\x0aswitch>enable;进入特权模式\x0d\x0aswitch#config terminal;进入全局配置模式\x0d\x0aswitch(config)#hostname csico;设置交换机的主机名\x0d\x0aswitch(config)#enable secret csico1;设置特权加密口令\x0d\x0aswitch(config)#enable password csico8;设置特权非密口令\x0d\x0aswitch(config)#line console 0;进入控制台口\x0d\x0aswitch(config-line)#line vty 0 4;进入虚拟终端\x0d\x0aswitch(config-line)#login;虚拟终端允许登录\x0d\x0aswitch(config-line)#password csico6;设置虚拟终端登录口令csico6\x0d\x0aswitch#exit;返回命令\x0d\x0a交换机VLAN创建,删除,端口属性的设置,配置trunk端口,将某端口加入vlan中,配置VTP:\x0d\x0aswitch#vlan database;进入VLAN设置\x0d\x0aswitch(vlan)#vlan 2;建VLAN 2\x0d\x0aswitch(vlan)#vlan 3 name vlan3;建VLAN 3并命名为vlan3\x0d\x0aswitch(vlan)#no vlan 2;删vlan 2\x0d\x0aswitch(config)#int f0/1;进入端口1\x0d\x0aswitch(config)#speed?查看speed命令的子命令\x0d\x0aswitch(config)#speed 100设置该端口速率为100mb/s(10/auto)\x0d\x0aswitch(config)#duplex?查看duplex的子命令\x0d\x0aswitch(config)#duplex full设置该端口为全双工(auto/half)\x0d\x0aswitch(config)#description TO_PC1这是该端口描述为TO_PC1\x0d\x0aswitch(config-if)#switchport access vlan 2;当前端口加入vlan 2\x0d\x0aswitch(config-if)#switchport mode trunk;设置为trunk模式(access模式)\x0d\x0aswitch(config-if)#switchport trunk allowed vlan 1,2;设置允许的vlan\x0d\x0aswitch(config-if)#switchport trunk encap dot1q;设置vlan中继\x0d\x0aswitch(config)#vtp domain vtpserver;设置vtp域名相同\x0d\x0aswitch(config)#vtp password;设置发vtp密码\x0d\x0aswitch(config)#vtp server;设置vtp服务器模式\x0d\x0aswitch(config)#vtp client;设置vtp客户机模式\x0d\x0a\x0d\x0a交换机设置IP地址,默认网关,域名,域名服务器,配置和查看MAC地址表:\x0d\x0aswitch(config)#interface vlan 1;进入vlan 1\x0d\x0aswitch(config-if)#ip address 192.168.1.1 255.255.255.0;设置IP地址\x0d\x0aswitch(config)#ip default-gateway 192.168.1.6;设置默认网关\x0d\x0aswitch(config)#ip domain-name cisco.com设置域名\x0d\x0aswitch(config)#ip name-server 192.168.1.18设置域名服务器\x0d\x0aswitch(config)#mac-address-table?查看mac-address-table的子命令\x0d\x0aswitch(config)#mac-address-table aging-time 100设置超时时间为100ms\x0d\x0aswitch(config)#mac-address-table permanent 0000.0c01.bbcc f0/3加入永久地址在f0/3端口\x0d\x0aswitch(config)#mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7加入静态地址目标端口f0/6源端口f0/7\x0d\x0aswitch(config)#end\x0d\x0aswitch#show mac-address-table查看整个MAC地址表\x0d\x0aswitch#clear mac-address-table restricted static清除限制性静态地址\x0d\x0a交换机显示命令:\x0d\x0aswitch#write;保存配置信息\x0d\x0aswitch#show vtp;查看vtp配置信息\x0d\x0aswitch#show run;查看当前配置信息\x0d\x0a\x0d\x0aswitch#show vlan;查看vlan配置信息\x0d\x0aswitch#show interface;查看端口信息\x0d\x0aswitch#show int f0/0;查看指定端口信息\x0d\x0aswitch#show int f0/0 status;查看指定端口状态\x0d\x0aswitch#dir flash:;查看闪存
思科模拟器交换机配置教程
楼主,你好
在模拟器上添加思科交换机
进行CLI输入
用户模式hostname#;
特权模式hostname(config)#;
全局配置模式hostname(config-if)#;
交换机口令设置:
switchenable;进入特权模式
switch#config terminal;进入全局配置模式
switch(config)#hostname csico;设置交换机的主机名
switch(config)#enable secret csico1;设置特权加密口令
switch(config)#enable password csico8;设置特权非密口令
switch(config)#line console 0;进入控制台口
switch(config-line)#line vty 0 4;进入虚拟终端
switch(config-line)#login;虚拟终端允许登录
switch(config-line)#password csico6;设置虚拟终端登录口令csico6
switch#exit;返回命令
交换机VLAN创建,删除,端口属性的设置,配置trunk端口,将某端口加入vlan中,配置VTP:
switch#vlan database;进入VLAN设置
switch(vlan)#vlan 2;建VLAN 2
switch(vlan)#vlan 3 name vlan3;建VLAN 3并命名为vlan3
switch(vlan)#no vlan 2;删vlan 2
switch(config)#int f0/1;进入端口1
switch(config)#speed?查看speed命令的子命令
switch(config)#speed 100设置该端口速率为100mb/s(10/auto)
switch(config)#duplex?查看duplex的子命令
switch(config)#duplex full设置该端口为全双工(auto/half)
switch(config)#description TO_PC1这是该端口描述为TO_PC1
switch(config-if)#switchport access vlan 2;当前端口加入vlan 2
switch(config-if)#switchport mode trunk;设置为trunk模式(access模式)
switch(config-if)#switchport trunk allowed vlan 1,2;设置允许的vlan
switch(config-if)#switchport trunk encap dot1q;设置vlan中继
switch(config)#vtp domain vtpserver;设置vtp域名相同
switch(config)#vtp password;设置发vtp密码
switch(config)#vtp server;设置vtp服务器模式
switch(config)#vtp client;设置vtp客户机模式
交换机设置IP地址,默认网关,域名,域名服务器,配置和查看MAC地址表:
switch(config)#interface vlan 1;进入vlan 1
switch(config-if)#ip address 192.168.1.1 255.255.255.0;设置IP地址
switch(config)#ip default-gateway 192.168.1.6;设置默认网关
switch(config)#ip domain-name cisco.com设置域名
switch(config)#ip name-server 192.168.1.18设置域名服务器
switch(config)#mac-address-table?查看mac-address-table的子命令
switch(config)#mac-address-table aging-time 100设置超时时间为100ms
switch(config)#mac-address-table permanent 0000.0c01.bbcc f0/3加入永久地址在f0/3端口
switch(config)#mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7加入静态地址目标端口f0/6源端口f0/7
switch(config)#end
switch#show mac-address-table查看整个MAC地址表
switch#clear mac-address-table restricted static清除限制性静态地址
交换机显示命令:
switch#write;保存配置信息
switch#show vtp;查看vtp配置信息
switch#show run;查看当前配置信息
switch#show vlan;查看vlan配置信息
switch#show interface;查看端口信息
switch#show int f0/0;查看指定端口信息
switch#show int f0/0 status;查看指定端口状态
switch#dir flash:;查看闪存