Pichit, Both routing protocols will learn about the networks. Neither routing protocol will be responsible for placing the routes in the routers routing table -- the administrative distances of the routing protocols are both higher than the administrative distance of a directly connected interface. The networks will be in the routing table because they are directly connected, not because they are known via OSPF or BGP.
- Tom Pichit Ruangroj wrote: > Hi guys, > I've a question to ask. Follow the config & show below. What routing > protocol are supposed to put the route 203.113.38.0 , 203.113.39.0 and > 203.113.94.175 into the table? Shall it be OSPF or BGP? > > Pichit > > ============================ Config > =========================================== > interface GigabitEthernet0/0/0 > ip address 203.113.38.241 255.255.255.0 > > interface GigabitEthernet8/0/0 > ip address 203.113.39.241 255.255.255.0 > > interface Loopback0 > ip address 203.113.94.175 255.255.255.255 > > router ospf 100 > router-id 203.113.94.175 > log-adjacency-changes > redistribute static subnets > network 203.113.38.0 0.0.0.255 area 0 > network 203.113.39.0 0.0.0.255 area 0 > network 203.113.94.175 0.0.0.0 area 0 > maximum-paths 6 > ! > router bgp 9737 > no synchronization > bgp router-id 203.113.94.175 > bgp log-neighbor-changes > redistribute connected > neighbor 203.113.94.182 remote-as 9737 > neighbor 203.113.94.182 update-source Loopback0 > neighbor 203.113.94.183 remote-as 9737 > neighbor 203.113.94.183 update-source Loopback0 > no auto-summary > ! > > ========================= show ip route > =============================================== > lty_vpngw_01#sh ip route 203.113.38.0 > Routing entry for 203.113.38.0/24 > Known via "connected", distance 0, metric 0 (connected, via interface) > Redistributing via bgp 9737 > Advertised by bgp 9737 > Routing Descriptor Blocks: > * directly connected, via GigabitEthernet0/0/0 > Route metric is 0, traffic share count is 1 > > lty_vpngw_01#sh ip route 203.113.39.0 > Routing entry for 203.113.39.0/24 > Known via "connected", distance 0, metric 0 (connected, via interface) > Redistributing via bgp 9737 > Advertised by bgp 9737 > Routing Descriptor Blocks: > * directly connected, via GigabitEthernet8/0/0 > Route metric is 0, traffic share count is 1 > > lty_vpngw_01#sh ip route 203.113.94.175 > Routing entry for 203.113.94.175/32 > Known via "connected", distance 0, metric 0 (connected, via interface) > Redistributing via bgp 9737 > Advertised by bgp 9737 > Routing Descriptor Blocks: > * directly connected, via Loopback0 > Route metric is 0, traffic share count is 1 Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=73164&t=73152 -------------------------------------------------- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]