cisco4000配置文件实例

ggdw 2003-10-11 06:48:31
加精

4000a>en
Password:
4000a#sh int s1
Serial1 is up, line protocol is down
Hardware is HD64570
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation FRAME-RELAY, loopback not set
Keepalive set (10 sec)
LMI enq sent 65, LMI stat recvd 0, LMI upd recvd 0, DTE LMI down
LMI enq recvd 0, LMI stat sent 0, LMI upd sent 0
LMI DLCI 1023 LMI type is CISCO frame relay DTE
FR SVC disabled, LAPF state down
Broadcast queue 0/64, broadcasts sent/dropped 3/0, interface broadcasts 3
Last input never, output 00:00:01, output hang never
Last clearing of "show interface" counters 00:16:34
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 abort
67 packets output, 1000 bytes, 0 underruns
0 output errors, 0 collisions, 24 interface resets
0 output buffer failures, 0 output buffers swapped out
47 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
4000a#sh int s1
Serial1 is up, line protocol is up
Hardware is HD64570
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation FRAME-RELAY, loopback not set
Keepalive set (10 sec)
LMI enq sent 76, LMI stat recvd 0, LMI upd recvd 0
LMI enq recvd 0, LMI stat sent 0, LMI upd sent 0, DCE LMI up
LMI DLCI 1023 LMI type is CISCO frame relay DCE
FR SVC disabled, LAPF state down
Broadcast queue 0/64, broadcasts sent/dropped 3/0, interface broadcasts 3
Last input never, output 00:03:22, output hang never
Last clearing of "show interface" counters 00:21:25
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 abort
78 packets output, 1143 bytes, 0 underruns
0 output errors, 0 collisions, 28 interface resets
0 output buffer failures, 0 output buffers swapped out
67 carrier transitions

4000a#
4000a#sh run
Building configuration...

Current configuration : 1231 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 4000a
!
enable password cisco
!
username 2511 password 0 cisco
username 4000a password 0 cisco
!
!
!
!
ip subnet-zero
no ip finger
!
ipx routing 0000.0c99.8c01
frame-relay switching
!
!
!
!
!
interface Ethernet0
ip address 192.168.0.53 255.255.255.0
media-type 10BaseT
!
interface Serial0
no ip address
encapsulation frame-relay
no fair-queue
clockrate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial2 201
frame-relay route 202 interface Serial1 202
!
interface Serial1
no ip address
encapsulation frame-relay
no fair-queue
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 202 interface Serial0 202
!
interface Serial2
no ip address
encapsulation frame-relay
clockrate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial0 201
!
interface Serial3
no ip address
encapsulation frame-relay
frame-relay lmi-type cisco
!
ip classless
ip http server
!
!
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 4
password cisco
no login
line vty 5 18
no login
!
end

4000a#sh run
Building configuration...

Current configuration : 1252 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 4000a
!
enable password cisco
!
username 2511 password 0 cisco
username 4000a password 0 cisco
!
!
!
!
ip subnet-zero
no ip finger
!
ipx routing 0000.0c99.8c01
frame-relay switching
!
!
!
!
!
interface Ethernet0
ip address 192.168.0.53 255.255.255.0
media-type 10BaseT
!
interface Serial0
no ip address
encapsulation frame-relay
no fair-queue
clockrate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial2 201
frame-relay route 202 interface Serial1 202
!
interface Serial1
no ip address
encapsulation frame-relay
no fair-queue
clockrate 2000000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 202 interface Serial0 202
!
interface Serial2
no ip address
encapsulation frame-relay
clockrate 2000000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial0 201
!
interface Serial3
no ip address
encapsulation frame-relay
frame-relay lmi-type cisco
!
ip classless
ip http server
!
!
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 4
password cisco
no login
line vty 5 18
no login
!
end
...全文
277 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
glgeneral 2003-11-01
  • 打赏
  • 举报
回复
什么啊,老是show run ,你那些怎么配置的东西我们根本看不到,觉得你是在玄要,你那些配置命令怎么不一起给出来啊???郁闷,是不在保留你的个人专利权?
yanghaoa 2003-10-29
  • 打赏
  • 举报
回复
我觉得关键的地方解释一下要好点.
shrine007 2003-10-24
  • 打赏
  • 举报
回复
是啊
大致解释一下啊

wudid007 2003-10-21
  • 打赏
  • 举报
