Re: OSPF issue?
Posted: 05 Oct 2011 20:11
Hi,
Unfortunately, config didn't pass the test.
For this test I used topology just with two switches and two workstation. I attached my testing topology to this message.
I applied your ACL and OSPF config to the swithces.
So, when I pinged from workstation to workstation everything looked fine but when I did "traceroute" from workstation 10.10.100.201 I've got this:
C:\Documents and Settings\Field>tracert 10.30.112.201
Tracing route to 10.30.112.201 over a maximum of 30 hops
1 4 ms 2 ms 2 ms 10.10.100.1
2 2 ms 2 ms 2 ms 10.20.250.13
3 <1 ms <1 ms <1 ms 10.30.112.201
Trace complete.
As you see traffic jumped from network 10 to network 20.
So, I did "show ip route" and this I've got:
-> show ip route
+ = Equal cost multipath routes
* = BFD Enabled static route
Total 15 routes
Dest Address Subnet Mask Gateway Addr Age Protocol
------------------+-----------------+-----------------+---------+-----------
10.10.100.0 255.255.255.0 10.10.100.1 06:20:53 LOCAL
10.10.250.0 255.255.255.252 10.10.250.1 00:11:42 LOCAL
10.10.250.8 255.255.255.252 +10.20.250.13 00:09:43 OSPF
+10.10.250.13 00:09:43 OSPF
10.10.250.12 255.255.255.252 10.10.250.14 00:11:42 LOCAL
10.20.100.0 255.255.255.0 10.20.100.1 06:20:52 LOCAL
10.20.112.0 255.255.255.0 +10.20.250.13 00:09:43 OSPF
+10.10.250.13 00:09:43 OSPF
10.20.250.0 255.255.255.252 10.20.250.1 00:27:38 LOCAL
10.20.250.8 255.255.255.252 +10.20.250.13 00:09:43 OSPF
+10.10.250.13 00:09:43 OSPF
10.20.250.12 255.255.255.252 10.20.250.14 00:27:38 LOCAL
10.30.112.0 255.255.255.0 +10.20.250.13 00:09:43 OSPF
+10.10.250.13 00:09:43 OSPF
127.0.0.1 255.255.255.255 127.0.0.1 06:22:05 LOCAL
Then I physically pulled out network 20 fiber jumper and did "traceroute" and "show ip route" from workstation 10.10.100.201:
C:\Documents and Settings\Field>tracert 10.30.112.201
Tracing route to 10.30.112.201 over a maximum of 30 hops
1 4 ms 2 ms 2 ms 10.10.100.1
2 18 ms * 2 ms 10.10.250.13
3 2 ms <1 ms <1 ms 10.30.112.201
Trace complete.
-> show ip route
+ = Equal cost multipath routes
* = BFD Enabled static route
Total 8 routes
Dest Address Subnet Mask Gateway Addr Age Protocol
------------------+-----------------+-----------------+---------+-----------
10.10.100.0 255.255.255.0 10.10.100.1 06:25:15 LOCAL
10.10.250.0 255.255.255.252 10.10.250.1 00:16:04 LOCAL
10.10.250.8 255.255.255.252 10.10.250.13 00:14:05 OSPF
10.10.250.12 255.255.255.252 10.10.250.14 00:16:04 LOCAL
10.20.100.0 255.255.255.0 10.20.100.1 06:25:14 LOCAL
10.20.112.0 255.255.255.0 10.10.250.13 00:14:05 OSPF
10.30.112.0 255.255.255.0 10.10.250.13 00:14:05 OSPF
127.0.0.1 255.255.255.255 127.0.0.1 06:26:26 LOCAL
After that I tried to change ACL on both switches to:
! QOS :
policy network group vlan-10 10.10.0.0 mask 255.255.0.0 10.10.0.0 mask 255.255.0.0
policy network group vlan-20 10.20.0.0 mask 255.255.0.0 10.20.0.0 mask 255.255.0.0
policy condition vlan10_vlan20 source network group vlan-10 destination network group vlan-20
policy condition vlan20_vlan10 source network group vlan-20 destination network group vlan-10
policy action allow
policy action deny disposition deny
policy rule vlan10_vlan20 precedence 160 condition vlan10_vlan20 action deny
policy rule vlan20_vlan10 precedence 150 condition vlan20_vlan10 action deny
qos apply
So, when I did "traceroute" and "show ip route" from workstation 10.10.100.201 and local switch I've got this:
C:\Documents and Settings\Field>tracert 10.30.112.201
Tracing route to 10.30.112.201 over a maximum of 30 hops
1 174 ms 2 ms 2 ms 10.10.100.1
2 * * * Request timed out.
3 5 ms * 5 ms 10.30.112.201
Trace complete.
-> show ip route
+ = Equal cost multipath routes
* = BFD Enabled static route
Total 15 routes
Dest Address Subnet Mask Gateway Addr Age Protocol
------------------+-----------------+-----------------+---------+-----------
10.10.100.0 255.255.255.0 +10.10.250.14 00:34:00 OSPF
+10.20.250.14 00:05:07 OSPF
10.10.250.0 255.255.255.252 +10.10.250.14 00:34:00 OSPF
+10.20.250.14 00:05:07 OSPF
10.10.250.8 255.255.255.252 10.10.250.10 00:36:01 LOCAL
10.10.250.12 255.255.255.252 10.10.250.13 00:36:01 LOCAL
10.20.100.0 255.255.255.0 +10.10.250.14 00:34:00 OSPF
+10.20.250.14 00:05:07 OSPF
10.20.112.0 255.255.255.0 10.20.112.1 01:55:39 LOCAL
10.20.250.0 255.255.255.252 +10.10.250.14 00:05:47 OSPF
+10.20.250.14 00:05:07 OSPF
10.20.250.8 255.255.255.252 10.20.250.10 00:05:52 LOCAL
10.20.250.12 255.255.255.252 10.20.250.13 00:05:52 LOCAL
10.30.112.0 255.255.255.0 10.30.112.1 03:31:09 LOCAL
127.0.0.1 255.255.255.255 127.0.0.1 1d 6h LOCAL
As you see traffic goes through wrong gateway even with ACL applied. But when I physically pulled out network 20 fiber jumper and did "traceroute" and "show ip route" from workstation 10.10.100.201 I've got this:
C:\Documents and Settings\Field>tracert 10.30.112.201
Tracing route to 10.30.112.201 over a maximum of 30 hops
1 2 ms 2 ms 2 ms 10.10.100.1
2 2 ms 3 ms 2 ms 10.10.250.13
3 1 ms <1 ms <1 ms 10.30.112.201
Trace complete.
C:\Documents and Settings\Field>
-> show ip route
+ = Equal cost multipath routes
* = BFD Enabled static route
Total 8 routes
Dest Address Subnet Mask Gateway Addr Age Protocol
------------------+-----------------+-----------------+---------+-----------
10.10.100.0 255.255.255.0 10.10.250.14 00:07:17 OSPF
10.10.250.0 255.255.255.252 10.10.250.14 00:07:17 OSPF
10.10.250.8 255.255.255.252 10.10.250.10 00:08:07 LOCAL
10.10.250.12 255.255.255.252 10.10.250.13 00:08:07 LOCAL
10.20.100.0 255.255.255.0 10.10.250.14 00:07:17 OSPF
10.20.112.0 255.255.255.0 10.20.112.1 02:22:59 LOCAL
10.30.112.0 255.255.255.0 10.30.112.1 03:58:29 LOCAL
127.0.0.1 255.255.255.255 127.0.0.1 1d 7h LOCAL
So, how to make ospf pick the wright gateway(path)?
This is big question for me.
Unfortunately, config didn't pass the test.
For this test I used topology just with two switches and two workstation. I attached my testing topology to this message.
I applied your ACL and OSPF config to the swithces.
So, when I pinged from workstation to workstation everything looked fine but when I did "traceroute" from workstation 10.10.100.201 I've got this:
C:\Documents and Settings\Field>tracert 10.30.112.201
Tracing route to 10.30.112.201 over a maximum of 30 hops
1 4 ms 2 ms 2 ms 10.10.100.1
2 2 ms 2 ms 2 ms 10.20.250.13
3 <1 ms <1 ms <1 ms 10.30.112.201
Trace complete.
As you see traffic jumped from network 10 to network 20.
So, I did "show ip route" and this I've got:
-> show ip route
+ = Equal cost multipath routes
* = BFD Enabled static route
Total 15 routes
Dest Address Subnet Mask Gateway Addr Age Protocol
------------------+-----------------+-----------------+---------+-----------
10.10.100.0 255.255.255.0 10.10.100.1 06:20:53 LOCAL
10.10.250.0 255.255.255.252 10.10.250.1 00:11:42 LOCAL
10.10.250.8 255.255.255.252 +10.20.250.13 00:09:43 OSPF
+10.10.250.13 00:09:43 OSPF
10.10.250.12 255.255.255.252 10.10.250.14 00:11:42 LOCAL
10.20.100.0 255.255.255.0 10.20.100.1 06:20:52 LOCAL
10.20.112.0 255.255.255.0 +10.20.250.13 00:09:43 OSPF
+10.10.250.13 00:09:43 OSPF
10.20.250.0 255.255.255.252 10.20.250.1 00:27:38 LOCAL
10.20.250.8 255.255.255.252 +10.20.250.13 00:09:43 OSPF
+10.10.250.13 00:09:43 OSPF
10.20.250.12 255.255.255.252 10.20.250.14 00:27:38 LOCAL
10.30.112.0 255.255.255.0 +10.20.250.13 00:09:43 OSPF
+10.10.250.13 00:09:43 OSPF
127.0.0.1 255.255.255.255 127.0.0.1 06:22:05 LOCAL
Then I physically pulled out network 20 fiber jumper and did "traceroute" and "show ip route" from workstation 10.10.100.201:
C:\Documents and Settings\Field>tracert 10.30.112.201
Tracing route to 10.30.112.201 over a maximum of 30 hops
1 4 ms 2 ms 2 ms 10.10.100.1
2 18 ms * 2 ms 10.10.250.13
3 2 ms <1 ms <1 ms 10.30.112.201
Trace complete.
-> show ip route
+ = Equal cost multipath routes
* = BFD Enabled static route
Total 8 routes
Dest Address Subnet Mask Gateway Addr Age Protocol
------------------+-----------------+-----------------+---------+-----------
10.10.100.0 255.255.255.0 10.10.100.1 06:25:15 LOCAL
10.10.250.0 255.255.255.252 10.10.250.1 00:16:04 LOCAL
10.10.250.8 255.255.255.252 10.10.250.13 00:14:05 OSPF
10.10.250.12 255.255.255.252 10.10.250.14 00:16:04 LOCAL
10.20.100.0 255.255.255.0 10.20.100.1 06:25:14 LOCAL
10.20.112.0 255.255.255.0 10.10.250.13 00:14:05 OSPF
10.30.112.0 255.255.255.0 10.10.250.13 00:14:05 OSPF
127.0.0.1 255.255.255.255 127.0.0.1 06:26:26 LOCAL
After that I tried to change ACL on both switches to:
! QOS :
policy network group vlan-10 10.10.0.0 mask 255.255.0.0 10.10.0.0 mask 255.255.0.0
policy network group vlan-20 10.20.0.0 mask 255.255.0.0 10.20.0.0 mask 255.255.0.0
policy condition vlan10_vlan20 source network group vlan-10 destination network group vlan-20
policy condition vlan20_vlan10 source network group vlan-20 destination network group vlan-10
policy action allow
policy action deny disposition deny
policy rule vlan10_vlan20 precedence 160 condition vlan10_vlan20 action deny
policy rule vlan20_vlan10 precedence 150 condition vlan20_vlan10 action deny
qos apply
So, when I did "traceroute" and "show ip route" from workstation 10.10.100.201 and local switch I've got this:
C:\Documents and Settings\Field>tracert 10.30.112.201
Tracing route to 10.30.112.201 over a maximum of 30 hops
1 174 ms 2 ms 2 ms 10.10.100.1
2 * * * Request timed out.
3 5 ms * 5 ms 10.30.112.201
Trace complete.
-> show ip route
+ = Equal cost multipath routes
* = BFD Enabled static route
Total 15 routes
Dest Address Subnet Mask Gateway Addr Age Protocol
------------------+-----------------+-----------------+---------+-----------
10.10.100.0 255.255.255.0 +10.10.250.14 00:34:00 OSPF
+10.20.250.14 00:05:07 OSPF
10.10.250.0 255.255.255.252 +10.10.250.14 00:34:00 OSPF
+10.20.250.14 00:05:07 OSPF
10.10.250.8 255.255.255.252 10.10.250.10 00:36:01 LOCAL
10.10.250.12 255.255.255.252 10.10.250.13 00:36:01 LOCAL
10.20.100.0 255.255.255.0 +10.10.250.14 00:34:00 OSPF
+10.20.250.14 00:05:07 OSPF
10.20.112.0 255.255.255.0 10.20.112.1 01:55:39 LOCAL
10.20.250.0 255.255.255.252 +10.10.250.14 00:05:47 OSPF
+10.20.250.14 00:05:07 OSPF
10.20.250.8 255.255.255.252 10.20.250.10 00:05:52 LOCAL
10.20.250.12 255.255.255.252 10.20.250.13 00:05:52 LOCAL
10.30.112.0 255.255.255.0 10.30.112.1 03:31:09 LOCAL
127.0.0.1 255.255.255.255 127.0.0.1 1d 6h LOCAL
As you see traffic goes through wrong gateway even with ACL applied. But when I physically pulled out network 20 fiber jumper and did "traceroute" and "show ip route" from workstation 10.10.100.201 I've got this:
C:\Documents and Settings\Field>tracert 10.30.112.201
Tracing route to 10.30.112.201 over a maximum of 30 hops
1 2 ms 2 ms 2 ms 10.10.100.1
2 2 ms 3 ms 2 ms 10.10.250.13
3 1 ms <1 ms <1 ms 10.30.112.201
Trace complete.
C:\Documents and Settings\Field>
-> show ip route
+ = Equal cost multipath routes
* = BFD Enabled static route
Total 8 routes
Dest Address Subnet Mask Gateway Addr Age Protocol
------------------+-----------------+-----------------+---------+-----------
10.10.100.0 255.255.255.0 10.10.250.14 00:07:17 OSPF
10.10.250.0 255.255.255.252 10.10.250.14 00:07:17 OSPF
10.10.250.8 255.255.255.252 10.10.250.10 00:08:07 LOCAL
10.10.250.12 255.255.255.252 10.10.250.13 00:08:07 LOCAL
10.20.100.0 255.255.255.0 10.10.250.14 00:07:17 OSPF
10.20.112.0 255.255.255.0 10.20.112.1 02:22:59 LOCAL
10.30.112.0 255.255.255.0 10.30.112.1 03:58:29 LOCAL
127.0.0.1 255.255.255.255 127.0.0.1 1d 7h LOCAL
So, how to make ospf pick the wright gateway(path)?
This is big question for me.