设为首页收藏本站language 语言切换
查看: 1316|回复: 8
收起左侧

[求助] 有關Vlan問題

[复制链接]
发表于 2017-7-19 16:43:01 | 显示全部楼层 |阅读模式
3鸿鹄币
小弟正在學習的路上
然後在嘗試的路上遇到一些新手級的問題求解答
首我在建立vlan時打下以下的command
R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#host sw1
sw1(config)#vlan 2
                 ^
% Invalid input detected at '^' marker.

然後我在網上找了以下的command成功了

sw1#
sw1#vlan database
sw1(vlan)#vlan 20 name IT
VLAN 20 added:
    Name: IT

請問兩者的分別在那呢?
然後我在設定access mode時也失敗了,
sw1#
sw1#config t
Enter configuration commands, one per line.  End with CNTL/Z.
sw1(config)#int fa 0/1
sw1(config-if)#switchport mode access
                ^
% Invalid input detected at '^' marker.
也想問問這是為什麼?

IOS MODE: c3600 and c2691
坐等各路大神解答小弟的煩惱

最佳答案

查看完整内容

看你的默认名字为R1,你应该用的是模拟器里的路由器,不是多层交换机的IOS。所以与你理解的Cisco switch 命令不一样。 sw1#sh ver Cisco IOS Software, 3700 Software (C3725-ADVENTERPRISEK9-M), Version 12.3(4)T4, RELEASE SOFT。。。。。。 interface FastEthernet0/0 vlan-id dot1q 2
发表于 2017-7-19 16:43:02 | 显示全部楼层
看你的默认名字为R1,你应该用的是模拟器里的路由器,不是多层交换机的IOS。所以与你理解的Cisco switch 命令不一样。
sw1#sh ver
Cisco IOS Software, 3700 Software (C3725-ADVENTERPRISEK9-M), Version 12.3(4)T4,  RELEASE SOFT。。。。。。

interface FastEthernet0/0
  vlan-id dot1q 2

沙发 2017-7-19 16:43:02 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2017-7-19 17:21:40 | 显示全部楼层
回樓上的大大, 我是安裝GNS3後在從網路上抓IOS來安裝,不知道是不是您說的那一種?又和您說的Cisco switch有什麼分別呢?新手不太懂呢~"~

R1#sh ver
Cisco IOS Software, 3600 Software (C3660-IK9O3S-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Wed 18-Aug-10 07:32 by prod_rel_team

ROM: ROMMON Emulation Microcode
ROM: 3600 Software (C3660-IK9O3S-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)

R1 uptime is 0 minutes
System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19
System image file is "tftp://255.255.255.255/unknown"


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
板凳 2017-7-19 17:21:40 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2017-7-19 17:25:00 | 显示全部楼层
我是安裝GNS3再從網路上抓CISCO IOS檔來安裝的,不知道是否和您說的一不一樣.
如果我想做一下Cisco switch的命令應該在那邊抓IOS比較合我這個新手玩呢?
R1#sh ver
Cisco IOS Software, 3600 Software (C3660-IK9O3S-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Wed 18-Aug-10 07:32 by prod_rel_team

ROM: ROMMON Emulation Microcode
ROM: 3600 Software (C3660-IK9O3S-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)

R1 uptime is 0 minutes
System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19
System image file is "tftp://255.255.255.255/unknown"


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
地板 2017-7-19 17:25:00 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2017-7-19 17:25:34 | 显示全部楼层
我是安裝GNS3再從網路上抓CISCO IOS檔來安裝的,不知道是否和您說的一不一樣.
如果我想做一下Cisco switch的命令應該在那邊抓IOS比較合我這個新手玩呢?
R1#sh ver
Cisco IOS Software, 3600 Software (C3660-IK9O3S-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Wed 18-Aug-10 07:32 by prod_rel_team

ROM: ROMMON Emulation Microcode
ROM: 3600 Software (C3660-IK9O3S-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)

R1 uptime is 0 minutes
System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19
System image file is "tftp://255.255.255.255/unknown"


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
5# 2017-7-19 17:25:34 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2017-7-19 17:53:37 | 显示全部楼层
我是安裝GNS3再從網路上抓CISCO IOS檔來安裝的,不知道是否和您說的一不一樣.
如果我想做一下Cisco switch的命令應該在那邊抓IOS比較合我這個新手玩呢?
R1#sh ver
Cisco IOS Software, 3600 Software (C3660-IK9O3S-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Wed 18-Aug-10 07:32 by prod_rel_team

ROM: ROMMON Emulation Microcode
ROM: 3600 Software (C3660-IK9O3S-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)

R1 uptime is 0 minutes
System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19
System image file is "tftp://255.255.255.255/unknown"


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
6# 2017-7-19 17:53:37 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2017-7-20 10:06:00 | 显示全部楼层
zhurx 发表于 2017-7-19 17:13
看你的默认名字为R1,你应该用的是模拟器里的路由器,不是多层交换机的IOS。所以与你理解的Cisco switch 命 ...

我是從網絡上抓下來的Cisco IOS C3600系列的,應該不是模拟器里的路由器吧我想.
Cisco IOS Software, 3600 Software (C3660-IK9O3S-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Wed 18-Aug-10 07:32 by prod_rel_team

ROM: ROMMON Emulation Microcode
ROM: 3600 Software (C3660-IK9O3S-M), Version 12.4(25d), RELEASE SOFTWARE (fc1)
7# 2017-7-20 10:06:00 回复 收起回复
回复

使用道具 举报

发表于 2017-7-20 10:39:45 | 显示全部楼层
C3660-IK9O3S-M 是3660路由器的IOS软件,这是Cisco不再支持的非常老的设备。
模拟设备不是交换机,而是路由器。
8# 2017-7-20 10:39:45 回复 收起回复
回复

使用道具 举报

发表于 2017-7-21 09:33:04 | 显示全部楼层
int vlan + num
你之前那种配置模式已经不太支持了
9# 2017-7-21 09:33:04 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-5-7 05:06 , Processed in 0.099330 second(s), 23 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表