回复
太多重复!!!
syncmaster550 2003-10-20
  • 打赏
  • 举报
回复
强烈楼主一条一条的解释一下
liupuhua 2003-10-17
  • 打赏
  • 举报
回复
晕~~
  • 打赏
  • 举报
回复
看懂了谁还让您解释啊,呵呵
bluerain7 2003-10-12
  • 打赏
  • 举报
回复
ggdw 2003-10-12
  • 打赏
  • 举报
回复
应该能自己看懂的
pinghell 2003-10-11
  • 打赏
  • 举报
回复
支持楼主进一步解释!!
confider 2003-10-11
  • 打赏
  • 举报
回复
為了交流,辛苦樓主了
  • 打赏
  • 举报
回复
最好能一条一条的解释一下,不过工作量不小的哦,呵呵
ggdw 2003-10-11
  • 打赏
  • 举报
回复
4000a#sh run
Building configuration...

Current configuration : 1466 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 4000a
!
enable password cisco
!
username 2511 password 0 cisco
username 4000a password 0 cisco
!
!
!
!
ip subnet-zero
no ip finger
!
frame-relay switching
!
!
!
!
!
interface Ethernet0
ip address 192.168.0.53 255.255.255.0
media-type 10BaseT
!
interface Serial0
no ip address
encapsulation frame-relay
no fair-queue
clockrate 2000000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial2 201
frame-relay route 202 interface Serial1 202
!
interface Serial1
no ip address
encapsulation frame-relay
no fair-queue
clockrate 2000000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 202 interface Serial0 202
!
interface Serial2
no ip address
encapsulation frame-relay
clockrate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial0 201
!
interface Serial3
no ip address
encapsulation frame-relay
frame-relay lmi-type cisco
!
ip classless
ip http server
!
!
alias exec sir sh ip route
alias exec sinta sh int s0
alias exec sintb sh int s1
alias exec sintc sh int s2
alias exec sintd sh int s3
alias exec sinte sh int e0
alias exec dir sh run
alias exec shfr sh frame route
alias exec shframe sh frame map
!
line con 0
transport input none
line aux 0
line vty 0 4
password cisco
no login
line vty 5 18
no login
!
end

4000a#4000a#sh ip rout
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is 192.168.0.52 to network 0.0.0.0

172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
O IA 172.16.2.2/32 [110/10] via 192.168.0.52, 00:10:24, Ethernet0
O IA 172.16.1.1/32 [110/74] via 192.168.0.52, 00:10:24, Ethernet0
O IA 172.16.1.3/32 [110/138] via 192.168.0.52, 00:10:24, Ethernet0
O IA 172.16.3.0/24 [110/138] via 192.168.0.52, 00:00:35, Ethernet0
O IA 172.16.1.2/32 [110/10] via 192.168.0.52, 00:10:24, Ethernet0
C 192.168.0.0/24 is directly connected, Ethernet0
O*IA 0.0.0.0/0 [110/11] via 192.168.0.52, 00:10:24, Ethernet0
4000a#

配置ospf协议area 1
配置完全存根区域
减少路由表
通过缺省路由完成
ggdw 2003-10-11
  • 打赏
  • 举报
回复
4000a(config)#alias line 1 ?
LINE New alias

4000a(config)#alias line 1
% Incomplete command.

4000a(config)#alias line 1 ?
LINE New alias

4000a(config)#alias line 1 sir ?
LINE <cr>

4000a(config)#alias line 1 sir 1 ?
LINE <cr>

4000a(config)#alias line 1 sir 1
4000a(config)#alias config ?
% Unrecognized command
4000a(config)#alias config?
config-rtr-http config-x25-huntgroup configure

4000a(config)#alias configurs ?
% Unrecognized command
4000a(config)#alias configure ?
WORD Alias name

4000a(config)#alias configure sir ?
LINE New alias

4000a(config)#alias configure sir 1 ?
LINE <cr>

