Documente Academic
Documente Profesional
Documente Cultură
by bilke@bsd.org.yu
Contents Basic router conguration NAT router conguration VLAN routing (router on a stick)
2950 switch conguration: Cisco Router conguration:
2 2 3 3 3 4 4 4 4 5 5 5 6 6 7 7
5 5 3 3
RIP router IGRP router OSPF router EIGRP router STP and EtherChannel conguration Switch port conguration PPP conguration on Serial link
Zugspitze router conguration: Zuerich router conguration:
HDLC conguration on Serial link ISDN Legacy DDR conguration ISDN Legacy DDR conguration with multiple locations ISDN DDR conguration with Dialer Proles Frame Relay conguration Access Lists conguration
acess-list 10 permit 192.168.1.1 0.0.0.255 dene range of private ip addesses to be translated in NAT setup dene pool of public ip addresses to be used in NAT setup set dynamic (many to one; PAT) address translation set dynamic (many to many; no PAT) address translation set dynamic (many to many; PAT) address translation
RIP router
router rip network 192.168.1.0 version 2 passive-interface default passive-interface Ethernet 0 maximum-paths 4 global conguration mode command to enable rip router router subcommand to enable routing on network set rips version (default is version 1) supress sending rip updates on all intefaces supress sending rip updates only on particular interface route trafc over 4 equal paths (max 6 paths)
IGRP router
router igrp 5 network 192.168.1.0 variance 2 maximum-paths 4 trafc-share min trafc-share balance global cong mode command to enable igrp router. 5 is as number router subcommand to enable routing on network multiplier used to control load balancing over not equal paths route trafc over 4 equal or unequal (see variance) paths to the same destination (max 6 paths) route trafc over path with minimum metric paths route trafc inversely proportional to metric over 4 paths
OSPF router
router ospf 1 network 192.168.1.0 0.0.0.255 area 0 ip ospf cost 100 bandwidth 1000 global cong mode command to enable ospf router. 1 is ospf process id, and dont have global signicant. valid range is 1 - 65535 router subcommand to enable routing on network for specied area area is integer from 0 to 4294967295 interface subcommand to set ospf cost for specied interface interface subcommand to set bandwidth on interface from which ospf derive cost using formula 108/bandwidth*1000
EIGRP router
router eigrp 5 network 192.168.1.0 variance 2 maximum-paths 4 trafc-share min trafc-share balance global cong mode command to enable eigrp router. 5 is as number router subcommand to enable routing on network multiplier used to control load balancing over not equal paths route trafc over 4 equal or unequal (see variance) paths to the same destination (max 6 paths) route trafc over path with minimum metric paths route trafc inversely proportional to metric over 4 paths
access-list 101 permit tcp any 192.168.5.0 global conf. access-list that dene interesting trafc 0.0.0.255 eq 21 dialer-list 1 protocol ip list 101 interface bri 0 ip address 192.168.2.1 255.255.255.0 encapsulation ppp ppp authentication chap isdn spid1 00014555555559 isdn spid2 88012455937559 global conf. dene what is to be considered interesting. this example consider accesslists 101 rules enter interface bri 0 set bri 0 interface ip address set ppp encapsulation on bri 0 interface turn on chap authentication protocol optionaly bri int command. set security num. delegatet from telco optionaly bri int command. set security num. delegatet from telco
dialer map ip 192.168.2.2 broadcast name map ip address with number and username to be send rosenheim 381638235510 dialer map ip 192.168.2.3 broadcast name map ip address with number and username to be send augsburg 38163277202 dialer-group 1 bri interface subcommand that referes to dialer-list in order to determen which trafc is to be considered interesting
turn on chap authentication protocol no interesting trafc for 5 minutes bring connection down no interesting trafc for 2 minutes and another call pending bring connection down
dialer map ip 192.168.2.2 broadcast name map ip address with number and username to be send rosenheim 381638235510 dialer map ip 192.168.2.3 broadcast name map ip address with number and username to be send augsburg 38163277202 dialer-group 1 dialer-pool 2 interface bri 0 encapsulation ppp ppp authentication chap isdn spid1 00014555555559 isdn spid2 88012455937559 dialer pool-member 2 interface bri 1 encapsulation ppp ppp authentication chap isdn spid1 00014555555559 isdn spid2 88012455937559 dialer pool-member 2 dialer interface subcommand that referes to dialer-list in order to determen which trafc is to be considered interesting tell dialer inteface which dialer pool to use enter bri interface conguration set encapsulation to ppp enable chap authentication optionaly bri int command. set security num. delegatet from telco optionaly bri int command. set security num. delegatet from telco delegate bri 0 inteface in bri intefaces pool number 2 enter bri inteface conguration set encapsulation ppp enable chap anthentication optionaly bri int command. set security num. delegatet from telco optionaly bri int command. set security num. delegatet from telco delegate bri 1 inteface in bri interfaces pool number 2