###実現したいこと
VRFを使用すればインターフェースVLAN間通信もできなくなるのか検証したい。
PC-2←→PC-1/PC-3間の通信が不可になる?
###環境
GNS3
###認識
L3SWにVRFの設定をしていなければ、単純なタグVLAN間通信ができることは承知ですが、
今回L3SWにVRFでvrf-1とvrf-2を作成し、ルーティングテーブルを論理的に分割した場合、
タグVLAN間通信ができなくなるのではないかと推測しており、検証したく考えております。
VRFでもSVIは重複不可らしいので、上記の推測に至りました。(仮にタグVLAN間通信が可能であればVRFの意味がない)
###設定した内容
◆L3SW
・Vlan10,Vlan20の作成
・SVI10(192.168.10.254/24),SVI20(192.168.20.254/24)の作成
・fa1/2,fa1/3にtrunk設定
・vef-1,vrf-2の作成
・SVI10にvrf-1,SVI20にvrf-2の適用
◆L2SW-1
・Vlan10,Vlan20の作成
・fa1/1とfa1/3にaccess設定
・fa1/2にtrunk設定
◆L2SW-2
・Vlan20の作成
・fa1/2にaccess設定
・fa1/3にtrunk設定
◆PC-1
IP/MASK : 192.168.10.1/24
GATEWAY : 192.168.10.254
◆PC-2
IP/MASK : 192.168.20.1/24
GATEWAY : 192.168.20.254
◆PC-3
IP/MASK : 192.168.20.2/24
GATEWAY : 192.168.20.254
###コンフィグ
◆L3SW
L3SW#show vlan-switch VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa1/0, Fa1/1, Fa1/4, Fa1/5 Fa1/6, Fa1/7, Fa1/8, Fa1/9 Fa1/10, Fa1/11, Fa1/12, Fa1/13 Fa1/14, Fa1/15 10 VLAN0010 active 20 VLAN0020 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active
L3SW#show run Building configuration... Current configuration : 1932 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname L3SW ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 no ip icmp rate-limit unreachable ip cef ! ! ip vrf vrf-1 rd 1:1 ! ip vrf vrf-2 rd 1:2 ! no ip domain lookup ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 ! ! ip tcp synwait-time 5 ! ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface Serial0/0 no ip address shutdown clock rate 2000000 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown clock rate 2000000 ! interface Serial0/2 no ip address shutdown clock rate 2000000 ! interface FastEthernet1/0 ! interface FastEthernet1/1 ! interface FastEthernet1/2 switchport trunk allowed vlan 1,2,10,20,1002-1005 switchport mode trunk ! interface FastEthernet1/3 switchport trunk allowed vlan 1,2,10,20,1002-1005 switchport mode trunk ! interface FastEthernet1/4 ! interface FastEthernet1/5 ! interface FastEthernet1/6 ! interface FastEthernet1/7 ! interface FastEthernet1/8 ! interface FastEthernet1/9 ! interface FastEthernet1/10 ! interface FastEthernet1/11 ! interface FastEthernet1/12 ! interface FastEthernet1/13 ! interface FastEthernet1/14 ! interface FastEthernet1/15 ! interface Vlan1 no ip address ! interface Vlan10 ip vrf forwarding vrf-1 ip address 192.168.10.254 255.255.255.0 ! interface Vlan20 ip vrf forwarding vrf-2 ip address 192.168.20.254 255.255.255.0 ! ip forward-protocol nd ! ! no ip http server no ip http secure-server ! no cdp log mismatch duplex ! ! control-plane ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 4 login ! ! end
◆L2SW-1
L2SW-1#show vlan-switch VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa1/0, Fa1/1, Fa1/3, Fa1/4 Fa1/5, Fa1/6, Fa1/7, Fa1/8 Fa1/9, Fa1/10, Fa1/11, Fa1/12 Fa1/13, Fa1/14, Fa1/15 10 VLAN0010 active 20 VLAN0020 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active
L2SW-1#show run Building configuration... Current configuration : 1698 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname L2SW-1 ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 no ip icmp rate-limit unreachable ip cef ! ! no ip domain lookup ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 ! ! ip tcp synwait-time 5 ! ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface Serial0/0 no ip address shutdown clock rate 2000000 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown clock rate 2000000 ! interface Serial0/2 no ip address shutdown clock rate 2000000 ! interface FastEthernet1/0 ! interface FastEthernet1/1 switchport access vlan 10 ! interface FastEthernet1/2 switchport trunk allowed vlan 1,2,10,20,1002-1005 switchport mode trunk ! interface FastEthernet1/3 switchport access vlan 20 ! interface FastEthernet1/4 ! interface FastEthernet1/5 ! interface FastEthernet1/6 ! interface FastEthernet1/7 ! interface FastEthernet1/8 ! interface FastEthernet1/9 ! interface FastEthernet1/10 ! interface FastEthernet1/11 ! interface FastEthernet1/12 ! interface FastEthernet1/13 ! interface FastEthernet1/14 ! interface FastEthernet1/15 ! interface Vlan1 no ip address ! ip forward-protocol nd ! ! no ip http server no ip http secure-server ! no cdp log mismatch duplex ! ! control-plane ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 4 login ! ! end
◆L2SW-2
L2SW-2#show vlan-switch VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa1/0, Fa1/1, Fa1/2, Fa1/4 Fa1/5, Fa1/6, Fa1/7, Fa1/8 Fa1/9, Fa1/10, Fa1/11, Fa1/12 Fa1/13, Fa1/14, Fa1/15 20 VLAN0020 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active
L2SW-2#show run Building configuration... Current configuration : 1699 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname L2SW-2 ! boot-start-marker boot-end-marker ! ! no aaa new-model memory-size iomem 5 no ip icmp rate-limit unreachable ip cef ! ! no ip domain lookup ip auth-proxy max-nodata-conns 3 ip admission max-nodata-conns 3 ! ! ip tcp synwait-time 5 ! ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface Serial0/0 no ip address shutdown clock rate 2000000 ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/1 no ip address shutdown clock rate 2000000 ! interface Serial0/2 no ip address shutdown clock rate 2000000 ! interface FastEthernet1/0 ! interface FastEthernet1/1 ! interface FastEthernet1/2 ! interface FastEthernet1/3 switchport trunk allowed vlan 1,2,20,1002-1005 switchport mode trunk ! interface FastEthernet1/4 ! interface FastEthernet1/5 ! interface FastEthernet1/6 ! interface FastEthernet1/7 ! interface FastEthernet1/8 ! interface FastEthernet1/9 ! interface FastEthernet1/10 ! interface FastEthernet1/11 ! interface FastEthernet1/12 ! interface FastEthernet1/13 ! interface FastEthernet1/14 ! interface FastEthernet1/15 ! interface Vlan1 no ip address ! interface Vlan20 ip address 192.168.20.1 255.255.255.0 ! ip forward-protocol nd ! ! no ip http server no ip http secure-server ! no cdp log mismatch duplex ! ! ! control-plane ! ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 4 login ! ! end
###現状
vlan間通信どころか、各PCとL3SW間で通信不可です。
しかしL2SW-2からL3SW、L2SW-2からPC-2への通信は可能です。
L2SW-2#ping 192.168.20.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.20.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms L2SW-2# L2SW-2#ping 192.168.20.254 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.20.254, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 12/20/24 ms
L2SW-1はPC、L3SW共に通信不可です。
VRFに対する私の認識に間違いがあり設定に不備があるのでしょうか。
以上、どうかアドバイスお願いいたします(>_<)
###追記
PC-1からL3SWへは通信できました。
PC-1> ping 192.168.10.254 84 bytes from 192.168.10.254 icmp_seq=1 ttl=255 time=8.977 ms 84 bytes from 192.168.10.254 icmp_seq=2 ttl=255 time=1.996 ms 84 bytes from 192.168.10.254 icmp_seq=3 ttl=255 time=8.975 ms 84 bytes from 192.168.10.254 icmp_seq=4 ttl=255 time=5.986 ms 84 bytes from 192.168.10.254 icmp_seq=5 ttl=255 time=38.897 ms
L2SW-2にSVI20の設定が間違って入っていたため削除しました。
回答1件
あなたの回答
tips
プレビュー