|
ตัวอย่างนี้ LAN ใช้ Public
IP (จึงไม่มีการทำ NAT)
LAN IP : 202.129.49.192/29
WAN IP : 202.129.50.240/30
กำหนดให้ค่าต่าง ๆ เป็นดังนี้ :
- FastEthernet0
เป็น
202.129.49.193 255.255.255.248
- Serial0 เป็น
202.129.50.242 255.255.255.252
- Speed เป็น
256 Kbit
- Encapsulation :
frame-relay IETF
(ถ้าเป็นการติดต่อระหว่างเราเตอร์ cisco กับ cisco
ใช้เป็น frame-relay เฉย ๆ ก็ ok
แล้ว
แต่ถ้าเป็นการติดต่อระหว่างเราเตอร์ต่างยี่ห้อกันให้ใช้เป็น frame-relay
IETF)
- frame-relay lmi-type :
q933a (CCITT)
ถ้าไม่กำหนดจะเป็นค่า default คือ
cisco (ค่านี้ต้องตรงกับค่าบนตัว Frame relay
Switch ครับ ฉะนั้นควรถามผู้ดูแล Frame relay switch
ก่อนจะดีกว่านะครับ)
- frame-relay interface-dlci :
200
การคอนฟิกมีขั้นตอนทั้งหมดดังนี้ :
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
ตั้งชื่อของเราเตอร์ชื่อว่า "itwizard"
Router(config)#hostname itwizard
เปิด Port
telnet และตั้ง Password สำหรับความปลอดภัย
โดยใช้ Password เป็น "cisco"
itwizard(config)#enable password cisco
itwizard(config)#line vty 0 4
itwizard(config-line)#password cisco
itwizard(config-line)#login
itwizard(config-line)#logging synchronous
itwizard(config-line)#exit
กำหนด
name-server เป็น 2 ตัว
itwizard(config)#ip name-server 202.129.16.69 202.129.27.134
คอนฟิกค่าของ
Serial0 (ไม่มีการทำ
sub interface)
itwizard(config)#int s0
itwizard(config-if)#description itwizard
# กำหนด
description ให้กับ Serial0 เป็น "itwizard"
itwizard(config-if)#ip address 202.129.50.242 255.255.255.252
itwizard(config-if)#bandwidth 256
itwizard(config-if)#encapsulation frame-relay ietf
itwizard(config-if)#frame-relay lmi-type q933a
itwizard(config-if)#frame-relay interface-dlci 200
itwizard(config-fr-dlci)#exit
itwizard(config-if)#no shut
itwizard(config-if)#exit
คอนฟิกค่าของ
FastEthernet0
itwizard(config)#int f0
itwizard(config-if)#ip address 202.129.49.193 255.255.255.248
itwizard(config-if)#no shut
itwizard(config-if)#exit
กำหนด default
route โดยชี้ไปยัง WAN IP ฝั่งตรงข้าม
itwizard(config)#ip route 0.0.0.0 0.0.0.0 202.129.50.241
itwizard(config)#exit
บันทึกข้อมูล
itwizard#wr mem
เมื่อใช้คำสั่ง sh run จะได้คอนฟิกทั้งหมดดังนี้ :
itwizard#sh run
Building configuration...
Current configuration : 731 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname itwizard
!
enable password cisco
!
ip subnet-zero
!
!
ip name-server 202.129.16.69
ip name-server 202.129.27.134
!
!
!
!
!
interface FastEthernet0
ip address 202.129.49.193 255.255.255.248
speed auto
!
interface Serial0
description itwizard
bandwidth 256
ip address 202.129.50.242 255.255.255.252
encapsulation frame-relay IETF
no fair-queue
frame-relay interface-dlci 200
frame-relay lmi-type q933a
!
ip classless
ip route 0.0.0.0 0.0.0.0 202.129.50.241
no ip http server
!
!
!
!
line con 0
line aux 0
line vty 0 4
password cisco
logging synchronous
login
!
no scheduler allocate
end |