10-05-2010 05:48 PM - edited 03-04-2019 10:00 AM
I have my setup as shown below.
Area0<----Router-A---->Area0<----Router-B---->Area1
ROUTERB:
interface GigabitEthernet0/0
ip address 10.10.126.9 255.255.255.192
ip ospf message-digest-key 1 md5 XXXXYYYY
interface GigabitEthernet0/1
ip address 10.10.88.142 255.255.255.192
ip ospf message-digest-key 100 md5 7 XXXXYYYY
ip ospf priority 254
router ospf 65182
log-adjacency-changes
area 0 authentication message-digest
area 1 authentication message-digest
network 10.10.88.142 0.0.0.0 area 1
network 10.10.126.0 0.0.0.63 area 0
Do I also need to put the following command on router-B?
network 10.10.126.0 0.0.0.63 area 1
Solved! Go to Solution.
10-05-2010 10:22 PM
Hi Avilt,
if you write this command the below statement
network 10.10.126.0 0.0.0.63 area 0
will be over written as
network 10.10.126.0 0.0.0.63 area 1
and your ospf config will look like
router ospf 65182
log-adjacency-changes
area 0 authentication message-digest
area 1 authentication message-digest
network 10.10.88.142 0.0.0.0 area 1
network 10.10.126.0 0.0.0.63 area 1
and the impact is you will not find ospf adjacency between RouterA and Router B.
Regards
Mahesh
10-05-2010 11:40 PM
Hello ,
No , the 10.10.126. segment is part of Area 0,
This route you will see it in Area 1 , if you have more then Router B in this area , as intre-area route (O IA).
Dan
10-05-2010 10:00 PM
Is 10.10.126.0 0.0.0.63 in area 1 or area 0? You need to configure which interface is going to participate in OSPF in Router A. You need to put the OSPF authentication in Router A also.
HTH,
jerry
10-05-2010 10:22 PM
Hi Avilt,
if you write this command the below statement
network 10.10.126.0 0.0.0.63 area 0
will be over written as
network 10.10.126.0 0.0.0.63 area 1
and your ospf config will look like
router ospf 65182
log-adjacency-changes
area 0 authentication message-digest
area 1 authentication message-digest
network 10.10.88.142 0.0.0.0 area 1
network 10.10.126.0 0.0.0.63 area 1
and the impact is you will not find ospf adjacency between RouterA and Router B.
Regards
Mahesh
10-05-2010 10:55 PM
Hi,
Can you share the configuration for both the routers ?
10-05-2010 11:37 PM
ROUTERA:
interface GigabitEthernet0/0
ip address 10.10.126.54 255.255.255.192
ip ospf message-digest-key 1 md5 XXXXYYYY
interface GigabitEthernet0/1
ip address 10.10.88.199 255.255.255.240
ip ospf message-digest-key 1 md5 7 XXXXYYYY
router ospf 65182
log-adjacency-changes
area 0 authentication message-digest
network 10.10.88.199 0.0.0.0 area 0
network 10.10.126.0 0.0.0.63 area 0
--------------------------------------------------
ROUTERB:
interface GigabitEthernet0/0
ip address 10.10.126.9 255.255.255.192
ip ospf message-digest-key 1 md5 XXXXYYYY
interface GigabitEthernet0/1
ip address 10.10.88.142 255.255.255.192
ip ospf message-digest-key 100 md5 7 XXXXYYYY
router ospf 65182
log-adjacency-changes
area 0 authentication message-digest
area 1 authentication message-digest
network 10.10.126.0 0.0.0.63 area 0
network 10.10.88.142 0.0.0.0 area 1
On router-B, in order to advertise the route to 10.10.126.0 in area-1, do I also need to put the following command on router-B?
network 10.10.126.0 0.0.0.63 area 1
10-05-2010 11:40 PM
Hello ,
No , the 10.10.126. segment is part of Area 0,
This route you will see it in Area 1 , if you have more then Router B in this area , as intre-area route (O IA).
Dan
10-06-2010 12:09 AM
I am bit confused about the usage of network command in OSPF.
For example in the following config, if I do not add the command "network 10.10.126.9 0.0.0.0 area 0" is the router going to advertise the route to network 10.10.126.0 in area0 on the interface GigabitEthernet0/1?
TESTROUTER:
interface GigabitEthernet0/0
ip address 10.10.126.9 255.255.255.192
interface GigabitEthernet0/1
ip address 10.10.88.142 255.255.255.192
ip ospf message-digest-key 1 md5 7 XXXXYYYY
router ospf 65182
log-adjacency-changes
area 0 authentication message-digest
network 10.10.88.142 0.0.0.0 area 0
10-06-2010 12:22 AM
Hi Avilt,
In case of ospf if you want to enable ospf on interface then you will have to put the IP of that interface
via. network command in ospf.
Network command serve two purpose.
1- Help in estlablishing neighbor relationship with connected interface device
2- and advt. that network in ospf
For your query. You already have ospf route for network 10.10.126.0 on router B then you need not to put it in network command to advt. on your interface
GigabitEthernet0/1. You will see that network advt. on other routers as Net summary link.
Please issue "sh ip ospf database" to verify the same on router connected to GigabitEthernet0/1
Please feel free to write if you have any more query
Regards
Mahesh
10-06-2010 01:24 AM
Thank You Mahesh.
Just to clarify further regarding point 2
2- and advt. that network in ospf
Is this command goint to advertise every active route even though the network command is not defined for every network ?
10-06-2010 02:07 AM
Hi Avilt,
This will advt. the route covered under this subnet. I mean if you put 10.10.10.0/16 then it will advt. all active route
belongs to that subnet
Hope this is clear to you
Regards
mahesh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide