附录:路由器配置命令
发布时间:2006-10-14 7:34:58   收集提供:gaoqian
  Router1(Cisco路由器)的配置:

  ip subnet-zero

  interface Ethernet0

  ip address 16.112.44.98 255.255.255.0

  no ip route-cache

  no ip mroute-cache

  media-type 10BaseT

  interface Serial0

  no ip address

  encapsulation frame-relay

  frame-relay lmi-type ansi

  interface Serial0.1

  ip address 16.112.224.62 255.255.255.192

  ip ospf network point-to-multipoint

  frame-relay map ip 16.112.224.1 50 broadcast

  interface Serial1

  no ip address

  encapsulation frame-relay

  frame-relay lmi-type ansi

  interface Serial1.1



  ip address 16.112.224.126 255.255.255.192   ip ospf network point-to-multipoint

  frame-relay map ip 16.112.224.65 51 broadcast

  router ospf 1

  network 16.112.0.0 0.0.255.255 area 0

  ip classless

  ip route 16.112.45.0 255.255.255.240 16.112.44.99 120

  Router2(Cisco路由器)的配置:

  hostname user

  ip subnet-zero

  interface Ethernet0

  ip address 16.112.44.99 255.255.255.0

  media-type 10BaseT

  interface Serial0

  dialer rotary-group 1

  interface Serial7

  dialer rotary-group 1

  interface Dialer1

  ip address 16.112.225.62 255.255.255.252

  encapsulation ppp

  dialer in-band

  dialer wait-for-carrier-time 60

  dialer map ip 16.112.225.1 name user1 2000001

  dialer-group 1

  ppp authentication chap

  router ospf 1

  network 16.112.0.0 0.0.255.255 area 0

  redistribute static subnets

  ip classless

  ip route 16.112.45.0 255.255.255.240 16.112.225.1 120

  access-list 101 deny ospf any any

  access-list 101 permit ip any any

  dialer-list 1 list 101

  username user1 password password1

  Router3(Cisco路由器)的配置:

  hostname user1

  ip subnet-zero

  interface Ethernet0

  ip address 16.112.45.14 255.255.255.240

  interface Serial0

  no ip address

  encapsulation frame-relay

  frame-relay lmi-type ansi

  interface Serial0.1

  ip address 16.112.224.1 255.255.255.192

  ip ospf network point-to-multipoint

  frame-relay map ip 16.112.224.62 50 broadcast

  interface Serial0.2

  ip address 16.112.224.65 255.255.255.192

  ip ospf network point-to-multipoint

  frame-relay map ip 16.112.224.126 51 broadcast

  interface Serial1

  ip address 16.112.225.1 255.255.255.192

  encapsulation ppp

  dialer in-band

  dialer wait-for-carrier-time 60

  dialer string 2000000

  dialer-group 1

  pulse-time 1

  ppp authentication chap

  router ospf 1

  network 16.112.0.0 0.0.255.255 area 0

  ip classless

  ip route 16.112.44.0 255.255.255.0 16.112.225.62 120

  access-list 101 deny ospf any any

  access-list 101 permit ip any any

  dialer-list 1 list 101

  username user password password

  Router3(博达路由器)的配置:

  nodename user1

  ospf enable

  e0

  ip add 16.112.45.14 255.255.255.240

  quit

  s0

  encapsulate framerelay

  ip add 16.112.224.1 255.255.255.192

  ip add 16.112.224.65 255.255.255.192

  map add 16.112.224.62 pvc 50 broadcast

  map add 16.112.224.126 pvc 51 broadcast

  fr lmi_type ansi

  ospf network point-to-multipoint

  quit

  s1

  encapsulate ppp

  line dial

  port sync

  ip add 16.112.225.1 255.255.255.192

  map add 16.112.225.62 2000000

  ppp auth chap

  ppp chap user user

  quit

  route add 16.112.44.0 255.255.255.0 16.112.225.1 120

  user add user password password

  ospf network add 16.112.0.0 0

摘自《计算机世界》   
 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50