R2 # config R2 (config) # interface ran f0/0, f0/1 R2 (config-if) # no shut R2 (config-if) # interface f0/0 R2 (config-if) # ip address 192.168.0.2 255.255.255.0 R2 (config-if) # interface f0/1 R2 (config-if) # ip address 172.16.0.1 255.255.0.0
R2 (config-if) # ip ospf? R2 (config-if) # ip ospf network? Broadcast Specify OSPF broadcast multi-access network Non-broadcast Specify ospf nbma network Point-to-multipoint Specify OSPF point-to-multipoint network Point-to-point Specify OSPF point-to-point network R2 (config-if) # exit
R2 (config) # router ospf 3 R2 (config-router) # network 192.168.0.0 0.0.255 area 0 R2 (config-router) # network 172.16.0.0 0.0.255.255 area 1
R2 (config) # router ospf 3 R2 (config-router )#? Router configuration commands: Area OSPF area parameters R2 (config-router) # area? <0-4294967295> OSPF area ID as a decimal value A. B .C.D OSPF area ID in IP address format
R2 (config-router) # area 1? Authentication Enable authentication Default-cost Set the summary default-cost of a NSSA/stub area Nssa Specify a NSSA area Range Summarize routes matching address/mask (border routers only) Stub Specify a stub area Virtual-link Define a virtual link and its parameters
R2 (config-router) # area 1 stub? No-summary Do not send summary LSA into stub area <Cr>
R2 (config-router) # area 1 stub no-summary R2 (config-router) # end R2 # copy runn start |