3J, Kelvin, other IP routing gurus[问题]

胡说之

Moderator
注册
2002-01-17
消息
5,182
荣誉分数
6
声望点数
0
Is it possible for network admin to add a dynamic route to routing table? Or dynamic route is ONLY generated by the system?

What kind of route will show up in the routing table when a new route for VRF is created?
 
俺刚学步,是这样理解的:

dynamic routes都是众routers运行routing protocol,互相交换信息然后算出来的;admin加的应该是static route.

如果admin给某个VRF加了new route, 应该在那个VRF自己的routing table (而不是router system level的)里看到一条static route.
 
Is it possible to check the code of a route in VRF's routing table?

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Thanks.
 
Here is an example

sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR

Gateway of last resort is not set

100.0.0.0/24 is subnetted, 1 subnets
C 100.100.100.0 is directly connected, POS7/0
101.0.0.0/24 is subnetted, 1 subnets
C 101.101.101.0 is directly connected, POS7/3
223.255.254.0/32 is subnetted, 1 subnets
S 223.255.254.254 is directly connected, Ethernet0
21.0.0.0/32 is subnetted, 4 subnets
C 21.21.21.4 is directly connected, Loopback3
C 21.21.21.1 is directly connected, Loopback0
C 21.21.21.3 is directly connected, Loopback2
C 21.21.21.2 is directly connected, Loopback1
20.0.0.0/32 is subnetted, 4 subnets
B 20.20.20.4 [20/0] via 100.100.100.1, 2d22h
B 20.20.20.1 [20/0] via 100.100.100.1, 2d22h
B 20.20.20.2 [20/0] via 100.100.100.1, 2d22h
B 20.20.20.3 [20/0] via 100.100.100.1, 2d22h
5.0.0.0/16 is subnetted, 2 subnets
C 5.19.0.0 is directly connected, Ethernet0
B 5.18.0.0 [20/0] via 110.110.110.2, 01:26:46
22.0.0.0/32 is subnetted, 4 subnets
B 22.22.22.4 [20/0] via 110.110.110.2, 01:26:46
B 22.22.22.2 [20/0] via 110.110.110.2, 01:26:46
B 22.22.22.3 [20/0] via 110.110.110.2, 01:26:46
B 22.22.22.1 [20/0] via 110.110.110.2, 01:26:47
110.0.0.0/24 is subnetted, 1 subnets
C 110.110.110.0 is directly connected, POS3/0
111.0.0.0/24 is subnetted, 1 subnets
C 111.111.111.0 is directly connected, POS3/1


最初由 胡说之 发布
Is it possible to check the code of a route in VRF's routing table?

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Thanks.
 
Thanks HKBoy, when I don't get the right answer, usually it's because I didn't ask the question right.

What is the code for a new added static route in VRF's routing table?
 
你这个显示的是router level的。你能不能做一个
show ip route vrf xxx?
我手边没有Cisco router, 不能试。但我觉得应该是可以显示code的。
 
最初由 March 发布
你这个显示的是router level的。你能不能做一个
show ip route vrf xxx?
我手边没有Cisco router, 不能试。但我觉得应该是可以显示code的。

Thanks 3J. 我手边ye没有Cisco router, that's why I ask.
 
I don't have VPN configured on my testbed but the output will be the same no matter it is per vpn vrf or global vrf.

If the route is a static route, it will be

S 223.255.254.254 is directly connected, Ethernet0

In my example output, since i run BGP on my testbed, they are marked as .

B 20.20.20.4 [20/0] via 100.100.100.1, 2d22h




最初由 March 发布
你这个显示的是router level的。你能不能做一个
show ip route vrf xxx?
我手边没有Cisco router, 不能试。但我觉得应该是可以显示code的。
 
我同意,对router和VRF的routing table,code都应该是一样的。如果是Cisco就应该是S。这里是另一种router的:

Dest Address Next Hop Type Proto Age Metric Pref
-------------------------------------------------------------------------------
128.251.10.0/24 138.120.199.1 Remote Static 09d20h12m 1 0
138.120.0.0/16 138.120.199.1 Remote Static 09d20h12m 1 0
138.120.199.0/24 management Local Local 09d20h12m 0 0
 
what router is it???

最初由 March 发布
我同意,对router和VRF的routing table,code都应该是一样的。如果是Cisco就应该是S。这里是另一种router的:

Dest Address Next Hop Type Proto Age Metric Pref
-------------------------------------------------------------------------------
128.251.10.0/24 138.120.199.1 Remote Static 09d20h12m 1 0
138.120.0.0/16 138.120.199.1 Remote Static 09d20h12m 1 0
138.120.199.0/24 management Local Local 09d20h12m 0 0
 
最初由 March 发布
我同意,对router和VRF的routing table,code都应该是一样的。如果是Cisco就应该是S。这里是另一种router的:

Dest Address Next Hop Type Proto Age Metric Pref
-------------------------------------------------------------------------------
128.251.10.0/24 138.120.199.1 Remote Static 09d20h12m 1 0
138.120.0.0/16 138.120.199.1 Remote Static 09d20h12m 1 0
138.120.199.0/24 management Local Local 09d20h12m 0 0

So...

What's U(per-user static route)/P(periodic downloaded) for?
 
最初由 ミ古堡の山竹ペ 发布
never heard of it.

Are there anyone using it?

是挺新的,已经有一些客户,但和Cisco和Juniper的市场占有率没法比。

但性能还不错吧?:blowzy:
 
最初由 胡说之 发布


So...

What's U(per-user static route)/P(periodic downloaded) for?
这个我一点都不懂。:blowzy:
 
后退
顶部