搜档网
当前位置:搜档网 › 在思科模拟器上配置Vlan

在思科模拟器上配置Vlan

在思科模拟器上配置Vlan
在思科模拟器上配置Vlan

Vlan(虚拟局域网)的简单配置

一、默认情况下

默认情况下所有连接到同一台交换机的计算机都是属于同一个vlan(即vlan1),因此连接到该交换机的同一网段的所有的主机都可以进行通信

PC1ping其他的几个主机

在交换机的命令行中的特权模式运行show vlan 命令,显示默认情况下交换机的所有端口都

在vlan1中,即所有的主机都是在同一个vlan(虚拟局域网)中。

二、创建两个vlan,把主机加入到不同的vlan中

在实验1的基础上,进行如下的操作。

1、在交换机的命令行中写如下的命令

Switch>enable

Switch#config t

Switch(config)#vlan 2

Switch(config-vlan)#exit

Switch(config)#interface f0/2

Switch(config-if)#switchport access vlan 2

Switch(config-if)#interface f0/4

Switch(config-if)#switchport access vlan 2

2、主机之间互相ping

得到的结果是:主机1和主机3可以互相ping通,主机2和主机4不能互相ping通,其他

的主机之间不能ping通

三、两个交换机的同一个vlan中的主机通信

1、分别在交换机1和交换机2的命令行下运行如下命令

Switch>en

Switch#config t

Switch(config)#vlan 2

Switch(config-vlan)#exit

Switch(config-if)#interface f0/2

Switch(config-if)#switchport access vlan 2

Switch(config-if)#interf f0/3

Switch(config-if)#switchport mode trunk

2、各个主机之间进行互ping

得到的结果是:主机1和主机3可以互相ping通,主机2和主机4不能互相ping通,其他的主机之间不能ping通

思科设备交换机vlantrunk配置

本次讲解vlan trunk配置方法: 本例配置模型图 命令行: 以下为switchA配置: Switch> Switch>enable Switch#vlan database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vlan 2 name TztA VLAN 2 added: Name: TztA Switch(vlan)#vlan 3 name TztB VLAN 3 added: Name: TztB Switch(vlan)#exit APPLY completed. Exiting.... Switch#wr Building configuration... [OK] Switch#config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int f0/1 Switch(config-if)#sw mo ac Switch(config-if)#sw acc vlan 2 Switch(config-if)#int f0/2 Switch(config-if)#sw mo ac Switch(config-if)#sw acc vlan 3 Switch(config-if)#exit Switch(config)#exit

CISCO配置VLAN

CISCO配置VLAN ?在交换机S1上配置VLAN ? VLAN编号 1、默认情况下,VLAN 1为本机VLAN和管理VLAN。 2、VLAN 1&&VLAN 1002-1005被预留,不能使用、修改、重命名或删除。 3、编号大于1005的被称为扩展VLAN,一般不会被保存到数据库中。 4、默认情况下,所有端口都属于VLAN 1 ? ?

将交换机端口分配给VLAN 步骤: 1、打开端口(interface f0/3) 2、告诉交换机这是一个非中继第二层端口(switchport mode access) 3、将端口分配给VLAN(switchport access vlan 3)

? ?配置中继端口 1、switchport mode access 将接口设置为永久非中继模式,且将链路设置为非中继链路。(无论另一端是否是非中继接口) 2、switchport mode trunk 将接口设置为永久中继模式,且将链路设置为中继链路。(无论另一端是否是中继接口) (注:一方为trunk,另一方为access,则链路为有限的连接) 3、switchport mode dynamic auto 当另一边为trunk或desirable时:链路为trunk。 当另一边为access或auto时:链路为access。 4、switchport mode dynamic desirable 只有另一边为access,链路方为access。 5、switchport nonegotiate 防止接口生成DTP帧。 只有接口模式为access或trunk时,才可以使用此命令。

Cisco路由器模拟器配置

