思科交换机设置 | 思科交换机配置ip地址

思科交换机设置 | 思科交换机配置ip地址

1. 思科交换机配置ip地址

1.完成交换机重命名

Switch>enable

Switch#configure terminal

Switch(config)#hostname cisco

2.设置TELNET时必要的密码

cisco(config)#enable password ccna

cisco(config)#line vty 0 4

cisco(config-if)#password ccnp

cisco(config-if)#exit

注:设置交换机的特权密码。设置交换机的虚拟登陆时的密码。

3.设置管理VLAN的IP地址

cisco(config)#interface vlan 1

cisco(config-if)#ip address 202.119.249.250 255.255.255.0

cisco(config-if)#no shutdown

cisco(config-if)#exit

cisco(config)#ip default-gateway 202.119.249.2

注:进入接口vlan1。配置管理ip地址。置交换机的网关。

4.完成MAC地址的绑定

cisco(config)#mac-address-table static 0010.7a61.1884 vlan 1 interface fastethernet 0/5

注:将MAC地址加入到地址表中

5.测试实验效果

将PC终端设置ip地址202.119.249.251,然后与交换机的fa0/8相连,并打开“开始”菜单—“运行”—“cmd”,接着按照下面给出的DOS所显示的信息来验证实验。telnet登陆后,分别输入vty密码和特权密码。然后show mac-address-table显示mac地址表。

2. 思科交换机配置IP地址

1.第一首先在电脑上点击打开Cisco软件。然后选择一台电脑还有一个路由器。

2.第二然后在用虚线将电脑还有路由器连起来。双击路由器,打开CLI窗口。

3.第三然后敲no回车键,再敲enable回车键。在敲conft进入到全局配置模式。

4.第四然后在全局配置模式中,敲intf0/0。然后敲noshut打开接口。

5.第五然后就可以配置路由器的IP地址。敲ipaddress192.168.2.1+空格键+255.255.255.0。

6.第六然后点击电脑,再点击Desktop窗口。再点击IPConfiguration窗口。将刚才的ip输入到指定的地方中。

3. 思科交换机配置ip地址不对

很简单,找一台pc,开启tftp服务,开tftp服务的软件很多,然后这台pc要跟3750的路由要通然后在3750上执行copy running-config tftp,然后按照提示,输入你准备pc的ip地址和文件名,这样就把配置文件备份到你的pc上了,就在tftp的目录下然后到你要到如的3750上,配置好ip地址等数据,保证能跟你的pc能通,然后执行copy tftp running-config,然后输入pc的ip地址和你之前备份的文件名,就可以导入配置了

4. 思科怎么给交换机配置ip地址

conf t 进入全局配置模式ip dhcp pool vlan65 进入dhcp配置下no dns-server 10.40.1.25 202.96.128.86 221.5.88.88 去掉原来命令dns-server 202.96.128.86 221.5.88.88 加上新的dns命令

5. 思科交换机配置ip地址命令

第一首先在电脑上点击打开Cisco软件。

然后选择一台电脑还有一个路由器。

第二然后在用虚线将电脑还有路由器连起来。

双击路由器,打开CLI窗口。

第三然后敲no回车键,再敲enable回车键。

在敲conf t进入到全局配置模式。

第四然后在全局配置模式中,敲int f0/0。

然后敲no shut打开接口。

第五然后就可以配置路由器的IP地址。

敲ip address 192.168.2.1+空格键+255.255.255.0。

第六然后点击电脑,再点击Desktop窗口

再点击IP Configuration窗口。

将刚才的ip输入到指定的地方中。

6. 配置思科交换机管理ip地址

答:思科交换机查看vlan命令。在Cisco公司的交换机上,可以使用showvlan命令查看交换机配置的VLAN相关信息首先进入设备里面#showmac。

然后再客户端开始-运行一-CMD回车-ipconfig/all看下MAC地址然后再交换机上找M相同的MAC这样就能知道这个PC链接的端口是多少了。

然后在交换机上输入#showvlan找到这个端口。例如他是F0/2就在VLAN后面找F0/2看它是属于哪个VLAN的就可以了。给每个VLAN设定下例如vlan6获取的地址是192.168.6.X,那么就在DHCP上把VLAN3的删除了就可以了。

7. 思科交换机配置ip地址查询

