close

首先感謝Cater同志一起研究

先放張Topology圖上來讓大家瞭解一下是怎樣的情形

topology.png

簡單介紹一下

左邊是Cater家裡,內部是192.168.1.0/24

右邊是Coolking家裡,內部是192.168.10.0/24

中間的雲當然就是超吸血的ISP業者

我和Cater中間建立一條虛擬Tunnel

這中間的網段就是10.1.1.0/24

大致上就是這樣

以下就直接丟Coolking這邊的Show Run給各位看看

重要的地方用紅色表示

 

 

Router#sh run
Building configuration...

Current configuration : 1590 bytes
!
version 12.4
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable password coolking
!
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 Tunnel100
 ip address 10.1.1.1 255.255.255.0
(Coolking這邊Tunnel IP)
 tunnel source Dialer1
 tunnel destination 122.118.36.5
(Cater那邊的IP)
!
interface FastEthernet0/0
 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 Serial0/0
 no ip address
 shutdown
!
interface FastEthernet0/1
 ip address 192.168.10.254 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
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 xxxxxxxx@hinet.net
 ppp chap password 0 xxxxxxxx
 ppp pap sent-username xxxxxxxx@hinet.net password 0 xxxxxxxx
!
no ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer1
ip route 192.168.1.0 255.255.255.0 Tunnel100(把Cater內部網段都往Tunnel丟)
!
!
ip http server
no ip http secure-server
ip nat inside source list 1 interface Dialer1 overload
!
access-list 1 permit 192.168.10.0 0.0.0.255
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
 no login
!
!
end

大夥也可以把靜態路由改成RIP、EIGRP…等等,如下…

router rip
 version 2
 network 10.0.0.0
 network 192.168.10.0
 no auto-summary

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

    Coolking's CCNP 筆記

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