Chinaunix首页 | 论坛 | 博客
  • 博客访问: 624600
  • 博文数量: 825
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 4980
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-27 14:19
文章分类

全部博文(825)

文章存档

2011年(1)

2008年(824)

我的朋友

分类:

2008-10-27 14:22:40


  maui-soho-01 (1600)
  
  maui-soho-01#show running-config
  Building configuration...
  
  Current configuration : 1656 bytes
  !
  version 12.1
  no service single-slot-reload-enable
  service timestamps debug datetime msec
  service timestamps log datetime msec
  
  !
  hostname maui-soho-01
  !
  logging rate-limit console 10 except errors
  aaa new-model
  aaa authentication login default local
  aaa authentication login NO_AUTHEN none
  aaa authentication ppp default local
  !--- basic AAA configuration for PPP calls
  enable secret 5
  !
  username admin password
  username maui-nas-05 password cisco
  !--- username for remote router (maui-nas-05) and shared secret
  !--- (used for CHAP authentication)
  !--- Shared secret must be the same on both sides.
  ip subnet-zero
  !
  isdn switch-type basic-ni
  !
  interface Loopback0
  ip address 172.17.1.1 255.255.255.0
  !--- The loopback address will be used by OSPF for the router ID.
  !
  interface Ethernet0
  ip address 172.16.1.1 255.255.255.0
  !
  interface Serial0
  no ip address
  shutdown
  no fair-queue
  !
  interface BRI0
  !--- BRI interface used for DDR dialout
  ip address 172.20.10.2 255.255.255.0
  !--- IP address
  !--- The remote address is in the same subnet.
  encapsulation ppp
  ip ospf demand-circuit
  !--- This forces OSPF to keep the routing table intact when the DDR link
  !--- is down. This should only be configured on one router for a
  !--- point-to-point circuit.
  dialer idle-timeout 900
  !--- Idle timeout is set to 900 seconds (15 minutes).
  !--- The link will be disconnected if there is no interesting traffic
  !--- for 900 secs.
  dialer map ip 172.20.10.1 name maui-nas-05 broadcast 5551111
  dialer map ip 172.20.10.1 name maui-nas-05 broadcast 5551112
  !--- dialer map statements for the remote router
  !--- The name must match the one used by the remote router to identify
  !--- itself. The broadcast keyword is required to send broadcast traffic
  !--- over the link(for OSPF). The two different phone numbers correspond
  !--- to the b-channels of the remote side. The multiple statements allow
  !--- the router to dial the second number if the first number is busy.
  dialer load-threshold 80 outbound
  !--- This set the load level for traffic at which additional connections
  !--- will be added to the Multilink PPP bundle.!--- Load level values range from 1 (unloaded) to 255 (fully loaded).
  !--- The threshold in this case is 80/255 = 32%.
  dialer-group 1
  !--- apply interesting traffic definition from dialer-list 1
  isdn switch-type basic-ni
  isdn spid1 51255522220101 5552222
  isdn spid2 51255522230101 5552223
  ppp authentication chap
  !--- Use chap authentication.
  ppp multilink
  !--- Use multilink to bring up both BRI channels.
  !
  router ospf 5
  log-adjacency-changes
  network 172.16.1.0 0.0.0.255 area 0
  network 172.17.1.0 0.0.0.255 area 0
  network 172.20.10.0 0.0.0.255 area 0
  !
  ip classless
  ip route 172.20.0.0 255.255.0.0 172.20.10.0
  no ip http server
  !
  access-list 101 remark Define Interesting Traffic
  access-list 101 deny ospf any any
  !--- mark OSPF as uninteresting
  !--- This will prevent OSPF hellos from keeping the link up.
  access-list 101 permit ip any any
  dialer-list 1 protocol ip list 101
  !--- Interesting traffic is defined by access-list 101.
  !--- This is applied to BRI0 using dialer-group 1.
  !
  line con 0
  exec-timeout 0 0
  login authentication NO_AUTHEN
  transport input none
  line vty 0 4
  !
  endmaui-nas-05 (3640)
  maui-nas-05#show running-config
  Building configuration...
  
  Current configuration:
  !
  version 12.1
  service timestamps debug datetime msec
  service timestamps log datetime msec
  !
  hostname maui-nas-05
  !
  aaa new-model
  aaa authentication login default local
  aaa authentication login NO_AUTHEN none
  aaa authentication ppp default local
  !--- basic AAA configuration for PPP calls
  enable secret 5
  !
  username admin password 7
  username maui-soho-01 password 7 cisco
  !--- username for remote router (maui-soho-01) and shared secret
  !--- (used for CHAP authentication)
  !--- Shared secret must be the same on both sides.
  
  ip subnet-zero
  !
  isdn switch-type basic-ni
  !
  interface Loopback0
  ip address 172.22.1.1 255.255.255.0
  !--- The loopback address is used by OSPF for the router ID.
  !
  interface Ethernet0/0
  ip address 172.22.53.105 255.255.255.0
  !
  interface Ethernet0/1
  no ip address
  shutdown
  !
  interface BRI1/0
  !--- BRI interface used to accept dialin
  ip address 172.20.10.1 255.255.255.0
  !--- IP address
  !--- The remote address is in the same subnet.
  encapsulation ppp
  dialer idle-timeout 900
  !--- Idle timeout is set to 900 seconds (15 minutes).
  !--- Set this value to be equal to or higher than the idle-timeout on the
  !--- client side. A higher idle-timeout permits the client side to
  !--- determine when to bring down the link.
  !
  dialer map ip 172.20.10.2 name maui-soho-01 broadcast
  !--- dialer map statement for the BRI interface of the remote router
  !--- The name must be the one used by the remote router to identify
  !--- itself. The broadcast keyword is required to send broadcast traffic
  !--- over the link(for OSPF). Note: There is no phone number, as we are
  !--- not configuring this side to dial. If you want this router to dial,
  !--- add the remote side phone number to the dialer map statement
  dialer-group 1
  !--- apply interesting traffic definition from dialer-list 1
  isdn switch-type basic-ni
  isdn spid1 51255511110101 5551111
  isdn spid2 51255511120101 5551112
  ppp authentication chap
  ppp multilink
  !--- allow multilink connections
  !
  ! <<--unused interface configurations have been removed.
  !
  router ospf 5
  network 172.20.10.0 0.0.0.255 area 0
  network 172.22.1.0 0.0.0.255 area 0
  network 172.22.53.0 0.0.0.255 area 0
  default-information originate always
  !--- transmit OSPF default information
  !--- This may be required for remote router to use the BRI DDR link.
  !
  ip classless
  ip route 0.0.0.0 0.0.0.0 Ethernet0/0
  ip route 172.22.0.0 255.255.0.0 172.22.53.0
  no ip http server
  !
  dialer-list 1 protocol ip permit
  !--- All IP traffic is defined interesting.
  !--- This is applied to BRI0 using dialer-group 1.
  !
  line con 0
  login authentication NO_AUTHEN
  transport input none
  line 97 102
  line aux 0
  line vty 0 4
  !
  end
  
  
  
  
【责编:admin】

--------------------next---------------------

阅读(264) | 评论(0) | 转发(0) |
0

上一篇:Configure E1

下一篇:因地制宜建校园网

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