二层交换机中只能通过show mac add | include 端口名(如:show mac add | in Fa0/1 )获取该接口的mac 需要再到中心交换机上show ip arp | include (MAC地址)就可以了 ps:如果是老的交换机,如catalyst 3548这类,show mac add 需要修改为show mac-add,中间是-

8. 思科交换机配置IP

1.设置主机名/系统名 switch(config)# hostname “hostname” switch(enable) set system name name-string

2.设置登录口令 switch(config)# enable password level 1 password switch(enable) set password

switch(enable) set enalbepass

3.设置远程访问 switch(config)# inte***ce vlan 1

switch(config-if)# ip address ip-address netmask

switch(config-if)# ip default-gateway ip-address switch(enable) set inte***ce sc0 ip-address netmask broadcast-address

switch(enable) set inte***ce sc0 vlan

switch(enable) set ip route default gateway

4.启用和浏览CDP信息 switch(config-if)# cdp enable

switch(config-if)# no cdp enable switch(enable) set cdp {enable|disable} module/port

5、给交换机配置使能密码,进入特权模式时需要输入密码才能进入,避免设备可以被其他人员使用。cisco-sw1(config)#enable secret ciscoswitchps:secret表示密码用的密文

6、交换机配置VLAN,并给将端口加入到该VLAN:cisco-sw1(config)#vlan 2cisco-sw1(config-vlan)#name testcisco-sw1(config-vlan)#exitcisco-sw1(config)#interface fastEthernet 0/1cisco-sw1(config-if)#switchport mode accesscisco-sw1(config-if)#switchport access vlan 2

7、进入交换机某一端口switch> enableswitch#configure terminalswitch(conf)# interface fastehernet 0/1switch(conf-if)#

8、show:查看命令,交换机的所有配置和其它相关信息都需要通过show命令查看。switch> enableswitch# show version 察看系统中的所有版本信息switch#show vlan id 1 查看交换机有关vlan配置信息switch#show running-configure 查看交换机当前起作用的配置信息switch#show interface fastethernet 0/1 察看交换机1 接口具体配置和统计信息switch#show mac-address-table 查看mac地址转发表

9、交换机恢复出厂switch> enableswitch# erase startup-configureswitch# reload

10、telnet 远程登录设置:switch>enswitch#configure terminalswich(conf)#enable password cisco 以cisco 为特权模式密码swich(conf)#interface vlan 1 以vlan 1端口作为远程登录的接口,其他端口亦可swich(conf-if)#ip address 192.168.1.1 255.255.255.0swich(conf-if)#no shutswich(conf-if)#exitswich(conf)line vty 0 4 设置0-4 个用户可以telnet 远程登陆swich(conf-line)#password 123456swich(conf-line)#login

11、SSH远程登录设置:Switch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname cisco-sw1

交换机重新命名cisco-sw1(config)#ip domain-name cisco.com

配置域名cisco-sw1(config)#line vty 0 4cisco-sw1(config-line)#transport input ssh

登录方式为SSHcisco-sw1(config-line)#exitcisco-sw1(config)#crypto key generate rsa

配置秘钥The name for the keys will be: cisco-sw1.cisco.comChoose the size of the key modulus in the range of 360 to 2048 for yourGeneral Purpose Keys. Choosing a key modulus greater than 512 may takea few minutes.How many bits in the modulus [512]: 1024

思科推荐使用1024% Generating 1024 bit RSA keys, keys will be non-exportable

9. 思科交换机IP

1、配置界面需要console线配合超级终端软件,请自行搜索。

2、:默认有1个VLAN1,再增加一个VLAN2,设置相应的IP地址段,不要启用ip routing。把外线接在VLAN1,这样VLAN1能访问外网,而VLAN2只能访问本VLAN,同时他们互相访问不了。但这样子关于FTP服务器的需求就无法实行。

总结:楼主提出的需求本身就不明确,甚至有矛盾。比如:开始说划2个VLAN要互不能访问,接着又说要有1个VLAN可以访问内网,这里内网是指2个VLAN还是说本VLAN。如果是本VLAN那就没有必要说出来了,如果是指2个VLAN,那就与之前所提的要求矛盾。 这个问题不明确,关于FTP服务器需求也就无法进行。

tag:交换机配置地址命令查询

相关内容