4000a(config)#alias ?
accept-dialin VPDN group accept dialin configuration mode
accept-dialout VPDN group accept dialout configuration mode
address-family Address Family configuration mode
alps-ascu ALPS ASCU configuration mode
alps-circuit ALPS circuit configuration mode
config-rtr-http RTR HTTP raw request Configuration
config-x25-huntgroup X.25 hunt group configuration mode
configure Global configuration mode
controller Controller configuration mode
crypto-ca-cert-chain Crypto certificate entry mode
crypto-ca-cert-comm Certificate query mode
crypto-ca-identity Certificate authority identity entry mode
crypto-ca-root Certificate authority trusted root entry mode
crypto-ikmp Crypto ISAKMP config mode
crypto-map Crypto map config mode
crypto-pubkey Crypto subsystem public key entry mode
crypto-transform Crypto transform config mode
dhcp DHCP pool configuration mode
dnis-group DNIS group configuration mode
exec Exec mode
flow-cache Flow aggregation cache config mode
interface Interface configuration mode
interface-dlci Frame Relay dlci configuration mode
ip-vrf Configure IP VRF parameters

4000a(config)#alias exec ?
WORD Alias name

4000a(config)#alias exec 1 ?
LINE New alias

4000a(config)#alias exec sir sh ip route
4000a(config)#^Z
4000a#sir
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.0.0/24 is directly connected, Ethernet0
4000a#sh run
Building configuration...

Current configuration : 1355 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 4000a
!
enable password cisco
!
username 2511 password 0 cisco
username 4000a password 0 cisco
!
!
!
!
ip subnet-zero
no ip finger
!
frame-relay switching
!
!
!
!
!
interface Ethernet0
ip address 192.168.0.53 255.255.255.0
media-type 10BaseT
!
interface Serial0
no ip address
encapsulation frame-relay
no fair-queue
clockrate 2000000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial2 201
frame-relay route 202 interface Serial1 202
!
interface Serial1
no ip address
encapsulation frame-relay
no fair-queue
clockrate 2000000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 202 interface Serial0 202
!
interface Serial2
no ip address
encapsulation frame-relay
clockrate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial0 201
!
interface Serial3
no ip address
encapsulation frame-relay
frame-relay lmi-type cisco
!
router ospf 1
log-adjacency-changes
area 1 stub
network 192.168.0.0 0.0.0.255 area 1
!
ip classless
ip http server
!
!
alias line 1 sir 1
alias exec sir sh ip route
!
line con 0
transport input none
line aux 0
line vty 0 4
password cisco
no login
line vty 5 18
no login
!

4000a#conf t
Enter configuration commands, one per line. End with CNTL/Z.
4000a(config)#no alias line 1 sir 1
4000a(config)#^Z
4000a#sir
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.0.0/24 is directly connected, Ethernet0
4000a#conf t
Enter configuration commands, one per line. End with CNTL/Z.
4000a(config)#alias exec sinta sh int s0
4000a(config)#alias exec sintb sh int s1
4000a(config)#alias exec sintc sh int s2
4000a(config)#alias exec sintd sh int s3
4000a(config)#alias exec sinte sh int e0
4000a(config)#alias exec dir sh run
4000a(config)#alias exec shfr sh frame route
4000a(config)#alias exec shframe sh frame map
4000a(config)#^Z
4000a#wr
Building configuration...
[OK]
4000a#conf t
Enter configuration commands, one per line. End with CNTL/Z.
4000a(config)#no router ospf 1
4000a(config)#^Z
ggdw 2003-10-11
  • 打赏
  • 举报
回复
4000b#sh run
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 4000b
!
enable secret 5 $1$MNqX$qgKaK05pBzF.Ljjg1Ymrn/
enable password cisco
!
ip subnet-zero
frame-relay switching
isdn switch-type basic-net3
!
!
!
interface Ethernet0
ip address 192.168.0.54 255.255.255.0
no ip directed-broadcast
ip nat inside
media-type 10BaseT
no mop enabled
!
interface Serial0
ip address 172.16.3.2 255.255.255.0
no ip directed-broadcast
ip nat inside
no ip mroute-cache
no fair-queue
clockrate 2000000
!
interface Serial1
ip address 172.16.2.2 255.255.255.0
no ip directed-broadcast
encapsulation frame-relay
clockrate 38400
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 101 interface Serial2 102
!
interface Serial2
no ip address
no ip directed-broadcast
encapsulation frame-relay
clockrate 38400
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 102 interface Serial1 101
!
interface Serial3
ip address 172.16.2.2 255.255.255.0
no ip directed-broadcast
encapsulation frame-relay
shutdown
frame-relay lmi-type cisco
!
interface BRI0
ip address negotiated
no ip directed-broadcast
ip nat outside
encapsulation ppp
dialer idle-timeout 1000
dialer string 163
dialer-group 1
isdn switch-type basic-net3
ppp authentication pap callin
ppp pap sent-username xd8009 password 7 04430F5E5F7115
!
interface BRI1
no ip address
no ip directed-broadcast
shutdown
!
interface BRI2
no ip address
no ip directed-broadcast
shutdown
!
interface BRI3
no ip address
no ip directed-broadcast
shutdown
!
interface BRI4
no ip address
no ip directed-broadcast
shutdown
!
interface BRI5
no ip address
no ip directed-broadcast
shutdown
!
interface BRI6
no ip address
no ip directed-broadcast
shutdown
!
interface BRI7
no ip address
no ip directed-broadcast
shutdown
!
router ospf 1
area 2 nssa
redistribute static subnets
network 172.16.3.0 0.0.0.255 area 2
!
ip nat inside source list 1 interface BRI0 overload
ip nat inside source list 2 interface BRI0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 BRI0
!
access-list 1 permit any
access-list 2 permit any
dialer-list 1 protocol ip permit
!
!
line con 0
transport input none
line aux 0
line vty 0 4
password cisco
login
!
end