Cisco路由器配置 *注意事项: 1.需要将镜像文件放到Gns3安装文件同一目录下 2.注意路由器用户名后面的模式(Ra>、Ra#、Ra、Ra、Ra 等),只有在特定的模式下才能进行相应的设置。 一、在Cisco上配置telnet的相关命令和说明: Ra>enable <进入特权模式> Ra#config terminal <进入全局模式> Ra#interface f0/0 <进入接口模式> Ra#ip address 192.168.0.22 (ip地址) 255.255.255.0 (子网掩码) (设置路由器f0/0接口的ip地址和子网掩码) Ra#no shutdown <生效之前的配置操作> Ra#exit Ra#line vty 0 4 (VTY是路由器的远程登陆的虚拟端口,0 4表示可以同时打开5个会话) Ra#login local Ra#username Cisco password hkgt123 Ra#enable secret hkgt123 <登入特权模式需要的口令> 验证telnet登陆路由器: Ra#telnet 192.168.0.22

二、在Cisco上配置SSH的相关命令和说明: Ra#config terminal Ra(config)#ip domain-name https://www.sodocs.net/doc/731387616.html, <配置一个域名> Ra(config)#crypto key generate rsa general-keys modulus 1024<生成一个rsa算法的密钥,密钥为1024位> (提示:在Cisoc中rsa支持360-2048位,该算法的原理是:主机将自己的公用密钥分发给相关的客户机,客户机在访问主机时则使用该主机的公开密钥来加密数据,主机则使用自己的私有的密钥来解密数据,从而实现主机密钥认证,确定客户机的可靠身份。) Ra(config)#ip ssh time 120 <设置ssh时间为120秒> Ra(config)#ip ssh authentication 4<设置ssh认证重复次数为4,可以在0-5之间选择> Ra(config)#line vty 0 4 <进入vty模式> Ra(config-line)#transport input ssh telnet <设置vty的登录模式为ssh、telnet,默认情况下是all即允许所有登录> Ra(config-line)#login Ra(config-line)#exit Ra(config)#aaa new-model Ra(config)#aaa authentication login default local <启用aaa认证,设置在本地服务器上进行认证> Ra(config)#username cisco privilege 15 secret hkgt123 <创建一个用户cisco级别为15并设置其加密密码为hkgt123用于SSH客户端登录> 修改登陆超时限制时间和登陆重复次数可以不修改 如果要把超时限定改为180秒,则应该用:Ra(config)# ip ssh time-out 180 如果要把重试次数改成5次,则应该用:Ra(config)# ip ssh authentication-retries 5 这样SSH的CISCO设置就完成了。 登陆: Ra#ssh -l登陆ssh用户名 IP地址

思科交换机实用配置步骤详解

1.交换机支持的命令: 交换机基本状态: switch: ;ROM状态,路由器是rommon> hostname> ;用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口状态交换机口令设置: switch>enable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname ;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口令 switch(config)#enable password xxa ;设置特权非密口令switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令xx switch#exit ;返回命令

交换机VLAN设置: switch#vlan database ;进入VLAN设置 switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;删vlan 2 switch(config)#int f0/1 ;进入端口1 switch(config-if)#switchportaccess vlan 2 ;当前端口加入vlan 2 switch(config-if)#switchport mode trunk ;设置为干线 switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlan switch(config-if)#switchport trunk encap dot1q ;设置vlan 中继switch(config)#vtp domain ;设置发vtp域名 switch(config)#vtp password ;设置发vtp密码 switch(config)#vtp mode server ;设置发vtp模式 switch(config)#vtp mode client ;设置发vtp模式 交换机设置IP地址: switch(config)#interface vlan 1 ;进入vlan 1 switch(config-if)#ipaddress ;设置IP地址 switch(config)#ip default-gateway ;设置默认网关

思科2960交换机配置命令

思科2960交换机配置命令 交换机的端口工作模式一般可以分为三种:Access(普通模式),Multi(多vlan模式),Trunk(中继模式)。1、允许多个vlan的是multi模式,而不是trunk 模式。2、两个都设为trunk模式:一:如果在同一交换机上,则决不会在同一vlan;二:如果是两个交换机上,且两端口物理连接的话,共享vlan信息。但是这两个端口已经被使用,所以只能说,使用与这两个端口相同vlan的端口的计算机是同一虚拟局域网。3、access和multi模式下,端口用于计算机;trunk 模式下,端口用于交换机间连接。所以access和trunk没有可比性。 交换机基本状态: switch ;ROM状态,路由器是rommon hostname ;用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口状态 交换机口令设置: switchenable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname ;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口令 switch(config)#enable password xxa ;设置特权非密口令 switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令xx switch#exit ;返回命令

1思科模拟器基本操作hao

三层交换机基日常本操作和维护 1、设置系统名称 ZXR10>-----普通用户模式 ZXR10#------特权模式 ZXR10(config)#--------全局模式 ZXR10(config)#interface fastethernet 0/1 //进入交换机fei_0/1口 ZXR10(config-if)#-------------子接口模式 ZXR10>enable //进入特权模式 ZXR10#configure terminal //进入全局配置模式 ZXR10(config)#hostname ZTE //对系统性命名为ZTE ZTE(config) #exit //退出用exit命令 2、设置系统日期和时间 ZXR10#clock set 15:52:35 apr 18 2011 //特权模式下 验证方法:-----注:思科模拟器上没有月份显示,用???代替 ZXR10#show clock-------显示设备当前的系统时间 3、设置设备特权模式密码 ZXR10(config)#enable secret zte //密文enable密码 ZXR10(config)#enable password zte //明文 验证方法: ZXR10(config)#exit ZXR10#exit 按回车键 ZXR10>输入enable Password:输入你的enable 密码。 4、设置登录标志 banner motd c //Set Message of the Day banner Enter TEXT message. End with the character 'c'. Hello world!! c ) 验证: ZXR10(config)#exit ZXR10#exit 按回车键 出现: Hello world!!--------欢迎语 ZXR10> 5、设置telnet登陆模拟器交换路由设备 拓扑图 远程登录时所端口连接设备及Telnet ??switch(config-line)可以设置通过console

思科交换机VLAN配置

配置C i s c o交换机V L A N配置 进入特权模式 Switch#en 进入配置模式 Switch#config 创建VLAN: Switch(config)# vlan10 (创建VLAN) 给VLAN 起名字 Switch#config Switch(config)# valn 20 Switch(vlan)# name neiwang Switch(vlan)#ex 分配端口(将f 0/1-f 0/10端口划归vlan20,f 0/11-f 0/24端口划归vlan30): Switch(config)#int range f0/1-10(多端口) Switch(config-if-range)#switchport mode access(必须) Switch(config-if-range)#switchport access vlan 20 Switch(config-if-range)#ex Switch(config)#int range f0/11-24 Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport access vlan 30 Switch(config-if-range)#ex 设置VLAN的IP地址 Switch#config Switch(config)#int vlan 20 1 Switch(config-if)#no shutdown Switch(config-if)#ex Switch(config)#int vlan 30 Switch(config-if)#ip address shutdown Switch(config-if)#ex Switch(config)#ex Switch#ex 保存设置 Switch#wr 设置一台交换机VLAN之间互通写路由

思科模拟器网络配置

IP地址范围:77. . ./8 借位范围9~16 密集区地址块,划分为不同的子网红色号5个 77.1.0.0/16 宿舍 分为5个vlan 77.1.001*****.0/19 网关:77.1.63.254 Vlan号:10 掩码:255.255.224.0 地址池IP段:77.1.32.1~77.63.253 网络号:77.1.32.0 77.1.010*****.0/19 网关:77.1.95.254 Vlan号:20 地址池IP段:77.1.64.1~77.1.95.253 网络号:77.1.64.0 77.1.011*****.0/19 网关:77.1.127.254 Vlan号:30 地址池IP段:77.1.96.1~77.1.127.253 网络号:77.1.96.0 77.1.100*****.0/19 网关:77.1.159.254 Vlan号:40 地址池IP段:77.1.128.1~77.1.159.253 网络号:77.1.128.0 77.1.101*****.0/19 网关:77.1.191.254 Vlan号:50 地址池IP段:77.1.160.1~77.1.191.253 网络号:77.1.160.0 77.1.110*****.0/19 网关:77.1.223.254 Vlan号:60 放置DHCP服务器和DNS服务器 网络号:77.1.192.0 注意:实验中的DNS服务器设置为192.168.1.1 在SDomlan中配置Vlan口 Switch>en Switch#conf t Switch(config)#hostname SDomlan SDomlan#vlan SDomlan#vlan database SDomlan(vlan)#vlan 10 VLAN 10 added: Name: VLAN0010 SDomlan(vlan)#vlan 20 VLAN 20 added:

Cisco交换机常用配置命令

Cisco交换机常用配置命令 CISCO交换机基本配置 switch>ena 進入特权模式 switch#erasenvram 全部清除交换机的所有配置 switch#reload 重新启动交换机(初始提示符为switch> ) ------------------------------------------------------------------------------------ CISCO交换机基本配置:Console端口连接 用户模式hostname>; 特权模式hostname(config)# ; 全局配置模式hostname(config-if)# ; 交换机口令设置: switch>enable ;进入特权模式 switch#config;进入全局配置模式 switch(config)#hostname cisco ;设置交换机的主机名 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#write 保存配置設置 switch#copy running-config startup-config 保存配置設置,與write一樣switch#exit;返回命令 配置终端过一会时间就会由全局配置模式自动改为用户模式,将超时设置为永不超时 switch#conf t switch(config)#line con 0 switch(config-line)#exec-timeout 0 --------------------------------------------------------------------------------- 交换机显示命令: switch#write;保存配置信息 switch#showvtp;查看vtp配置信息 switch#show run ;查看当前配置信息 switch#showvlan;查看vlan配置信息 switch#showvlan name vlan2 switch#show interface ;查看端口信息

思科模拟器配置命令

Switch#conf t Switch(config)#vlan 10 Switch(config-vlan)#ex Switch(config)#int rang f0/1-5 Switch(config-if-range)#sw acc vlan 10 Switch(config-if-range)#ex Switch(config)#int f0/24 Switch(config-if)#sw mode trunk Switch(config)#int rang f0/23-24 Switch(config-if-range)#channel-group 1 mode on Switch(config-if-range)#ex Switch(config)#int port-channel 1 Switch(config-if)#sw mode trunk 远程登陆交换机:

Switch(config-if)#ip add 1.1.1.1 255.255.255.0(IP地址要和远程登陆的客户机在同一个网段) Switch(config-if)#no sh Switch(config-if)#ex Switch(config)#line vty 0 Switch(config-line)#password zlr Switch(config-line)#exit Switch(config)#enable secret 123 Switch(config)#ex Switch(config)#vlan 10 Switch(config-vlan)#vlan 20 Switch(config-vlan)#ex Switch(config)#int rang f0/23-24 Switch(config-if-range)#sw trunk encapsulation dot1q

CISCO交换机配置操作学习教程

CISCO交换机配置操作学习教程 1.注意事项 1.交换机启动需要大约4-5分钟; 2.网线插入交换机接口从黄变为绿需要大约1-2分钟,即进入正常工作模式; 3.建议使用XP系统进行操作,2003默认没有安装超级终端,需要使用安装光盘添加该工具才有; 4.请严格按照以下步骤进行,背景灰色字体为交换机显示信息,蓝色字体为配置命令。 2.准备工作 先保持交换机断电状态; 使用调试串口线连接笔记本电脑的串口与交换机背面的CONSOLE 接口; 打开超级终端: 开始-所有程序-附件-超级终端; 配置超级终端: 名称-cisco 选择com1或com2(请依照实际情况进行选择) 修改每秒位数为9600 应用-确定-回车; 3.初始配置 给交换机通电;

片刻后会看到交换机的启动信息,直到出现以下配置选项: Wouldyouliketoterminateautoinstall?[yes]:no Wouldyouliketoentertheinitialconfigurationdialog?[yes/no ]:no Wouldyouliketoterminateautoinstall?[yes]:no 4.出现命令窗口 Switch> 5.备份出厂配置 Switch>en进入特权模式 Switch#copyrunning-configsfbak-config Destinationfilename[sfbak-config]?回车 片刻后会出现: 1204bytescopiedin0.529secs(2276bytes/sec) 表示文件备份成功。 6.配置账号密码 Switch#configureterminal进入配置子模式 Switch(config)#enablepasswordcisco设置PASSWORD密码为cisco Switch(config)#enablesecretcisco设置SECRET密码为cisco Switch(config)#exit 片刻后会出现: 00:11:26:%SYS-5-CONFIG_I:Configuredfromconsolebyconsole

cisco三层交换机vlan间路由配置实例

cisco三层交换机vlan间路由配置实例 下面以cisco3560实例说明如何在一个典型的快速以太局域网中实现VLAN。所谓典型局域网就是指由一台具备三层交换功能的核心交换机接几台分支交换机(不一定具备三层交换能力)。我们假设核心交换机名称为:COM;分支交换机分别为:PAR1、PAR2、PAR3,分别通过Port 1的光线模块与核心交换机相连;并且假设VLAN名称分别为COUNTER、MARKET、MANAGING…… 需要做的工作: 1、设置VTP DOMAIN(核心、分支交换机上都设置) 2、配置中继(核心、分支交换机上都设置) 3、创建VLAN(在server上设置) 4、将交换机端口划入VLAN 5、配置三层交换 1、设置VTP DOMAIN。 VTP DOMAIN 称为管理域。 交换VTP更新信息的所有交换机必须配置为相同的管理域。如果所有的交换机都以中继线相连,那么只要在核心交换机上设置一个管理域,网络上所有的交换机都加入该域,这样管理域里所有的交换机就能够了解彼此的VLAN列表。 COM#vlan database 进入VLAN配置模式 COM(vlan)#vtp domain COM 设置VTP管理域名称 COM COM(vlan)#vtp server 设置交换机为服务器模式 PAR1#vlan database 进入VLAN配置模式 PAR1(vlan)#vtp domain COM 设置VTP管理域名称COM PAR1(vlan)#vtp Client 设置交换机为客户端模式 PAR2#vlan database 进入VLAN配置模式 PAR2(vlan)#vtp domain COM 设置VTP管理域名称COM PAR2(vlan)#vtp Client 设置交换机为客户端模式 PAR3#vlan database 进入VLAN配置模式 PAR3(vlan)#vtp domain COM 设置VTP管理域名称COM PAR3(vlan)#vtp Client 设置交换机为客户端模式 注意:这里设置核心交换机为Server模式是指允许在该交换机上创建、修改、删除VLAN 及其他一些对整个VTP域的配置参数,同步本VTP域中其他交换机传递来的最新的VLAN 信息;Client模式是指本交换机不能创建、删除、修改VLAN配置,也不能在NVRAM中存储VLAN配置,但可同步由本 VTP域中其他交换机传递来的VLAN信息。 2、配置中继为了保证管理域能够覆盖所有的分支交换机,必须配置中继。Cisco交换机能够支持任何介质作为中继线,为了实现中继可使用其特有的ISL标签。ISL (Inter-Switch Link)是一个在交换机之间、交换机与路由器之间及交换机与服务器之间传递多个VLAN信息及VLAN数据流的协议,通过在交换机直接相连的端口配置 ISL封装,即可跨越交换机进行整个网络的VLAN分配和进行配置。 在核心交换机端配置如下: COM(config)#interface gigabitEthernet 2/1 COM(config-if)#switchport COM(config-if)#switchport trunk encapsulation isl 配置中继协议 COM(config-if)#switchport mode trunk COM(config)#interface gigabitEthernet 2/2 COM(config-if)#switchport COM(config-if)#switchport trunk encapsulation isl 配置中继协议 COM(config-if)#switchport mode trunk COM(config)#interface gigabitEthernet 2/3 COM(config-if)#switchport COM(config-if)#switchport trunk encapsulation isl 配置中继协议 COM(config-if)#switchport mode trunk 在分支交换机端配置如下: PAR1(config)#interface gigabitEthernet 0/1

CISCO三层交换机VLAN配置说明

CISCO三层交换机VLAN配置说明。 实验目标: (1) 第一步实现划分4个vlan,将相应port置入到vlan号中 (2) 第二步实现4个vlan间可以相互ping (3) 第三步实现sales,tech,manage不可以相互通讯,但允许和server通讯实现过程: 第 一步划分vlan如下: Switch#vlan data Switch(vlan)#vlan 10 name sales VLAN 10 added: Name: sales Switch(vlan)#vlan 20 name tech VLAN 20 added: Name: tech Switch(vlan)#vlan 30 name manage VLAN 30 added: Name: manage

Switch(vlan)#vlan 40 name server VLAN 40 added: Name: server Switch(vlan)# Switch(config)#int range fa 0/0 - 3 Switch(config-if-range)#switchport access vlan 10 Switch(config-if-range)#exit Switch(config)#int range fa 0/4 - 6 Switch(config-if-range)#switchport access vlan 20 Switch(config-if-range)#exit Switch(config)#int range fa 0/7 - 8 Switch(config-if-range)#switchport access vlan 30 Switch(config-if-range)#exit Switch(config)#int fa 0/9 Switch(config-if)#swit Switch(config-if)#switchport acce Switch(config-if)#switchport access vlan 40 Switch(config-if)#exit

思科模拟器配置命令

思科模拟器配置命令 Document number:PBGCG-0857-BTDO-0089-PTT1998

相同VLAN间的通信: Switch0与Switch1配置命令相同: Switch#conf t Switch(config)#vlan 10 Switch(config-vlan)#ex Switch(config)#int rang f0/1-5 Switch(config-if-range)#sw acc vlan 10 Switch(config-if-range)#ex Switch(config)#int f0/24 Switch(config-if)#sw mode trunk 配置聚合口:(聚合口的成员口类型要一致) Switch0与Switch1配置命令相同: Switch(config)#int rang f0/23-24 Switch(config-if-range)#channel-group 1 mode on Switch(config-if-range)#ex Switch(config)#int port-channel 1 Switch(config-if)#sw mode trunk 远程登陆交换机:

Switch(config)#int vlan 1 Switch(config-if)#ip add (IP地址要和远程登陆的客户机在同一个网段) Switch(config-if)#no sh Switch(config-if)#ex Switch(config)#line vty 0 Switch(config-line)#password zlr Switch(config-line)#exit Switch(config)#enable secret 123 Switch(config)#ex 三层交换机不同VLAN间的通信: 三层交换机配置: Switch(config)#vlan 10 Switch(config-vlan)#vlan 20 Switch(config-vlan)#ex Switch(config)#int rang f0/23-24 Switch(config-if-range)#sw trunk encapsulation dot1q

cisco模拟器交换机配置教程

1、进入用户模式,像这样有个大于符号的 2、输入enable进入特权模式,像这样有个#号的 3、输入configure terminal进入全局配置模式 4、在全局配置模式下可以先设置特权密码,输入enable password 123 5、接下来对vlan1的接口进行配置。首先进入接口配置模式, 输入interface vlan 1 6、现在开始配置vlan 1 的管理ip 和子网掩码。输入ip address 192.168.1.1 255.255.255.0 7、将vlan1 设置为活跃状态。输入no shut 8、退出当前模式进入全局配置模式。输入exit 9、接下来是设置远程登录密码。首先进入line配置模式,输 入line vty 0 4 (PS:这里VTY(Virtual Type Terminal)

是虚拟终端的意思,line vty 0 4表示设置0到4号5个端口为远程登录端口,设置为0 3,0 2,0 1完全是可以的) 10、然后设置密码。输入password jfb 11、输入了密码当然要保存!在上一步的基础上输入login 12、然后输入end返回特权模式,再输入show running查看我 们对交换机的配置情况 13、设置正确。 14、现在就是对pc配置ip 和子网掩码(192.168.1.2 255.255.255.0) 15、连接一根直通双绞线。 16、接下来激动人心的时刻到来了,在命令提示符中输入ping 192.168.1.1,是不是通了,如果没有可多试几次!

