首页 > 学院 > 网络通信 > 正文

用ISDN进行异地互连

2019-11-04 20:40:25
字体:
来源:转载
供稿:网友

  北京配置:
  show run
  Building configuration...
  
  Current configuration:
  !
  version 12.0
  service timestamps debug uptime
  service timestamps log uptime
  no service passWord-encryption
  !
  hostname Beijing
  !
  !
  username beijing password 0 cisco
  ip subnet-zero
  isdn switch-type basic-net3
  !
  !
  !
  interface Loopback0
  ip address 2.2.2.2 255.0.0.0
  no ip directed-broadcast
  !
  interface Loopback1
  no ip address
  no ip directed-broadcast
  !
  interface Ethernet0
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface Serial0
  backup interface Dialer1
  ip address 192.168.10.1 255.255.255.0
  no ip directed-broadcast
  no ip mroute-cache
  no fair-queue
  !
  interface Serial1
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface Serial2
  no ip address
  no ip directed-broadcast
  shutdown
  --More--  !
  interface Serial3
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface Serial4
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface Serial5
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface Serial6
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface Serial7
  no ip address
  --More--   no ip directed-broadcast
  shutdown
  !
  interface Serial8
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface Serial9
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface BRI0
  no ip address
  no ip directed-broadcast
  encapsulation ppp
  dialer pool-member 1
  isdn switch-type basic-net3
  !
  interface Dialer1
  ip address 192.168.11.1 255.255.255.0
  no ip directed-broadcast
  encapsulation ppp
  dialer remote-name Shanghai
  dialer string 12
  dialer pool 1
  dialer-group 1
  ppp authentication chap
  ppp chap password 7 13061E010803
  !
  ip nat translation timeout never
  ip nat translation tcp-timeout never
  ip nat translation udp-timeout never
  ip nat translation finrst-timeout never
  ip nat translation syn-timeout never
  ip nat translation dns-timeout never
  ip nat translation icmp-timeout never
  ip classless
  ip route 1.0.0.0 255.0.0.0 Serial0
  ip route 1.0.0.0 255.0.0.0 Dialer1 200
  ip route 192.168.11.0 255.255.255.0 Serial0
  ip route 192.168.11.0 255.255.255.0 Dialer1 200
  !
  access-list 101 permit icmp any any
  dialer-list 1 PRotocol ip list 101
  --More--  !
  line con 0
  transport input none
  line aux 0
  line vty 0 4
  login
  !
  end
  
  
  上海配置:
  
  Shanghai>en
  Password:
  Shanghai#show run
  Building configuration...
  
  Current configuration:
  !
  version 12.0
  service timestamps debug uptime
  service timestamps log uptime
  no service password-encryption
  !
  hostname Shanghai
  !
  enable password cisco
  !
  username shanghai password 0 cisco
  username name
  username cisco
  ip subnet-zero
  isdn switch-type basic-net3
  !
  !
  !
  interface Loopback0
  ip address 1.1.1.1 255.0.0.0
  no ip directed-broadcast
  --More--  !
  interface Ethernet0
  no ip address
  no ip directed-broadcast
  shutdown
  !
  interface Serial0
  no ip address
  no ip directed-broadcast
  no ip mroute-cache
  shutdown
  no fair-queue
  !
  interface Serial1
  backup interface Dialer1
  backup load 60 5
  ip address 192.168.10.2 255.255.255.0
  no ip directed-broadcast
  clockrate 64000
  !
  interface BRI0
  no ip address
  no ip directed-broadcast
  --More--   encapsulation ppp
  dialer pool-member 1
  isdn switch-type basic-net3
  !
  interface Dialer0
  no ip address
  no ip directed-broadcast
  no cdp enable
  !
  interface Dialer1
  ip address 192.168.11.2 255.255.255.0
  no ip directed-broadcast
  encapsulation ppp
  dialer remote-name Beijing
  dialer string 11
  dialer pool 1
  dialer-group 1
  ppp authentication chap
  ppp chap hostname Beijing
  ppp chap password 7 14141B180F0B
  !
  ip classless
  ip route 2.0.0.0 255.0.0.0 Serial1
  --More--  
  ip route 2.0.0.0 255.0.0.0 Dialer1 200
  ip route 192.168.11.0 255.255.255.0 Serial1
  ip route 192.168.11.0 255.255.255.0 Dialer1 200
  !
  access-list 101 permit tcp any any
  access-list 101 permit icmp any any
  dialer-list 1 protocol ip list 101
  !
  line con 0
  transport input none
  line aux 0
  line vty 0 4
  password cisco
  login
  !
  end
  
  Shanghai#


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表