close

設備 : CISCO 2800

線路 : 中華電信光世代PPPoE

Config :

 

vpdn enable
!
interface FastEthernet1/0
 description primary link ISP1
 no ip address
 pppoe enable group global
 pppoe-client dial-pool-number 1
!
interface Dialer1
 ip address negotiated
 ip mtu 1492
 ip nat outside
 ip virtual-reassembly
 encapsulation ppp
 no ip mroute-cache
 dialer pool 1
 dialer-group 1
 ppp pap sent-username 73073416@hinet.net password 0 745122
!
ip route 0.0.0.0 0.0.0.0 Dialer1
!
no ip http secure-server
ip nat inside source route-map ISP1_NAT interface Dialer1 overload

 

要看撥通後拿到什麼IP , 要下指令 : sh ip int brief

以下以CISCO 28 為例 :

2800-Router#sh ip int brief
Interface                  IP-Address      OK? Method Status                Prot                                              ocol
GigabitEthernet0/0         unassigned      YES NVRAM  up                    up                                                
GigabitEthernet0/0.735     192.168.235.1   YES NVRAM  up                    up                                                
GigabitEthernet0/0.900     172.16.200.1    YES NVRAM  up                    up                                                
GigabitEthernet0/0.901     172.16.101.1    YES NVRAM  up                    up                                                
GigabitEthernet0/0.902     172.17.0.1      YES NVRAM  up                    up                                                
GigabitEthernet0/0.903     172.16.103.1    YES NVRAM  up                    up                                                
GigabitEthernet0/0.904     172.16.104.1    YES NVRAM  up                    up                                                
GigabitEthernet0/0.905     172.16.105.1    YES NVRAM  up                    up                                                
GigabitEthernet0/1         unassigned      YES NVRAM  up                    up                                                
FastEthernet1/0            unassigned      YES NVRAM  up                    down                                              
FastEthernet1/1            unassigned      YES unset  up                    down                                              
FastEthernet1/2            192.168.1.1     YES NVRAM  up                    down
FastEthernet1/3            unassigned      YES unset  up                    down
FastEthernet1/4            unassigned      YES unset  up                    down
FastEthernet1/5            unassigned      YES unset  up                    down
FastEthernet1/6            unassigned      YES unset  up                    down
FastEthernet1/7            unassigned      YES unset  up                    down
FastEthernet1/8            unassigned      YES unset  up                    down
FastEthernet1/9            unassigned      YES unset  up                    down
FastEthernet1/10           unassigned      YES unset  up                    down
FastEthernet1/11           unassigned      YES unset  up                    down
FastEthernet1/12           unassigned      YES unset  up                    down
FastEthernet1/13           unassigned      YES NVRAM  up                    down
FastEthernet1/14           unassigned      YES unset  up                    down
FastEthernet1/15           unassigned      YES unset  up                    down
Vlan1                      unassigned      YES NVRAM  up                    down
Vlan618                    unassigned      YES NVRAM  up                    down
Vlan902                    172.16.131.1    YES NVRAM  up                    down
Vlan903                    unassigned      YES NVRAM  up                    down
NVI0                       unassigned      NO  unset  up                    up
Virtual-Access1            unassigned      YES unset  up                    up
Virtual-Access2            unassigned      YES unset  up                    up
Dialer1                    118.166.131.169 YES IPCP   up                    up
Dialer2                    unassigned      YES NVRAM  administratively down down

 

如上所示 : Dialer1 即是經由撥接所取得的IP

arrow
arrow
    全站熱搜

    靓Bar world 發表在 痞客邦 留言(0) 人氣()