下列設定為Cisco Router 2611XM的設定,主要有幾個重點:

以顏色來區分

1.PPPoE設定(藍色)

2.Default Route(綠色)

3.PAT設定(紅色)

------------這是分格線------------

我的介面設定註明:

Fa0/0接到內部網段

Fa0/1接到ATU-R(小烏龜)

 

Router#sh run
Building configuration...

Current configuration : 1469 bytes
!
version 12.4
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
no ip cef
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
interface FastEthernet0/0
 description LAN interface
 ip address 192.168.3.254 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface Serial0/0
 no ip address shutdown
!
!
interface FastEthernet0/1
 description ADSL_WAN interface
 no ip address
 speed auto
 half-duplex
 pppoe enable group global
 pppoe-client dial-pool-number 1

 no cdp enable
!
interface Dialer1
 description ADSL_WAN dialer
 ip address negotiated
 no ip unreachables
 ip nat outside
 ip virtual-reassembly
 encapsulation ppp
 no ip mroute-cache
 dialer pool 1
 dialer-group 1
 ppp authentication chap pap callin
 ppp chap hostname 播接帳號@hinet.net
 ppp chap password 0 播接密碼
 ppp pap sent-username 播接帳號@hinet.net password 0 播接密碼

!
no ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer1
!
!
ip http server
no ip http secure-server
ip nat inside source list 1 interface Dialer1 overload
!
access-list 1 permit 192.168.3.0 0.0.0.255
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
 login
!
!
end

 

附註:

可同時建多個Dialer,就可以取得好幾個外部IP了哦!不過要換IP出去的話PAT跟Default Route指定的Dialer也要記得改,不然不會成功哦!!

 

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Maxcapie 的頭像
    Maxcapie

    MaxCapie 的 CCNP 筆記

    Maxcapie 發表在 痞客邦 留言(0) 人氣()