Basic Configuration Asso Prof Anan Phonphoem Ph D
Basic Configuration รศ. ดร. อนนต ผลเพม Asso. Prof. Anan Phonphoem, Ph. D. anan. p@ku. ac. th Intelligent Wireless Network Group (IWING Lab) http: //iwing. cpe. ku. ac. th Computer Engineering Department Kasetsart University, Bangkok, Thailand 1
Basic Scenario 192. 168. 22. 0 192. 168. 12. 0 BKK TAK 192. 168. 32. 0 2
Configure 192. 168. 22. 0 BKK 192. 168. 12. 0 192. 168. 32. 0 TAK Set Clock Router> Router# enable clock set 9: 00 12 Nov 2005 Set Hostname and Banner Router# conf term Router(config)# hostname BKK(config)# banner motd # Bangkok Router – BKK located in Kasetsart University # 3
Configure 192. 168. 22. 0 BKK 192. 168. 12. 0 192. 168. 32. 0 TAK Set password BKK(config)# enable password pass 2005 Set secret BKK(config)# enable secret sec 2005 4
Configure 192. 168. 12. 0 192. 168. 22. 0 BKK 192. 168. 32. 0 TAK Set line console login BKK(config)# line con 0 BKK(config-line)# password con 2005 BKK(config-line)# login Set Telnet login BKK(config-line)# line vty 0 4 BKK(config-line)# password vty 2005 BKK(config-line)# login 5
Configure 192. 168. 22. 0 BKK 192. 168. 12. 0 192. 168. 32. 0 TAK Set interface Ethernet BKK(config)# interface eth 0 BKK(config-if)# desc Eng-LAN BKK(config-if)# ip address 192. 168. 12. 1 255. 0 BKK(config-if)# no shutdown BKK(config-if)# exit 6
Configure 192. 168. 12. 0 192. 168. 22. 0 BKK DCE 192. 168. 32. 0 TAK Set interface Serial BKK(config)# interface serial 0 BKK(config-if)# Desc BKK-link BKK(config-if)# ip address 192. 168. 22. 1 255. 0 BKK(config-if)# clockrate 56000 BKK(config-if)# no shutdown 7
Configure 192. 168. 22. 0 BKK 192. 168. 12. 0 192. 168. 32. 0 TAK Set Routing Protocol BKK(config)# router rip BKK(config-router)# version 2 BKK(config-router)# network 192. 168. 12. 0 BKK(config-router)# network 192. 168. 22. 0 BKK(config-router)# exit Set ip host name BKK(config)# ip host BKK 192. 168. 12. 1 192. 168. 22. 1 BKK(config)# ip host TAK 192. 168. 22. 2 192. 168. 32. 1 8
Configure 192. 168. 12. 0 192. 168. 22. 0 BKK 192. 168. 32. 0 TAK Save configuration BKK(config)# exit BKK# copy running start Verify configuration BKK# show run BKK# show startup 9
Basic Configuration n n hostname Router password n n n Interface configuration n n Console password Virtual terminal password Enable password Password encryption Ethernet interface configuration Serial interface configuration Interface description Routing configuration n RIP version 1 and 2, OSPF, etc. 10
- Slides: 10