4000b# sh run
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 4000b
!
enable secret 5 $1$MNqX$qgKaK05pBzF.Ljjg1Ymrn/
enable password cisco
!
ip subnet-zero
frame-relay switching
isdn switch-type basic-net3
!
!
!
interface Ethernet0
ip address 192.168.0.54 255.255.255.0
no ip directed-broadcast
ip nat inside
media-type 10BaseT
no mop enabled
!
interface Serial0
ip address 172.16.3.2 255.255.255.0
no ip directed-broadcast
ip nat inside
no ip mroute-cache
no fair-queue
clockrate 2000000
!
interface Serial1
ip address 172.16.2.2 255.255.255.0
no ip directed-broadcast
encapsulation frame-relay
clockrate 38400
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 101 interface Serial2 102
!
interface Serial2
no ip address
no ip directed-broadcast
encapsulation frame-relay
clockrate 38400
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 102 interface Serial1 101
!
interface Serial3
ip address 172.16.2.2 255.255.255.0
no ip directed-broadcast
encapsulation frame-relay
shutdown
frame-relay lmi-type cisco
!
interface BRI0
ip address negotiated
no ip directed-broadcast
ip nat outside
encapsulation ppp
dialer idle-timeout 1000
dialer string 163
dialer-group 1
isdn switch-type basic-net3
ppp authentication pap callin
ppp pap sent-username xd8009 password 7 04430F5E5F7115
!
interface BRI1
no ip address
no ip directed-broadcast
shutdown
!
interface BRI2
no ip address
no ip directed-broadcast
shutdown
!
interface BRI3
no ip address
no ip directed-broadcast
shutdown
!
interface BRI4
no ip address
no ip directed-broadcast
shutdown
!
interface BRI5
no ip address
no ip directed-broadcast
shutdown
!
interface BRI6
no ip address
no ip directed-broadcast
shutdown
!
interface BRI7
no ip address
no ip directed-broadcast
shutdown
!
router ospf 1
area 2 nssa
redistribute static subnets
network 172.16.3.0 0.0.0.255 area 2
!
ip nat inside source list 1 interface BRI0 overload
ip nat inside source list 2 interface BRI0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 BRI0
!
access-list 1 permit any
access-list 2 permit any
dialer-list 1 protocol ip permit
!
!
line con 0
transport input none
line aux 0
line vty 0 4
password cisco
login
!
end

4000b#
4000b#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
O IA 172.16.1.1/32 [110/64] via 172.16.3.1, 00:02:37, Serial0
O IA 172.16.1.3/32 [110/128] via 172.16.3.1, 00:02:37, Serial0
C 172.16.2.0/24 is directly connected, Serial1
O IA 172.16.1.2/32 [110/128] via 172.16.3.1, 00:02:37, Serial0
C 172.16.3.0/24 is directly connected, Serial0
C 192.168.0.0/24 is directly connected, Ethernet0
61.0.0.0/32 is subnetted, 2 subnets
C 61.183.148.121 is directly connected, BRI0
C 61.183.162.131 is directly connected, BRI0
S* 0.0.0.0/0 is directly connected, BRI0
4000b#

3,807

社区成员

发帖
与我相关
我的任务
社区描述
硬件使用 交换及路由技术相关问题讨论专区
社区管理员
  • 交换及路由技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