Dell Networking SONiC IPv4 및 IPv6 정적 라우트
Samenvatting: 이 문서에서는 Dell SONiC 관리 프레임워크 CLI에서 정적 라우트 구성에 대해 설명합니다.
Dit artikel is van toepassing op
Dit artikel is niet van toepassing op
Dit artikel is niet gebonden aan een specifiek product.
Niet alle productversies worden in dit artikel vermeld.
Instructies
|
문서의 사전 요구 사항 이 문서에서는 Dell SONiC 4.1을 실행하는 스위치를 사용합니다. 구성에서 표준 인터페이스 명명을 사용하고 있습니다. Dell SONiC의 다양한 인터페이스 명명 모드에 대한 자세한 내용은 Dell 문서 202172 Dell Networking S-Series를 참조하십시오. 기본 인터페이스 구성 - SONiC 4.0 |
인덱스
소개IPv4 정적 라우트 IPv6 정적 라우트
소개
라우팅된 트래픽을 지정된 대상 디바이스와 교환할 수 있도록 고정된 정적 라우트 구성 예를 들어 동적 라우트 사용이 불가능할 경우 정적 라우트 백업을 사용하거나 다른 경로를 사용할 수 없는 경우 네트워크 게이트웨이에 연결합니다.정적 라우트 설계 제안:
- 동일한 VRF에 겹치는 정적 경로가 없는지 확인합니다.
- 트래픽 라우팅을 위해 다음 홉 연결성을 보장해야 합니다.
IPv4 정적 라우트
구성 구문:
admin@sonic:~$ sonic-cli
sonic# configure
sonic(config)# ip route [vrf vrf-name] dest-ip-prefix {next-hop-ip [interface interfacetype interface-number] | interface interface-type interface-number | blackhole} [nexthopvrf vrf-name] [tag tag-name] [track id] [dest-metric] |
Explanation: 정적 IPv4 라우트 구성을 위해 대상 주소 접두사와 다음과 같은 선택적 값을 입력합니다.
|
IPv4 샘플 구성
admin@sonic:~$ sonic-cli sonic# configure sonic(config)# ip route 6.6.6.6/32 5.5.5.1 sonic(config)# ip route 7.7.7.7/32 blackhole 100 sonic(config)# ip route 4.4.4.0/24 4.4.4.1 nexthop-vrf Vrf-GREEN 200 sonic(config)# ip route vrf Vrf-RED 3.3.3.0/24 10.0.0.2 nexthop-vrf Vrf-GREEN sonic(config)# ip route vrf Vrf-RED 8.8.8.0/24 interface Eth1/4 nexthop-vrf Vrf-GREEN 36 |
IPv4 정적 라우트 확인
명령 show ip route static 또는 show ip route를 사용하여 기본 라우팅 테이블에서 IPv4 정적 라우트를 확인합니다.명령 show ip route vrf 또는 show ip route vrf static를 사용하여 기본 라우팅 표에서 IPv4 정적 라우트를 확인합니다.
sonic# show ip route static Codes: K - kernel route, C - connected, S - static, B - BGP, O - OSPF > - selected route, * - FIB route, q - queued route, r - rejected route Destination Gateway Dist/Metric Last Update -------------------------------------------------------------------------------------------------------------------------------- S>* 4.4.4.0/24 via 4.4.4.1 Eth1/6(vrf Vrf-GREEN) 200/0 00:54:46 ago S>* 6.6.6.6/32 via 5.5.5.1 Eth1/5 1/0 01:09:10 ago S>* 7.7.7.7/32 Unreachable (blackhole) 100/0 01:23:19 ago |
sonic# show ip route vrf Vrf-RED
Codes: K - kernel route, C - connected, S - static, B - BGP, O - OSPF
> - selected route, * - FIB route, q - queued route, r - rejected route
Destination Gateway Dist/Metric Last Update
--------------------------------------------------------------------------------------------------------------------------------
S>* 3.3.3.0/24 via 10.0.0.2 Eth1/9(vrf Vrf-GREEN) 1/0 00:00:17 ago
S>* 8.8.8.0/24 Direct Eth1/4(vrf Vrf-GREEN) 36/0 01:00:35 ago |
IPv6 정적 라우트
구성 구문:
admin@sonic:~$ sonic-cli
sonic# configure
sonic(config)# ipv6 route [vrf vrf-name] dest-ipv6-prefix {next-hop-ipv6 [interface interface-type interface-number] | interface interface-type interface-number | blackhole} [nexthop-vrf vrf-name] [tag tag-name] [track id] [dest-metric] |
Explanation: 정적 IPv6 라우트 구성을 위해 대상 주소 접두사와 다음과 같은 선택적 값을 입력합니다.
|
IPv6 샘플 구성
admin@sonic:~$ sonic-cli sonic# configure sonic(config)# ipv6 route 3030::3300/120 3030::3301 36 sonic(config)# ipv6 route 2001:db6::/32 interface Eth1/7 150 sonic(config)# ipv6 route 2006::/24 blackhole 200 sonic(config)# ipv6 route vrf Vrf-RED 1001::/24 interface Eth1/4 nexthop-vrf Vrf-GREEN 20 sonic(config)# ipv6 route vrf Vrf-RED 1002::/24 interface Eth1/2 nexthop-vrf Vrf-GREEN 50 |
IPv6 정적 라우트 확인
명령 show ipv6 route static 또는 show ip route를 사용하여 기본 라우팅 표에서 IPv6 정적 라우트를 확인합니다.ipv6 route vrf 정적 명령을 사용하여 기본 라우팅 표에서 IPv6 정적 라우트를 확인합니다.
sonic# show ipv6 route static Codes: K - kernel route, C - connected, S - static, B - BGP, O - OSPF > - selected route, * - FIB route, q - queued route, r - rejected route Destination Gateway Dist/Metric Last Update -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- S>* 2001:db6::/32 Direct Eth1/7 150/0 00:01:07 ago S>* 2006::/24 Unreachable (blackhole) 200/0 00:19:06 ago S 3030::3300/120 via 3030::3301 36/0 00:08:52 ago |
sonic# show ipv6 route vrf Vrf-RED static
Codes: K - kernel route, C - connected, S - static, B - BGP, O - OSPF
> - selected route, * - FIB route, q - queued route, r - rejected route
Destination Gateway Dist/Metric Last Update
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
S>* 1001::/24 Direct Eth1/4(vrf Vrf-GREEN) 20/0 00:14:44 ago
S> 1002::/24 Direct Eth1/2(vrf Vrf-GREEN) 50/0 00:14:30 ago |
Getroffen producten
Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ON
, PowerSwitch Z9332F-ON, PowerSwitch Z9432F-ON
...
Artikeleigenschappen
Artikelnummer: 000218054
Artikeltype: How To
Laatst aangepast: 25 jun. 2025
Versie: 5
Vind antwoorden op uw vragen via andere Dell gebruikers
Support Services
Controleer of uw apparaat wordt gedekt door Support Services.