OSPF NBMA and EIGRP and BGP on pod #4 - 1/6/05
Post new topic   Reply to topic
AcceliNetworks Forum Index -> Configuring  
View previous topic :: View next topic  
Author Message
Tom4498



Joined: 05 Oct 2004
Posts: 276
Location: America/New_York

PostPosted: Thu Jan 13, 2005 8:10 am    Post subject: OSPF NBMA and EIGRP and BGP on pod #4 - 1/6/05 Reply with quote

Layer 2
10.x.x.x
loopbacks 10.x.x.x 255.255.0.0
Frame2 10.10.14.x 255.255.0.0
R3toR7 10.10.37.x 255.255.255.240

R1,R2,R3 - 192.168.x.x
Frame1 192.168.1.x 255.255.255.0
R1toR2 192.168.12.x 255.255.255.240
VLAN10 192.168.10.x 255.255.255.0
VLAN20 192.168.20.x 255.255.255.0

R4,R5,R7 - 172.16.x.x
ISDN 172.16.57.x 255.255.255.240
VLAN40 172.16.40.x 255.255.255.0
R5toR4 172.16.54.x 255.255.255.240

Switch1
en
vlan database
vlan 10 name VLAN10
vlan 20 name VLAN20
vlan 40 name VLAN40
apply
exit
config t
int fa 0/1
speed 10
duplex half
switchport mode access
switchport access vlan 10
exit
int fa 0/2
speed 10
duplex half
switchport mode access
switchport access vlan 20
exit
int fa 0/3
speed 10
duplex half
switchport mode access
switchport access vlan 20
exit
int fa 0/4
speed 10
duplex half
switchport mode access
switchport access vlan 40
exit
int fa 0/7
speed 10
duplex half
switchport mode access
switchport access vlan 40
end
wr mem

R6
en
config t
int s 0
clockrate 125000
exit
int s 1
clockrate 125000
end
wr mem

R1
en
config t
no ip domain lookup
int loopback 0
ip address 10.1.1.1 255.255.0.0
exit
int e 0
ip address 192.168.10.1 255.255.255.0
no shut
exit
int s 0
no ip address
encapsulation frame-relay
no shut
exit
int s 0.1 multipoint
ip address 192.168.1.1 255.255.255.0
no arp frame-relay
no frame-relay inverse-arp
frame-relay map ip 192.168.1.2 102 broadcast
frame-relay map ip 192.168.1.3 103 broadcast
exit
int s 0.2 point-to-point
ip address 10.10.14.1 255.255.0.0
frame-relay interface-dlci 104
exit
int s 1
ip address 192.168.12.1 255.255.255.240
no shut
end
wr mem

R2
en
config t
no ip domain lookup
int loopback 0
ip address 10.2.2.2 255.255.0.0
exit
int e 0
ip address 192.168.20.2 255.255.255.0
no shut
exit
int s 0
encapsulation frame-relay
ip address 192.168.1.2 255.255.255.0
no arp frame-relay
no frame-relay inverse-arp
frame-relay map ip 192.168.1.1 201 broadcast
frame-relay map ip 192.168.1.3 201 broadcast
no shut
exit
int s 1
clockrate 125000
ip address 192.168.12.2 255.255.255.240
no shut
end
wr mem

R3
en
config t
no ip domain lookup
int loopback 0
ip address 10.3.3.3 255.255.0.0
exit
int e 0
ip address 192.168.20.3 255.255.255.0
no shut
exit
int s 0
encapsulation frame-relay
ip address 192.168.1.3 255.255.255.0
no arp frame-relay
no frame-relay inverse-arp
frame-relay map ip 192.168.1.1 301 broadcast
frame-relay map ip 192.168.1.2 301 broadcast
no shut
exit
int s 1
ip address 10.10.37.3 255.255.255.240
no shut
end
wr mem

R4
en
config t
no ip domain lookup
int loopback 0
ip address 10.4.4.4 255.255.0.0
exit
int e 0
ip address 172.16.40.4 255.255.255.0
no shut
exit
int s 0
no ip address
encapsulation frame-relay
no shut
int s 0.1 point-to-point
ip address 10.10.14.4 255.255.0.0
frame-relay interface-dlci 401
exit
int s 1
ip address 172.16.54.4 255.255.255.240
no shut
end
wr mem

R5
en
config t
no ip domain lookup
int loopback 0
ip address 10.5.5.5 255.255.0.0
exit
int bri 0
ip address 172.16.57.5 255.255.255.240
encapsulation ppp
isdn switch-type basic-ni
isdn spid1 555111111100 5551111111
isdn spid2 555222222200 5552222222
no shut
dialer map ip 172.16.57.7 name r7 broadcast 7771111111
int s 1
clockrate 125000
ip address 172.16.54.5 255.255.255.240
no shut
end
wr mem

