有一个CISCO 2960S掉在我的腿上 – 如何设置pipe理界面?

世界上很less有任何东西比一个硬件掉进一个硬盘后会带来更多的乐趣,那就是“configuration这个新的子网”。

我知道我的Linux / UNIX方式,但从来没有处理CISCO路由器。 所以我得到了一个旧的CISCO 2960S金属块,并设法弄清楚如何将串行电缆连接到它并将其重置为出厂默认设置。 做过某事。 甚至设法设置启用密码。 好极了。 现在在真正的滚动。 然而,我有一个像204.xxx.yyy.160 – 204.xxx.yyy.191这样的子网,所以看起来像一个斜杠27(32个IP地址,networking掩码255.255.255.191?)给我。

我不是一个networking人员,甚至不是远程的,所以我不得不将其转换为二进制文件才能使其有意义:

160 = 10100000 binary 191 = 10111111 binary 

所以我猜测广播地址必须是204.xxx.yyy.191。 只是一个猜测。

无论如何,在我可以接近将这个东西插入机架之前,然后附上一个ISP给我们的铜块之前,我需要能够login到CISCO路由器本身。 我的意思是在pipe理界面上。

所以我试图在这里读到无尽的东西:

 http://www.cisco.com/en/US/docs/switches/lan/catalyst2960/software/release/12.2_55_se/configuration/guide/swint.html#wp2220949 

这让我几乎无处可去。 我至less能够查询接口状态,至less…我认为这是我在这里看到的:

 SW4-03#show interfaces fastethernet 0 FastEthernet0 is up, line protocol is up Hardware is PowerPC FastEthernet, address is 6c50.4d83.a537 (bia 6c50.4d83.a537) MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive not set Full-duplex, 100Mb/s, MII ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:00, output 00:00:08, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/0 (size/max) 5 minute input rate 1000 bits/sec, 2 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 596880 packets input, 91088101 bytes Received 233272 broadcasts (0 IP multicasts) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog 0 input packets with dribble condition detected 24904 packets output, 10360064 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out SW4-03# 

大部分对我来说都是纯粹的噪音。 我似乎看到接口已经启动并以100Mbit / sec接口运行,但是它的ip是什么? 我只是想把它设置为192.168.35.3,然后SSH进入这个路由器继续下一个神秘的。

所以问题是, 如何configuration永久静态IP为192.168.35.3的pipe理接口,让我telnet或SSH到这个路由器?

这是黑魔法吗?

我事先感谢其他有pipe理的人,在他们的圈子里放弃这样的东西,并说“弄清楚,有多难?

这些信息可能有帮助:

 SW4-03#show running-config Building configuration... Current configuration : 4429 bytes ! version 12.2 no service pad service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname SW4-03 ! boot-start-marker boot-end-marker ! enable secret 5 $1$lots-off-good-hash-here enable password secretgoodpasswd ! ! ! no aaa new-model clock timezone UTC -5 clock summer-time UTC recurring authentication mac-move permit ip subnet-zero ! ! ! mls qos srr-queue output cos-map queue 1 threshold 3 5 mls qos srr-queue output cos-map queue 2 threshold 3 3 6 7 mls qos srr-queue output cos-map queue 3 threshold 3 2 4 mls qos srr-queue output cos-map queue 4 threshold 2 1 mls qos srr-queue output cos-map queue 4 threshold 3 0 mls qos ! crypto pki trustpoint TP-self-signed-1300473088 enrollment selfsigned subject-name cn=IOS-Self-Signed-Certificate-1300473088 revocation-check none rsakeypair TP-self-signed-1300473088 ! ! crypto pki certificate chain TP-self-signed-1300473088 certificate self-signed 01 3082023F 308201A8 A0030201 02020101 300D0609 2A864886 F70D0101 04050030 . . . lots of hex here . 0D8C4FFC 852B4817 36F1DD49 BD625EE4 5946A7CE 70E72481 EB63BC59 05B4F27A C4C418 quit spanning-tree mode pvst spanning-tree etherchannel guard misconfig spanning-tree extend system-id ! ! ! ! vlan internal allocation policy ascending ! ! interface FastEthernet0 no ip address speed 100 ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 switchport access vlan 10 ! interface GigabitEthernet0/3 switchport access vlan 10 ! interface GigabitEthernet0/4 switchport access vlan 10 ! interface GigabitEthernet0/5 switchport access vlan 10 ! interface GigabitEthernet0/6 switchport access vlan 10 ! interface GigabitEthernet0/7 switchport access vlan 10 ! interface GigabitEthernet0/8 switchport access vlan 10 ! interface GigabitEthernet0/9 switchport access vlan 10 ! interface GigabitEthernet0/10 switchport access vlan 10 ! interface GigabitEthernet0/11 switchport access vlan 10 ! interface GigabitEthernet0/12 switchport access vlan 10 ! interface GigabitEthernet0/13 switchport access vlan 10 ! interface GigabitEthernet0/14 switchport access vlan 10 ! interface GigabitEthernet0/15 switchport access vlan 10 ! interface GigabitEthernet0/16 switchport access vlan 10 ! interface GigabitEthernet0/17 switchport access vlan 10 ! interface GigabitEthernet0/18 switchport access vlan 10 ! interface GigabitEthernet0/19 switchport access vlan 11 ! interface GigabitEthernet0/20 switchport access vlan 11 ! interface GigabitEthernet0/21 switchport access vlan 12 ! interface GigabitEthernet0/22 switchport access vlan 12 ! interface GigabitEthernet0/23 switchport mode trunk mls qos trust cos macro description cisco-switch spanning-tree link-type point-to-point ! interface GigabitEthernet0/24 switchport mode trunk mls qos trust cos macro description cisco-switch spanning-tree link-type point-to-point ! interface GigabitEthernet0/25 ! interface GigabitEthernet0/26 switchport trunk allowed vlan 1,10-12,999 switchport mode trunk ! interface Vlan1 ip address 192.168.250.203 255.255.255.0 ! ip http server ip http secure-server ! ! line con 0 password somepawwordsstuff line vty 0 4 password someotherpasswdstuff login line vty 5 15 password yetanotherpasswordstuff login ! end 

真的应该没有configuration任何vlan ..

该设备的pipe理接口为Fa0( FastEthernet0 ,长话FastEthernet0 )。 在这里,它configuration了no ip address

你应该configuration它有一个IP地址,这可能实际上是足够的。 所以, enable ,并conf t开始configuration。 然后interface fa0来configurationpipe理界面。

给它一个IP: ip address 1.2.3.4 255.255.0.0或者你想要的IP和networking掩码。

最后,退出configuration模式( exit )并将configuration写入NVRAM( copy running-config startup-config )。 现在,它应该工作。

如果在pipe理上禁用了接口,那么您也必须指定no shutconfiguration指令,但看起来并不是这样。

不要在该接口上指定VLAN。 这不是一个访问端口或一个中继端口; 这是一个终点。 它应该连接到其他交换机,连接到pipe理VLAN上的访问端口。