-
تعویض کانفیگ روتر
با سلام خدمت دوستان یه سوال مبتدیانه دارم
این کانفیگ روتر منه میخوام تغیراتی بدم که نیازی نباشه به صورت vpn به روتر وصل شم تا ip بگیرم و اینترنت داشته باشم (کابل شبکه رو که وصل میکنم ip دریافت و بتونم اینترنت کار کنم الان باید vpn وصل بشم ممنون میشم راهنمایی کنید؟)
[CODE]Building configuration... [/CODE]
[CODE]
[RIGHT]Current configuration : 1321 bytes
[RIGHT]!
version 12.4
service timestamps debug datetime msec
service timestamps log dat
service password-encryption
!
hostname internet
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$Y7FE$mbunVNQYqdxeBRFgk2D7H/
!
no aaa new-model
!
resource policy
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
ip cef
!
!
!
!
vpdn enable
!
vpdn-group 1
! Default PPTP VPDN group
accept-dialin
protocol pptp
virtual-template 1
!
async-bootp dns-server 4.2.2.4
!
username user password
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex aut
speed auto
!
interface FastEthernet0/1
ip address 10.123.160.250 255.255.224.0 secondary
ip address 78.x.x.x 255.255.255.224
duplex auto
speed auto
!
interface Serial0/0/0
ip unnumbered FastEthernet0/1
ip access-group 40 out
encapsulation ppp
clock rate 2000000
!
interface Virtual-Template1
ip unnumbered FastEthernet0/1
peer default ip address pool vpnpool
ppp authentication ms-chap ms-chap-v2
!
ip local pool vpnpool 78.x.x.x x.x.x.x
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0/0/0
!
ip http
!
access-list 40 permit x.x.x.x 0.0.0.31
!
control-plane
!
login
!
end[/RIGHT]
[/CODE]
[/RIGHT]
-
اساتید بزرگوار لطف خود را ا زما دریغ مفرمایید
-
دوست عزيز من مراحلشو مي گم يكم روش كار كني جواب مي گيري
1) Router(config-if)ip nat out side -----> On the interface connected to Internet
2) Router(config-if)ip nat inside -----> On the interface connected to Lan
3) Router(config)ip route 0.0.0.0 0.0.0.0 x.x.x.x ---> Internet Gateway
4) Router(config)access-list 10 permit y.y.y.0 0.0.0.255 ----> Interest Traffic Like 192.168.1.0 0.0.0.255
5) Router(config)ip nat inside source list 10 interface fa 0/1 overload -----> Interface Fa0/1 is connected to Internet
DHCP config
Ip dhcp pool MyDHCP
network 192.168.1.0 255.255.255.0
default-router 192.168.1.254 ----> Router Lan IP
dns-server 4.2.2.2 4.2.2.1 192.9.9.3
[URL]http://articles.techrepublic.com.com/5100-10878_11-1039094.html[/URL]