R7
en
config t
no ip domain lookup
int loopback 0
ip address 10.7.7.7 255.255.0.0
exit
int e 0/0
ip address 172.16.40.7 255.255.255.0
no shut
exit
int bri 0/0
ip address 172.16.57.7 255.255.255.240
encapsulation ppp
isdn switch-type basic-ni
isdn spid1 777111111100 7771111111
isdn spid2 777222222200 7772222222
no shut
dialer map ip 172.16.57.5 name r5 broadcast 5551111111
int s 0/0
clockrate 125000
ip address 10.10.37.7 255.255.255.240
no shut
end
wr mem

Test the config:
R1 tests:
en
ping 192.168.1.2
ping 192.168.1.3
ping 192.168.12.2
ping 10.10.14.4

R2 tests:
en
ping 192.168.1.1
ping 192.168.1.3
ping 192.168.12.1
ping 192.168.20.3

R3 tests:
en
ping 192.168.1.2
ping 192.168.1.3
ping 10.10.37.7
ping 192.168.20.2

R4 tests:
en
ping 172.16.40.7
ping 172.16.54.5
ping 10.10.14.1

R5 tests:
sh start
ping 192.168.54.4
ping 172.25.30.7

R7 tests:
en
ping 10.10.37.3
ping 172.16.40.4
ping 172.16.57.5



Layer 3 - OSPF
- area options
- NBMA
R1
en
config t
router ospf 1
no auto-summary
network 192.168.10.0 0.0.0.255 area 0
network 10.10.14.0 0.0.0.255 area 3
network 192.168.12.0 0.0.0.255 area 1
network 192.168.1.0 0.0.0.255 area 1
exit
int s 0.1
ip ospf priority 1
end
wr mem

R2
en
config t
router ospf 1
no auto-summary
network 192.168.12.0 0.0.0.255 area 1
network 192.168.20.0 0.0.0.255 area 1
network 192.168.1.0 0.0.0.255 area 1
exit
int s 0
ip ospf priority 0
end
wr mem

R3
en
config t
router ospf 1
no auto-summary
network 192.168.20.0 0.0.0.255 area 1
network 192.168.1.0 0.0.0.255 area 1
exit
int s 0
ip ospf priority 0
end
wr mem

R4
en
config t
router ospf 1
no auto-summary
network 10.10.14.0 0.0.0.255 area 3
redistribute eigrp 1 metric 10
end
wr mem


Layer 3 - EIGRP
- stub options
- using delay to manipulate routes
R4
en
config t
router eigrp 1
network 172.16.40.0
network 172.16.54.0
passive-interface s 0
redistribute ospf 1 metric 10
end
wr mem

R5
en
config t
router eigrp 1
network 172.16.57.0
network 172.16.54.0
end
wr mem

R7
en
config t
router eigrp 1
network 172.16.57.0
network 172.16.40.0
network 10.10.37.0
end
wr mem

Layer 3 - BGP
- route-maps
- redistribution
R1
en
config t
router bgp 65001
neighbor 192.168.12.2 remote-as 65001
network 192.168.12.0
network 192.168.10.0
network 10.10.0.0
network 192.168.1.0
end
wr mem

R2
en
config t
router bgp 65001
neighbor 192.168.12.1 remote-as 65001
neighbor 192.168.20.3 remote-as 3
redistribute connected
end
wr mem

R3
en
config t
router bgp 3
neighbor 10.10.37.7 remote-as 3
neighbor 192.168.20.2 remote-as 65001
network 10.10.37.0 mask 255.255.255.0
network 192.168.20.0 mask 255.255.255.0
network 192.168.1.0 mask 255.255.255.0
end
wr mem

R4
en
config t
router bgp 5
neighbor 172.16.54.5 remote-as 5
network 172.16.40.4 mask 255.255.255.0
network 10.10.14.4 mask 255.255.0.0
network 172.16.54.0 mask 255.255.255.0
end
wr mem

R5
en
config t
router bgp 5
neighbor 172.16.54.4 remote-as 5
neighbor 172.16.57.5 remote-as 5
network 172.16.54.0 mask 255.255.255.0
network 172.16.57.0 mask 255.255.255.0
end
wr mem

