วันศุกร์ที่ 21 มกราคม พ.ศ. 2554

การใช้ROUTER CISCO 1800 ทำ Authen PPoE แบบมี IP Dynamic

service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname (ชื่อผู้ใช้บริการ)
boot-start-markerboot-end-marker
no aaa new-model
resource policy
mmi polling-interval 60
no mmi auto-configureno mmi pvcmmi snmp-timeout 180
ip subnet-zeroip cef
no ip dhcp use vrf connected
ip dhcp pool (ชื่อผู้ใช้บริการ)
network 192.168.1.0 255.255.255.0 (IP client)
default-router 192.168.1.254 (gateway client)
dns-server 61.19.245.245 61.19.245.246 202.129.27.135 (DNS ISP)
lease infinite
no ip domain lookup
ip name-server 61.19.245.246 (DNS ISP)
ip name-server 202.129.27.135 (DNS ISP)
virtual-profile if-neededvpdn-group 1
interface FastEthernet0/0
no ip address
duplex auto
speed auto pppoe enable
pppoe-client dial-pool-number 1
interface FastEthernet0/1
ip address 192.168.1.254 255.255.255.0 secondary
ip address 110.77.139.177 255.255.255.248 (IP dynamaic)
ip nat inside
duplex auto speed auto
interface Serial0/0/0
no ip address
shutdown
no fair-queue
clockrate 2000000
interface Dialer1
ip address negotiated
ip mtu 1492
ip nat outside
encapsulation ppp
ip tcp adjust-mss 1452 dialer pool 1
dialer-group 1
ppp authentication pap chap callin
ppp chap hostname xxxxxxxxxxxxx(username จาก ISP)
ppp chap password 0 xxxxxxxx(password จาก ISP)
ppp pap sent-username (username จาก ISP) password 0 (password จาก ISP)
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
no ip http server
ip nat inside source list 20 interface Dialer1 overload
access-list 20 permit 192.168.1.0 0.0.0.255
dialer-list 1 protocol ip permit!control-plane
line con 0 logging synchronous
line aux 0
line vty 0 4
login local
scheduler allocate 20000 1000
end

สามารถใช้งานได้เลย

วันพฤหัสบดีที่ 20 มกราคม พ.ศ. 2554

การconfig cisco 800 series วงจร MPLS

no aaa new-model

ip subnet-zero

!

!

ip audit po max-events 100

no ftp-server write-enable

!

!

!

!

no crypto isakmp enable

!

bridge irb

!

!

interface Ethernet0

description ### LAN CE ###

ip address 172.17.77.254 255.255.255.0

load-interval 30

hold-queue 100 out

no shut

interface ATM0

no ip address

no atm ilmi-keepalive

dsl operating-mode auto

no shut

interface ATM0.1 point-to-point

bridge-group 1

pvc 0/35

oam-pvc manage

oam retry 35 5 1

encapsulation aal5snap

no shut

!

interface BVI1

description ### WAN CAT ###

ip address 10.128.1.54 255.255.255.252

no shut

ip classless

ip route 0.0.0.0 0.0.0.0 10.128.1.53

ip http server

no ip http secure-server

!

!

!

control-plane

!

bridge 1 protocol ieee

bridge 1 route ip

banner motd ^C CETTELECOM CHUMPHON BDI095741 ^C

!

line con 0

no modem enable

transport preferred all

transport output all

line aux 0

line vty 0 4

exec-timeout 30 0

login local

transport preferred all

transport input all

transport output all

!

scheduler max-task-time 5000

!

end