专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »网络技术 » 单臂路由的配置实例:单臂路由/PPPoE/PPPoA配置例子 »正文

单臂路由的配置实例:单臂路由/PPPoE/PPPoA配置例子

来源: 发布时间:星期日, 2008年12月14日 浏览:30次 评论:0

  个单臂配置例子
   >
  机配置
  3512xl#show running-config
  Building configuration...
  
  Current configuration:
  
  !
  version 12.0
  no service pad
  service timestamps debug uptime
  service timestamps log uptime
  no service password-encryption
  !
  hostname 3512xl
  !
  no logging console
  enable password mysecret
  !
  !
  !
  !
  !
  ip subnet-zero
  !
  !
  !
  erface FastEthernet0/1
  switchport mode trunk
  !
  
  !-- If 802.1Q is configured,
  !-- you will instead see the following output
  !-- under erface FastEthernet0/1:
  !-- erface FastEthernet0/1
  !-- switchport trunk encapsulation dot1q
  !-- switchport mode trunk
  
  !
  erface FastEthernet0/2
  switchport access vlan 2
  spanning-tree portfast
  !
  erface FastEthernet0/3
  spanning-tree portfast
  !
  erface FastEthernet0/4
  !
  erface FastEthernet0/5
  !
  erface FastEthernet0/6
  !
  erface FastEthernet0/7
  !
  erface FastEthernet0/8
  !
  erface FastEthernet0/9
  !
  erface FastEthernet0/10
  !
  erface FastEthernet0/11
  !
  erface FastEthernet0/12
  !
  erface GigabitEthernet0/1
  !
  erface GigabitEthernet0/2
  !
  erface VLAN1
  ip address 10.10.10.2 255.255.255.0
  no ip directed-broadcast
  no ip route-cache
  !
  ip default-gateway 10.10.10.1
  !
  line con 0
  transport input none
  stopbits 1
  line vty 0 4
  password mysecret
  login
  line vty 5 15
  login
  !
  end
  
  器配置
  
  Current configuration:
  !
  version 12.1
  service timestamps debug uptime
  service timestamps log uptime
  no service password-encryption
  !
  hostname c2600
  !
  no logging console
  enable password mysecret
  !
  !
  !
  !
  !
  ip subnet-zero
  !
  !
  !
  !
  !
  !
  !
  !
  !
  !
  erface FastEthernet0/0
  no ip address
  duplex auto
  speed auto
  !
  erface FastEthernet0/0.1
  encapsulation isl 1
  ip address 10.10.10.1 255.255.255.0
  no ip redirects
  !
  
  !-- If 802.1Q is configured,
  !-- you will instead see the following output
  !-- under erface FastEthernet0/0.1:
  !-- erface FastEthernet0/0.1
  !-- encapsulation dot1Q 1 native
  !-- ip address 10.10.10.1 255.255.255.0
  
  !
  !
  erface FastEthernet0/0.2
  encapsulation isl 2
  ip address 10.10.11.1 255.255.255.0
  no ip redirects
  !
  
  !-- If 802.1Q is configured,
  !-- you will instead see the following output
  !-- under erface FastEthernet0/0.2:
  !-- erface FastEthernet0/0.2
  !-- encapsulation dot1Q 2
  !-- ip address 10.10.11.1 255.255.255.0
  
  !
  erface FastEthernet0/1
  no ip address
  shutdown
  duplex auto
  speed auto
  !
  ip less
  no ip http server
  !
  !
  !
  line con 0
  transport input none
  line aux 0
  line vty 0 4
  password mysecret
  login
  !
  no scheduler allocate
  end
  
  PPPoE配置例子(2600路由器接ADSL Modem)
  
[[The No.2 Picture.]]

  hostname pooh
  ip host rund 172.17.247.195
  !
  ip subnet-zero
  no ip do-lookup
  !
  vpdn enable
  no vpdn logging
  !
  vpdn-group 1
  request-dialin
  protocol pppoe
  !
  !
  !
  !
  erface Ethernet0/0
  ip address 10.200.56.22 255.255.255.0
  ip nat inside
  no ip mroute-cache
  !
  !
  !
  !
  erface Ethernet0/1
  no ip address
  pppoe enable
  pppoe-client dial-pool-number 1
  !
  erface Dialer1
  ip address negotiated
  ip nat outside
  ip mtu 1492
  encapsulation ppp
  no ip mroute-cache
  dialer pool 1
  dialer-group 1
  ppp authentication pap
  ppp pap sent-username cisco password cisco1
  !
  ip less
  no ip http server
  !
  dialer-list 1 protocol ip permit
  ip nat inside source list 1 erface Dialer1 overload
  ip route 0.0.0.0 0.0.0.0 dialer1
  access-list 1 permit 10.200.56.0 0.0.0.255
  !
  line con 0
  exec-timeout 0 0
  transport input none
  line vty 0 4
  login
  password ww
  !
  end
  
  PPPoA配置例子 (2600路由器连接Wic-1ADSL)
  
  vpdn enable
  no vpdn logging
  
  !--- default.
  
  !
  vpdn-group pppoe
  request-dialin
  
  !--- we are the PPPoE client requesting to establish
  !--- a session with the aggregation unit (6400 NRP).
  
  protocol pppoe
  !
  
  
  !--- ernal Ethernet network.
  
  !
  erface FastEthernet0
  ip address 10.92.1.182 255.255.255.0
  ip nat inside
  
  
  !--- DSL erface.
  
  !
  erface ATM0
  no ip address
  no atm ilmi-keepalive
  bundle-enable
  dsl operating-mode auto
  hold-queue 224 in
  
  !--- All defaults.
  
  !--- PPPoE runs _disibledevent= 1500)
  
  ip nat outside
  encapsulation ppp
  dialer pool 1
  
  !--- Ties to atm erface.
  
  ppp authentication chap callin
  ppp chap hostname
  ppp chap password
  !
  
  !--- The ISP will instruct you regarding
  !--- the type of authentication to use.
  !--- To change from PPP CHAP to PPP PAP,
  !--- replace the following three lines:
  !--- ppp authentication chap callin
  !--- ppp chap hostname
  !--- ppp chap password
  !--- with the following two lines:
  !--- ppp authentication pap callin
  !--- ppp pap sent-username password
  
  !--- For NAT we are going to overload on the Dialer1
  !--- erface and add a default route out
  !--- since dialer ip address can change.
  
  ip nat inside source list 1 erface Dialer1 overload
  ip less
  ip route 0.0.0.0 0.0.0.0 dialer1
  no ip http server
  !
  access-list 1 permit 10.92.1.0 0.0.0.255
  
0

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: