日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

Catalyst 2948G-L3交換機上行重定向功能( 二 )


 no ip route-cache cef
!
router rip
 network 10.0.0.0
!
bridge 21 protocol ieee
!-- 該命令在此交換路由上激活橋接 。
 bridge 21 route ip
!-- 該命令在接口21上激活路由 。

檢驗
IP上行鏈路重定向功能尚未啟動,如下所示:
Cat2948G-L3#show ip uplink
IP Uplink Redirect Configuration:
Running Configuration : no ip uplink-redirect
!-- 未激活I(lǐng)P上行鏈路重新定向功能 。
Configuration on next reload : no ip uplink-redirect
該結(jié)構(gòu)中對配置IP上行鏈路重定向的處理如下所示:
Cat2948G-L3#configure t
Enter configuration commands, one per line. End with CNTL/Z.
Cat2948G-L3(config)#ip uplink-redirect
!-- 此全局配置命令激活I(lǐng)P上行鏈路重新定向功能,
!-- 但必須在重新加載后才能生效 。
Please save configuration and reload for this command to take effect
Cat2948G-L3#show ip uplink
IP Uplink Redirect Configuration:
Running Configuration : no ip uplink-redirect
Configuration on next reload : ip uplink-redirect
!-- 該功能被激活,但在重新后加載才能生效 。
Cat2948G-L3#reload
System configuration has been modified. Save? [yes/no]: y
Building configuration...
[OK]
Proceed with reload? [confirm]
After reload:
Cat2948G-L3#show ip uplink
IP Uplink Redirect Configuration:
Running Configuration : ip uplink-redirect
!-- T激活I(lǐng)P上行鏈路重新定向功能.
Configuration on next reload : ip uplink-redirect
為了在Cat2948G - L3上完成IP上行鏈路重定向配置,您必須配置一靜態(tài)默認(rèn)路由并指向上流路由器的接口IP地址 。
在本例中,路由器的接口gig 49為上流路由器接口 。接口gig 49的IP地址為10.1.22.1 。您無法在ip route命令中指定一個出口接口,您必須指定下一個跳IP地址 。
Cat2948G-L3(config)#ip route 0.0.0.0 0.0.0.0 10.1.22.1
路由器中的基本路由配置如下:
路由器配置
router#show run
...
interface GigabitEthernet49
 ip address 10.1.22.1 255.255.255.0
 no ip directed-broadcast
...
router rip
 network 10.0.0.0
路由器中的路由表如下:
router#show 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, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR
Gateway of last resort is not set
 10.0.0.0/24 is subnetted, 3 subnets
R10.1.20.0 [120/1] via 10.1.22.2, 00:00:21, GigabitEthernet49
R10.1.21.0 [120/1] via 10.1.22.2, 00:00:21, GigabitEthernet49
C10.1.22.0 is directly connected, GigabitEthernet49
router#
警告:假如上流路由器有一更好的可選路徑通過Catalyst 2948G - L3高速以太網(wǎng)接口返回IP網(wǎng)絡(luò),將使用該路徑,這可能導(dǎo)致路由環(huán)路 。
通過BVI21/路由器/gig來確保station_A和station_B之間的連通性,如下所示 。
station_A#traceroute 10.1.21.1
Type escape sequence to abort.
Tracing the route to 10.1.21.1
1 10.1.20.2 0 msec 0 msec 3 msec
2 10.1.22.1 0 msec 0 msec 3 msec
3 10.1.22.2 2 msec 0 msec 2 msec
4 10.1.21.1 3 msec 3 msec *
station_A#
在本例中,通過Catalyst 2948G - L3接口fast 20(10.1.20.2 0)的軌跡重定向至上流路由器的接口gig 49(10.1.22.1),路由返回至Catalyst 2948G - L3的接口gig 49(10.1.22.2),然后再到station_B(10.1.21.1) 。
假如有需要,您可以在Cat2948G - L3的接口gig 49上應(yīng)用ACL來控制站之間的接入 。在下例中,對接口gig 49上應(yīng)用一個輸入接入表來阻止兩個站的通訊:

推薦閱讀