| 本节包含下列例子: 开始接口配置举例 下例显示如何在串行接口上开始接口配置。它对串行接口0指定点对点(PPP)包装。 interface serial 0 encapsulation ppp Cisco 7500上的同一例子需要下列命令: interface serial 1/0 encapsulation ppp 配置DCE方式的串行接口举例 下例对Cisco 7500系列配置DCE方式的串行接口。由于DTE不返回同步时钟发送启用(SCTE)信号,所以需要transmit-clock-internal命令。 interface serial 0/0 ip address 170.1.8.2 255.255.255.0 clockrate 72000 transmit-clock-internal 下例对Cisco 4000系列路由器配置DCE方式的串行接口。由于DTE不返回同步时钟发送启用(SCTE)信号,所以需要dce-terminal-timing-enable命令。本例中,接受缺省NRZ编码和16位CRC。 interface serial 1 clockrate 72000 dce-terminal-timing-enable nrz-encoding G.703串行接口配置举例 下例显示Cisco 7500系列路由器E1-G.703/G.704串行端口适配器上串行接口9/1/3的基本配置。本例中,接口配置成帧(G.704)操作,时间槽16用于数据。 interface serial 9/1/3 ip address 1.1.1.10 255.255.255.0 no keepalive no fair-queue timeslot 1-31 crc4 ts16 JT2 6.3-MHz串行接口配置举例 下例显示Cisco 7500系列路由器PA-2JT2串行端口适配器上串行接口1/0/0的配置。本例中,接口配置成使用内部时钟源而不是缺省线派生时钟源的时钟数据,并允许帧对搜索条件使用CRC5。 interface serial 1/0/0 ip address 1.1.1.10 255.255.255.0 clock source internal crc bits 5 no shutdown 逆转举例 下例逆转串行接口3/1/0的数据: interface serial 3/1/0 invert data 下例逆转串行端口3/0的时钟信号: nterface serial 3/0 invert txclock 下例对串行接口4/0/2指定NRZI标志编码: interface serial 4/0/2 nrzi-encoding mark 通道化E1控制器举例 下例将Cisco 7500系列路由器配置成应答E1线。对配置线路的例子,见下节,E1和T1线的配置是相同的。 controller e1 3/0 channel-group 0 timeslots 1 channel-group 8 timeslots 5-15, 20-30 channel-group 12 timeslots 2 channel-group 29 timeslots 31 通道化T1控制器与接口举例 下例只适用于Cisco 7500系列路由器,它将路由器配置成应答T1线及其线路。四个不同线路(及其对应串行接口)对连接槽4中MIP的第二个CxCT1定义。 controller t1 4/1 framing esf linecode b8zs channel-group 0 timeslots 1 channel-group 8 timeslots 5,7,12-15, 20 speed 64 channel-group 12 timeslots 2 channel-group 23 timeslots 24 下例配置线路0为点对点(PPP)包装: interface serial 4/1:0 ip address 131.108.13.1 255.255.255.0 encapsulation ppp 下例配置线路8为IP路由,并关掉IP路由缓冲区: interface serial 4/1:8 ip address 131.108.1.1 255.255.255.0 no ip route-cache 下例配置线路12为帧中继包装和支持子接口: interface serial 4/1:12 encapsulation frame-relay ! interface serial 4/1:12.1 ip address 1.1.1.1 255.0.0.0 ! interface serial 4/1:12.2 ip address 2.2.2.2 255.0.0.0 下例配置线路23为IP路由并启用自治交换: interface serial 4/1:23 ip address 3.3.3.3 255.0.0.0 ip route-cache cbus |









