مقالات

vlan – مسیریابی بین SVI و یک پورت روت شده روی روتر


چگونه می توانم از یک vlan پایان یافته در سوئیچ L3 به یک پورت روت شده در روتر، FW دسترسی پیدا کنم؟

FE

int vlan 10,50 SVI روی سوئیچ L3 هستند

vlan 10 - 10.0.10.254 /24
vlan 50 - 10.0.50.254 /24

vlan 50 vlan بومی پیوند ترانک به (روتر، FW) است.

پورت روت شده بر روی رابط فیزیکی با 10.0.50.1/24 پیکربندی شده است

مشکل این است که من می توانم از هر دو SVI به یک منبع پورت روت شده برسم، اما نه دستگاهی که در vlan 10 است.

با گرفتن tcpdump در رابط مسیریابی، من فقط درخواست های icmp را می بینم اما هیچ پاسخی نمی بینم. سوئیچ دارای یک دروازه پیش فرض است که روی 10.0.50.1 تنظیم شده است

من ospf را روی FW فعال کردم و تغییر دادم اما شانسی نداشتم.


با تشکر از @Zac67 برای راهنمایی، شاید من در مورد آنچه که می خواستم به دست بیاورم واضح نبودم.

من می خواهم چندین vlan را روی سوئیچ L3 خاتمه دهم، برخی از آنها در FW برای مشاهده در آنها. مشکل این است که من می‌خواهم از یک رابط فیزیکی در FW استفاده کنم تا DG آنها برای رسیدن به دنیای خارج یا مسیریابی به vlan‌های پایان یافته در FW باشم.

به نظر می رسد یک روتر روی چوب است، اما از یک رابط فیزیکی با قرار دادن یک آدرس IP روی آن استفاده می کند.

بنابراین vlans 5,10,15.20 روی سوئیچ L3 خاتمه می یابد تا SVI ​​هایی روی آن ایجاد شود. Vlans 30،40،50 فقط روی سوئیچ وجود دارد و از طریق یک ترانک به روتر می‌رود و واسط‌های فرعی خود را ایجاد می‌کند.

من به دنبال راهی برای استفاده از vlan متفاوت فقط برای اتصال بین SVI و رابط فیزیکی روتر هستم.

کاری که من تاکنون انجام داده‌ام این است که فرض کنیم یک SVI برای vlan 100 ایجاد کردم، یک ip روی آن قرار دادم – vlan 100 را به عنوان vlan بومی در ترانک تنظیم کنید تا بدون برچسب به روتر برسد.

اما متاسفانه این اتفاق نمی افتد…

================================================== == ========

اول، برای هر اشتباهی که در این سوال مرتکب شده ام و دارم متاسفم – این اولین پست در پشته است. با تشکر از همه کسانی که برای حل این مشکل تلاش می کنند. لطفا توپولوژی و تنظیمات زیر را بیابید:

پیکربندی سوئیچ

Current configuration : 3350 bytes
!
! Last configuration change at 06:18:12 UTC Thu Aug 26 2021
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
 media-type rj45
 negotiation auto
!
interface GigabitEthernet0/1
 switchport access vlan 20
 switchport mode access
 media-type rj45
 negotiation auto
!
interface GigabitEthernet0/2
 media-type rj45
 negotiation auto
!
interface GigabitEthernet0/3
 switchport trunk encapsulation dot1q
 switchport trunk native vlan 40
 switchport mode trunk
 media-type rj45
 negotiation auto
!
interface GigabitEthernet1/0
 switchport access vlan 30
 media-type rj45
 negotiation auto
!
interface GigabitEthernet1/1
 media-type rj45
 negotiation auto
!
interface GigabitEthernet1/2
 media-type rj45
 negotiation auto
!
interface GigabitEthernet1/3
 media-type rj45
 negotiation auto
!
interface Vlan20
 ip address 10.0.20.254 255.255.255.0
!
interface Vlan40
 ip address 10.0.40.254 255.255.255.0
