Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2116817
  • 博文数量: 433
  • 博客积分: 4775
  • 博客等级: 上校
  • 技术积分: 8054
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-19 16:15
文章存档

2014年(9)

2013年(20)

2012年(77)

2011年(323)

2009年(4)

分类: 系统运维

2011-10-20 00:18:32

下面是配置IOS系统Catalyst交换机接口的通用流程,适用于所有接口配置过程。

1)在特权模式提示下键入configure terminal(可以简写成“con t”)命令,进入全局配置模式。按回车键入显示如下提示。并要注意,此时提示符已发生了改变,从特权模式提示符“#”改变为(config)#

Switch# configure terminal

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

Switch(config)#

2)在全局配置模式下键入interface命令,并且标识接口类型、交换机堆叠成员号(非可堆叠交换机不用此标识)、接口号。在此以堆叠成员1的千兆以太网端口1为例(交换机为非模块交换机,模块号默认为“0”)。

Switch(config)# interface gi1/0/1

Switch(config-if)#

【注意】在接口类型和接口号之间可以留空格,也可以不留空格。当然可以是接口类型全称,也可以是简写。如gigabitethernet 1/0/1gigabitethernet1/0/1gi 1/0/1或者gi1/0/1都是正确的。

下面是一个综合以上2两步,进入交换机的Fast Ethernet interface 5/5接口配置模式的示例。

Switch# configure terminal

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

Switch(config)# interface fastethernet 5/5

Switch(config-if)#

3)接着,你可以使用各种interface接口配置命令来配置相应接口,如定义接口上的协议和应用。配置完后可用end命令或者按Ctrl-Z组合键返回到特权模式。

你也可以使用interface range或者interface range macro全局配置命令来配置接口范围。但在接口范围中的接口类型必须一致,而且必须以相同的特性选项进行配置。具体在下节介绍。

4)在你配置好一个接口后,可以在特权模式下使用show命令查看、校验对应或者所有接口配置信息是否正确。在特权模式下使用show interfaces命令来查看所有接口的列表。如下是一个使用命令查看所有接口配置信息的输出,从中可以得到详细的各个接口属性配置信息及工作状态。

Switch#show interfaces

Vlan1 is up, line protocol is down

  Hardware is Ethernet SVI, address is 0004.dd46.7aff (bia 0004.dd46.7aff)

  MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation ARPA, loopback not set

  ARP type: ARPA, ARP Timeout 04:00:00

  Last input never, output never, 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/40 (size/max)

  5 minute input rate 0 bits/sec, 0 packets/sec

  5 minute output rate 0 bits/sec, 0 packets/sec

     0 packets input, 0 bytes, 0 no buffer

     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored

     0 packets output, 0 bytes, 0 underruns

     0 output errors, 0 interface resets

     0 output buffer failures, 0 output buffers swapped out

GigabitEthernet1/1 is up, line protocol is down

  Hardware is Gigabit Ethernet Port, address is 0004.dd46.7700 (bia 0004.dd46.7700)

  MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation ARPA, loopback not set

  Keepalive set (10 sec)

  Auto-duplex, Auto-speed

  ARP type: ARPA, ARP Timeout 04:00:00

  Last input never, output never, output hang never

  Last clearing of "show interface" counters never

  Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0

  Queueing strategy: fifo

  Output queue: 0/40 (size/max)

  5 minute input rate 0 bits/sec, 0 packets/sec

  5 minute output rate 0 bits/sec, 0 packets/sec

     0 packets input, 0 bytes, 0 no buffer

     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored

     0 input packets with dribble condition detected

     0 packets output, 0 bytes, 0 underruns

     0 output errors, 0 collisions, 0 interface resets

     0 babbles, 0 late collision, 0 deferred

     0 lost carrier, 0 no carrier

     0 output buffer failures, 0 output buffers swapped out

GigabitEthernet1/2 is up, line protocol is down

  Hardware is Gigabit Ethernet Port, address is 0004.dd46.7701 (bia 0004.dd46.7701)

  MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation ARPA, loopback not set

  Keepalive set (10 sec)

  Auto-duplex, Auto-speed

  ARP type: ARPA, ARP Timeout 04:00:00

  Last input never, output never, output hang never

  Last clearing of "show interface" counters never

  Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0

  Queueing strategy: fifo

  Output queue: 0/40 (size/max)

  5 minute input rate 0 bits/sec, 0 packets/sec

  5 minute output rate 0 bits/sec, 0 packets/sec

     0 packets input, 0 bytes, 0 no buffer

     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored

     0 input packets with dribble condition detected

     0 packets output, 0 bytes, 0 underruns

     0 output errors, 0 collisions, 0 interface resets

     0 babbles, 0 late collision, 0 deferred

     0 lost carrier, 0 no carrier

     0 output buffer failures, 0 output buffers swapped out

<......>

本文摘自《(CiscoH3C交换机配置与管理完全手册)》第四章
阅读(710) | 评论(0) | 转发(0) |
0

上一篇:接口类型和标识

下一篇:配置接口范围

给主人留下些什么吧!~~