17、更激动人心的时刻是在下面。输入telnet 192.168.1.1 18、输入远程登录密码jfb,看看是不是远程登录成功了 19、输入enable ,提示输入密码,该密码为特权密码,前面设 置的123 看看是不是进入特权模式了! 20、现在你就可以对交换机进行配置了 MY GOD``````

思科交换机配置口令

CISCO交换机配置命令大全 switch> 用户模式 1:进入特权模式 enable switch> enable switch# 2:进入全局配置模式 configure terminal switch> enable switch#configure terminal switch(conf)# 3:交换机命名 hostname aptech2950 以aptech2950为例 switch> enable switch#configure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令 enable password cisco 以cisco为例 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码 enable secret ciscolab 以cicsolab为例 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab 6:设置虚拟局域网vlan 1 interface vlan 1 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip 和子网掩码 aptech2950(conf-if)#no shut 是配置处于运行中 aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway 192.168.254 设置网关地址

思科模拟器命令

1. 计算机命令: PCA login: root ;使用root用户password: linux ;口令是linux # shutdown -h now ;同init 0 关机 # logout # login # ifconfig ;显示IP地址 # ifconfig eth0 netmask ;设置IP地址 # ifconfig eht0 netmask down ;删除IP地址 # route add 0.0.0.0 gw # route del 0.0.0.0 gw # route add default gw ;设置网关 # route del default gw ;删除网关 # route ;显示网关 # ping # telnet 2. 交换机支持的命令: 交换机基本状态: switch: ;交换机的ROM状态rommon> ;路由器的ROM状态 hostname> ;用户模式hostname# ;特权模式hostname(config)# ;全局配置模式hostname(config-if)# ;接口状态 交换机口令设置: switch>enable ;进入特权模式switch#config terminal ;进入全局配置模式switch(config)#hostname ;设置交换机的主机名switch(config)#enable secret xxx ;设置特权加密口令switch(config)#enable password xxa ;设置特权非密口令switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令xx switch#exit ;返回命令 交换机VLAN设置: switch#vlan database ;进入VLAN设置switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;删vlan 2 switch(config)#int f0/1 ;进入端口1