R7
en
config t
router bgp 3
neighbor 10.10.37.7 remote-as 3
neighbor 172.16.57.5 remote-as 5
network 10.10.37.0 mask 255.255.255.0
network 172.16.40.0 mask 255.255.255.0
network 172.16.57.0 mask 255.255.255.0
end
wr mem


Layer 3 Experiments
OSPF default Route
on R1
en
config t
ip route 0.0.0.0 0.0.0.0 10.10.14.4
router ospf 1
default-information originate metric 30 always metric-type 1
end
wr mem

NOTES
even if you use no auto-summary with eigrp, it still uses the classful networks so you mind as well enter them to save time.

When you set ip ospf network point-to-multipoint, each link is treated as a point-to-point link and you need a full mesh to make it work


on R1
en
config t
ip route 0.0.0.0 0.0.0.0 10.10.14.4
router ospf 1
default-information originate metric 30 always metric-type 1
end
wr mem
When you set a default route in OSPF, all OSPF routers pick the best path out....
R1 has Gateway of last resort is 10.10.14.4 to network 0.0.0.0
R2 has Gateway of last resort is 192.168.12.1 to network 0.0.0.0
R3 has Gateway of last resort is 192.168.20.2 to network 0.0.0.0

Even if a router is running multiple protocols it will install the route....
O*E1 0.0.0.0/0 [110/94] via 10.10.14.1, 00:05:16, Serial0.1
R4 has Gateway of last resort is 10.10.14.1 to network 0.0.0.0

Even EIGRP routers will accept the default route....
Gateway of last resort is 172.16.40.4 to network 0.0.0.0


I tested OSPF summary routes with this on R1

on R1
en
config t
router ospf 1
area 1 range 192.168.0.0 255.255.0.0
end
wr mem

R4 has this...
O IA 192.168.0.0/16 [110/128] via 10.10.14.1, 00:01:06, Serial0.1

The Area range command is used within OSPF and the summary address command is used to advertize outside the OSPF domain.

on R4
en
config t
router ospf 1
summary-address 192.168.0.0 255.255.0.0

THis didn't seem to work for me.

I tried redistributing a static route into eigrp

ip route 192.168.0.0 255.255.0.0 null0

R4 sees....
S 192.168.0.0/16 is directly connected, Null0


R7 sees the summary route and the individual routes
D EX 192.168.0.0/16 [170/281600] via 172.16.40.4, 00:01:17, Ethernet0/0


When I set area 2 (ethernet side of R2 and R3) I got only router and network routes, LSA 1 and 2 perspectively. I need to think more about the different types of OSPF areas.



BGP will not advertize routes if you screw up the subnet mask.


BGP remove private-AS - R1 and R2 are 65001 | R3 and R7 are AS 3 | R4 and R5 are AS 5
before the change....
R5#sh ip bgp
BGP table version is 45, local router ID is 10.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0 172.16.40.7 0 3 65001 ?
*> 172.16.40.0/24 172.16.40.7 0 0 3 i
* i172.16.54.0/28 172.16.54.4 0 100 0 i
*> 0.0.0.0 0 32768 i
*> 172.16.57.0/28 0.0.0.0 0 32768 i
*> 192.168.1.0 172.16.40.7 0 3 i
*> 192.168.10.0 172.16.40.7 0 3 65001 i
*> 192.168.12.0 172.16.40.7 0 3 65001 ?
*> 192.168.20.0 172.16.40.7 0 3 i

R7 change....
en
config t
router bgp 3
neighbor 172.16.54.5 remove-private-AS
end
wr mem

I had to run clear ip bgp * on the router I wanted to take the private AS numbers off of.

R5#sh ip bgp
BGP table version is 72, local router ID is 10.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0 172.16.40.7 0 3 ?
*> 172.16.40.0/24 172.16.40.7 0 0 3 i
* i172.16.54.0/28 172.16.54.4 0 100 0 i
*> 0.0.0.0 0 32768 i
*> 172.16.57.0/28 0.0.0.0 0 32768 i
*> 192.168.1.0 172.16.40.7 0 3 i
*> 192.168.10.0 172.16.40.7 0 3 i
*> 192.168.12.0 172.16.40.7 0 3 ?
*> 192.168.20.0 172.16.40.7 0 3 i


Prepend AS numbers
Back to top
View user's profile Send private message
throat674



Joined: 13 Dec 2005
Posts: 3

PostPosted: Tue Dec 13, 2005 5:04 pm    Post subject: Misadventure Reply with quote

Tom4498 wrote:
Layer 2


Well that was a bit messed up... CoolCool
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
AcceliNetworks Forum Index -> Configuring  
Post new topic   Reply to topic All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum