Вы находитесь на странице: 1из 3

HOST NAME: Router(config)#hostname CONSOLE PASSWORD: Router(config)#line console 0 Router(config-line)#password cisco Router(config-line)#login VTY PASSWORD: Router(config)#line vty 0 4 Router(config-line)#password

cisco Router(config-line)#login ENABLE PASSWORD or ENABLE SECRET: Router(config)#enable password cisco or Router(config)#enable secret cisco BANNER MESSAGE: Router(config)#banner motd # enter message here # DISABLE DNS LOOKUP: Router(config)#no ip domain lookup ADD LOGGING SYNCHRONOUS TO CONSOLE: Router(config)#line console 0 Router(config-line)#logging synchronous ADD LOGGING SYNCHRONOUS TO VIRTUAL TERMINAL LINES: Router(config-line)#line vty 0 4 Router(config-line)#logging synchronous ADD EXEC-TIMEOUT TO CONSOLE: Router(config)#line console 0 Router(config-line)exec-timeout 0 0 ADD EXEC-TIMEOUT TO VIRTUAL TERMINAL LINES: Router(config)#line vty 0 4 Router(config-line)#exec-timeout 0 0 DEBUG IP ROUTING: Router#debug ip routing ADVERTISE 0.0.0.0/0 STATIC DEFAULT ROUTE TO OTHER ROUTERS: Router(config)#interface loopback 1 Router(config-if)#ip add 172.30.1.1 255.255.255.252 Router(config-if)#exit Router(config)#ip route 0.0.0.0 0.0.0.0 loopback 1 Router(config)#rouer ospf 1 Router(config-rotuer)#default-information originate

Ch.11 -----ENABLE OSPF Router (config)#router ospf <process-id> Router (config-router)#network xxx.xxx.xxx.xxx. 0.0.0.3 area 0 (network ip addre ss / wildcard-mask / area-id)

DR/BDR: Router#show ip ospf neighbor and Router#show ip ospf interface F0/0 MODIFY OSPF PRIORITY (for DR and BDR assignment): Router(config)#interface fa0/0 Router(config-if)#ip ospf priority 200(0-255) LOOPBACK INTERFACE: Router(config)#interface loopback 0 (loopback number) Router(config-if)#ip add 10.1.1.1 255.255.255.255 (ip-address / subnet mask) OSPF ROUTER-ID COMMAND: Router(config)#router ospf <process-id> Router(config-router)#router-id <ip address> OSPF COMMANDS: Router#show ip protocols Router#show ip ospf OSPF COST: Router#show ip ospf interface s0/0/0 MODIFY OSPF COST OF LINK: (bandwidth 64=cost 1562, 256=390, 128=781) Router(config)interface serial 0/0/0 Router(config-if)#bandwidth <bandwidth in kbps> or (easier method) Router(config)#interface serial 0/0/0 Router(config-if)#ip ospf cost <cost number> Router(config-if)#end ADJUST REFERENCE BANDWIDTH VALUE (for more accurate cost calculations for Ethern et speeds > 100mbps): Router(config-if)#router ospf 1 Router(config-router)#auto-cost reference-bandwidth 10000(number between 1-42949 67, normally > the default 100mpbs) MODIFY OSPF INTERVALS (HELLO AND DEAD TIME. MUST DO ON BOTH ROUTERS): Router(config)#interface serial 0/0/0 Router(config-if)#ip ospf hello-interval <seconds> Router(config-if)#ip ospf dead-interval <seconds>

-CHECK BANDWIDTH VALUE: Router#show interface s0/0/0 -DISPLAY ROUTING TABLE: Router#show ip route

Вам также может понравиться