!
router ospf 1
 network 0.0.0.0 255.255.255.255 area 0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS  *
* education. IOSv is provided as-is and is not supported by Cisco's      *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any       *
* purposes is expressly prohibited except as otherwise authorized by     *
* Cisco in writing.                                                      *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS  *
* education. IOSv is provided as-is and is not supported by Cisco's      *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any       *
* purposes is expressly prohibited except as otherwise authorized by     *
* Cisco in writing.                                                      *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS  *
* education. IOSv is provided as-is and is not supported by Cisco's      *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any       *
* purposes is expressly prohibited except as otherwise authorized by     *
* Cisco in writing.                                                      *
**************************************************************************^C
!
line con 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
!
end

پیکربندی روتر

Router#sh run
Building configuration...

Current configuration : 3144 bytes
!
! Last configuration change at 06:18:16 UTC Thu Aug 26 2021
!
version 15.6
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
ethernet lmi ce
!
!
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface GigabitEthernet0/0
 ip address 10.0.40.1 255.255.255.0
 duplex auto
 speed auto
 media-type rj45
!
interface GigabitEthernet0/0.30
 encapsulation dot1Q 30
 ip address 10.0.30.1 255.255.255.0
!
interface GigabitEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
!
interface GigabitEthernet0/2
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
!
interface GigabitEthernet0/3
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
!
router ospf 1
 network 0.0.0.0 255.255.255.255 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS  *
* education. IOSv is provided as-is and is not supported by Cisco's      *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any       *
* purposes is expressly prohibited except as otherwise authorized by     *
* Cisco in writing.                                                      *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS  *
* education. IOSv is provided as-is and is not supported by Cisco's      *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any       *
* purposes is expressly prohibited except as otherwise authorized by     *
* Cisco in writing.                                                      *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS  *
* education. IOSv is provided as-is and is not supported by Cisco's      *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any       *
* purposes is expressly prohibited except as otherwise authorized by     *
* Cisco in writing.                                                      *
**************************************************************************^C
!
line con 0
line aux 0
line vty 0 4
 login
 transport input none
!
no scheduler allocate
!
end

بازیابی از VPC10 من می توانم پینگ کنم

VPCS> ip 10.0.30.100 /24 10.0.30.1
Checking for duplicate address...
PC1 : 10.0.30.100 255.255.255.0 gateway 10.0.30.1

VPCS> ping 10.0.30.1

84 bytes from 10.0.30.1 icmp_seq=1 ttl=255 time=16.253 ms

VPCS> ping 10.0.40.1

84 bytes from 10.0.40.1 icmp_seq=1 ttl=255 time=8.569 ms

VPCS> ping 10.0.40.254

84 bytes from 10.0.40.254 icmp_seq=1 ttl=254 time=12.776 ms

VPCS> ping 10.0.20.254

84 bytes from 10.0.20.254 icmp_seq=1 ttl=254 time=15.602 ms

VPCS> ping 10.0.20.100

10.0.20.100 icmp_seq=1 timeout

VPCS> ping 3.3.3.3

84 bytes from 3.3.3.3 icmp_seq=1 ttl=255 time=11.675 ms

Only device which is not pingable is other VPCS 10.0.20.100

**But from VPC which is terminated on the switch only SVI's on the switch**

VPCS> ip 10.0.20.100 /24 10.0.20.254
Checking for duplicate address...
PC1 : 10.0.20.100 255.255.255.0 gateway 10.0.20.254


VPCS> ping 10.0.20.254

84 bytes from 10.0.20.254 icmp_seq=1 ttl=255 time=25.344 ms

VPCS> ping 10.0.30.1

10.0.30.1 icmp_seq=1 timeout

VPCS> ping 10.0.40.254

84 bytes from 10.0.40.254 icmp_seq=1 ttl=255 time=7.528 ms

در اینجا جداول مسیریابی سوئیچ و روتر آمده است


Source link

نوشته های مشابه

دیدگاهتان را بنویسید

دکمه بازگشت به بالا