去年公司接的案子續約,新購了一台Cisco的Router,
此Router上有一個4 port的Gigabit網卡模組EHWIC-4ESW。
一開始不懂此switch port的網卡模組該如何使用?
只知道它不能當成Router網卡來使用,
而續約案需要多一個Router介面來串連導通新網段,
於是乎又買了一個Router網卡模組來使用...
一年後的今天,對cisco的東西接觸的也比較多了,
實在懷疑這EHWIC-4ESW到底如何去應用!?
上網查了之後才知道這個網卡模組可以做很神奇的應用-透過vlan來做路由。
在建立了vlan介面後,把這4個switch port套用在對應的vlan上,
這樣interface與vlan間的路由就自動形成了∼
(config)# interface fa 0/0
(config-if)# ip address 192.168.0.254 255.255.254.0
(config)# interface fa 0/1
(config-if)# ip address 192.168.1.254 255.255.254.0
(config)# interface vlan 10
(config-if)# ip address 192.168.10.254 255.255.254.0
(config)# interface fa 0/0/0
(config-if)# switchport mode access
(config-if)# switchport access vlan 10
(config)# interface vlan 11
(config-if)# ip address 192.168.11.254 255.255.254.0
(config)# interface fa 0/0/1
(config-if)# switchport mode access
(config-if)# switchport access vlan 11
(config)# interface vlan 12
(config-if)# ip address 192.168.12.254 255.255.254.0
(config)# interface range fa 0/0/2-3
(config-if-range)# switchport mode access
(config-if-range)# switchport access vlan 12
# 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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
C 192.168.0.0/24 is directly connected, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/1
C 192.168.10.0/24 is directly connected, Vlan10
C 192.168.11.0/24 is directly connected, Vlan11
C 192.168.12.0/24 is directly connected, Vlan12
若建立了4個vlan並套用在4個switch port上,
就等於是直接多了4張router介面網卡,可對4個網段做routing,
等同於L3 Switch的路由效果,真是太棒了!
不過此EHWIC-4ESW模組畢竟是閹割過的switch模組,
L2/L3 Switch上該具備的group功能並不支援,
無法將兩個switch port組成一個group來增加效能及可靠性;
也不能透過no switchport指令,把網卡變成router mode。
這是此模組在使用上比較可惜的一個地方...
♥順子老婆的網拍,請多關照∼
If you don't like something, change it.
If you can't change it, change your attitude.
Don't complain!
|