思科模拟器安全配置,思科模拟器配置命令大全

http://www.itjxue.com  2023-01-08 15:06  来源:未知  点击次数: 

思科模拟器怎么查看设备配置情况

思科模拟器查看设备配置情况如下:

1、查看运行配置文件Routershowrunning-config运行配置文件running-config位于路由器的RAM中。

2、查看启动配置文件:Routershowstartup-config启动配置文件startup-config位于路由器的NVRAM中。

思科模拟器中怎样给路由器配置ip地址

在思科模拟器中给路由器配置ip可以分为以下5步,如下:

打开思科模拟器,找到路由器图标,路由器对应的英文为Router,

2.在第一部找到的路由器中,模拟器提供多种路由器选择,根据需要任意选择一个路由器,拖动一个路由器到空白处即可新建一个路由器,路由器的形状为圆柱形,上面有十字形花纹。

3.单击空白处的路由器,显示如下路由器配置界面,在此界面中可以配置路由器的IP地址、子网掩码等信息,我们点击config配置路由器。

4.点击config,显示如下界面,然后点击FastEthernet 0/0,配置0/0口的IP地址,点击FastEthernet 0/1,配置0/1口的IP地址。路由器的两个端口对应两个不同的IP地址。

5.在IP Address中输入要配置的IP地址,如192.168.0.1,在Subnet Mask中配置子网掩码,如255.255.255.0。最后单击确认退出即可

在思科模拟器上怎么进行交换机的基本配置

当创建vlan时,必须要决定是否使用VTP,使用VTP,能使配置在一个或多个交换机上被改变时,那些改变会自动传送给在同一个VTP域中的其他交换机。VTP 被组织成管理域(VTP Domain),相同域中的交换机能共享VLAN 信息。根据交换机在VTP 域中的作用不同,VTP 可以分为三种模式:服务器模式(Server),客户机模式(Client),透明模式。。。

1、首先,打开思科模拟器软件,连接三台交换机的连接线,将所有交换机互相连接起来,一台当服务器,一台当客户机,另外一台当透明模式。

2、把三台交换机的配置清除干净,重启交换机,配置命令为:

复制内容到剪贴板 S1#flash:vlan.dat S1#erasestartup-config S1#reload

配置S1 为VTP server,配置命令为:

复制内容到剪贴板 S1(config)#vtpmodeserver

3、配置S3 为VTP transparent,配置命令是:

复制内容到剪贴板 S3#vlandatabase S3(vlan)#vtptransparent S3(vlan)#vtppasswordcisco(配置交换机的密码) SettingdeviceVLANdatabasepasswordtocisco

4、配置S2 为VTP client,配置命令是:

复制内容到剪贴板 S2(config)#vtpmodeclient SettingdevicetoVTPCLIENTmode. S2(config)#vtpdomainVTP-TEST DomainnamealreadysettoVTP-TEST. S2(config)#vtppasswordcisco

5、在S1 上创建VLAN,检查S2、S3 上的VLAN 信息,配置命令是:

复制内容到剪贴板 S1(config)#vlan2 S1(config)#vlan3

查看s1,s2,s3的`VLAN配置信息。命令是:

复制内容到剪贴板 S1#showvlan S2#showvlan S3#showvlan

6、查看VTP 信息,查看交换机的vtp详细信息和版本等信息:

复制内容到剪贴板 S1#showvtpstatus

注意事项:

1、要成功配置vtp服务器,应确认 配置的所有交换机都已设置为默认设置。

2、在网络中配置至少两台vtp服务器交换机。

3、确保所有的交换机都配置相同的vtp协议版本。

4、配置交换机的vtp模式一定要在交换机的特权配置模式下配置。

在思科模拟器上如何进行交换机的基本配置?

楼主,你好\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\x0aswitchenable ;进入特权模式\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: ;查看闪存

在思科模拟器的路由器上怎么配置DHCP服务器?

1.?打开思科模拟器软件,找出一台2811类的路由器和两台2960类的交换机,4台PC电脑,并用正确的线缆将各个设备互相连接起来,如下图所示:

2.给所有设备都重新命名,路由器命名为r1,一交换机命名为sw1,另一交换机命名为sw2,如下图所示:

3. 先配置路由器r1先,配置命令为:

r1(config)#int f0/0

r1(config-if)#no sh

再配置路由器设备的远程登录和密码保护,配置命令为:

r1(config)#lin vty 0 4

r1(config-line)#login local

r1(config-line)#username admin?password cisco

r1(config-line)#exit

r1(config)#enable secret cisco

r1(config)#service password-encrption? ?(此命令为加密所有口令)

如下图所示:

4.配置交换机sw1,配置命令是:

sw1(config)#int vlan 1

sw1(config-if)#ip add 192.168.1.2 255.255.255.0

sw1(config-if)#no sh

sw1(config-if)#ex

sw1(config)#ip default-gateway 192.168.1.1

再用相同方法配置sw2,如下图所示:

5. 配置vlan设定,在sw1上划分vlan 2,3,将相应端口加入其中,配置命令为:

sw1#conf t

Enter configuration commands, one per line. ?End with CNTL/Z.

sw1(config)#vlan 2

sw1(config-vlan)#ex

sw1(config)#vlan 3

sw1(config-vlan)#ex

sw1(config)#int f0/4

sw1(config-if)#switchport mode access

sw1(config-if)#switchport access vlan 2

sw1(config-if)#int f0/5

sw1(config-if)#switchport mode access

sw1(config-if)#switchport access vlan 3

sw1(config-if)#ex

用相同方法在sw3上面划分vlan,并将相应的端口加入其中,如下图所示:

6.配置单臂路由,实现valn1,2,3之间的互访,配置sw1接口f0/1为主干链路,配置命令是:

sw1(config)#int f0/1

sw1(config-if)#switchport??mode ?trunk

sw1(config-if)#no ?sh

如下图所示:

7.在路由器r1上进行封装,配置命令如下图所示:

r1#conf t

Enter configuration commands, one per line. ?End with CNTL/Z.

r1(config)#int f0/0

r1(config-if)#no shut

r1(config)#int f0/0.1

r1(config-subif)#encapsulation dot1Q 1

r1(config-subif)#ip add 192.168.1.1 255.255.255.0

r1(config-subif)#ex

r1(config)#int f0/0.2

r1(config-subif)#encapsulation dot1Q 2

r1(config-subif)#ip add 192.168.2.1 255.255.255.0

r1(config-subif)#ex

r1(config)#int f0/0.3

r1(config-subif)#encapsulation dot1Q 3

r1(config-subif)#ip add 192.168.3.1 255.255.255.0

r1(config-subif)#no sh

r1(config-subif)#ex

如下图所示:

8.配置DHCP服务器,即是配置路由器r1,配置命令是:

r1#enable

r1#conf t

r1(config)#ip dhcp excluded-address 192.168.2.1

r1(config)#ip dhcp pool vlan2

r1(dhcp-config)#net 192.168.2.0 255.255.255.0

r1(dhcp-config)#default-router 192.168.2.1

r1(dhcp-config)#dns-server 100.1.1.2

r1(config)#ip dhcp excluded-address 192.168.3.1

r1(config)#ip dhcp pool vlan3

r1(dhcp-config)#net 192.168.3.0 255.255.255.0

r1(dhcp-config)#dns-server 100.1.1.2

r1(dhcp-config)#ex

9. 现在PC之间可以自动获取IP地址和网关了,如下图所示:

(责任编辑:IT教学网)

更多

推荐淘宝营销文章