思科交换机vlan配置和划分

命令行讲解: Switch〉 Switch>e nable Switch# Switch#vlan database // 进入vlan 配置模式 % Warning: It is recomme nded to con figure VLAN from config mode, as VLAN database mode is being deprecated. Please con sult user docume ntati on for con figuri ng VTP/VLAN in config mode. Switch(vla n) #vla n 2 name TztA // 划分vlan 2 名字为TztA VLAN 2 added: Name: TztA // 显示已划分的vlan名 Switch(vla n) #vla n 3 name TztB // 划分vlan 3 名字为TztB VLAN 3 added:

Switch(vlan)#exit // 推出 vlan 配置 APPLY completed. Exiting . Switch#wr // 保存已有配置(此处为 write 的缩写) Building configuration... [OK] // 提示已保存成功 Switch#config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config-if)#sw ac vlan 3 // Switch(config-if)#exit Switch(config)#exit %SYS-5-CONFIG_I: Configured from console by console Switch#wr Switch(config)#interface f0/1 // 进入端口 f0/1 Switch(config-if)#switchport mode access // 将端口 fO/1设置为静态VLAN 模式 Switch(config-if)#switchport access vlan 2 // 将将端口 fO/1 分配给 VLAN2 Switch(config-if)#exit Switch(config)#int fO/1 Switch(config-if)#exit Switch(config)#int fO/2 Switch(config-if)#switchport mode access // 将端口 fO/2设置为静态VLAN 模式 Switch(config-if)#switchport access vlan 2 // 将将端口 fO/2 分配给 VLAN2 Switch(config-if)#exit Switch(config)#int fO/3 Switch(config-if)#sw mo ac // 将端口 fO/3 设置为静态VLAN 模式(此处为命令行缩写模式) Switch(config-if)#sw ac vlan 3 // 将将端口 fO/3 分配给 VLAN2 Switch(config-if)#exit Switch(config)#int fO/4 Switch(config-if)#sw mo ac // 将端口 fO/4设置为静态VLAN 模式 将将端口 fO/4 分配给 VLAN2

相关主题