CCNA Portable Command Guide

Figure 11-1 shows the network topology for the configuration that follows, which shows a single-area OSPF network configuration using the commands covered in this chapter.

Figure 11-1. Network Topology for Single-Area OSPF Configuration

Boston Router

Router>en

 

Router#config t

 

Router(config)#no ip domain-lookup

Turns off DNS queries so that spelling mistakes will not slow you down

Router(config)#hostname Boston

Sets host name

Boston(config)#line con 0

 

Boston(config-line)#logging sync

Commands interrupted by console messages will be appended to a new line

Boston(config-line)#exit

 

Boston(config)#int fa 0/0

 

Boston(config-if)#ip add 172.16.10.1 255.255.255.0

 

Boston(config-if)#no shut

 

Boston(config-if)#int s0/0

 

Boston(config-if)#ip add 172.16.20.1 255.255.255.0

 

Boston(config-if)#clock rate 56000

DCE cable connected to this interface

Boston(config-if)#no shut

 

Boston(config-if)#exit

 

Boston(config)#router ospf 1

Turns on OSPF process 1

Boston(config-router)#net 172.16.10.0 0.0.0.255 area 0

Any interface with address of 172.10.10.x will be part of Area 0

Boston(config-router)#net 172.16.20.0 0.0.0.255 area 0

Any interface with address of 172.16.20.x will be part of Area 0

Boston(config-router)#

 

Boston#copy run start

 

Buffalo Router

Router>en

 

Router#config t

 

Router(config)#no ip domain-lookup

Turns off DNS queries so that spelling mistakes will not slow you down

Router(config)#hostname Buffalo

Sets host name

Buffalo(config)#line con 0

 

Buffalo(config-line)#logging sync

Commands interrupted by console messages will be appended to a new line

Buffalo(config-line)#exit

 

Buffalo(config)#int fa 0/0

 

Buffalo(config-if)#ip add 172.16.30.1 255.255.255.0

 

Buffalo(config-if)#no shut

 

Buffalo(config-if)#int s0/0

 

Buffalo(config-if)#ip add 172.16.40.1 255.255.255.0

 

Buffalo(config-if)#clock rate 56000

DCE cable connected to this interface

Buffalo(config-if)#no shut

 

Buffalo(config)#int s 0/1

 

Buffalo(config-if)#ip add 172.16.20.2 255.255.255.0

 

Buffalo(config-if)#no shut

 

Buffalo(config-if)#exit

 

Buffalo(config)#router ospf 463

Turns on OSPF process 463

Buffalo(config-router)#net 172.16.0.0 0.0.255.255 area 0

Any interface with address of 172.16.x.x will be part of Area 0

Buffalo(config-router)#

 

Buffalo#copy run start

 

Bangor Router

Router>en

 

Router#config t

 

Router(config)#no ip domain-lookup

Turns off DNS queries so that spelling mistakes will not slow you down

Router(config)#hostname Buffalo

Sets host name

Bangor(config)#line con 0

 

Bangor(config-line)#logging sync

Commands interrupted by console messages will be appended to a new line

Bangor(config-line)#exit

 

Bangor(config)#int fa 0/0

 

Bangor(config-if)#ip add 172.16.50.1 255.255.255.0

 

Bangor(config-if)#no shut

 

Bangor(config)#int s 0/1

 

Bangor(config-if)#ip add 172.16.40.2 255.255.255.0

 

Bangor(config-if)#no shut

 

Bangor(config-if)#exit

 

Bangor(config)#router ospf 100

Turns on OSPF process 100

Bangor(config-router)#net 172.16.40.2 0.0.0.0 area 0

Interface with address of 172.16.40.2 will be part of Area 0

Bangor(config-router)#net 172.16.50.1 0.0.0.0 area 0

Interface with address of 172.16.50.1 will be part of Area 0

Bangor(config-router)#

 

Bangor#copy run start

 

Категории