就分享一下 Show Run 想必大夥應該就會設定了
較重要必須要打的的用紅色表示
先大致上說明一下
122.127.40.235 是播接到的 IP,再利用PAT讓裡面的IP出去
如果 Router 重新開機或是 Reload 我想IP應該就會變動
可能就要再重新設定一次,這點我有想到兩個辦法
一、Hinet 會給一個固定IP,可以利用這個 IP,就不用一直改
至於怎麼看播接後拿到的IP,可以輸入「show ip int brief」
就看Dialer1的介面拿到什麼IP囉
二、我不知道能不能把IP的部份變成Dialer1,讓他利用那個介面出去
這點就讓我去問完老師我再給大夥回覆
辦法已經提供在最下面
Router(config)#do 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 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
description LAN interface
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 播接帳號@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 pool OUT_IP 122.127.40.235 122.127.40.235 netmask 255.255.255.0
ip nat inside source list 1 pool OUT_IP 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
login
!
!
end
2010 / 04 / 12 更新
上次所說的NAT問題,原本是
ip nat pool OUT_IP 122.127.40.235 122.127.40.235 netmask 255.255.255.0
ip nat inside source list 1 pool OUT_IP overload
可以改成如下
ip nat inside source list 1 interface Dialer1 overload
感謝炤瑋同學提供
留言列表